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<bits/stdc++.h>
using namespace std;

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

int main(){
    int x;
    cin>>x;
    cout<<A[(x+3)%7]<<endl;
    return 0;
}

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 <iostream>
using namespace std;
int main(void){
    // Your code here!
    int x;
    cin >> x;
    int 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
        cout << "wed" << endl;
}

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

int main() {
	int X;
	cin>>X;
		X=9-X;
		if(X<0){
			X=X*-1;
		}
		for(int i=0;i<10;i++){
			X=X-7;
			if(X<8){
				break;
			}
		}
		switch(X){
		case 1:cout<<"sun"<<endl;
			break;
		case 2:cout<<"mon"<<endl;
			break;
		case 3:cout<<"tue"<<endl;
			break;
		case 4:cout<<"wed"<<endl;
			break;
		case 5:cout<<"thu"<<endl;
			break;
		case 6:cout<<"fri"<<endl;
			break;
		case 7:cout<<"sat"<<endl;
			break;
		}
	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(void)
{
	char A[10][10]={
		"A","fri","sat","sun","mon","tue","wed","thu"
		};
	int x,s;
	
	cin>>x;
	
	if(x%7==0) s=7;
	else s=x%7;
	
	cout<<A[s]<<endl;
	
	return 0;
}

C++: #include <stdio.h>

int main(void) {
  int x;
  scanf("%d",&x);
  switch(x % 7) {
    case 0:
    printf("thu\n");
    break;
    case 1:
    printf("fri\n");
    break;
    case 2:
    printf("sat\n");
    break;
    case 3:
    printf("sun\n");
    break;
    case 4:
    printf("mon\n");
    break;
    case 5:
    printf("tue\n");
    break;
    case 6:
    printf("wed\n");
    break;
  }
  return 0;
}

C++: // #define _GLIBCXX_DEBUG // for STL debug (optional)
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <string>
#include <cstring>
#include <deque>
#include <list>
#include <queue>
#include <stack>
#include <vector>
#include <utility>
#include <algorithm>
#include <map>
#include <set>
#include <complex>
#include <cmath>
#include <limits>
#include <cfloat>
#include <climits>
#include <ctime>
#include <cassert>
#include <numeric>
#include <fstream>
#include <functional>
#include <bitset>
using namespace std;
using ll = long long int;
using int64 = long long int;
 
template<typename T> void chmax(T &a, T b) {a = max(a, b);}
template<typename T> void chmin(T &a, T b) {a = min(a, b);}
template<typename T> void chadd(T &a, T b) {a = a + b;}
 
int dx[] = {0, 0, 1, -1};
int dy[] = {1, -1, 0, 0};
const int INF = 1LL << 29;
const ll LONGINF = 1LL << 60;
const ll MOD = 1000000007LL;
 
int main() {
    int X; cin >> X;
    X %= 7;

    vector<string> day = {"thu", "fri", "sat", "sun", "mon", "tue", "wed"};
    cout << day[X] << endl;
    return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <bitset>
#include <cmath>
#include <string>
#define FI first
#define SE second
#define VE vector<int>
#define PB push_back
#define PA pair<int,int>
#define MA make_pair
#define LL long long
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define ROF(i,a,b) for(int i=b-1;i>=a;i--)
#define YES(i) cout<<(i?"YES":"NO")<<endl
#define Yes(i) cout<<(i?"Yes":"No")<<endl
using namespace std;
//
const int INF=1e9+7;
//
int main(){
  int X;
  cin>>X;
  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;
  }else{
    cout<<"thu"<<endl;
  }
  return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
#define lp(i,n) for(int i=0;i<n;i++)
#define lpin(a,i,n) for(int i=0;i<n;i++){cin>>a[i];}
int main(){
  int n;
  cin>>n;
  n%=7;
  string a;
  if(n==1) a="fri";
  if(n==2) a="sat";
  if(n==3) a="sun";
  if(n==4) a="mon";
  if(n==5) a="tue";
  if(n==6) a="wed";
  if(n==0) a="thu";
  cout<<a<<endl;
  return 0;
}

C++: #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <utility>
#include <stack>
#include <functional>
#include <queue>
#include <cmath>
#include <set>
#include <bitset>

#define rep(i,j,k) for(int i=j;i<k;i++)
#define Sort(x) sort((x).begin(),(x).end())
#define fi first
#define se second
#define vi vector<int>
#define INF 1000000000
#define MOD 1000000009
#define pb push_back
#define mp make_pair
typedef long long ll;
typedef std::pair<int,int> pii;
int dx[4]={0,1,0,-1},dy[4]={1,0,-1,0};

using namespace std;


int main(){
    string s[]={"mon","tue","wed","thu","fri","sat","sun"};
    int x;cin>>x;
    int t=1;
    int ans=4;
    while(t!=x){
        t++;
        ans++;
        if(ans==7)ans=0;
    }
    cout<<s[ans]<<endl;
    
    return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int x;
    cin>>x;
    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;
          if(x%7==7) cout<<"thu"<<endl;
           if(x%7==0) cout<<"thu"<<endl;
return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int x;
	scanf("%d",&x);
	x=x%7;
	if(x==0) printf("thu\n");
	if(x==1) printf("fri\n");
	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");
	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
  string s[7]={"thu","fri","sat","sun","mon","tue","wed"};
  int d;
  cin>>d;
  cout<<s[d%7]<<endl;
  return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
int main(){
    int X;
    cin >>X;
    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;
    }else{
        cout<<"thu"<<endl;
    }
}

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

using namespace std;

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);

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

	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int (i)=(0);(i)<(int)(n);++(i))
using ll = long long;
using P = pair<int, int>;
using namespace std;

template<class T> void vin(vector<T>& v, int n) {
    v.resize(n);
    for (int i = 0; i < n; ++i) {
        cin >> v[i];
    }
}

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

int main() {
    int x;
    cin >> x;
    cout << ans[x%7] << endl;
}

C++: #include<stdio.h>
int main()
{
	int x,r;
	scanf("%d",&x);
	r=x%7;
	switch(r){
	case 1:
		printf("fri\n");
		break;
	case 2:
		printf("sat\n");
		break;
	case 3:
		printf("sun\n");
		break;
	case 4:
		printf("mon\n");
		break;
	case 5:
		printf("tue\n");
		break;
	case 6:
		printf("wed\n");
		break;
	default:
		printf("thu\n");
	}
    return 0;
}