#include <bits/stdc++.h>
using namespace std;
void fast() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
const long long N = 1e6 + 5;
const long long BLK = 666;
long long dr[4] = {0, 0, 1, -1};
long long dc[4] = {1, -1, 0, 0};
long long ddr[8] = {0, 0, 1, -1, 1, -1, 1, -1};
long long ddc[8] = {1, -1, 0, 0, 1, -1, -1, 1};
long long ddr1[8] = {1, 1, -1, -1, 2, 2, -2, -2};
long long ddc1[8] = {2, -2, 2, -2, 1, -1, 1, -1};
int32_t main() {
  fast();
  string s;
  cin >> s;
  string ans = "";
  bool f = 0;
  for (long long i = 0; i < s.length(); i++) {
    if (s[i] == '/') {
      ans += s[i];
      while (i + 1 < s.length() && s[i + 1] == '/') {
        i++;
      }
    } else {
      ans += s[i];
      f = 1;
    }
  }
  long long n = ans.length();
  if (f == 1) {
    while (ans[n - 1] == '/') {
      n--;
    }
  }
  for (long long i = 0; i < n; i++) cout << ans[i];
}
