




"""simple docstring"""






def 	_snake_case     (							):
				return 1







def 	_snake_case     (							lowercase__						):
				return 0 if x < 0 else two_pence(x - 2						) + one_pence()







def 	_snake_case     (							lowercase__						):
				return 0 if x < 0 else five_pence(x - 5						) + two_pence(lowercase__						)







def 	_snake_case     (							lowercase__						):
				return 0 if x < 0 else ten_pence(x - 10						) + five_pence(lowercase__						)







def 	_snake_case     (							lowercase__						):
				return 0 if x < 0 else twenty_pence(x - 20						) + ten_pence(lowercase__						)







def 	_snake_case     (							lowercase__						):
				return 0 if x < 0 else fifty_pence(x - 50						) + twenty_pence(lowercase__						)







def 	_snake_case     (							lowercase__						):
				return 0 if x < 0 else one_pound(x - 100						) + fifty_pence(lowercase__						)







def 	_snake_case     (							lowercase__						):
				return 0 if x < 0 else two_pound(x - 200						) + one_pound(lowercase__						)







def 	_snake_case     (							lowercase__ = 200						):
				return two_pound(lowercase__						)


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





"""simple docstring"""






import operator as op







def 	_snake_case     (							lowercase__						):
				_lowerCamelCase	:     Dict       =       []
				_lowerCamelCase	:     List[str]       =       lambda lowercase__				,       lowercase__						: int(x / y						)  # noqa: E731 integer division operation
				_lowerCamelCase	:     Optional[int]       =       {
				    '^': op.pow,
				    '*': op.mul,
				    '/': div,
				    '+': op.add,
				    '-': op.sub,
				}  # operators & their respective operation

				# print table header
				print('Symbol'.center(8						)				,       'Action'.center(12						)				,       'Stack'				,       sep=' | '						)
				print('-' * (30 + len(lowercase__						))						)

				for x in post_fix:
								if x.isdigit():  # if x in digit
												stack.append(lowercase__						)  # append x to stack
												# output in tabular format
												print(x.rjust(8						)				,       ('push(' + x + ')').ljust(12						)				,       ','.join(lowercase__						)				,       sep=' | '						)
								else:
												_lowerCamelCase	:     int       =       stack.pop()  # pop stack
												# output in tabular format
												print(''.rjust(8						)				,       ('pop(' + b + ')').ljust(12						)				,       ','.join(lowercase__						)				,       sep=' | '						)

												_lowerCamelCase	:     Tuple       =       stack.pop()  # pop stack
												# output in tabular format
												print(''.rjust(8						)				,       ('pop(' + a + ')').ljust(12						)				,       ','.join(lowercase__						)				,       sep=' | '						)

												stack.append(
												    str(opr[x](int(lowercase__						)				,       int(lowercase__						)						)						)						)  # evaluate the 2 values popped from stack & push result to stack
												# output in tabular format
												print(
												    x.rjust(8						)				,       ('push(' + a + x + b + ')').ljust(12						)				,       ','.join(lowercase__						)				,       sep=' | '				,       )

				return int(stack[0]						)


if __name__ == "__main__":
			lowercase__			=		input("""\n\nEnter a Postfix Equation (space separated) = """).split(""" """)
			print("""\n\tResult = """, solve(Postfix))