func_code_string: #include <bits/stdc++.h>   using namespace std;   class Solution {    public:     void solve(std::istream& in, std::ostream& out) {       string s;       in >> s;       int n = s.size();       for (size_t i = 0; i < n; i++) {         int x = (s[i] -  0 );         if (x % 8 == 0) {           out <<  YES                <<   n                << x;           return;         }       }       for (size_t i = 0; i < n; i++) {         for (size_t j = i + 1; j < n; j++) {           int x = 10 * (s[i] -  0 ) + (s[j] -  0 );           if (x % 8 == 0) {             out <<  YES                  <<   n                  << x;             return;           }         }       }       for (size_t i = 0; i < n; i++) {         for (size_t j = i + 1; j < n; j++) {           for (size_t k = j + 1; k < n; k++) {             int x = 100 * (s[i] -  0 ) + 10 * (s[j] -  0 ) + (s[k] -  0 );             if (x % 8 == 0) {               out <<  YES                    <<   n                    << x;               return;             }           }         }       }       out <<  NO ;     }   };   void solve(std::istream& in, std::ostream& out) {     out << std::setprecision(12);     Solution solution;     solution.solve(in, out);   }   int main() {     ios_base::sync_with_stdio(0);     cin.tie(0);     istream& in = cin;     ostream& out = cout;     solve(in, out);     return 0;   }   