s = input().split()
#print(s)
#print(s[0])
#print(s[1])
if s[0] < s[1]:
	print("0")
else:
	print("10") s = input().split() s input().split() ().split () input split if s[0] < s[1]:
	print("0")
else:
	print("10") s[0] < s[1] s[0] s 0 s[1] s 1 print("0") print "0" print("10") print "10" s = input().split() input().split() s
s = input().split()
#print(s)
#print(s[0])
#print(s[1])
if s[0] < s[1]:
	print("0")
else:
	print("10")