print(0 if eval(input().replace(" ","<")) else 10) print(0 if eval(input().replace(" ","<")) else 10) print 0 if eval(input().replace(" ","<")) else 10 eval(input().replace(" ","<")) eval input().replace(" ","<") ().replace () input replace " " "<" 0 10
print(0 if eval(input().replace(" ","<")) else 10)