#include #include using mint = atcoder::static_modint<998244353>; //using mint = atcoder::static_modint<1000000007>; using namespace std; using namespace atcoder; using ld = long double; using ll = long long; #define mp(a,b) make_pair(a,b) #define rep(i,s,n) for(int i=s; i dx{1,0,-1,0},dy{0,1,0,-1}; string to_s(__int128_t x){ string s; bool minus=false; if(x<0)minus=true,x=-x; while(x){ s+='0'+x%10; x/=10; } reverse(s.begin(),s.end()); if(minus)s='-'+s; return s; } int main(){ int n; cin >> n; if(n>=1){ cout << "0/1"; return 0; } n=-n; vector<__int128_t> x(22); x[1]=1; rep(i,2,22){ x[i]=-x[i-1]-10*x[i-2]; } rep(i,0,22)if(i%2==0)x[i]*=-1; cout << to_s(x[n+1]) << "/" << 1 << string(n+1,'0'); }