Go: package main

import "fmt"

func main() {
	week := []string{"sun", "mon", "tue", "wed", "thu", "fri", "sat"}

	var day int
	fmt.Scan(&day)
	fmt.Println(week[(day+4)%7])//土曜日が9日という基準に揃えるために+4
}

C++: #include <iostream>
using namespace std;

string week[7]={"thu","fri","sat","sun","mon","tue","wed"};

int main(void){
    int n;
    cin >> n;
    cout << week[n%7] << endl;
    return 0;
}

C++: #include<bits/stdc++.h>
#define all(vec) vec.begin(),vec.end()
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
const ll MOD=10000000;
const ll INF=1000000001;
const ll LINF=4000000000000000010;
const double EPS=1e-9;
int dx[5]={0,1,0,-1,0};
int dy[5]={1,0,-1,0,0};
int main(){
    int x;cin>>x;
    int d[31];
    d[9]=5;
    for(int i=8;i>=1;i--){
        d[i]=(d[i+1]-1+7)%7;
    }
    for(int i=10;i<=30;i++){
        d[i]=(d[i-1]+1)%7;
    }
    if(d[x]==0){
        cout<<"mon"<<endl;
    }else if(d[x]==1){
        cout<<"tue"<<endl;
    }else if(d[x]==2){
        cout<<"wed"<<endl;
    }else if(d[x]==3){
        cout<<"thu"<<endl;
    }else if(d[x]==4){
        cout<<"fri"<<endl;
    }else if(d[x]==5){
        cout<<"sat"<<endl;
    }else{
        cout<<"sun"<<endl;
    }
}

C++: #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main(){
	int n;
	cin >> n;
	if(n%7 == 0){
		cout<<"thu"<<endl;
	}
	if(n%7==1){
		cout<<"fri"<<endl;
	}
	if(n%7==2){
		cout<<"sat"<<endl;
	}
	if(n%7==3){
		cout<<"sun"<<endl;
	}
	if(n%7==4){
		cout<<"mon"<<endl;
	}
	if(n%7 == 5){
		cout<<"tue"<<std::endl;
	}
	if(n%7==6){
		cout<<"wed"<<endl;
	}

}

C++: #include <bits/stdc++.h>

using namespace std;
using llong = long long;
using ldbl = long double;
using P = pair<llong, llong>;

#define ALL(x) x.begin(), x.end()

const llong inf = llong(1e18)+7;
const llong mod = 1e9+7;

int main(){
	llong x;
	cin >> x;
	string s[7] = {"thu", "fri", "sat", "sun", "mon", "tue", "wed"};

	cout << s[x%7] << endl;

	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
    int x,a;
    cin>>x;
    a=x-9;
    if(a==-8||a==-1||a==6||a==13||a==20){
      cout<<"fri"<<endl;
    }
    else if(a==-2||a==5||a==12||a==19){
           cout<<"thu"<<endl;
    }
    else if(a==-3||a==4||a==11||a==18){
           cout<<"wed"<<endl;
    }
    else if(a==-4||a==3||a==10||a==17){
           cout<<"tue"<<endl;
    }
    else if(a==-5||a==2||a==9||a==16){
           cout<<"mon"<<endl;
    }
    else if(a==-6||a==1||a==8||a==15){
           cout<<"sun"<<endl;
    }
    else{
        cout<<"sat"<<endl;
    }
}

C++: #include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef pair<ll, ll> P;

#define pb push_back
#define rep(i, n) for(int i = 0; i < (n); i++)
#define dep(i, a, n) for(int i = a; i >= (n); i--)
#define FOR(i, a, n) for(int i = a; i < (n); i++)
#define mod (ll)(1e9+7)
#define int ll
#define INF 100000000

__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}

signed main() {
	string da[7] = {"thu", "fri", "sat", "sun", "mon", "tue", "wed"};
  ll x;
  cin >> x;
  cout << da[x % 7] << endl;
	return 0;
}

C++: #include<iostream>
#include<vector>
#include<algorithm>
#include<map>
#include<cstring>
#include<math.h>
#include<bitset>
#include<queue>
#include<set>
#include<iomanip>
#include<math.h>
#include<assert.h>
#include<string>
#include<cstdlib>
#include<cctype>
#include<unordered_map>
#include<sstream>
#include<numeric>
#include<stack>
// #include<bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int,int>;
constexpr ll INF = 1LL<<60;
const double INFD = 1e100;
const ll mod = 1000000007;
const double PI = 3.1415926535897932384626433832795028841971;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
template<class T> inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
};
template<class T> inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
};

// intやllをstringに変換
template<typename T> inline string toString(const T &a){
  ostringstream oss;
  oss << a;
  return oss.str();
};
// ----------------------------------------------------------------------------

int main(){
  int x;
  cin >> x;
  if(x%7==0){
    cout << "thu" << endl;
  }else if(x%7==1){
    cout << "fri" << endl;
  }else if(x%7==2){
    cout << "sat" << endl;
  }else if(x%7==3){
    cout << "sun" << endl;
  }else if(x%7==4){
    cout << "mon" << endl;
  }else if(x%7==5){
    cout << "tue" << endl;
  }else if(x%7==6){
    cout << "wed" << endl;
  }
  return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(void){
    int date;
    cin >> date;
    switch(date%7){
        case 4:
        cout<<"mon";
        break;
        case 5:
        cout <<"tue";
        break;
        case 6:
        cout << "wed";
        break;
        case 0:
        cout << "thu";
        break;
        case 1:
        cout << "fri";
        break;
        case 2:
        cout << "sat";
        break;
        case 3:
        cout << "sun";
        break;
    }
    cout << endl;
    return 0;
}

C++: #include<iostream>
using namespace std;

int main(){
    int day=0;
    cin>>day;

    switch(day%7){
        case 0:
        cout<<"thu"<<endl;
        break;
        case 1:
        cout<<"fri" <<endl;
        break;
        case 2:
        cout<<"sat"<<endl;
        break;
        case 3:
        cout<<"sun"<<endl;
        break;
        case 4:
        cout<<"mon"<<endl;
        break;
        case 5:
        cout<<"tue"<<endl;
        break;
        case 6:
        cout<<"wed"<<endl;
        break;
    }
return 0;
}

C++: //============================================================================
// Name        : JOI.cpp
// Author      :
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
typedef long long ll;
int N;
int main() {
	cin>>N;

	if(N==1 || N==8 || N==15 || N==22 || N==29)cout<<"fri"<<endl;
	if(N==2 || N==9 || N==16 || N==23 || N==30)cout<<"sat"<<endl;
	if(N==3 || N==10 || N==17 || N==24 || N==31)cout<<"sun"<<endl;
	if(N==4 || N==11 || N==18 || N==25)cout<<"mon"<<endl;
	if(N==5 || N==12 || N==19 || N==26)cout<<"tue"<<endl;
	if(N==6 || N==13 || N==20 || N==27)cout<<"wed"<<endl;
	if(N==7 || N==14 || N==21 || N==28)cout<<"thu"<<endl;

	return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int x,n;
	scanf("%d",&x);
	n=x%7;
	if(x==3 || x==10 || x==17 || x==24)	{
		printf("sun\n");
	}
	if(x==4 || x==11 || x==18 || x==25) {
		printf("mon\n");
	}
	if(x==5 || x==12 || x==19 || x==26) {
		printf("tue\n");
	}
	if(x==6 || x==13 || x==20 || x==27) {
		printf("wed\n");
	}
	if(x==7 || x==14 || x==21 || x==28) {
		printf("thu\n");
	}
	if(x==1 || x==8 || x==15 || x==22 || x==29) {
		printf("fri\n");
	}
	if(x==2 || x==9 || x==16 || x==23 || x==30) {
		printf("sat\n");
	}
}

C++: #include <iostream>
#include <vector>
#include <queue>
#include<map>
#include<algorithm>
#include<set>
#include<iomanip>
#define rep(i,n) for(int i = 0;i < n;i++)
#define req(i,n) for(int i = 1; i<=n;i++)
#define rrep(i,n) for(int i = n-1;i >=0;i--)
#define ALL(a) a.begin(),a.end()
#define PI  acos(-1)
using namespace std;
template<typename A, size_t N, typename T>
void Fill(A(&array)[N], const T & val) {
    std::fill((T*)array, (T*)(array + N), val);
}
typedef long long int ll;
typedef long double ld;
const int MOD = 1e9 + 7;
int dx[4] = { 0,0,1,-1 }, dy[4] = { 1,-1,0,0 }, sum = 0,h,w;
int main() {
    int n; cin >> n;
    string c[7] = { "thu","fri","sat","sun","mon","tue","wed" };
    cout << c[n % 7] << endl;
}