#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  char s2[1000];
  cin >> s;
  int c = 1;
  cout << s[0];
  for (int i = 1; i < s.length(); i++) {
    if (s[i] == '/' && s[i - 1] == '/') continue;
    s2[c++] = s[i];
  }
  if ((s2[c - 1] == '/')) c--;
  for (int i = 1; i < c; i++) {
    cout << s2[i];
  }
  return 0;
}
