#include using namespace std; int main(){ int n; cin>>n; while(n--){ int p;cin>>p; if(p==2)cout<<2<