DWITE Contest

Test Case for Question #3 in DWITE 2008-2009 High School Round 5

Contest: DWITE 2008-2009 High School Round 5
Question: #3
Input File: DATA3.txt
Output File: OUT3.txt


Input

/
./
/one/two/
../
/one/
two/
/one/
two/../../three/../././../four/five/./
/one/two/
./../three/two/../two/




Output

/
/one/
/one/two/
/four/five/
/one/three/two/