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