Three teams from your university competed in the ICPC Asia Dhaka Regional Contest 2021. Sedulous, Resolvers and Depuradors. Unfortunately, none of the teams could advance to the ICPC World Finals 2021 which was hosted in Dhaka, Bangladesh.
However, now it’s time to prepare for the next ICPC World Finals. For this purpose, coach Sisir is looking for new programmers among the freshers. He has gathered some first-year students and given them some problems to solve. Whoever will be able to solve these problems, coach Sisir will consider them for team formation of the upcoming ICPC.
One of the problems is given below. Can you solve it?
square is placed into square such that the corners of square to touch the midpoints of sides of square.
The input contains a single integer — the length of .
You have to output a single integer — the area of square.
Input | Output |
---|---|
3 | 18 |
Input | Output |
---|---|
5 | 50 |
Input | Output |
---|---|
17 | 578 |