#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
while(t--){
string s;
cin >> s;
int len = s.length();
int m;
for(int i=0; i<len; i++){
int t = s[i] -'0';
m = 10*m + t;
}
cout << m << endl;
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWludCB0OwoJY2luID4+IHQ7Cgl3aGlsZSh0LS0pewoJCXN0cmluZyBzOwoJCWNpbiA+PiBzOwoJCWludCBsZW4gPSBzLmxlbmd0aCgpOwoJCWludCBtOwoJCWZvcihpbnQgaT0wOyBpPGxlbjsgaSsrKXsKCQkJaW50IHQgPSBzW2ldIC0nMCc7CgkJCW0gPSAxMCptICsgdDsKCQl9CgkJY291dCA8PCBtIDw8IGVuZGw7Cgl9CglyZXR1cm4gMDsKfQ==