#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; cin>>n; string upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; string lower = "abcdefghijklmnopqrstuvwxyz"; string digit="0123456789"; string special = "!@#$%^&*()-+"; string s; cin>>s; int count = 0; for(int j=0;j6){ if(count<4){ cout<<4-count; } else{ cout<<'0'; } } else{ if(count==4){ cout<<6-n; } else{ if(n+(4-count)<6){ cout<<6-n; } else{ cout<<4-count; } } } return 0; }