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