package main import ( "bufio" "fmt" "os" ) func main() { sc := bufio.NewScanner(os.Stdin) sc.Scan() l := sc.Text() for i := len(l) - 1; i >= 0; i-- { if l[i] == '>' { fmt.Print("<") } else { fmt.Print(">") } } fmt.Println() }