electicode
HomeCoursesResourcesProblemsNational OlympiadContestsLeaderboard
...

Again, five times five --- twenty-five!

Time Limit: 1000msMemory Limit: 256MB
View Submissions

Problem Description

Firdavs and Khaled study in the same school class. Recently, Khaled told Firdavs about a clever way to square natural numbers ending in the digit 5. Now Firdavs can easily square two-digit (and sometimes three-digit) numbers ending in 5.

The essence of the method is as follows: to square a number ending in 5, it is enough to multiply the number obtained from the original after removing the last five by the next number in order, and then append «25» to the right of the result.

For example, to square the number 125, you need to multiply 12 by 13, and then append 25:

12×13=156  ⟹  1252=15625.12 \times 13 = 156 \implies 125^2 = 15625.12×13=156⟹1252=15625.

Write a program that squares a number ending in 5 so that Firdavs can check his skills.

Input Format

A natural number AAA is given, ending in the digit 5, greater than 5 and not exceeding 101010^{10}1010.

Output Format

Output one natural number - A2A^2A2 without leading zeros.

Examples

Example 1
Input
45
Output
2025

© 2026 Electicode. All rights reserved.