X,A = map(int,input().split())

print('0' if X < A else '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 '10') print '0' if X < A else '10' X < A X A '0' '10' X,A = map(int,input().split()) map(int,input().split()) X A = map(int,input().split()) map(int,input().split()) A
X,A = map(int,input().split())

print('0' if X < A else '10')
