p=0 while~0: s="" for c in raw_input():b=c<'/'in s;s+=(c,":$*"[p/4%3])[p%4