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<set>
using namespace std;
#include<iostream>
int	main(){
	/*
	while(true){
	
	int A,B,C,D,E,F,G,H,I,J,answer;
		
	cin >> A;
	if(A == 0) return 0;
	cin >> B >> C >> D >> E >> F >> G >> H >> I >> J;
	answer = A - B - C - D-E-F-G-H-I-J;
	cout << answer << endl;

	}
	*/
	/*
	int A,B,C,D,E,F;

	cin >> A, B, C, D;
	if(A < B, C, D){ 
		cout << B + C + D << endl;
	}
	
	else if(B < A, C, D){
		cout << A + C + D << endl;
	}

	else if(C < A && C < B && C < D){
		cout << A + B + D << endl;
	}

	else if(D < A && D < B && D < C){
		cout << A + B + C << endl;
	}

	if(E < F){
		cout << F << endl;
	}

	else{
		cout << E << endl;
	}
	
	return 0;
}*/
	/*
	int N, M;
	cin >> N >> M;
	cout << N + M << endl << N - M << endl << N * M << endl << N / M << endl;
}*/

/*int N, M; 
	cin >> N >> M;
	cout << N % M << endl;
}*/

/*	int N;
	cin >> N;
	cout << -(N % 2)+1 ;
}*/

	/*int A, B, C, D, E ;
	cin >> A >> B >> C >> D >> E;
	cout << (A + B + C + D + E) / 5 ;
}*/

	/*int A, B, C, D ;
	cin >> A >> B >> C >> D;
	cout << (A + B + C + D) / 60 << endl << (A + B + C + D) % 60 << endl;
	*/

/*	int A,B;
	cin >> A >> B;
	cout << ( A + B ) / 2 << endl;*/

/*	int m, f, b;
	cin >> m >> f >> b;

	if ( m + f >= b && m <= b ){
		cout << b - m << endl;
	}
	
	if ( m + f > b && m > b ){
		cout << 0 << endl;
	}


	if ( m + f < b ){
		cout << "NA" << endl;
	}*/

	int X , x ;
	cin >> X ;

	x = X % 7 ;

	if ( x == 2 ){
		cout << "sat" << endl;
	}

	if ( x == 3 ){
		cout << "san" << endl;
	}

	if ( x == 4 ){
		cout << "mon" << endl;
	}

	if ( x == 5 ){
		cout << "tue" << endl;
	}

	if ( x == 6 ){
		cout << "wed" << endl;
	}

	if ( x == 0 ){
		cout << "thu" << endl;
	}

	if ( x == 1 ){
		cout << "fri" << endl;
	}
}

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

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

int main(){
    int x;  cin>>x;
    while(x<9)x+=7;
    int a=x-9;

    int res=abs(a)%7;

//    if(x<9)res+=7;

    if(res==0)cout<<"sat"<<endl;
    if(res==1)cout<<"sun"<<endl;
    if(res==2)cout<<"mon"<<endl;
    if(res==3)cout<<"tue"<<endl;
    if(res==4)cout<<"wed"<<endl;
    if(res==5)cout<<"thu"<<endl;
    if(res==6)cout<<"fri"<<endl;





    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int a;
	cin >> a;
	switch (a % 7){
	case 0:
		cout << "tue"<<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 << "thu" << endl;
		break;
	case 6:
		cout << "wed" << endl;
		break;
	}
	return 0;
}

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

int main(){
  int D;
  cin >> D;
  D = (D+3)%7;
  switch(D){
    case(0): cout << "mon" << endl; break;
    case(1): cout << "tue" << endl;break;
    case(2): cout << "wed" << endl;break;
    case(3): cout << "thu" << endl;break;
    case(4): cout << "fri" << endl;break;
    case(5): cout << "sat" << endl;break;
    case(6): cout << "sun" << endl;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==0){
        cout<<"thu"<<endl;
    }
}

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

C++: #include <iostream>
using namespace std;
string week(int n){
	if(n==0){
		return "fri";
	}else if(n==1){
		return "sat";
	}else if(n==2){
		return "sun";
	}else if(n==3){
		return "mon";
	}else if(n==4){
		return "tue";
	}else if(n==5){
		return "wed";
	}else if(n==6){
		return "thu";
	}
}
int main(){
	//1=fri
	int n;cin>>n;n--;
	cout << week(n%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 <cstdio>
#include <string>
using namespace std;

int main() {
    int d;
    string days[] = {"sat", "sun", "mon", "tue", "wed", "thu", "fri"};
    scanf("%d", &d);
    d = (d-9) % 7;
    if (d < 0) d+= 7;
    printf("%s\n", days[d].c_str());
    return 0;
}

C++: #include <bits/stdc++.h>
#define px(str) cout<<(str)<<endl,exit(0);
#define pe(str) return cout<<(str)<<endl,0;
#define IF(a,b,c) ((a)?(b):(c))
using namespace std;

int main(int argc,char** argv){
	int a;
	cin>>a;
	string s[]={"thu","fri","sat","sun","mon","tue","wed"};
	cout<<s[a%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;

  }

  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 == 0 ){

    cout << "thu" <<endl;

  }

  return 0;

}

C++: #include "bits/stdc++.h"
#include<unordered_map>
#include<unordered_set>
#pragma warning(disable:4996)
using namespace std;

vector<string>sts{

"mon"
,"tue"
, "wed"
, "thu"
, "fri"
, "sat"
, "sun"
};

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

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