a,b=map(int,input().split()) if a==b: print(100) elif a%10==b%10 or a//10==b//10: print(10) else: print(0)