## A Ternary Problem

View as PDF

Points: 3
Time limit: 1.0s
Memory limit: 64M

Author:
Problem type

You are given a ternary string of length containing only s, s, and s. You must print the occurrence of each digit.

#### Input Specification

The first line will contain the integer .

The second line will contain the ternary string containing only s, s and s.

#### Output Specification

On the first line, print integers. The first integer is the number of s, the second is the number of s, and the third is the number of s.

#### Sample Input

5
10202

#### Sample Output

2 1 2