#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  int l = a.length();
  int count = 0;
  for (int i = 0; i < l; i++) {
    if (a[i] == '/') count++;
  }
  if (count == l)
    cout << "/" << endl;
  else {
    for (int i = 0; i < l; i++) {
      if (isalpha(a[i]))
        cout << a[i];
      else if (a[i] == '/' && isalpha(a[i + 1])) {
        cout << "/";
      }
    }
    cout << endl;
  }
  return 0;
}
