# include <iostream>
using namespace std;
int main(){
string a;
long long first=0;
cin >> a;
int i = 0;
while (a[i] == '/')
first ++,i++;
for (int i = 0;i < a.size();i ++){
if (a[i] != '/'){
cout << a[i];
}
else{
while (a[i] == '/')
i ++;
cout << '/' << a[i];
}
}
if (first == 1)
cout << '/';
return 0;
}