Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
	"time"
)

var sc = bufio.NewScanner(os.Stdin)

//Sliceconvtoi ...
func Sliceconvtoi() []int {
	strs := strings.Split(sc.Text(), " ")

	var ints []int
	var x int

	for _, s := range strs {
		x, _ = strconv.Atoi(s)
		ints = append(ints, x)
	}

	return ints
}

func main() {
	for sc.Scan() {
		var dt string
		i := Sliceconvtoi()
		t := time.Date(2017, 9, i[0], 0, 0, 0, 0, time.Local)

		switch t.Weekday() {
		case time.Monday:
			dt = "mon"
		case time.Tuesday:
			dt = "tue"
		case time.Wednesday:
			dt = "wed"
		case time.Thursday:
			dt = "thu"
		case time.Friday:
			dt = "fri"
		case time.Saturday:
			dt = "sat"
		case time.Sunday:
			dt = "sun"
		default:
		}

		fmt.Println(dt)
	}

}

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

using namespace std;

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int x;
    cin >> x;
    if (x >= 9) x -= 9;
    else {
        x += 5;
    }
    if (x % 7 == 0) {
        cout << "sat" << '\n';
    } else if (x % 7 == 1) {
        cout << "sun" << '\n';
    } else if (x % 7 == 2) {
        cout << "mon" << '\n';
    } else if (x % 7 == 3) {
        cout << "tue" << '\n';
    } else if (x % 7 == 4) {
        cout << "wed" << '\n';
    } else if (x % 7 == 5) {
        cout << "thu" << '\n';
    } else {
        cout << "fri" << '\n';
    }
    return 0;
}

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

C++: #include<stdio.h>
int main(void)
{
	int x,i;
	char a[8][4]={"fri","sat","sun","mon","tue","wed","thu"};
	scanf("%d",&x);
	if(x%7!=0) printf("%s\n",a[x%7-1]);
	else printf("thu\n");
}

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

int main(){
    int X;
    int day;
    vector<string> youbi{"thu","fri","sat","sun","mon","tue","wed"};
    cin>>X;
    day=X%7;
    cout<<youbi[day]<<endl;
    return 0;
}

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

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

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

C++: #include <iostream>

using namespace std;

int main() {
    string date[7] = {"fri", "sat", "sun", "mon", "tue", "wed", "thu"};

    int X;
    cin >> X;

    cout << date[X % 7 - 1] << endl;
}

C++: #include <iostream>

using namespace std;

int main(){
	int x;

	cin >> x;

	if (x % 7 == 2){
		cout << "sat" << endl;
	}else if (x % 7 == 1){
		cout << "fri" << 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;
	}else {
		cout << "thu" << endl;
	}
}

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

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

int main(){
	int X;
	cin >> X;
	cout << day[X%7] << endl;

	return 0;
}

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


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

}

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