




from __future__ import annotations

def  UpperCAmelCase_							(				__UpperCAmelCase						:     Union[str, Any]      ,      __UpperCAmelCase						:     str      ,      __UpperCAmelCase						:     Optional[Any]      ,      __UpperCAmelCase						:     List[str]							) ->			Tuple:  # noqa: E741
      while r - l > 1:
            SCREAMING_SNAKE_CASE_     						=      (l + r) // 2
            if v[m] >= key:
                  SCREAMING_SNAKE_CASE_     						=      m
            else:
                  SCREAMING_SNAKE_CASE_     						=      m  # noqa: E741
      return r

def  UpperCAmelCase_							(				__UpperCAmelCase						:     list[int]							) ->			int:
      if len(__UpperCAmelCase							) == 0:
            return 0

      SCREAMING_SNAKE_CASE_     						=      [0] * len(__UpperCAmelCase							)
      SCREAMING_SNAKE_CASE_     						=      1

      SCREAMING_SNAKE_CASE_     						=      v[0]

      for i in range(1      ,      len(__UpperCAmelCase							)							):
            if v[i] < tail[0]:
                  SCREAMING_SNAKE_CASE_     						=      v[i]
            elif v[i] > tail[length - 1]:
                  SCREAMING_SNAKE_CASE_     						=      v[i]
                  length += 1
            else:
                  SCREAMING_SNAKE_CASE_     						=      v[i]

      return length


if __name__ == "__main__":
   import doctest

   doctest.testmod()





def  UpperCAmelCase_							(				) ->			int:
      return 1

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

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

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

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

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

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

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

def  UpperCAmelCase_							(				__UpperCAmelCase						:     int = 2_00							) ->			int:
      return two_pound(__UpperCAmelCase							)


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