#!/usr/bin/env python3 import sys def main(): S = input() print("Yes" if S[0] in ["4","5"] else "No") if __name__ == '__main__': main()