I Hate 1111
You are given an integer x. Can you make x by summing up some number of 11,111,1111,11111,..?(You can use any number among them any number of times)
1 <= t <= 10000 1 <= x <= 10^9
The first line contains an integer T, number of test cases. The next t lines contain an integer a.
For each test case print "YES" or "NO".
3 33 144 69
YES YES NO