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