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

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

ans = 0 if x < a else 10
print(ans)
