题目描述
This is the time of Akbar and Birbal. One day , in the state there happened some riots and murders .Akbar found some N people guilty in this matter.He called Birbal to punish them .Birbal gave them a unique punishment .He ordered the first person(guilty) to dig all the N spaces indicated on the ground.Then he called the second person to dig all the even spaces on the ground(spaces in multiples of 2) ,and if the space is already digged then fill it by sand .Similarly ,he asked the third person to dig all the spaces in multiple of 3 and fill it if it is already digged...an so on. After the N persons have completed their punishments,Birbal asked the first person to tell the amount of spaces remained undigged .What is the answer of this person??
INPUT:
A single integer(T),denoting the number of test cases.
Then,following T lines will contain a single line containing integer N.
OUTPUT:
A integer for each test case denoting the answer of the person.
Constraints:
0<T ≤ 100
0<N<10^18
SAMPLE INPUT
1
2
SAMPLE OUTPUT
1
Explanation
In given sample Input,there are 2 persons. So first will come and dig the 1st and 2nd space.Then ,2nd person will come and as the 2nd space is already digged so he will fill 2nd space.Therefore,the number of undigged spaces is only 1 i.e. the required answer.
样例输入
100
1804246908
846901785
1681651770
1714595508
1957703548
424217739
719858557
1649719876
596492227
1189606931
1025170345
1350453279
783340703
1102486856
2044852544
1967469571
1365143593
1540344180
304071735
1303419634
34999296
521572531
294685402
1726914874
336447440
860992188
278706169
233649838
2145127752
468681487
1101480741
1801937354
1315597752
635697846
1369096069
1125864614
1059928837
2088972752
628149949
1656437344
1131142598
1653336713
859455106
1914501165
608389119
756871027
1734533551
1973549900
149786077
2038619220
1129532805
184789933
412755776
1424231242
1911716234
749214502
137795124
42992614
982875646
135485642
511679686
2084375271
1937433069
1827293581
572636407
1159092461
805722462
1632581325
1100628138
1433887991
1141582338
84344712
939788927
2001055813
1998854106
1548194021
610490727
1585950541
1374306972
760286178
1477132655
356407930
945086535
1889903706
1780653591
709366951
491683230
1918458852
752365326
1474574000
2053954612
1264059507
1411512107
1843950428
943917017
1984165469
855606976
1749656758
1469309763
1956253310
样例输出
1804204432
846872684
1681610763
1714554101
1957659303
424197143
719831727
1649679260
596467804
1189572441
1025138327
1350416531
783312715
1102453653
2044807324
1967425215
1365106646
1540304933
304054298
1303383532
34993380
521549694
294668236
1726873318
336429098
860962846
278689475
233634553
2145081437
468659838
1101447553
1801894905
1315561481
635672633
1369059068
1125831061
1059896281
2088927047
628124887
1656396645
1131108966
1653296052
859425790
1914457410
608364454
756843516
1734491904
1973505476
149773839
2038574069
1129499197
184776340
412735460
1424193504
1911672511
749187131
137783386
42986058
982844296
135474003
511657066
2084329617
1937389053
1827250835
572612478
1159058416
805694077
1632540920
1100594963
1433850125
1141548551
84335529
939758272
2001011080
1998809398
1548154674
610466019
1585910718
1374269901
760258605
1477094222
356389052
945055793
1889860233
1780611394
709340318
491661057
1918415052
752337897
1474535600
2053909292
1264023954
1411474537
1843907487
943886294
1984120926
855577726
1749614930
1469271432
1956209081