x, a = map(int, input().split())
print([10,0][x<a]) x, a = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split a print([10,0][x<a]) print [10,0][x<a] [10,0] 10 0 x<a x a 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([10,0][x<a])