#include<bits/stdc++.h>using namespace std;bool isAlpha(char a){ if(a>='a'&&a<='z') return true; else return false;}bool isNum(char a){ if(a>='0'&&a<='9') return true; else return false;}bool isFold(char ls,char rs){ if((isAlpha(ls)&...