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)Input Format
The first line contains an integer T, number of test cases.Output Format
The next t lines contain an integer a.
For each test case print "YES" or "NO".Question Video
1 <= t <= 10000Sample Input
1 <= x <= 10^9
Asked in Companies