https://www.acmicpc.net/problem/1193
using System;
class Program
{
static void Main(string[] args) {
string s=Console.ReadLine();
int n=int.Parse(s);
int a=0;
for(int i=1;;i++){
if(n>i){
a=n-i;
n=a;
}
else{
if(i%2==1) Console.Write("{0}/{1}",i+1-n,n);
else Console.Write("{0}/{1}",n,i+1-n);
break;
}
}
}
}