package main import . "fmt" import . "slices" func main() { var s,t string Scan(&s,&t) a:=[]byte(s) b:=[]byte(t) Sort(a) Sort(b) s=string(a) t=string(b) if s==t { Println("YES") } else { Println("NO") } }