#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, m, ln, ans, sm, cnt, ar[10000];
  string s;
  while (cin >> s) {
    k = 0;
    ln = s.size();
    string s1 = "";
    for (i = 0; s[i]; i++) {
      if (k == 0 && s[i] == '/') {
        s1 += "/";
        k = 1;
      }
      if (isalpha(s[i])) {
        s1 += s[i];
        k = 0;
      }
    }
    if (s1.size() > 1 && s1[s1.size() - 1] == '/') s1.erase(s1.end() - 1);
    cout << s1;
    cout << endl;
  }
}
