#include <bits/stdc++.h>
int main() {
  char line[101];
  char newLine[101];
  int flag = 0;
  int t = 0;
  int lengthOfString = 0;
  fgets(line, 101, stdin);
  if (strlen(line) - 1 == 1) {
    newLine[t] = line[0];
    newLine[t + 1] = '\0';
  } else {
    if (line[strlen(line) - 1] != '\n') {
      lengthOfString = strlen(line) - 1;
    } else {
      lengthOfString = strlen(line) - 2;
    }
    for (int i = 0; i <= strlen(line) - 1; i++) {
      if (i == lengthOfString) {
        if (line[i] != '/' && flag == 1) {
          newLine[t] = line[i];
          newLine[t + 1] = '\0';
        } else if (flag == 0) {
          newLine[t] = line[i];
          newLine[t + 1] = '\0';
        } else {
          newLine[t] = '\0';
        }
        break;
      }
      if (line[i] == '/' && line[i + 1] == '/') {
        newLine[t] = line[i];
      } else {
        newLine[t] = line[i];
        t++;
        flag = 1;
      }
    }
  }
  printf("%s", newLine);
  return 0;
}
