n = int(input()) print("Yes" if 4 <= n//100 <= 5 else "No")