import re


n = int(input().strip())
for _ in range(n):
    r = r'^[+-]?\d*\.\d+$'
    a = input()
    if a=='0':
        print('False')
        continue
    x = re.search(r, a)
    print(bool(x))

07a5416b67db075ac564f15a42299603272d4c90
<mask token>

<mask token>
for _ in range(n):
    r = '^[+-]?\\d*\\.\\d+$'
    a = input()
    if a == '0':
        print('False')
        continue
    x = re.search(r, a)
    print(bool(x))

<mask token>
n = int(input().strip())
for _ in range(n):
    r = '^[+-]?\\d*\\.\\d+$'
    a = input()
    if a == '0':
        print('False')
        continue
    x = re.search(r, a)
    print(bool(x))

import re
n = int(input().strip())
for _ in range(n):
    r = '^[+-]?\\d*\\.\\d+$'
    a = input()
    if a == '0':
        print('False')
        continue
    x = re.search(r, a)
    print(bool(x))

import re


n = int(input().strip())
for _ in range(n):
    r = r'^[+-]?\d*\.\d+$'
    a = input()
    if a=='0':
        print('False')
        continue
    x = re.search(r, a)
    print(bool(x))
