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