# -*- coding: utf-8 -*-
X, A = input().split()

if X < A:
    print(0)
else:
    print(10) X, A = input().split() X 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 X, A = input().split() input().split() X A = input().split() input().split() A
# -*- coding: utf-8 -*-
X, A = input().split()

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