Task
Time limit:
1000 ms,
Memory limit:
256 Mb
Princess Amber, her brother and Sophia study at the Academy of Wizards, where they also have mathematics (no one doubts that mathematics is as important to wizards as it is to know different spells). Recently, a math teacher told children about a tricky way of squaring natural numbers ending in the number 5. Now the guys 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. 125
2 = 15625.
Amber 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: an integer
\(A\) ending in 5 and not exceeding
\(400005\) is input
Output: print one number -
\(A^2\)
Example
№ |
Input |
Output |
1 |
125 |
15625 |
Prohibited statements:if