#include using namespace std; int main(void){ int t; cin>>t; while(t--){ int a; cin>>a; if(a<10)cout<