package main import . "fmt" import . "strings" func main() { var n,s string Scan(&n,&s) k:=LastIndexAny(s,"ACGT") Println(k+1) }