s = input()[0]
if s == '4' or s == '5':
    print('Yes')
else:
    print('No')