MMO85 - MMO85

no tags 

This is one of the hardest problems of Moskow Mathematical Olympiad 1985

Prove that if n is a natural number equal or greater than 3, then there exist two odd natural numbers x and y such that 2n = 7x2+y2.

Create a program to find the value of x and y for a given n.

Input

A line contains a natural number n (3 ≤ n ≤ 62)

Output

A single line contains x and y, separated by a single space. Write any pair of x and y if you find more than one answer.

Example

Input:
3

Output:
1 1

hide comments
Ahmad Zaky: 2012-02-13 12:22:19

there are several test cases, and each test case worth the same score

Sourabh Singh: 2012-01-06 23:07:58

@Ahmad Zaky : how to interpret score ??


Added by:Ahmad Zaky
Date:2011-09-29
Time limit:0.200s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All
Resource:Ahmad Zaky, 2011