QOJ.ac

QOJ

حد الوقت: 2 s حد الذاكرة: 1024 MB

#23965. Area

الإحصائيات

When a figure of area $x$ is enlarged by a factor of $a$, its area becomes $x a^2$.

Find the area when a figure of area $Y$ is enlarged by a factor of $B$.

Constraints

  • $1 \le Y \le 100$.
  • $1 \le B \le 100$.
  • All input values are integers.

Input

The input is given in the following format:

Y B

Output

Output the area when a figure of area $Y$ is enlarged by a factor of $B$.

Do not output anything other than the answer. (Do not output prompt sentences or anything similar.)

Examples

Input 1

3 2

Output 1

12

Note 1

When a figure of area $3$ is enlarged by a factor of $2$, its area becomes $3 \times 2^2 = 12$. Therefore, output $12$.

Input 2

10 5

Output 2

250

Note 2

When a figure of area $10$ is enlarged by a factor of $5$, its area becomes $10 \times 5^2 = 250$. Therefore, output $250$.

Input 3

1 1

Output 3

1

Note 3

When a figure of area $1$ is enlarged by a factor of $1$, its area becomes $1 \times 1^2 = 1$. Therefore, output $1$.

Input 4

100 100

Output 4

1000000

Note 4

When a figure of area $100$ is enlarged by a factor of $100$, its area becomes $100 \times 100^2 = 1000000$. Therefore, output $1000000$.

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.