s = input() print('Yes' if s[0] in '45' else 'No')