#include <bits/stdc++.h>
using namespace std;
bool bj;
long long last;
string st;
int main() {
  cin >> st;
  for (int i = st.size() - 1; i >= 0; i--)
    if (st[i] != '/') {
      last = i + 1;
      break;
    }
  for (int i = 0; i < last; i++) {
    if (st[i] == '/' && bj == 0) {
      cout << '/';
      bj = 1;
    }
    if (st[i] != '/') bj = 0;
    if (bj == 0) cout << st[i];
  }
  if (last == 0) cout << '/';
  cout << endl;
  return 0;
}
