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")
