#include <bits/stdc++.h>
using namespace std;
char a[105];
char b[105];
int main() {
  gets(a);
  bool tag = 0;
  int len = strlen(a);
  int cnt = 0;
  for (int i = 0; i < len; i++) {
    if (a[i] != '/') {
      b[cnt++] = a[i];
      tag = 0;
    } else {
      if (!tag) {
        b[cnt++] = a[i];
        tag = 1;
      }
    }
  }
  if (b[0] != '/') cout << '/';
  for (int i = 0; i < cnt; i++) {
    if (i == cnt - 1 && b[i] == '/' && cnt != 1) continue;
    cout << b[i];
  }
  cout << endl;
  return 0;
}
