#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int flag = 0, j;
  cin >> s;
  int len = s.length();
  for (int i = 0; i < s.length(); i++) {
    if (s[i] != '/') flag = 1;
  }
  if (flag == 0) {
    cout << s[0];
    return 0;
  }
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '/' && s[i + 1] != '/' && s[i + 1] != '\0') cout << s[i];
    if (s[i] != '/') cout << s[i];
  }
}
