






import numpy as np

_a      	=  [
    ['''a''', '''b''', '''c''', '''d''', '''e'''],
    ['''f''', '''g''', '''h''', '''i''', '''k'''],
    ['''l''', '''m''', '''n''', '''o''', '''p'''],
    ['''q''', '''r''', '''s''', '''t''', '''u'''],
    ['''v''', '''w''', '''x''', '''y''', '''z'''],
]





class __lowerCamelCase :





	"""simple docstring"""






	def __init__(							self    ):
							"""simple docstring"""







							_UpperCAmelCase									=			np.array(UpperCAmelCase    )

	def        UpperCamelCase    (							self       ,    UpperCAmelCase    ):
							"""simple docstring"""







							_UpperCAmelCase					, _UpperCAmelCase									=			np.where(letter == self.SQUARE    )
							_UpperCAmelCase									=			np.concatenate([indexa + 1, indexa + 1]    )
							return indexes

	def        UpperCamelCase    (							self       ,    UpperCAmelCase       ,    UpperCAmelCase    ):
							"""simple docstring"""







							_UpperCAmelCase									=			self.SQUARE[indexa - 1, indexa - 1]
							return letter

	def        UpperCamelCase    (							self       ,    UpperCAmelCase    ):
							"""simple docstring"""







							_UpperCAmelCase									=			message.lower()
							_UpperCAmelCase									=			message.replace(' '       ,    ''    )
							_UpperCAmelCase									=			message.replace('j'       ,    'i'    )

							_UpperCAmelCase									=			np.empty((2, len(UpperCAmelCase    ))    )
							for letter_index in range(len(UpperCAmelCase    )    ):
													_UpperCAmelCase									=			self.letter_to_numbers(message[letter_index]    )

													_UpperCAmelCase									=			numbers[0]
													_UpperCAmelCase									=			numbers[1]

							_UpperCAmelCase									=			first_step.reshape(2 * len(UpperCAmelCase    )    )
							_UpperCAmelCase									=			''
							for numbers_index in range(len(UpperCAmelCase    )    ):
													_UpperCAmelCase									=			int(second_step[numbers_index * 2]    )
													_UpperCAmelCase									=			int(second_step[(numbers_index * 2) + 1]    )
													_UpperCAmelCase									=			self.numbers_to_letter(UpperCAmelCase       ,    UpperCAmelCase    )
													_UpperCAmelCase									=			encoded_message + letter

							return encoded_message

	def        UpperCamelCase    (							self       ,    UpperCAmelCase    ):
							"""simple docstring"""







							_UpperCAmelCase									=			message.lower()
							message.replace(' '       ,    ''    )
							_UpperCAmelCase									=			np.empty(2 * len(UpperCAmelCase    )    )
							for letter_index in range(len(UpperCAmelCase    )    ):
													_UpperCAmelCase									=			self.letter_to_numbers(message[letter_index]    )
													_UpperCAmelCase									=			numbers[0]
													_UpperCAmelCase									=			numbers[1]

							_UpperCAmelCase									=			first_step.reshape((2, len(UpperCAmelCase    ))    )
							_UpperCAmelCase									=			''
							for numbers_index in range(len(UpperCAmelCase    )    ):
													_UpperCAmelCase									=			int(second_step[0, numbers_index]    )
													_UpperCAmelCase									=			int(second_step[1, numbers_index]    )
													_UpperCAmelCase									=			self.numbers_to_letter(UpperCAmelCase       ,    UpperCAmelCase    )
													_UpperCAmelCase									=			decoded_message + letter

							return decoded_message





"""simple docstring"""






def 			_lowercase				(  )						->   int:
			return 1


def 			_lowercase				(  __snake_case	)						->   int:
			return 0 if x < 0 else two_pence(x - 2	) + one_pence()


def 			_lowercase				(  __snake_case	)						->   int:
			return 0 if x < 0 else five_pence(x - 5	) + two_pence(__snake_case	)


def 			_lowercase				(  __snake_case	)						->   int:
			return 0 if x < 0 else ten_pence(x - 10	) + five_pence(__snake_case	)


def 			_lowercase				(  __snake_case	)						->   int:
			return 0 if x < 0 else twenty_pence(x - 20	) + ten_pence(__snake_case	)


def 			_lowercase				(  __snake_case	)						->   int:
			return 0 if x < 0 else fifty_pence(x - 50	) + twenty_pence(__snake_case	)


def 			_lowercase				(  __snake_case	)						->   int:
			return 0 if x < 0 else one_pound(x - 100	) + fifty_pence(__snake_case	)


def 			_lowercase				(  __snake_case	)						->   int:
			return 0 if x < 0 else two_pound(x - 200	) + one_pound(__snake_case	)


def 			_lowercase				(  __snake_case = 200	)						->   int:
			return two_pound(__snake_case	)


if __name__ == "__main__":
	print(solution(int(input().strip())))