#include using namespace std; char s[7]; int main() {int t; cin>>t; cin.get(); while(t--) { cin.getline(s,6); cout<