#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int length ; cin >> length ; string s ; cin >> s ; int hash[128]; for( int i=0 ; i<128;i++){ hash[i] = 0 ; } for( int i=0 ; i= 6 ){ cout << 0 ; } else{ cout << 6 - length ; } } else{ int res = 4- ans ; if( length + res >= 6 ){ cout << res ; } else{ cout << 6 - length; } } return 0; }