#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long lb = 1000;
void vrikodara(long long n = 12) {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << setprecision(n) << fixed;
}
void solve() {
  string s;
  cin >> s;
  string ans = "";
  long long sz = s.length();
  long long idx = 0;
  bool f = false;
  while (idx < sz) {
    if (s[idx] != '/') {
      f = true;
      ans += s[idx];
      idx++;
      continue;
    }
    while (idx < sz && s[idx] == '/') idx++;
    if (idx == sz && f) continue;
    ans += '/';
  }
  cout << ans << '\n';
}
int32_t main() {
  vrikodara();
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
