X, A = map(int, input().split())

if X < A:
    print('0')
else:
    print('10') X, A = map(int, input().split()) X map(int, input().split()) map int input().split() ().split () input split A if X < A:
    print('0')
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())

if X < A:
    print('0')
else:
    print('10')
