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