x,a = map(int,input().split())

print('0') if x<a else print('10') x,a = map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split a print('0') if x<a else print('10') x<a x a print('0') print '0' print('10') print '10' a = map(int,input().split()) map(int,input().split()) a x,a = map(int,input().split()) map(int,input().split()) x
x,a = map(int,input().split())

print('0') if x<a else print('10')
