#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  char pre = 'a';
  cin >> s;
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] == '/' && pre == '/') {
      s[i] = '?';
      pre = '/';
      continue;
    }
    pre = s[i];
  }
  int j = s.length() - 1;
  while ((s[j] == '/' || s[j] == '?') && j >= 1) {
    s[j] = '?';
    --j;
  }
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] != '?') cout << s[i];
  }
}
