#include <bits/stdc++.h>
using namespace std;
template <class T>
T min(T a, T b, T c) {
  return min(a, min(b, c));
}
template <class T>
T min(T a, T b, T c, T d) {
  return min(a, min(b, min(c, d)));
}
template <class T>
T max(T a, T b, T c) {
  return max(a, max(b, c));
}
template <class T>
T max(T a, T b, T c, T d) {
  return max(a, max(b, max(c, d)));
}
bool cmp(const int &a, const int &b) { return a > b; }
long long GCD(long long a, long long b) { return (a % b) ? GCD(b, a % b) : b; }
int main() {
  string s;
  cin >> s;
  string str = "";
  for (int i = (0); i <= ((int)s.size() - 1); ++i) {
    if (!i || s[i - 1] != '/' || s[i] != '/') str += s[i];
  }
  if (str[(int)str.size() - 1] == '/' && (int)str.size() > 1)
    str.erase((int)str.size() - 1);
  cout << str << endl;
  return 0;
}
