#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 10;
string s, ns;
int32_t main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  cin >> s;
  ns += s[0];
  for (int i = 1; i < s.size(); i++) {
    if (s[i - 1] == '/' && s[i] == '/') continue;
    ns += s[i];
  }
  int j;
  for (j = ns.size() - 1; j >= 1; j--)
    if (ns[j] != '/') break;
  for (int i = 0; i <= j; i++) cout << ns[i];
  return EXIT_SUCCESS;
}
