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