#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int n,x=1,y=1,count=1;
scanf("%d",&n);
for(;;)
{
y++;
count++;
{
x++;
y--;
count++;
{
x++;
count++;
{
x--;
y++;
count++;
}
if(count==n)
break;
}
printf("%d/%d",x,y);
return 0;
}
#include <stdlib.h>
#include <string.h>
int main()
{
int n,x=1,y=1,count=1;
scanf("%d",&n);
for(;;)
{
//往左走
{
y++;
count++;
}
//往左下方走
{
x++;
y--;
count++;
}
//往下走
{
x++;
count++;
}
//往右上方走
{
x--;
y++;
count++;
}
if(count==n)
break;
}
printf("%d/%d",x,y);
return 0;
}