S = input() print(['Yes', 'No'][0 if S[0] in ['4', '5'] else 1])