#include <iostream> #include <cmath> using namespace std; int main() { string str; int res = 0; cin >> str; string sixteen = "0123456789ABCDEF"; int ten[16] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}; for(int i = 2; i < str.length...