Competitions

# Week 9: January 11 - 17. Pointers. References

# Square

Find the perimeter and the area of a square.

#### Input

Each line is a separate test case that contains one integer - the length of a square side **n** (**1** ≤ **n** ≤ **1000**).

#### Output

For each test case print in one line the perimeter and the area of a square.

Input example #1

3 5 10

Output example #1

12 9 20 25 40 100