#include <iostream> #include <regex> using namespace std; int main() { string s; while (cin >> s) { int len = s.length(); if (len <= 8) { cout << "NG" << endl; continue; } int a = 0, b = 0, c...