#include <stdio.h> int main() { int year, month = 0; int days[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; while (scanf("%d %d", &year, &month) != EOF) { int day = days[month - 1]; if ((year % 4 == 0 && year % 100 != 0) || (year...