




"""simple docstring"""







def     snake_case__							(       _lowerCamelCase					)      ->set:






		"""simple docstring"""


		__lowercase					:		str        =					set()
		# edges = list of graph's edges
		__lowercase					:		Tuple        =					get_edges(snake_case__					)

		# While there are still elements in edges list, take an arbitrary edge
		# (from_node, to_node) and add his extremity to chosen_vertices and then
		# remove all arcs adjacent to the from_node and to_node
		while edges:
				__lowercase    ,__lowercase					:		Optional[Any]        =					edges.pop()
				chosen_vertices.add(snake_case__					)
				chosen_vertices.add(snake_case__					)
				for edge in edges.copy():
						if from_node in edge or to_node in edge:
								edges.discard(snake_case__					)
		return chosen_vertices

def     snake_case__							(       _lowerCamelCase					)      ->set:






		"""simple docstring"""


		__lowercase					:		Dict        =					set()
		for from_node, to_nodes in graph.items():
				for to_node in to_nodes:
						edges.add((from_node, to_node)					)
		return edges


if __name__ == "__main__":
						import doctest

						doctest.testmod()

						# graph = {0: [1, 3], 1: [0, 3], 2: [0, 3, 4], 3: [0, 1, 2], 4: [2, 3]}
						# print(f"Matching vertex cover:\n{matching_min_vertex_cover(graph)}")






"""simple docstring"""




def        a__					(							)		->   int:
			return 1



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



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



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



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



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



def        a__					(							snake_case__							)		->   int:
			return 0 if x < 0 else one_pound(x - 1_00							) + fifty_pence(snake_case__							)



def        a__					(							snake_case__							)		->   int:
			return 0 if x < 0 else two_pound(x - 2_00							) + one_pound(snake_case__							)



def        a__					(							snake_case__ = 2_00							)		->   int:
			return two_pound(snake_case__							)


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



