

def      a      (			)    ->      int:





      """simple docstring"""



      return 1
def      a      (			A__	:   int     )    ->      int:





      """simple docstring"""



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





      """simple docstring"""



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





      """simple docstring"""



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





      """simple docstring"""



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





      """simple docstring"""



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





      """simple docstring"""



      return 0 if x < 0 else one_pound(x - 100     ) + fifty_pence(A__     )
def      a      (			A__	:   int     )    ->      int:





      """simple docstring"""



      return 0 if x < 0 else two_pound(x - 200     ) + one_pound(A__     )
def      a      (			A__	:   int = 200     )    ->      int:





      """simple docstring"""



      return two_pound(A__     )


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





import os
def      a      (			)    ->      Any:





      """simple docstring"""



      with open(os.path.dirname(A__     ) + '/p022_names.txt'     ) as file:
            _lowercase	       =str(file.readlines()[0]     )
            _lowercase	       =names.replace('"'      ,   ''     ).split(','     )

      names.sort()

      _lowercase	       =0
      _lowercase	       =0

      for i, name in enumerate(A__     ):
            for letter in name:
                  name_score += ord(A__     ) - 64

            total_score += (i + 1) * name_score
            _lowercase	       =0
      return total_score


if __name__ == "__main__":
  print(solution())


