Problem2650--Cantor表 [cantor]

2650: Cantor表 [cantor]

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Status] [Submit] [Creator:]

Description

现代数学的著名证明之一是Georg Cantor证明了有理数是可枚举的。他是用下面这一张表来证明这一命题的:

我们以Z字形给上表的每一项编号。第一项是1/1,然后是1/2,2/1,3/1,2/2,…



Input

整数N(1≤N≤10000000)



Output

表中的第N项



Sample Input Copy

7

Sample Output Copy

 1/4

HINT

1999年普及组第一题

Source/Category