#include <bits/stdc++.h>
using namespace std;
int main() {
  char cad[100000];
  gets(cad);
  int i, j, a = strlen(cad), cont = 0;
  for (j = 0; j < a; j++) {
    if (cad[j] == '/') {
      cont = cont + 1;
    }
  }
  if (cont == a) {
    cout << "/";
    return 0;
  }
  j = 0;
  while (j < a) {
    if (cad[j] != '/') {
      cout << "/";
      for (j = i; j < a; j++) {
        if (cad[j] != '/') {
          cout << cad[j];
        } else {
          i = j;
          break;
        }
      }
    }
    j++;
    i = j;
  }
  return 0;
}
