Module: (Python) Integer division and remainder


Problem

9 /18


Sum of squares of digits

Problem

Given a five-digit positive number. Write a program that finds the sum of the squares of the digits of a given number.

Input format
Given a five-digit positive numbe

Output format
Output the answer to the problem.
 
Example
N Input Output
1 12345 55
Explanation
1*1 + 2*2 + 3*3 + 4*4 + 5*5 = 55