1 2 3 4 5 6 7 8 9 10 11 a = int(input()) for i in range(a): x = int(input()) m = x//3 o = x%3 re = m*2%3 if o == 1: re += 1 if o == 2: re += 2 print(re%3)
1 2 3 4 5 6 7 8 9 10 11
a = int(input()) for i in range(a): x = int(input()) m = x//3 o = x%3 re = m*2%3 if o == 1: re += 1 if o == 2: re += 2 print(re%3)