#include <bits/stdc++.h>   using namespace std;   static const double EPS = 1e-8;   int main() {     istream &fin = cin;     ostream &fout = cout;     FILE *fpin = stdin;     FILE *fpout = stdout;     string s;     fin >> s;     bool p = true;     string res;     for (int i = s.size() - 1; i >= 0; i--) {       if (p && s[i] ==  / ) continue;       if (s[i] !=  / )         p = false;       else         p = true;       res.push_back(s[i]);     }     reverse(res.begin(), res.end());     if (res.empty()) res =  / ;     fout << res << endl;   }   