n = int(input()) print("Yes" if n % 100 == 4 else "No")