x,a=map(int,input().split())
s=0 if a>x else 10
print(s) x,a=map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split a s=0 if a>x else 10 s 0 if a>x else 10 a>x a x 0 10 print(s) print s x,a=map(int,input().split()) map(int,input().split()) x s=0 if a>x else 10 0 if a>x else 10 s a=map(int,input().split()) map(int,input().split()) a
x,a=map(int,input().split())
s=0 if a>x else 10
print(s)