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

}

Python: X = int(input())

if X%7 == 2 :
  print('sat')
if X%7 == 3:
  print('sun')
if X%7 == 4:
  print('mon')
if X%7 == 5:
  print('tue')
if X%7 == 6 :
  print('wed')
if X%7 == 0:
  print('thu')
if X%7 == 1:
  print('fri')

Python: D = ["thu", "fri", "sat", "sun", "mon", "tue", "wed"]
x = int(input())
print(D[x%7])

Python: day = ["sat","sun","mon","tue","wed","thu","fri"]
dayf = ["thu","fri","sat","sun","mon","tue","wed"]
x = int(input())
if x < 9:
        print(dayf[x%7])
else:
        print(day[abs(x-9)%7])

Python: X = int(input())
if(X % 7 == 0):
    print("thu")
elif(X % 7 == 1):
    print("fri")
elif(X % 7 == 2):
    print("sat")
elif(X % 7 == 3):
    print("sun")
elif(X % 7 == 4):
    print("mon")
elif(X % 7 == 5):
    print("tue")
elif(X % 7 == 6):
    print("wed")

Python: 
X=int(input())
Day=["mon","tue","wed","thu","fri","sat","sun"]
a=X%7
if a==2 or a==3:
  print(Day[a+3])
elif a==4 or a==5 or a==6:
  print(Day[a-4])
elif a==0 or a==1:
  print(Day[a+3])

Python: 
import datetime
import locale

d = int(input())
dt = datetime.datetime(2017,9,d)

print(dt.strftime("%a").lower())

Python: print(["thu","fri","sat","sun","mon","tue","wed"][int(input())%7])

Python: print(["thu","fri","sat","sun","mon","tue","wed"][int(input())%7])

Python: a=int(input())
if a==1 or a==8 or a==15 or a==22 or a==29:
    print("mon")
if a==2 or a==9 or a==16 or a==23 or a==30:
    print("tue")
if a==3 or a==10 or a==17 or a==24:
    print("wed")
if a==4 or a==11 or a==18 or a==25:
    print("thu")
if a==5 or a==12 or a==19 or a==26:
    print("fri")
if a==6 or a==13 or a==20 or a==27:
    print("sat")
if a==7 or a==14 or a==21 or a==28:
    print("sun")

Python: X = int(input())
X = (X-9)%7
if X<0: X = X+7
y = ''
if X==0:
	y = 'sat'
elif X==1:
	y = 'sun'
elif X==2:
	y = 'mon'
elif X==3:
	y = 'tue'
elif X==4:
	y = 'wed'
elif X==5:
	y = 'thu'
elif X==6:
	y = 'fri'
print(y)

Python: day = ["fri", "sat", "sun", "mon", "tue", "wed", "thu"]
x = int(input())
print(day[abs(x - 1) % 7])

Python: print(("thu", "fri", "sat", "sun", "mon", "tue", "wed")[int(input()) % 7])

Python: week=["thu","fri","sat","sun","mon","tue","wed"]
n=int(input())
print(week[n%7])

Python: X = int(input())
temp = X % 7

if temp == 0:
    print("thu")
elif temp == 1:
    print("fri")
elif temp == 2:
    print("sat")
elif temp == 3:
    print("sun")
elif temp == 4:
    print("mon")
elif temp == 5:
    print("tue")
elif temp == 6:
    print("wed")

Python: x=int(input())
if x%7==0:
   print("thu");
elif x%7==1:
   print("fri");
elif x%7==2:
   print("sat");
elif x%7==3:
   print("sun");
elif x%7==4:
   print("mon");
elif x%7==5:
   print("tue");
else :
   print("wed");

Python: D = ["thu", "fri", "sat", "sun", "mon", "tue", "wed"]
x = int(input())
print(D[x%7])

Python: x_ = input()
x = int(x_)
weeks = ['mon','tue','wed','thu','fri','sat','sun']
week = x%7+3
if week >= 7:
    week = week-7
print(weeks[week])

Python: D =["thu", "fri", "sat", "sun", "mon", "tue", "wed"]
x = int(input())
print(D[x%7])

Python: a=int(input())
if a==1 or a==8 or a==15 or a==22 or a==29:
    print("fri")
if a==2 or a==9 or a==16 or a==23 or a==30:
    print("sat")
if a==3 or a==10 or a==17 or a==24:
    print("sun")
if a==4 or a==11 or a==18 or a==25:
    print("mon")
if a==5 or a==12 or a==19 or a==26:
    print("tue")
if a==6 or a==13 or a==20 or a==27:
    print("wed")
if a==7 or a==14 or a==21 or a==28:
    print("thu")

Python: D = ["thu", "fri", "sat", "sun", "mon", "tue", "wed"]
x = int(input())
print(D[x%7])

Python: print(("thu","fri","sat","sun","mon","tue","wed")[int(input())%7])

Python: # coding: utf-8
# Your code here!
X=int(input())

if X%7==1:
    print('fri')
elif X%7==2:
    print('sat')
elif X%7==3:
    print('sun')
elif X%7==4:
    print('mon')
elif X%7==5:
    print('tue')
elif X%7==6:
    print('wed')
else:
    print('thu')

Python: x = int(input())

if (x%7 ==1):
  print("fri")
elif (x%7 ==2):
  print("sat")
elif (x%7 ==3):
  print("sun")
elif (x%7 ==4):
  print("mon")
elif (x%7 ==5):
  print("tue")
elif (x%7 ==6):
  print("wed")
else:
  print("thu")

Python: num = int(input()) #標準入力
if num % 7 == 0:print("thu") #numを7で割った余りが0なら"thu"を出力する
if num % 7 == 1:print("fri") #numを7で割った余りが1なら"fri"を出力する
if num % 7 == 2:print("sat") #numを7で割った余りが2なら"sat"を出力する
if num % 7 == 3:print("sun") #numを7で割った余りが3なら"sun"を出力する
if num % 7 == 4:print("mon") #numを7で割った余りが4なら"mon"を出力する
if num % 7 == 5:print("tue") #numを7で割った余りが5なら"tue"を出力する
if num % 7 == 6:print("wed") #numを7で割った余りが6なら"wed"を出力する

Python: import datetime
dic = ["mon","tue","wed","thu","fri","sat","sun"]
now = datetime.datetime(2017, 9, int(input()))
print(dic[now.weekday()])

Python: X = int(input())

if X%7 == 4:
    print("mon")
elif X%7 == 5:
    print("tue")
elif X%7 == 6:
    print("wed")
elif X%7 == 0:
    print("thu")
elif X%7 == 1:
    print("fri")
elif X%7 == 2:
    print("sat")
elif X%7 == 3:
    print("sun")

Python: day = int(input())
Date = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"] * 2
a = day % 7
print(Date[a + 3])

Python: days = ["thu","fri","sat","sun","mon","tue","wed"]
a = int(input())
print(days[a%7])

Python: def main():
    w = ['fri','sat','sun','mon','tue','wed','thu']
    x = int(input()) - 1
    print(w[x%7])
   
if __name__ == '__main__':
    main()

Python: while True:
  for i in range(1,31):
    n=int(input())
    if i%7==0:
      print('{}'.format('thu'))
    elif i%7==1:
      print('{}'.format('fri'))
    elif i%7==2:
      print('{}'.format('sat'))
    elif i%7==3:
      print('{}'.format('san'))
    elif i%7==4:
      print('{}'.format('mon'))
    elif i%7==5:
      print('{}'.format('tue'))  
    else:
      print('{}'.format('wed'))

Python: youbi = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]
print(youbi[(int(input())-4) % 7])

Python: X = int(input())

if X % 7 == 0:
    print("thu")
elif X % 7 ==1:
    print("fri")
elif X % 7 ==2:
    print("sat")
elif X % 7 ==3:
    print("sun")
elif X % 7 ==4:
    print("mon")
elif X % 7 ==5:
    print("tue")
elif X % 7 ==6:
    print("wed")

Python: M =["mon","tue","wed","thu","fri","sat","sun"]*10

n = int(input())
print(M[n+3])

Python: 
W = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"] * 10
n = int(input())
print(W[n+3])

Python: n = ("thu","fri","sat","sun","mon","tue","wed")
X = int(input())

print(n[X%7])

Python: ans=["thu","fri","sat","sun","mon","tue","wed"]
i=int(input())
print(ans[i%7])

Python: lis = ["thu","fri","sat","sun","mon","tue","wed"]
print(lis[int(input()) % 7])

Python: X = int(input())

s = [0,1,2,3]

if (X == 9-7-1):
  print('fri')
elif (X == 9-7):
  print('sat')
elif (X == 9-7+1):
  print('sun')
elif (X == 9-7+2):
  print('mon')
elif (X == 9-7+3):
  print('tue')
elif (X == 9-7+4):
  print('wed')
elif (X == 9-7+5):
  print('thu')
elif (X == 9-7+6):
  print('fri')

for i in s:
  if(X == 9+7*i):
    print('sat')
  elif (X == (9+7*i)+1):
    print('sun')
  elif (X == (9+7*i)+2):
    print('mon')
  elif (X == (9+7*i)+3):
    print('tue')
  elif (X == (9+7*i)+4):
    print('wed')
  elif (X == (9+7*i)+5):
    print('thu')
  elif (X == (9+7*i)+6):
    print('fri')

Python: x = int(input())
l = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]
print(l[(x-4)%7])