#include <bits/stdc++.h>
using namespace std;
string s;
int n;
bool t;
int main() {
  cin >> s;
  n = s.size();
  for (int i = 0; i < n; ++i) {
    if (s[i] != '/') {
      t = 1;
      cout << "/";
      while (s[i] != '/' && i < n) {
        cout << s[i];
        ++i;
      }
    }
  }
  if (!t) cout << "/";
  return 0;
}
