N = int(input()) L = [0] * N R = [0] * N for i in range(N): L[i], R[i] = map(int, input().split()) ans = [0] * N for i in range(N): print(ans[i])