#include<bits/stdc++.h>
using namespace std;
main()
{
long long n;
while(cin>>n)
{
long long n1=n,i;
for(i=1;i<=n;i++)
{
if(i>=n)
break;
n=n-i;
}
if(i%2==1)
{
printf("TERM %lld IS %lld/%lld\n",n1,i+1-n,n);
}
else
printf("TERM %lld IS %lld/%lld\n",n1,n,i+1-n);
}
}
using namespace std;
main()
{
long long n;
while(cin>>n)
{
long long n1=n,i;
for(i=1;i<=n;i++)
{
if(i>=n)
break;
n=n-i;
}
if(i%2==1)
{
printf("TERM %lld IS %lld/%lld\n",n1,i+1-n,n);
}
else
printf("TERM %lld IS %lld/%lld\n",n1,n,i+1-n);
}
}
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন