package main import . "fmt" import st "strings" import . "math/big" import . "slices" func main() { var s string Scan(&s) n:=new(Int) Sscanf(s,"%X",n) s=n.Text(8) m:=make([]int,10) for i:=range m { m[i]=st.Count(s,Sprint(i)) } max:=Max(m) s="" for i,v:=range m { if v==max { s+=" "+Sprint(i) } } Println(s[1:]) }