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