S=input() T="" for s in S: if s=="<": T+=">" else: T+="<" print(T)