PROBLEM - Problem

no tags 

This problem has no statement

Input

The format of the input data in not known.

Constraints

The input file is of the reasonable size.

Output

Output the right answer for each test.

Example

Input:
4
188
432
100
765

Output:
4
0
2
1


hide comments
square1001: 2016-08-06 03:08:48

It was interesting, but I got an "Internal Error" before I got accepted.

Anushka: 2016-07-11 20:13:34

I took first number as number of test cases. But got a wa. Can someone help with input format??

nainwalarun: 2016-03-25 08:14:06

no. of circles in the given input as like in 188 there are 4 circles (2 in each 8) :) @kiner_shah

Last edit: 2016-03-25 08:15:02
sgb: 2016-03-14 19:46:45

Any 4 year old can see the pattern. Try thinking like a 4 year old(or ask a kid who is just starting to learn shapes).

kiner_shah: 2015-10-03 18:49:18

What is this problem?


Added by:Spooky
Date:2010-03-09
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: NODEJS OBJC PERL6 SQLITE VB.NET
Resource:Advancement Spring 2010, http://sevolymp.uuuq.com/