1 #include<iostream>
2 #include<cstdio>
3 #include<cstring>
4 using namespace std;
5 int map[100][100],n;
6 int main()
7 {
8 cin>>n;
9 int s=0,t,k=1;
10 while(s<n)
11 {
12 s+=k;
13 k++;
14 }
15 t=s-n+1;
16 if((k-1)%2==0)
17 printf("%d/%d",k-t,t);
18 else
19 printf("%d/%d",t,k-t);
20
21 return 0;
22 }