



from collections import deque







def     UpperCAmelCase_		(					snake_case__					)	->     str:



				"""simple docstring"""





				lowerCAmelCase__		  =  len(snake_case__					)
				lowerCAmelCase__		  =  deque()
				lowerCAmelCase__		  =  [False for _ in range(snake_case__					)]
				lowerCAmelCase__		  =  [-1 for _ in range(snake_case__					)]
				lowerCAmelCase__		  =  index_of[:]

				def strong_connect(snake_case__    ,			snake_case__    ,			snake_case__					):
								lowerCAmelCase__		  =  index  # the number when this node is seen
								lowerCAmelCase__		  =  index  # lowest rank node reachable from here
								index += 1
								stack.append(snake_case__					)
								lowerCAmelCase__		  =  True

								for w in g[v]:
												if index_of[w] == -1:
																lowerCAmelCase__		  =  strong_connect(snake_case__    ,			snake_case__    ,			snake_case__					)
																lowerCAmelCase__		  =  (
																    lowlink_of[w] if lowlink_of[w] < lowlink_of[v] else lowlink_of[v]
																)
												elif on_stack[w]:
																lowerCAmelCase__		  =  (
																    lowlink_of[w] if lowlink_of[w] < lowlink_of[v] else lowlink_of[v]
																)

								if lowlink_of[v] == index_of[v]:
												lowerCAmelCase__		  =  []
												lowerCAmelCase__		  =  stack.pop()
												lowerCAmelCase__		  =  False
												component.append(snake_case__					)
												while w != v:
																lowerCAmelCase__		  =  stack.pop()
																lowerCAmelCase__		  =  False
																component.append(snake_case__					)
												components.append(snake_case__					)
								return index

				lowerCAmelCase__		  =  []
				for v in range(snake_case__					):
								if index_of[v] == -1:
												strong_connect(snake_case__    ,			0    ,			snake_case__					)

				return components







def     UpperCAmelCase_		(					snake_case__    ,			snake_case__					)	->     Any:



				"""simple docstring"""





				lowerCAmelCase__		  =  [[] for _ in range(snake_case__					)]
				for u, v in edges:
								g[u].append(snake_case__					)
				return g


if __name__ == "__main__":
	# Test
	_lowerCAmelCase	:   Optional[int]    =   7
	_lowerCAmelCase	:   List[Any]    =   [0, 0, 1, 2, 3, 3, 4, 4, 6]
	_lowerCAmelCase	:   Any    =   [1, 3, 2, 0, 1, 4, 5, 6, 5]
	_lowerCAmelCase	:   Any    =   [(u, v) for u, v in zip(source, target)]
	_lowerCAmelCase	:   Any    =   create_graph(n_vertices, edges)

	assert [[5], [6], [4], [3, 2, 1, 0]] == tarjan(g)





def     UpperCAmelCase_		(					)	->     int:



				"""simple docstring"""





				return 1







def     UpperCAmelCase_		(					snake_case__					)	->     int:



				"""simple docstring"""





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







def     UpperCAmelCase_		(					snake_case__					)	->     int:



				"""simple docstring"""





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







def     UpperCAmelCase_		(					snake_case__					)	->     int:



				"""simple docstring"""





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







def     UpperCAmelCase_		(					snake_case__					)	->     int:



				"""simple docstring"""





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







def     UpperCAmelCase_		(					snake_case__					)	->     int:



				"""simple docstring"""





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







def     UpperCAmelCase_		(					snake_case__					)	->     int:



				"""simple docstring"""





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







def     UpperCAmelCase_		(					snake_case__					)	->     int:



				"""simple docstring"""





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







def     UpperCAmelCase_		(					snake_case__ = 200					)	->     int:



				"""simple docstring"""





				return two_pound(snake_case__					)


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