#include using namespace std; using ll= long long; int main(){ int t; cin>>t; while(t--){ ll n; cin>>n; if(n<0)n=-n; if(n==1){ cout<<"Yes"<