#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, k, j, m, n = 0, c = 0;
  string s;
  cin >> s;
  cout << s[0];
  for (i = 1; i < s.size(); i++)
    if (s[i] != '/') n = i;
  if (n == 0) {
    cout << endl;
    return 0;
  }
  int flag = 1;
  for (i = 1; i <= n; i++) {
    if (flag && s[i] == '/') continue;
    if (!flag && s[i] == '/') {
      cout << s[i];
      flag = 1;
    }
    if (s[i] != '/') {
      cout << s[i];
      flag = 0;
    }
  }
  return 0;
}
