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

Digit sum of a three-digit number

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

You are given a three-digit number n. Print the sum of its digits.

Example

Input:

123

Output:

6

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