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