N, A, H, M, S = map(int, input().split()) lim = 86400 - (H*3600 + M*60 + S) if N * A <= lim: print("Yes") else: print("No")