#include<bits/stdc++.h>
using namespace std;
int main(){ //C++4级_限号出行
int n;
cin>>n;
if(n==4 or n==9) cout<<"Monday";
if(n==5 or n==0) cout<<"Tuesday";
if(n==1 or n==6) cout<<"Wednesday";
if(n==2 or n==7) cout<<"Thursday";
if(n==3 or n==8) cout<<"friday";
return 0;
}