#include <bits/stdc++.h>
const long long inf = 0x3f3f3f3f3f3f3f3LL;
const long long mod = (long long)1e9 + 7;
using namespace std;
template <class T>
void smin(T& a, T val) {
  if (a > val) a = val;
}
template <class T>
void smax(T& a, T val) {
  if (a < val) a = val;
}
const long long N = 5 * (long long)1e5 + 10;
string s;
long long n;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> s;
  n = (long long)(s.size());
  bool root = 1;
  for (auto it : s) {
    if (it != '/') root = 0;
  }
  if (root) {
    cout << '/';
  } else {
    string tmp = "";
    for (long long i = 0; i < n;) {
      long long j = i;
      while (j < n and s[j] == '/') ++j;
      long long diff = j - i;
      if (diff > 0) {
        tmp += '/';
      }
      i = j;
      while (i < n and s[i] != '/') {
        tmp += s[i];
        ++i;
      }
    }
    if (tmp.back() == '/') tmp.pop_back();
    cout << tmp;
  }
  return 0;
}
