#include <bits/stdc++.h>
using namespace std;
int main() {
  int f = 0;
  string s, o;
  cin >> s;
  int l = s.size();
  for (int i = 0; i < l; i++) {
    if ((s[i] == '/' && s[i + 1] == '/') || (i == l - 1 && s[i] == '/'))
      continue;
    f = 1;
    o.push_back(s[i]);
  }
  if (!f) o.push_back('/');
  cout << o << endl;
  return 0;
}
