#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int cnt = 0, n = s.size(), p = 0;
  for (int i = 1; i < n; i++) {
    if (s[i] != '/') p = i;
    if (s[i] == '/' && s[i - 1] == '/') {
      s[i] = '0';
    }
    if (s[i] == '/' && s[i - 1] == '0') {
      s[i] = '0';
    }
  }
  for (int i = 0; i <= p; i++) {
    if (s[i] != '0') cout << s[i];
  }
  return 0;
}
