#include char *txt[] = { "Mon.","Tue.","Wed.","Thu.","Fri.","Sat.","Sun." };int main(){ int w; scanf("%d", &w); while (w != 0) { if (1 <= w && w <= 7) printf("%s\n", txt[w - 1]); else printf("Error!\n"); scanf("%d", &w); } return 0;}