#include <bits/stdc++.h>
using namespace std;
char s[128];
int main() {
  scanf("%s", s);
  bool rt = true;
  for (char *cpt = s; *cpt;) {
    if (*cpt == '/') {
      while (*cpt == '/') cpt++;
      if (rt || *cpt != '\0') putchar('/');
      rt = false;
    } else
      putchar(*(cpt++));
  }
  putchar('\n');
  return 0;
}
