N,S = map(int,input().split()) print(N*30) if 25 <= S <= N*29: print('Yes') else: print('No')