#include <bits/stdc++.h>   using namespace std;   int main() {     string str;     cin >> str;     int n = str.size();     int fl = 1;     vector<char> v;     for (int i = 0; i < str.size(); i++) {       if (str[i] ==  / ) {         while (str[i] ==  / ) {           i++;         }         i--;         v.push_back( / );       } else {         v.push_back(str[i]);       }     }     for (int i = 0; i < v.size(); i++) {       if (v[i] !=  / ) {         fl = 0;         break;       }     }     if (fl == 1) {       cout <<  /  << endl;     } else {       int t = v.size();       for (int i = 0; i < t; i++) {         if (i == t - 1 && v[i] ==  / ) {           continue;         } else {           cout << v[i];         }       }     }     return 0;   }   