#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1;
  cin >> s1;
  int i = 0;
  int g = s1.length();
  int k = 0;
  cout << s1[0];
  while (i < g) {
    if ((s1[i] == '/'))
      if (s1[i + 1] == '/') {
      } else {
        if (s1.length() - 1 == i) {
          if (s1[i] != '/') cout << s1[i];
        } else if (k != 0)
          cout << s1[i];
      }
    else {
      k++;
      cout << s1[i];
    }
    i++;
  }
  return 0;
}
