HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


Sum of digits

Section problems

• J. Rag
• J. Вода
• K. Vampire
• a
• a
• Short name
• Shymbulak
• Sultan's game
• Sum of digits
• Train
• XOR
• sravnenie
• Variant 1
• Variant 10
• Variant 11
• Variant 12
• Variant 13

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 100/100/100/100 ms. Memory limit 65000/65000/65000/65000 Kb.

Write a program to calculate sum of digits of given number N (100 ≤ N ≤ 999).

Input
An integer number with exactly 3 digits

Output
Sum of digits

Examples

standart inputstandart output
18514
25613
Для отправки решений необходимо выполнить вход.

www.contester.ru