#!/usr/bin/env python3 # NOTE: it is recommended to use this even if you don't understand the following code. import sys # uncomment the two following lines if you want to read/write from files # sys.stdin = open('input.txt') # sys.stdout = open('output.txt', 'w') T = int(input().strip()) for i in range(T): inp = input().strip().split() S = inp[:3] D = inp[3:] L = 0 # INSERT YOUR CODE HERE print(L) sys.stdout.close()