#include<iostream>
#include<algorithm>
#include<queue>
using namespace std;
string s;
int n;
int main()
{
cin >> s;
for(int i = 0; i < s.length(); i ++ )
{
if(s[i] == '/')
{
cout << '/';
while(s[i] == '/' && i < s.length()) i ++ ;
}
if(i < s.length()) cout << s[i];
}
return 0;
}