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