func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, i;     cin >> n;     string s;     cin >> s;     if (n == 24) {       if (s[0] ==  2  && s[1] >  3 ) {         s[0] =  1 ;       } else if (s[0] >  2 ) {         s[0] =  1 ;       }     } else {       if (s[0] ==  1  && s[1] >  2 ) {         s[0] =  0 ;       } else if (s[0] ==  0  && s[1] ==  0 ) {         s[1] =  1 ;       } else if (s[0] >  1 ) {         if (s[1] ==  0 )           s[0] =  1 ;         else           s[0] =  0 ;       }     }     if (s[3] >  5 ) {       s[3] =  1 ;     }     cout << s;     return 0;   }   