#include <bits/stdc++.h>
using namespace std;
int main() {
  string str, s = "//";
  cin >> str;
  int i = str.size() - 1;
  while (str.find(s) != string::npos) str.replace(str.find(s), 2, "/");
  if (str[str.size() - 1] == '/') str.erase(str.size() - 1, str.size() - 1);
  cout << str;
  return 0;
}
