Module: (Python) Workshop - 1 "Sofia the first". Linear Algorithms


Problem

3 /11


Princess learns to count

Problem

Princess learn mathematics. Recently, a math teacher told about a tricky way of squaring natural numbers ending in the number 5. Now, Princess can easily square double-digit (and even some three-digit) numbers ending in 5. The method is as follows: to square the numbers , ending in 5, it is enough to multiply the number obtained from the original by deleting the last five by the next number in order, then it remains only to assign “25” to the resulting result on the right.
For example, in order to square 125, it’s enough to multiply 12 by 13 and ascribe 25, i.e. attributing to the number 12 * 13 = 156 the number 25, we get the result 15625, i.e. 1252 = 15625.

Princess decided to train in a new skill, and wants someone to check it. But since she is too proud to ask anyone for help in the Kingdom, she asks you to write a program for her that she could test herself with.


Input format
Given an integer A ending in 5 (A <= 400005). 

Output format
Output one number - A2.
 
Example
N Input Output
1 125 15625