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