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 <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T &a, T b)
{
    if (a < b)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
inline bool chmin(T &a, T b)
{
    if (a > b)
    {
        a = b;
        return 1;
    }
    return 0;
}
typedef long long int ll;

#define ALL(v) (v).begin(), (v).end()
#define RALL(v) (v).rbegin(), (v).rend()
#define endl "\n"
const double EPS = 1e-7;
const int INF = 1 << 30;
const ll LLINF = 1LL << 60;
const double PI = acos(-1);
const int MOD = 1000000007;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};

//-------------------------------------

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int x;
    cin >> x;
    string youbi[] = {"sat", "sun", "mon", "tue", "wed", "thu", "fri"};
    if (x < 9)
    {
        int tmp = 7 - abs(x - 9) % 7;
        if (tmp == 7)
        {
            cout << youbi[0] << endl;
        }
        else
        {
            cout << youbi[tmp] << endl;
        }
    }
    else
    {
        cout << youbi[abs(x - 9) % 7] << endl;
    }
}

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

C++: #include<iostream>
using namespace std;
int main(){
	int a;
	cin >> a;
	switch (a % 7){
	case 0:
		cout << "thu"<<endl;
		break;
	case 1:
		cout << "fri" << endl;
		break;
	case 2:
		cout << "sat" << endl;
		break;
	case 3:
		cout << "san" << endl;
		break;
	case 4:
		cout << "mon" << endl;
		break;
	case 5:
		cout << "thu" << endl;
		break;
	case 6:
		cout << "wed" << endl;
		break;
	}
	return 0;
}

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

int main(){
    long int N,M;
    cin >> N;

    if((N+3)%7==0){
        cout<<"mon"<<endl;
    }
    if((N+2)%7==0){
        cout<<"tue"<<endl;
    }
    if((N+1)%7==0){
        cout<<"wed"<<endl;
    }
    if(N%7==0){
        cout<<"thu"<<endl;
    }
    if((N-1)%7==0){
        cout<<"fri"<<endl;
    }
    if((N-2)%7==0){
        cout<<"sat"<<endl;
    }
    if((N-3)%7==0){
        cout<<"sun"<<endl;
    }
    return 0;
}

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

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

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

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

	return 0;
}

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

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

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

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

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

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

int main()
{
    int d;

    cin >> d;

    int a = d % 7;
    if( a == 2 )
        cout << "sat";
    else if( a == 3 )
        cout << "sun";
    else if( a == 4 )
        cout << "mon";
    else if( a == 5 )
        cout << "tue";
    else if( a == 6 )
        cout << "wed";
    else if( a == 0 )
        cout << "thu";
    if( a == 1 )
        cout << "fri";
    cout << endl;

    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int a;
	cin >> a;
	switch (a % 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++: #include <bits/stdc++.h>

using namespace std;

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

int main(void){
    int a;
    cin >> a;
    cout << s[a % 7] <<endl;
}

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

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

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

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

C++: #include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;

//const int dx[] = {1, 0, -1, 0, 1, -1, -1, 1};
//const int dy[] = {0, 1, 0, -1, 1, 1, -1, -1};

int main()
{
	int x;
	cin >> x;

	switch (x % 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;
	}
}

C++: #include <bits/stdc++.h>
#define int long long
#define double long double
#define INF 1e18
using namespace std;
signed main() {
  string c[7] = { "fri", "sat", "sun", "mon", "tue", "wed", "thu" };
  int i; cin >> i;
  cout << c[(i-1)%7] << endl;
}

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

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int x;
  cin >> x;
  switch(x%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++: #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
	int x,a;
	cin >> x;
	a =x%7;

	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;
	if(a == 0)cout << "thu" << endl;
	if(a == 1)cout << "fri" << endl;

	return 0;
}