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

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 <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <bitset>
#include <cstring>
#include <deque>
#include <iomanip>
#include <limits>
#include <fstream>
using namespace std;
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)
#define CLR(mat) memset(mat, 0, sizeof(mat))
typedef long long ll;

int main()
{
  ios::sync_with_stdio(false);
  cin.tie(0);
  int X; cin >> X;
  string week[7] = {"mon", "tue", "wed", "thu", "fri", "sat", "sun"};
  int i = 5;
  for(int j = 0; i + j <= 30; j++){
    int k = (i + j) % 7;
    if(j + 9 == X) {
      cout << week[k] << endl;
      return 0;
    }
  }
  FOR(j,1,9){
    int k = (i - j + 7) % 7;
    if(9 - j == X) {
      cout << week[k] << endl;
      return 0;
    }
  }
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <stdio.h>
#include <cstring>
#include <queue>
#include <stack>
#include <functional>
#include <math.h>
#include <iomanip>
using namespace std;
#define Would
#define you
const int INF = 999999999;
const int MOD = 1e9 + 7;

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

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

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
	int day;
	cin >> day;
	day = day % 7;
	switch (day)
	{
	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;
	default:
		cout<<"wed"<<endl;
	}
	return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <string.h>
#include <cmath>
#include <set>
#include<list>
#include <map>
#define rep(i, n) for(int i = 0; i < n; i++)
#define REP(i, m, n) for(int i = m; i < n; i++)
#define ALL(v) v.begin(),v.end()
#define RALL(v) v.rbegin(),v.rend()
#define check(v) rep(i,v.size()) cout << v[i] << " ";\
cout << endl
#define INF 1e9
typedef long long ll;
using namespace std;

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

    return 0;
}

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

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main(void)
{
 int X=0;
 scanf("%d",&X);
 X=X%7;
if(X>=9)
{
 if(X==2)
 {printf("sat\n");}
  if(X==3)
 {printf("sun\n");}
  if(X==4)
 {printf("mon\n");}
  if(X==5)
 {printf("tue\n");}
  if(X==6)
 {printf("wed\n");}
  if(X==0)
 {printf("thu\n");}
  if(X==1)
 {printf("fri\n");}
}
else
{
if(X==2)
 {printf("sat\n");}
if(X==1)
 {printf("fri\n");}
if(X==0)
 {printf("thu\n");}
if(X==6)
 {printf("wed\n");}
if(X==5)
 {printf("tue\n");}
if(X==4)
 {printf("mon\n");}
if(X==3)
 {printf("sun\n");}
}


 return 0;
}

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main(void){
	int x=0;
	cin>>x;
	int answer=x%7;
	switch(answer){
		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;
	
}