input_list = input() print('Yes') if input_list[0] in {'4','5'} else print('No')