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

C++: #include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a,b;
    cin>>a;
    b =a%7;
    if(b==0){
        cout<<"thu"<<endl;
    }if(b==1){
        cout<<"fri"<<endl;
    }if(b==2){
        cout<<"sat"<<endl;
    }if(b==3){
        cout<<"sun"<<endl;
    }if(b==4){
        cout<<"mon"<<endl;
    }if(b==5){
        cout<<"tue"<<endl;
    }if(b==6){
        cout<<"wed"<<endl;
    }
    
}

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

int main() {
  string s[7]={"mon","tue","wed","thu","fri","sat","sun"};
  int k=5,x;
  cin >> x;
  if(x<9) for(int i=9; i>x; i--) k=(k+6)%7;
  else for(int i=9; i<x; i++) k=(k+1)%7;
  cout << s[k] << endl;
  return 0;
}

C++: #include<iostream>
using namespace std;
 
int main(){
  int X;
  cin>>X;

switch ((X-9)%7) {
	case(0):
		cout<<"sat"<<endl;
		break;
	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;
	default:
		cout<<"fri"<<endl;
		break;
}

  return 0;
}

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

C++: 
#include <iostream>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <cmath>
#include <string>
#include <queue>
#include <stack>
#include <sstream>
using namespace std;
int main(){
	int x;
	string day[7]={"thu","fri","sat","sun","mon","tue","wed"};
	cin>>x;
	cout<<day[x%7]<<endl;
	return 0;
}

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

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

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

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

    if((X-1)%7==0){
        cout << "fri" << endl;
    }

    else if((X-2)%7==0){
        cout << "sat" << endl;
    }

    else if((X-3)%7==0){
        cout << "sun" << endl;
    }

    else if((X-4)%7==0){
        cout << "mon" << endl;
    }

    else if((X-5)%7==0){
        cout << "tue" << endl;
    }

    else if((X-6)%7==0){
        cout << "wed" << endl;
    }

    else if((X-7)%7==0){
        cout << "thu" << endl;
    }

    return 0;
}

C++: #include<iostream>
using namespace std;
 
int main(){
  int X;
  cin>>X;

switch ((X-2)%7) {
	case(0):
		cout<<"sat"<<endl;
		break;
	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;
	default:
		cout<<"fri"<<endl;
		break;
}

  return 0;
}

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

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

  int sa=X-9;
  if(sa>=0){
    switch(sa%7){
      case 0:cout<<"sat";break;
      case 1:cout<<"sun";break;
      case 2:cout<<"mon";break;
      case 3:cout<<"tue";break;
      case 4:cout<<"wed";break;
      case 5:cout<<"thu";break;
      case 6:cout<<"fri";break;
    }
  }
  else{
    sa*=-1;
    switch(sa%7){
      case 1:cout<<"fri";break;
      case 2:cout<<"thu";break;
      case 3:cout<<"wed";break;
      case 4:cout<<"tue";break;
      case 5:cout<<"mon";break;
      case 6:cout<<"sun";break;
    }
  }
  cout<<endl;
}

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

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

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

C++: #include <iostream>
#include <algorithm>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <numeric>
#include <bitset>
#include <cmath>

static const int MOD = 1000000007;
using ll = long long;
using u32 = unsigned;
using u64 = unsigned long long;
using namespace std;

template<class T> constexpr T INF = ::numeric_limits<T>::max()/32*15+208;

int main() {
    vector<string> v{"thu", "fri", "sat", "sun", "mon", "tue", "wed"};
    int n;
    cin >> n;
    cout << v[n%7] << "\n";
    return 0;
}