S = int(input()) hundred = S // 100 print("Yes" if hundred in {4, 5} else "No")