N,S=map(int,input().split()) print('Yes' if N+24<=S