#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string o = "";
  int n = s.length();
  if (n == 1 && s[0] == '/')
    cout << "/" << endl;
  else {
    for (int i = 0; i < s.length(); i++) {
      if (i != n - 1 && s[i] == '/' && s[i + 1] == '/')
        continue;
      else
        o += s[i];
    }
    if (o.length() > 1 && o[o.length() - 1] == '/') {
      for (int i = 0; i < o.length() - 1; i++) cout << o[i];
    } else
      cout << o << endl;
  }
}
