#include <bits/stdc++.h>
using namespace std;
int main() {
  char c;
  string res = "";
  bool ndel = true;
  while (!cin.get(c).eof() && c != '\n') {
    if (ndel || c != '/') {
      res += c;
    }
    ndel = (c != '/');
  }
  int n;
  if (*(res.end() - 1) == '/' && res.length() > 1)
    n = res.length() - 1;
  else
    n = res.length();
  cout << res.substr(0, n);
  return 0;
}
