def       A	(    ):
						return 1
def       A	(    _lowercase						):
						return 0 if x < 0 else two_pence(x - 2						) + one_pence()
def       A	(    _lowercase						):
						return 0 if x < 0 else five_pence(x - 5						) + two_pence(_lowercase						)
def       A	(    _lowercase						):
						return 0 if x < 0 else ten_pence(x - 10						) + five_pence(_lowercase						)
def       A	(    _lowercase						):
						return 0 if x < 0 else twenty_pence(x - 20						) + ten_pence(_lowercase						)
def       A	(    _lowercase						):
						return 0 if x < 0 else fifty_pence(x - 50						) + twenty_pence(_lowercase						)
def       A	(    _lowercase						):
						return 0 if x < 0 else one_pound(x - 100						) + fifty_pence(_lowercase						)
def       A	(    _lowercase						):
						return 0 if x < 0 else two_pound(x - 200						) + one_pound(_lowercase						)
def       A	(    _lowercase = 200						):
						return two_pound(_lowercase						)


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












"""simple docstring"""
def 					A__				(			UpperCamelCase					,  UpperCamelCase = False       ):

							if not isinstance(UpperCamelCase					,  UpperCamelCase       ):
														A		=  F"Expected string as input, found {type(UpperCamelCase       )}"
														raise ValueError(UpperCamelCase       )
							if not isinstance(UpperCamelCase					,  UpperCamelCase       ):
														A		=  F"Expected boolean as use_pascal parameter, found {type(UpperCamelCase       )}"
														raise ValueError(UpperCamelCase       )

							A		=  input_str.split("_"       )

							A		=  0 if use_pascal else 1

							A		=  words[start_index:]

							A		=  [word[0].upper() + word[1:] for word in words_to_capitalize]

							A		=  "" if use_pascal else words[0]

							return "".join([initial_word, *capitalized_words]       )


if __name__ == "__main__":
		from doctest import testmod

		testmod()


