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