#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, kq = "";
  cin >> s;
  if (s[0] == '/') cout << '/';
  char *t = strtok(&s[0], "/");
  while (t != NULL) {
    kq = kq + t + "/";
    t = strtok(NULL, "/");
  }
  cout << kq.substr(0, kq.length() - 1);
}
