It is known that the area of a regular dodecagon inscribed in a circle of radius a is 3a^2.
Given an integer r, find the area of a regular dodecagon inscribed in a circle of radius r.
Constraints
1 \leq r \leq 100
r is an integer.
Input
Input is given from Standard Input in the following format:
r
Output
Print an integer representing the area of the regular dodecagon.
Examples
Input
4
Output
48
Input
15
Output
675
Input
80
Output
19200
Assistant
We are told that the area of a regular dodecagon inscribed in a circle of radius a is 3a^2. Then we are given an integer r, and we need to find the area of a regular dodecagon inscribed in a circle of radius r.
Given that the area formula is 3 * (radius)^2. So area = 3 * r^2.
But the examples: for r=4, area = 48 = 316=48 correct. For r=15, area = 675 = 3225=675 correct. For r=80, area = 19200 = 3*6400=19200 correct. So indeed it's just 3 * r^2.
But wait: The problem statement says: "It is known that the area of a regular dodecagon inscribed in a circle of radius a is 3a^2." So we are to use that known fact. Input: integer r, output area.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Constraints: r up to 100, so r^2 up to 10000, times 3 is up to 30000, fits in int.
So we just read r, compute 3 * r * r, print.
But maybe they want integer output, which is fine.
Thus solution is trivial.
But wait: The problem might be more subtle? Could it be that the known formula is for a = radius, but the problem asks for radius r? Yes, same. So trivial.
Given that it's from some contest (maybe AtCoder?), I recall a problem "Dodecagon" where the area formula is 3R^2. But maybe they want to derive? But as input, just compute 3 * r * r.
Thus code: read integer, print 3 * r * r.
But just to be safe, check examples.
Example 1: r=4 -> 3*16=48, matches.
Example 2: r=15 -> 3*225=675, matches.
Example 3: r=80 -> 3*6400=19200, matches.
So answer is straightforward.
So solution is one line.
But maybe they want to avoid floating points. Yes integer.
Thus answer: print(3 * r * r).
Will that always be integer? r integer, so yes.
Thus final.
But I'll produce a proper solution explanation.
However, the problem statement says "It is known that the area of a regular dodecagon inscribed in a circle of radius a is 3a^2." This might be a known fact: area = 3 * (circumradius)^2. So indeed.
Thus the solution is trivial.
Nevertheless, I'll provide complete answer. ```python
import sys
def main():
r = int(sys.stdin.readline().strip())
area = 3 * r * r
print(area)