#include #include #include using namespace std; typedef long long LL; const int MS=1001; int main() { LL n; int T; cin>>T; while(T--) { cin>>n; cout<