package main import ( "fmt" "strconv" ) func main() { var a, b string _, _ = fmt.Scan(&a, &b) an, err := strconv.Atoi(a) if err != nil { fmt.Println("NG") return } if strconv.Itoa(an) != a { fmt.Println("NG") return } bn, err := strconv.Atoi(b) if err != nil { fmt.Println("NG") return } if strconv.Itoa(bn) != b { fmt.Println("NG") return } fmt.Println("OK") }