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;

typedef long long ll;
typedef pair<ll, ll> P;

#define pb push_back
#define rep(i, n) for(int i = 0; i < (n); i++)
#define FOR(i, a, n) for(int i = a; i < (n); i++)
#define mod (ll)(1e9+7)
#define int ll

__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}

signed main() {
  ll a;
  string result;
  cin >> a;
  a %= 7;
  if (a == 1) result = "fri";
  else if(a == 2) result = "sat";
  else if(a == 3) result = "sun";
  else if(a == 4) result = "mon";
  else if(a == 5) result = "tue";
  else if(a == 6) result = "wed";
  else if(a == 7) result = "thu";
  cout << result << endl;
}

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

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

	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <string>
#include <stack>
#include <cmath>
#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--)
using namespace std;
//
const int inf=1e9+7;
const int mod=1e9+7;
//
struct poi{
	int X;int Y;int Z;
	bool operator<(const poi&R)const{
		return X==R.X ? Y==R.Y ? Z<R.Z : Y<R.Y : X<R.X;
	}
};
//
ll GCD(ll a,ll b){
	return (b==0)?(a):(GCD(b,a%b));
}
ll LCM(ll a,ll b){
	return a/GCD(a,b)*b;
}
//
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{
		cout<<"wed"<<endl;
	}
	return 0;
}

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

C++: #include<iostream>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<cctype>
#include<math.h>
#include<string>
#include<string.h>
#include<stack>
#include<queue>
#include<vector>
#include<utility>
#include<set>
#include<map>
#include<stdlib.h>
#include<iomanip>

using namespace std;

#define ll long long
#define ld long double
#define EPS 0.0000000001
#define INF 1e9
#define LINF (ll)INF*INF
#define MOD 1000000007
#define rep(i,n) for(int i=0;i<(n);i++)
#define loop(i,a,n) for(int i=a;i<(n);i++)
#define all(in) in.begin(),in.end()
#define shosu(x) fixed<<setprecision(x)

#define int ll //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

typedef vector<int> vi;
typedef vector<string> vs;
typedef pair<int,int> pii;
typedef vector<pii> vp;

int gcd(int a, int b){
    if(b==0) return a;
    return gcd(b,a%b);
}
int lcm(int a, int b){
    return a/gcd(a,b)*b;
}


signed main(void) {
    int n;
    cin >> n;
    switch (n%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;
        case 6:cout << "wed";break;
    }
    cout << endl;
}

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

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

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

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

    switch(N%7){
        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;
        case 0 : cout<<"thu\n"; break;
        case 1 : cout<<"fri\n"; break;
        default : break;
    }
}

C++: #include <iostream>

using namespace std;

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

	int k = 0;
	k = n % 7;
	if (k == 2)
	{
		cout << "sat" << endl;
	}
	else if (k == 1)
	{
		cout << "fri" << endl;
	}
	else if (k == 0)
	{
		cout << "thu" << endl;
	}
	else if (k == 6)
	{
		cout << "wed" << endl;
	}
	else if (k == 5)
	{
		cout << "tue" << endl;
	}
	else if (k == 4)
	{
		cout << "mon" << endl;
	}
	else
	{
		cout << "sun" << endl;
	}
}

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

int main() {
  int x;

  vector<string> v{"thu", "fri", "sat", "sun", "mon", "tue", "wed"};

  cout << v[x % 7] << endl;
}

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

C++: //============================================================================
// Name        : AOL.cpp
// Author      : Akari Fujii
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <cctype>
#include <algorithm>
using namespace std;
typedef long long ll;

int main() {


	int x;
	cin>>x;

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




}

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

int main(){
     int x;

     cin >> x;

     if(x%7 == 4){
    	 cout << "mon" << endl;
     }
     if(x%7 == 5){
    	 cout << "tue" <<endl;
     }
     if(x%7 == 6){
    	 cout << "wed"<<endl;
     }
     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;
     }

     return 0;

}