#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  queue<char> q;
  string s;
  cin >> s;
  for (long long i = 0; i < s.length(); i++) {
    if (s[i] == '/') {
      if (q.empty() || q.back() != '/') q.push(s[i]);
    } else
      q.push(s[i]);
  }
  string res = "";
  while (!q.empty()) {
    res += q.front();
    q.pop();
  }
  for (long long i = res.length() - 1; i >= 0 && res.length() > 1; i--) {
    if (res[i] == '/') {
      res.erase(i, 1);
      i++;
    } else
      break;
  }
  cout << res;
  return 0;
}
