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