#include using namespace std; bool isZero(string s){ if(s[0]-'0'==0) return false; int n=s.length(); for(int i=0;i>t; cin>>ws; // flush while(t--){ string s; cin>>s; if(isZero(s)) cout<<"YES\n"; else cout<<"NO\n"; } return 0; }