#include <bits/stdc++.h>
int main() {
  int i, j, m, n;
  char a[105];
  scanf("%s", a);
  n = strlen(a);
  printf("%c", a[0]);
  for (i = n - 1; i >= 0; i--) {
    if (a[i] == '/') n = n - 1;
    if (a[i] != '/') break;
  }
  for (i = 1; i < n; i++) {
    if (a[i - 1] != '/' || a[i] != '/') printf("%c", a[i]);
  }
  printf("\n");
  return 0;
}
