#include <bits/stdc++.h>
using namespace std;
string s;
int len;
int main() {
  cin >> s;
  len = s.size();
  for (int i = len - 1; i >= 0; i--)
    if (s[i] == '/')
      len--;
    else
      break;
  if (len == 0) {
    cout << "/";
    return 0;
  }
  for (int i = 0; i < len; i++)
    if (s[i] != '/')
      cout << s[i];
    else if (s[i - 1] == '/')
      continue;
    else
      cout << s[i];
  return 0;
}
