Go: package main

import "fmt"

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

	var day int
	fmt.Scan(&day)
	dayOfWeek := -1
	for i := 0; i < day; i++ {
		if dayOfWeek == 6 {
			dayOfWeek = -1
		}
		dayOfWeek++
	}
	fmt.Println(week[dayOfWeek])
}

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

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

int main() {
	int X; cin >> X;
	cout << S[(X + 26) % 7] << endl;
	return 0;
}

C++: #include<iostream>
#include<string>
#include<algorithm>	
#include<cmath>
using namespace std;
int main() {
	int n; cin >> n;
	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" << endl;
	}
	if (n % 7 == 6) {
		cout << "wed" << endl;
	}
	if (n % 7 == 0) {
		cout << "thu" << endl;
	}
}

C++: #include <iostream>
using namespace std;
typedef long long i64;
#define rep(i,s,e) for(int (i) = (s);(i) <= (e);(i)++)
#define all(x) x.begin(),x.end()

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

int main(){
  int x;
  cin >> x;
  cout << s[(x - 2 + 7) % 7] << endl;
}

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

using namespace std;

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

	return 0;
}

C++: #include <iostream>
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" << endl;
	if(n%7 == 6) cout << "wed" << endl;
	return 0;
}

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

using namespace std;

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

int main()
{
  int X;
  cin >> X;
  cout << s[(X + 3) % 7] << endl;
}

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

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;	
}