#include <bits/stdc++.h>
using namespace std;
int main() {
int n,k=1;
cin>>n;
while (n>k) {
n=n-k;
k++;
}
if(k%2==0) cout<<n<<"/"<<(k+1-n);
else cout<<k+1-n<<"/"<<n;
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
int n,k=1;
cin>>n;
while (n>k) {
n=n-k;
k++;
}
if(k%2==0) cout<<n<<"/"<<(k+1-n);
else cout<<k+1-n<<"/"<<n;
return 0;
}