


"""simple docstring"""


import itertools
import os
import re


UpperCamelCase						:				List[Any]             =      re.compile(R"([A-Z]+)([A-Z][a-z])")
UpperCamelCase						:				str             =      re.compile(R"([a-z\d])([A-Z])")

UpperCamelCase						:				List[str]             =      re.compile(R"(?<!_)_(?!_)")
UpperCamelCase						:				Optional[Any]             =      re.compile(R"(_{2,})")

UpperCamelCase						:				str             =      R"^\w+(\.\w+)*$"

UpperCamelCase						:				Union[str, Any]             =      R"<>:/\|?*"







def  __snake_case       (   UpperCamelCase__	)      ->		Any:







		"""simple docstring"""





		A					       = _uppercase_uppercase_re.sub(r'\1_\2' ,			UpperCamelCase__	)
		A					       = _lowercase_uppercase_re.sub(r'\1_\2' ,			UpperCamelCase__	)
		return name.lower()







def  __snake_case       (   UpperCamelCase__	)      ->		Optional[Any]:







		"""simple docstring"""





		A					       = _single_underscore_re.split(UpperCamelCase__	)
		A					       = [_multiple_underscores_re.split(UpperCamelCase__	) for n in name]
		return "".join(n.capitalize() for n in itertools.chain.from_iterable(UpperCamelCase__	) if n != ''	)







def  __snake_case       (   UpperCamelCase__	)      ->		List[str]:







		"""simple docstring"""





		if os.path.basename(UpperCamelCase__	) != name:
				raise ValueError(f'Should be a dataset name, not a path: {name}'	)
		return camelcase_to_snakecase(UpperCamelCase__	)







def  __snake_case       (   UpperCamelCase__ ,			UpperCamelCase__	)      ->		Optional[int]:







		"""simple docstring"""





		if os.path.basename(UpperCamelCase__	) != name:
				raise ValueError(f'Should be a dataset name, not a path: {name}'	)
		if not re.match(_split_re ,			UpperCamelCase__	):
				raise ValueError(f'Split name should match \'{_split_re}\'\' but got \'{split}\'.'	)
		return f'{filename_prefix_for_name(UpperCamelCase__	)}-{split}'







def  __snake_case       (   UpperCamelCase__ ,			UpperCamelCase__ ,			UpperCamelCase__ ,			UpperCamelCase__=None	)      ->		Optional[Any]:







		"""simple docstring"""





		A					       = filename_prefix_for_split(UpperCamelCase__ ,			UpperCamelCase__	)
		if filetype_suffix:
				prefix += f'.{filetype_suffix}'
		A					       = os.path.join(UpperCamelCase__ ,			UpperCamelCase__	)
		return f'{filepath}*'







def  __snake_case       (   UpperCamelCase__ ,			UpperCamelCase__ ,			UpperCamelCase__ ,			UpperCamelCase__=None ,			UpperCamelCase__=None	)      ->		List[Any]:







		"""simple docstring"""





		A					       = filename_prefix_for_split(UpperCamelCase__ ,			UpperCamelCase__	)
		A					       = os.path.join(UpperCamelCase__ ,			UpperCamelCase__	)

		if shard_lengths:
				A					       = len(UpperCamelCase__	)
				A					       = [f'{prefix}-{shard_id:05d}-of-{num_shards:05d}' for shard_id in range(UpperCamelCase__	)]
				if filetype_suffix:
						A					       = [filename + f'.{filetype_suffix}' for filename in filenames]
				return filenames
		else:
				A					       = prefix
				if filetype_suffix:
						filename += f'.{filetype_suffix}'
				return [filename]






"""simple docstring"""


def  __snake_case       (   )      ->		int:







		"""simple docstring"""





		return 1







def  __snake_case       (   UpperCamelCase__	)      ->		int:







		"""simple docstring"""





		return 0 if x < 0 else two_pence(x - 2	) + one_pence()







def  __snake_case       (   UpperCamelCase__	)      ->		int:







		"""simple docstring"""





		return 0 if x < 0 else five_pence(x - 5	) + two_pence(UpperCamelCase__	)







def  __snake_case       (   UpperCamelCase__	)      ->		int:







		"""simple docstring"""





		return 0 if x < 0 else ten_pence(x - 10	) + five_pence(UpperCamelCase__	)







def  __snake_case       (   UpperCamelCase__	)      ->		int:







		"""simple docstring"""





		return 0 if x < 0 else twenty_pence(x - 20	) + ten_pence(UpperCamelCase__	)







def  __snake_case       (   UpperCamelCase__	)      ->		int:







		"""simple docstring"""





		return 0 if x < 0 else fifty_pence(x - 50	) + twenty_pence(UpperCamelCase__	)







def  __snake_case       (   UpperCamelCase__	)      ->		int:







		"""simple docstring"""





		return 0 if x < 0 else one_pound(x - 100	) + fifty_pence(UpperCamelCase__	)







def  __snake_case       (   UpperCamelCase__	)      ->		int:







		"""simple docstring"""





		return 0 if x < 0 else two_pound(x - 200	) + one_pound(UpperCamelCase__	)







def  __snake_case       (   UpperCamelCase__ = 200	)      ->		int:







		"""simple docstring"""





		return two_pound(UpperCamelCase__	)


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





