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