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<set>
#include<iostream>
#include<ctime>
#include<string>
#include<cstdlib>
#include<algorithm>
#include<random>
#include<map>
#include<unordered_map>
#include<unordered_set>
#include<vector>
#include<list>
#include<queue>
#include<stack>
#include<functional>
#include<string.h>
#include<limits.h>
using namespace std;

string b[7] = {
	"thu","fri","sat","sun","mon","tue","wed"
};
signed main() {
	int a; cin >> a;
	cout << b[a % 7] << endl;
}

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

int main() {
	int x; cin >> x; x %= 7;
	switch (x) {
	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;
	case 0: cout << "thu" << endl; break;
	}
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long int ll;

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

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	int n; cin >> n;
	cout << s[n%7] << endl;
}

C++: #include<iostream>
#include<string>
using namespace std;
int main() {
    int X;
    cin >> X;
    string ans[] = {"thu","fri","sat","sun","mon","tue","wed"};
    cout << ans[X%7] << endl;
}

C++: #include<iostream>
using namespace std;
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>

#define rep(i,n) for (int i =0;i<(n);i++)
#define LL long long 

using namespace std;

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

C++: #include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) (v).begin(),(v).end()
#define fi first
#define se second
template<typename A, typename B> inline bool chmax(A &a, B b) { if (a<b) { a=b; return 1; } return 0; }
template<typename A, typename B> inline bool chmin(A &a, B b) { if (a>b) { a=b; return 1; } return 0; }
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<int, pii> pip;
const ll INF = 1ll<<29;
const ll MOD = 1000000007;
const double EPS = 1e-10;
const bool debug = 0;
//------------------------------//

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

int main() {
	int x; cin >> x;
	cout << s[(x - 1) % 7] << endl;
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int X;
	cin >> X;
	if (X % 7 == 0){
		cout << "thu" << endl;
	}
	if (X % 7 == 1){
		cout << "fri" << endl;
	}
	if (X % 7 == 2){
		cout << "sat" << endl;
	}
	if (X % 7 == 3){
		cout << "sun" << endl;
	}
	if (X % 7 == 4){
		cout << "mon" << endl;
	}
	if (X % 7 == 5){
		cout << "tue" << endl;
	}
	if (X % 7 == 6){
		cout << "wed" << endl;
	}




	return 0;
}

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

#define ASC(vec) vec.begin(), vec.end()     // 昇順ソート 例：sort(ASC(vec));
#define DESC(vec) vec.rbegin(), vec.rend()  // 降順ソート 例:sort(DESC(vec));
#define rep(i, n) for(int i = 0; i < n; i++)
#define Rep(i, n) for(int i = 1; i < n; i++)
#define In(vec) rep(i, n) cin>>vec[i];
#define ANS(s) cout << s << endl
#define inc(a, b) cin >> a >> b;

const int mod = 1000000007;
const int inf = (int)1e9 + 7;
const long long INF = 1LL << 60;

int main() {
	char week[7][4] = { {"thu"}, {"fri"}, {"sat"}, {"sun"}, {"mon"}, {"tue"}, {"wed"} };
	int x;
	cin >> x;
	cout << week[x % 7] << endl;
}

C++: #include <iostream>
#include <string>

using namespace std;

int main(){
    int x;
    cin >> x;
    string day[7] = {"mon", "tue", "wed", "thu", "fri", "sat", "sun"};
    cout << day[(x + 3) % 7] << endl;
}

C++: #include<iostream>
using namespace std;
int main() {
	int a;
	cin >> a;
	while (a >=7) {
		a = a % 7;
	}
	if (a ==0 ) {
		cout << "thu" << endl;
	}
	if (a ==1 ) {
		cout << "fri" << endl;
	}
	if (a ==2 ) {
		cout << "sat" << endl;
	}
	if (a == 3) {
		cout << "sun" << endl;
	}
	if (a == 4) {
		cout << "mon" << endl;
	}
	if (a == 5) {
		cout << "tue" << endl;
	}
	if (a ==6 ) {
		cout << "wed" << endl;
	}
}

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

int main(){
	short date;
	cin>>date;
	date %= 7; 
	switch(date){
		case 4:
			cout<<"mon"<<endl;
			break;
		case 5:
			cout<<"tue"<<endl;
			break;
		case 6:
			cout<<"wed"<<endl;
			break;
		case 7:
			cout<<"thu"<<endl;
			break;
		case 1:
			cout<<"fri"<<endl;
			break;
		case 2:
			cout<<"sat"<<endl;
			break;
		case 3:
			cout<<"sun"<<endl;
			break;
	}
	return 0;	
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <bitset>
#include <map>
#include <tuple>
#include <unordered_map>
#include <list>
#include <numeric>
#include <utility>
#include <iterator>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <climits>
#include <ctime>
#include <cassert>

#define INF 1000000000
#define LINF 9000000000000000000
#define mod 1000000007

#define rep(i,n) for(int i=0;i<int(n);i++)
#define rrep(i,n) for(int i=n-1;i>=0;i--)
#define REP(i,a,b) for(int i=(a);i<int(b);i++)
#define all(x) (x).begin(),x.end()
#define pb push_back
#define mp make_pair

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<long long>vll;
typedef pair<int,int> pi;
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};
int ddx[8]={-1,-1,0,1,1,1,0,-1};
int ddy[8]={0,1,1,1,0,-1,-1,-1};
bool debug=false;

/*---------------------------------------------------*/

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

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

C++: #include <iostream>
using namespace std;char w[]="thufrisatsunmontuewed";int main(){int i;cin>>i;cout<<w[(i%7)*3]<<w[(i%7)*3+1]<<w[(i%7)*3+2]<< endl;}

C++: #include<iostream>
#include<string>
using namespace std;
string  day[] = {"mon", "tue", "wed", "thu", "fri", "sat", "sum"};
int main(){
	int n;
	cin >> n;
	n += 3;
	n %= 7;
	cout << day[n] << endl;
	return 0;
}

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

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

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

int main() {
    int X;
    cin >> X;
    switch (X % 7) {
    case 0:
        cout << "thu";
        break;
    case 1:
        cout << "fri";
        break;
    case 2:
        cout << "sat";
        break;
    case 3:
        cout << "sun";
        break;
    case 4:
        cout << "mon";
        break;
    case 5:
        cout << "tue";
        break;
    default:
        cout << "wed";
    }
    cout << endl;
}