Hide

Problem B
Just a Bit

Stacy: “Hey, are you ready to go? It’s almost time for the UAPC!”

Priya: “In just a bit.”

A few minutes later...

Stacy: “Ready now?”

Priya: “Almost, in just a bit.”

Again, a few minutes later...

Stacy: “Alright, we really have to get going.”

Priya: “I really just need a bit.”

Stacy: “Well, how many bits do you need!”

Priya: “If you help me count them, we can go sooner.”

Input

Input consists of a single string $s$ consisting only of characters 0 and 1 (no spaces). If $|s|$ denotes the length of $s$, then you are also guaranteed $1 \leq |s| \leq 20$.

Output

Ouput a single line containing two integers separated by a space. The first integer should be the number of times 0 occurs in $s$ and the second integer should be the number of times 1 occurs in the string.

Sample Input 1 Sample Output 1
11001
2 3
Sample Input 2 Sample Output 2
00
2 0

Please log in to submit a solution to this problem

Log in