package main import . "fmt" import . "strings" func main() { var a,b string Scan(&a,&b) const s="ESWN" x:=Index(s,a) y:=Index(s[x:]+s,b) Println(y) }