#include <bits/stdc++.h>
using namespace std;
const int MAXN = 2147483647;
int i, j, k, l, n, m, t, x, y;
string sa, sb;
int main() {
  while (cin >> sa) {
    sb = "";
    i = 0;
    l = sa.length();
    j = l - 1;
    while (sa[j] == '/' && j > 0) {
      sa.erase(j, 1);
      j--;
    }
    l = sa.length();
    while (i < l) {
      if (sa[i] == '/') {
        sb += sa[i];
      }
      while (sa[i] == '/') {
        i++;
      }
      while (i < l && sa[i] != '/') {
        sb += sa[i++];
      }
    }
    cout << sb << endl;
  }
  return 0;
}
