← Problem book: Python Lesson 41 of 96 · 10 XP

Digit sum

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

You are given an integer n (n ≥ 0) — with any number of digits. Print the sum of its digits.

Example

Input:

12345

Output:

15

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.