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;

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

#define pb push_back
#define rep(i, a, n) for(int i = (a); i < (n); i++)
#define dep(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() {
  string h[7] = {"fri", "sat", "sun", "mon", "tue", "wed", "thu"};
  int x;
  cin >> x;
  x--;
  cout << h[x % 7] << endl;
}

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() {
	string day[7] = {
    "fri",
    "sat",
    "sun",
    "mon",
    "tue",
    "wed",
    "thu"
  };
  ll a;
  cin >> a;
  a %= 7;
  cout << day[a - 1] << endl;
}

C++: #include <stdio.h>
#include <string>

int main(){

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

    int x;
    scanf("%d",&x);
    int amari = (x-1) % 7;
    printf("%s\n", day[amari].c_str());

    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 << "wed";
	cout << endl ;
	return 0 ;
}

C++: #include <stdio.h>
#include <iostream>
#include <string>
#include <cstdlib>

using namespace std;

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

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

C++: #include <stdio.h>

int main(){
  int a, b, c;
  scanf("%d",&a);
  switch(a%7){
    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;
    case 0: printf("thu\n");break;
    case 1: printf("fri\n");break;
  }
  return 0;
}

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

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

C++: #include <iostream>
#include <algorithm>
#include <math.h>
#include <cmath>
#include <stdio.h>
#include <cstring>
#include <string.h>
#include <string>
#include <sstream>
#include <iomanip>

using namespace std;

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

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

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

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;
    case 6:
        cout << "wed";
        break;
    }
    cout << "\n";
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
    int a;
    scanf("%d",&a);
    if(a==2 ||a==9 || a==16 || a==23 || a==30) cout <<"sat"<< endl;
    if(a==1 || a==8 || a==15 || a==22 || a==29) cout <<"fri"<< endl;
    if(a==3 || a==10 || a==17 || a==24) cout <<"sun"<< endl;
    if(a==4 || a==11 || a==18 || a==25) cout <<"mon"<< endl;
    if(a==5 || a==12 || a==19 || a==26) cout <<"tue"<< endl;
    if(a==6 || a==13 || a==20 || a==27) cout <<"wed"<< endl;
    if(a==7 || a==14 || a==21 || a==28) cout <<"thu"<< endl;
    return 0;
}

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

int main(void){
  int n;
  cin >> n;
  cout << &"thu\0fri\0sat\0sun\0mon\0tue\0wed"[n%7*4] << endl;
  return 0;
}

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

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

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

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