new_contents: # coding: utf-8
  
  #
  # 結果 https://paiza.jp/poh/joshibato/tsubame/result/aa26ed7d
  #
  
  n_str = raw_input()
  
  n = int(n_str)
  n1 = int(n_str[1])
  n10 = int(n_str[0])
  
  r = n + n1 + n10
  
  print r
  
subject: Create answer.py2.py