#include <string> #include <iostream> #include <algorithm> #include <cctype> #include <map> using namespace std; int main() { map<char, char> p = { {'0','0'},{'1','8'},{'2','4'},{'3','C'},{'4','2'},{'5','A'},{'6','6'},{'7','E'} ,{'8','1'},{'9','9'},{'a','5'}...