X, A = [int(i) for i in input().split()]
if X < A:
    print(0)
else:
    print(10) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i X, A = [int(i) for i in input().split()] X [int(i) for i in input().split()] A if X < A:
    print(0)
else:
    print(10) X < A X A print(0) print 0 print(10) print 10 A = [int(i) for i in input().split()] [int(i) for i in input().split()] A X, A = [int(i) for i in input().split()] [int(i) for i in input().split()] X
X, A = [int(i) for i in input().split()]
if X < A:
    print(0)
else:
    print(10)
