

"""simple docstring"""




def 	UpperCAmelCase__   (				A__   )      ->      list[list[int]]:




   """simple docstring"""
   lowerCamelCase__						=			[]
   if len(A__   ) == 1:
      return [nums.copy()]
   for _ in range(len(A__   )   ):
      lowerCamelCase__						=			nums.pop(0   )
      lowerCamelCase__						=			permute(A__   )
      for perm in permutations:
         perm.append(A__   )
      result.extend(A__   )
      nums.append(A__   )
   return result



def 	UpperCAmelCase__   (				A__   )      ->      List[str]:




   """simple docstring"""

   def backtrack(A__   ):
      if start == len(A__   ) - 1:
         output.append(nums[:]   )
      else:
         for i in range(A__	,    len(A__   )   ):
            lowerCamelCase__					,       lowerCamelCase__						=			nums[i], nums[start]
            backtrack(start + 1   )
            lowerCamelCase__					,       lowerCamelCase__						=			nums[i], nums[start]  # backtrack

   lowerCamelCase__						=			[]
   backtrack(0   )
   return output


if __name__ == "__main__":
     import doctest

     # use res to print the data in permute2 function
     SCREAMING_SNAKE_CASE_     :			List[str]	  =							permutea([1, 2, 3])
     print(res)
     doctest.testmod()







"""simple docstring"""




def 	UpperCAmelCase__   (				)      ->      int:




   """simple docstring"""
   return 1



def 	UpperCAmelCase__   (				A__   )      ->      int:




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



def 	UpperCAmelCase__   (				A__   )      ->      int:




   """simple docstring"""
   return 0 if x < 0 else five_pence(x - 5   ) + two_pence(A__   )



def 	UpperCAmelCase__   (				A__   )      ->      int:




   """simple docstring"""
   return 0 if x < 0 else ten_pence(x - 10   ) + five_pence(A__   )



def 	UpperCAmelCase__   (				A__   )      ->      int:




   """simple docstring"""
   return 0 if x < 0 else twenty_pence(x - 20   ) + ten_pence(A__   )



def 	UpperCAmelCase__   (				A__   )      ->      int:




   """simple docstring"""
   return 0 if x < 0 else fifty_pence(x - 50   ) + twenty_pence(A__   )



def 	UpperCAmelCase__   (				A__   )      ->      int:




   """simple docstring"""
   return 0 if x < 0 else one_pound(x - 100   ) + fifty_pence(A__   )



def 	UpperCAmelCase__   (				A__   )      ->      int:




   """simple docstring"""
   return 0 if x < 0 else two_pound(x - 200   ) + one_pound(A__   )



def 	UpperCAmelCase__   (				A__ = 200   )      ->      int:




   """simple docstring"""
   return two_pound(A__   )


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




