#include <bits/stdc++.h>
using namespace std;
const int INF = 20050226;
int main() {
  string s;
  cin >> s;
  int p = INF;
  for (int i = s.size() - 1; i >= 0; i--) {
    if (s[i] != '/') {
      p = i;
      break;
    }
  }
  if (p == INF) {
    cout << '/';
    return 0;
  }
  for (int i = 0; i < s.size(); i++) {
    if (s[i] != '/') {
      cout << s[i];
    }
    if (i == p) break;
    if (s[i] == '/' and i != s.size() - 1) {
      cout << '/';
      while (s[i] == '/') i++;
      i--;
    }
  }
  return 0;
}
