electicode
HomeCoursesResourcesProblemsNational OlympiadContestsLeaderboard
...

a^2 * a^3 = a^5

Time Limit: 1000msMemory Limit: 256MB
View Submissions

Problem Description

An integer aaa is given. Output the values a2,a3,a5,a10,a15a^2, a^3, a^5, a^{10}, a^{15}a2,a3,a5,a10,a15 --- each on a separate line.

Input Format

The input data contain the number aaa (1≤a≤15)(1 \le a \le 15)(1≤a≤15).

Output Format

Output five lines, each of which contains the corresponding power of the number aaa:

  • in the first line --- a2a^2a2;
  • in the second line --- a3a^3a3;
  • in the third line --- a5a^5a5;
  • in the fourth line --- a10a^{10}a;

Examples

Example 1
Input
5
Output
25
125
3125
9765625
30517578125
Example 2
Input
2
Output
4
8
32
1024
32768

© 2026 Electicode. All rights reserved.

10
  • in the fifth line --- a15a^{15}a15.