package main import ( "fmt" ) func main() { var s string fmt.Scan(&s) if len(s) < 1 || len(s) > 32 { fmt.Println(400) return } first := s[0] last := s[len(s)-1] if first == '_' || first == '-' || last == '_' || last == '-' { fmt.Println(400) return } for i := 0; i < len(s); i++ { c := s[i] isValidChar := (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '_' || c == '-' if !isValidChar { fmt.Println(400) return } } fmt.Println(200) }