https://www.acmicpc.net/problem/1193
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int n=s.nextInt();
int a=0;
for(int i=1;;i++){
if(n>i){
a=n-i;
n=a;
}
else{
if(i%2==1) System.out.format("%d/%d",i+1-n,n);
else System.out.format("%d/%d",n,i+1-n);
break;
}
}
}
}