#include <bits/stdc++.h>
using namespace std;
char a[100];
int al;
int main() {
  cin >> a;
  al = strlen(a);
  while (a[al - 1] == '/' && al != 1) al--;
  for (int i = 0; i < al; i++) {
    if (a[i] != '/') {
      cout << a[i];
    } else {
      cout << "/";
      while (a[i] == '/') {
        i++;
      }
      i--;
    }
  }
  cout << endl;
  return 0;
}
