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