#include using namespace std; typedef long long lol; typedef pair pii; typedef map mii; #define pf printf #define sf scanf #define pause system("pause") #define pmin int,vector,greater #define checkBit(n,p) (bool)(n&(1<>word;return word;} lol stringToNum(string word){lol num;stringstream ss;ss<>num;return num;} templatevoid setDigit(t &num,int pos,int digit){string word=numToString(num); while(word.length()<=pos)word='0'+word;word[word.length()-pos-1]='0'+digit;num=stringToNum(word);} int dirK[8][2] = {{-2,1},{-1,2},{1,2},{2,1},{2,-1},{1,-2},{-1,-2},{-2,-1}}; int dir8[8][2] = {{-1,0},{-1,1},{0,1},{1,1},{1,0},{1,-1},{0,-1},{-1,-1}}; int dir4[4][2] = {{-1,0},{0,1},{1,0},{0,-1}}; int month[] = {31,28,31,30,31,30,31,31,30,31,30,31}; /*============================================================================// it always seems impossible until it’s done //============================================================================*/ int get(char ch) { if(ch >='0'&&ch<='9') { return 0; } else if(ch>='a'&&ch<='z') { return 1; } else if(ch>='A'&&ch<='Z') { return 2; } else if(ch=='!'||ch=='@'||ch=='#'||ch=='$'||ch=='%'||ch=='^'||ch=='&'||ch=='*'||ch=='*'||ch=='('||ch==')'||ch=='-'||ch=='+') { return 3; } return -1; } int main() { ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); //freopen("00_input.txt","r",stdin);freopen("00_output.txt","w",stdout); //pf("Hello World!\n"); /*int t,i; sf("%d",&t); for(i=0;i> num; cin >> word; set st; for(i=0;i