no. of 1's & 0's

0

0 votes
Problem

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
Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?