#include <bits/stdc++.h>
void erase(char *x, int a) {
  int i;
  char x2[10000] = "";
  for (i = 0; i < a; i++) {
    x2[i] = x[i];
  }
  for (i = i + 1; i < strlen(x); i++) {
    x2[i - 1] = x[i];
  }
  sprintf(x, x2);
}
void no_slash(char *x) {
  int i;
  char x2[10000] = "";
  x2[0] = '/';
  for (i = 0; i < strlen(x); i++) {
    x2[i + 1] = x[i];
  }
  sprintf(x, x2);
}
int main(void) {
  int i;
  int boolka = 0;
  char name[10000];
  gets(name);
  if (strlen(name) == 0) {
    putchar('/');
    return 0;
  }
  for (i = 0; i < strlen(name); i++) {
    if (name[i] != '/') {
      boolka = 1;
      break;
    }
  }
  if (boolka == 0) {
    putchar('/');
    return 0;
  }
  for (i = 0; i < 10000; i++) {
    if (name[i] == '/' && name[i + 1] == '/') {
      erase(name, i + 1);
      i--;
    }
  }
  if (name[0] != '/') {
    no_slash(name);
  }
  if (name[strlen(name) - 1] == '/') {
    erase(name, strlen(name) - 1);
  }
  puts(name);
  return 0;
}
