#include <bits/stdc++.h>
using namespace std;
char s = '/';
int main() {
  string a, b = "";
  cin >> a;
  cout << '/';
  char p = '/';
  for (int i = 0; i < a.size(); i++) {
    if (p == s && a[i] == s)
      continue;
    else {
      p = a[i];
      b += a[i];
    }
  }
  if (b[b.size() - 1] == s) b.resize(b.size() - 1);
  cout << b << endl;
  return 0;
}
