#include<iostream>
using namespace std;
class fraction{
private:
long long int a,b;
public:
fraction(long long int a = 0, long long int b = 1)
{
this->a = a;
this->b = b;
}
void show()
{
cout << a << '/' << b;
}
void read()
{
char c;
cin >> a >> c >> b;
}
fraction operator*(fraction other){
return fraction(a * other.a, b * other.b);
}
fraction operator+(int z){
return fraction(b * z + a, b * 1);
}
fraction operator-(){
return fraction(-a, b);
}
fraction operator/(fraction other){
return fraction(a * other.b, b * other.a);
}
};
int main(){
fraction x;
// int z;
x.read();
// cin >> z;
(-x).show();
return 0;
}