#include <bits/stdc++.h>
using namespace std;
int n;
int main()
{
cin>>n;
if ((n==1) or (n>8)) cout<<"Nhap lai";
else if (n==2) cout<<"Monday";
else if (n==3) cout<<"Tuesday";
else if (n==4) cout<<"Wednesday";
else if (n==5) cout<<"Thursday";
else if (n==6) cout<<"Friday";
else if (n==7) cout<<"Saturday";
else if (n==8) cout<<"Sunday";
return 0;
}