#include <bits/stdc++.h>
using namespace std;
int main() {
  int ok = 1;
  string second, ans;
  cin >> second;
  for (int i = 0; i < (int)(second.size()); i++) {
    if (second[i] != '/')
      ans += second[i], ok = 1;
    else if (second[i] == '/' && ok == 1)
      ok = 0, ans += '/';
  }
  if (ans.back() == '/' && ans.size() > 1) ans.pop_back();
  cout << ans;
}
