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

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

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

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

int main(){
    int n; cin >> n;
    cout << d[(n+4) % 7] << endl;
    return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    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>

using namespace std;

int main() {
	int x;
	cin >> x;
	switch (x % 7) {
	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 <string>
#include <utility>
#include <algorithm>
#include <map>
#include <set>
#include <vector>
#include <cmath>
#include <cstdlib>
#include <queue>
#include <stack>
#include <iomanip>

using namespace std;

#define REP(i, n) for(ll i = 0;i < n;i++)
#define REPR(i, n) for(ll i = n;i >= 0;i--)
#define FOR(i, m, n) for(ll i = m;i < n;i++)
#define FORR(i, m, n) for(ll i = m;i >= n;i--)
#define REPO(i, n) for(ll i = 1;i <= n;i++)
#define ll long long
#define INF (ll)1 << 60
#define MINF (-1 * INF)
#define ALL(n) n.begin(),n.end()
#define MOD 1000000007
#define P pair<ll, ll>

map<ll, string>m;
int main() {
	m[0] = "thu";
	m[1] = "fri";
	m[2] = "sat";
	m[3] = "sun";
	m[4] = "mon";
	m[5] = "tue";
	m[6] = "wed";
	ll n;
	cin >> n;
	cout << m[n % 7] << endl;
}

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

C++: #include <iostream>
#include <algorithm>
#include <cmath>
#include <map>
#include <vector>
#include <queue>
#include <functional>
#include <string>
#include <stack>
#include <set>
#include <sstream>
#include <iomanip>
#include <limits>
#include <cstring>

using namespace std;
using ll = long long;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
typedef pair<double, double >pd;
typedef pair<string, string> sP;
typedef pair<ll, P> PP;
typedef pair<P, P> PPP;

const ll MOD = 1e9 + 7;
const ll MOD2 = 998244353;
const ll INF = 1 << 30;
const ll INF2 = 9e18;
const double INF3 = 9e14;
const double eps = 1e-10;
const double PI = 3.14159265358979323846;
const int dx[4] = { 1,0,-1,0 }, dy[4] = { 0,1,0,-1 };

#define ALL(x) (x).begin(),(x).end()
#define ALLR(x) (x).rbegin(),(x).rend()
#define pb push_back
#define eb emplace_back
#define fr first
#define sc second




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

C++: #include <iostream>
using namespace std;
int main(void){
    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>
using namespace std;

char str[7][4] = {"thu", "fri", "sat", "sun", "mon", "tue", "wed"};
int main(){
	int n;
	scanf("%d", &n);
	printf("%s\n", str[n%7]);
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a;
    cin>>a;
    if(a==1||a==8||a==15||a==22||a==29)cout<<"fri"<<endl;
    else if(a==2||a==9||a==16||a==23||a==30)cout<<"sat"<<endl;
    else if(a==3||a==10||a==17||a==24)cout<<"sun"<<endl;
    else if(a==4||a==11||a==18||a==25)cout<<"mon"<<endl;
    else if(a==5||a==12||a==19||a==26)cout<<"tue"<<endl;
    else if(a==6||a==13||a==20||a==27)cout<<"wed"<<endl;
    else if(a==7||a==14||a==21||a==28)cout<<"thu"<<endl;
}

C++: #include <iostream>
using namespace std;
int main(void){
   int a;
   cin>>a;
  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;
  }
  else if(a==7){
      cout<<"thu"<<endl;
  }
  else if(a==8){
      cout<<"fri"<<endl;
  }
  else if(a==9){
      cout<<"sat"<<endl;
  }
  else if(a==10){
      cout<<"sun"<<endl;
  }
  else if(a==11){
      cout<<"mon"<<endl;
  }
  else if(a==12){
      cout<<"tue"<<endl;
  }
  else if(a==13){
      cout<<"wed"<<endl;
  }
  else if(a==14){
      cout<<"thu"<<endl;
  }
  else if(a==15){
      cout<<"fri"<<endl;
  }
  else if(a==16){
      cout<<"sat"<<endl;
  }
  else if(a==17){
      cout<<"sun"<<endl;
  }
  else if(a==18){
      cout<<"mon"<<endl;
  }
  else if(a==19){
      cout<<"tue"<<endl;
  }
  else if(a==20){
      cout<<"wed"<<endl;
  }
  else if(a==21){
      cout<<"thu"<<endl;
  }
  else if(a==22){
      cout<<"fri"<<endl;
  }
  else if(a==23){
      cout<<"sat"<<endl;
  }
  else if(a==24){
      cout<<"sun"<<endl;
  }
  else if(a==25){
      cout<<"mon"<<endl;
  }
  else if(a==26){
      cout<<"tue"<<endl;
  }
  else if(a==27){
      cout<<"wed"<<endl;
  }
  else if(a==28){
      cout<<"thu"<<endl;
  }
  else if(a==29){
      cout<<"fri"<<endl;
  }
  else if(a==30){
      cout<<"sat"<<endl;
  }
   return 0;
}

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

C++: #include<cstdio>

int main(void){
    char w[7][4]={"sun", "mon", "tue", "wed", "thu", "fri", "sat"};
    int X;
    scanf("%d", &X);
    printf("%s\n", w[(X+4)%7]);
    return(0);
}

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

int main(){
  int x,d,c,i;
  cin>>x;
  d=(x-9)%7;
  c = abs(d);
  if(x<=9){    
    string P[7]={"sat","fri","thu","wed","tue","mon","sun"};
    cout<<P[c]<<endl;
  }else{
    string P[7]={"sat","sun","mon","tue","wed","thu","fri"};
    cout<<P[c]<<endl;
  }
  return 0;
}