#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[1000];
  gets(s);
  int n = strlen(s);
  for (int i = n - 1; i >= 0; i--) {
    if (s[i] != '/') {
      s[i + 1] = '\0';
      break;
    }
  }
  n = strlen(s);
  for (int i = 0; i < n; i++) {
    if (s[i] == '/') {
      printf("%c", s[i]);
      while (s[i] == '/') {
        i++;
      }
      i--;
    } else {
      printf("%c", s[i]);
    }
  }
  printf("\n");
  return 0;
}
