#include<bits/stdc++.h>
using namespace std;
int main(){
int n,s=0;
cin>>n;
n=n%7;
s=1+n;
if(s1){
cout<<"monday";
}else if(s2){
cout<<"tuesday";
}else if(s3){
cout<<"wednesday";
}else if(s4){
cout<<"thursday";
}else if(s5){
cout<<"friday";
}else if(s6){
cout<<"saturday";
}else{
cout<<"sunday";
}
}