#include using namespace std; typedef long long ll; int main(){ double n; cin >> n; ll a = 1; ll b = 1; while(1){ ll nl = floor(n); if((double)(n) == (double)(nl))break; b *= 10; n *= 10; } a = n; ll ra = a / __gcd(a,b); ll rb = b / __gcd(a,b); cout << ra << "/" << rb << endl; }