a,b = map(int,input().split()) if 25 - b <= 0: print(0) elif 1 <= 25 - b <= 3: print(25 - b) else: print(3)