Integer Square
시간 제한: 2000ms메모리 제한: 512MB출처: ICPC 2020-2021 Northwestern Russia Regional ContestBOJ 20240
이 문제는 본문 이미지 일부가 표시되지 않습니다. 텍스트만으로 풀이가 어려울 수 있습니다.
문제
Iris likes to draw different shapes on a grid paper. Her favorite shape is a square. She has recently tried to draw a square with area , but since she uses a grid paper, she wants all the vertices of the square to have integer coordinates.
[이미지 1]
Can you help her find such a square?
입력
The input contains a single integer ().
출력
If it is possible to construct the required square, output four pairs of integers: the coordinates of the vertices of the square, in any order. All coordinates should be in the range from to . If there are multiple answers, output any of them.
If it is impossible to construct the required square, print "Impossible".
예제
예제 1
입력
5
출력
2 4 3 2 4 5 5 3
예제 2
입력
3
출력
Impossible
코드를 제출하려면 로그인하세요.