#include <stdio.h>

int main() {
    int i;
    scanf("%d",&i);
    char* a[7]={"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"};
    char *p;
    p=a[i-1];
    printf("%s",p);
    return 0;
}