#include int main () { int t = 0; long long n = 0LL; int x = 0; int res = 0; long long dp[262144] = {}; long long pow10[19] = {}; pow10[0] = 1LL; for (int i = 0; i < 18; i++) { pow10[i+1] = pow10[i]*10LL; } res = scanf("%d", &t); while (t > 0) { long long ans = 0LL; int d = 0; long long tmp = 0LL; res = scanf("%lld", &n); res = scanf("%d", &x); tmp = n; while (tmp > 0LL) { tmp /= 10LL; d++; } for (int i = 0; i <= d; i++) { for (int j = 0; j <= d; j++) { for (int k = 0; k < (1<<18); k++) { } } } printf("%lld\n", ans); t--; } return 0; }