
def 			UpperCamelCase					(    __lowerCamelCase     : int = 1000    ):
       snake_case       :   List[Any]							=      2**power
       snake_case       :   Any							=      0
       while n:
              snake_case				,					snake_case       :   Tuple							=      r + n % 10, n // 10
       return r


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










'''simple docstring'''





def 						__snake_case(				_lowerCAmelCase = 1_000		)		-> int:
      return sum(e for e in range(3     ,   _lowerCAmelCase		) if e % 3 == 0 or e % 5 == 0		)


if __name__ == "__main__":
       print(F"{solution() = }")
