#include <iostream> #include <string> using namespace std; int main() { int a = 0, b = 0, c = 0, d = 0; string inp; cin >> inp; if (inp.length() <= 8) { cout << "NG" << endl; return 0; } for (char c : inp) { ...