package main import ( "fmt" ) func Reverse(s string) string { r := []rune(s) for i := 0; i < len(r)/2; i++ { j := len(r)-i-1 r[i], r[j] = r[j], r[i] } return string(r) } func main() { var s string fmt.Scan(&s) s = Reverse(s) for _, r := range s { if r == '>' { fmt.Print("<") } else { fmt.Print(">") } } fmt.Println("") }