package main import ( "fmt" "strings" ) func main() { var alp, S string alp = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" fmt.Scan(&S) s := strings.Split(S, "") alp_s := strings.Split(alp, "") //fmt.Println(alp_s) //fmt.Println(bytes.IndexByte(alp_s, "F")) //fmt.Println(strings.Index(alp, "F")) //fmt.Println(alp_s) //fmt.Println(s) for i := 0; i < len(s); i++ { s[i] = alp_s[(strings.Index(alp, s[i])-i+1039)%26] } //fmt.Println(s) fmt.Println(strings.Join(s, "")) }