#include <iostream> #include<string> using namespace std; const int monthr[] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; const int monthp[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; bool pd(string ss) { for (int i = 0; i < 4; i++) { if (ss[i] != ss[7 - i]) { re...