#include<stdio.h> int main (){ int N,j,i=1,count=0; scanf("%d",&N); while(N>i){ N-=i; i++; } printf("%d/%d",N,i-N+1); return 0; }