#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int l = s.length();
  vector<char> s1;
  for (int i = 0; i < l; i++) {
    s1.push_back(s[i]);
    int f = 0;
    while (s[i] == '/' && i < l) {
      i++;
      f = 1;
    }
    if (f == 1) i--;
  }
  if (s1[s1.size() - 1] == '/' && s1.size() != 1) s1.pop_back();
  for (int i = 0; i < s1.size(); i++) cout << s1[i];
  return 0;
}
