P13079 [HackerEarth] no of 1s 0s
普及
题目描述

Aravind has a hexadecimal number H. he is willing to find number of ones and zeros in that number. He needs your help to solve his problem.
input
first line consists of t testcases
next t lines contains a string consists of hexadecimal numbers(Alphabets should be capital)
output
print ones followed by zeros

SAMPLE INPUT
2
1234F
AB2D

SAMPLE OUTPUT
9 11
9 7

输入格式

见题面

输出格式

见题面

样例输入
2 1234F AB2D SAMPLE
样例输出
9 11 9 7