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: day = ["thu", "fri", "sat", "sun", "mon", "tue", "wed"]
x = int(input())
print(day[x % 7])

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

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

Python: x=int(input())
if 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')
  
elif x%7==0 :
  print('thu')
  
elif x%7==1 :
  print('fri')

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

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

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

Python: from datetime import date
 
weekdays = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]
 
x = int(input())
idx = date(2017, 9, x).weekday()
print(weekdays[idx])

Python: X= int(input())


if(X + 7) % 7 == 0:
     print('thu')
elif(X + 8) % 7 == 0:
    print('wed')
elif(X + 9) % 7 == 0:
    print('tue')
elif(X + 10) % 7 == 0:
    print('mon')
elif(X + 11) % 7 == 0:
    print('sun')
elif(X + 12) % 7 == 0:
    print('sat')
elif(X + 13) % 7 == 0:
    print('fri')

Python: X = int(input())
week = ['thu', 'fri', 'sat', 'sun', 'mon', 'tue','wed']
print(week[X%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: W = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"] * 10
n = int(input())
print(W[n+3])

Python: X=int(input())
sut=9-7
fri=9-1-7  
thu=9-2-7
wed=9-3
tue=9-4
mon=9-5
sun=9-6
if X==sut or X==sut+7 or X==sut+7*2 or X==sut+7*3 or X==sut+7*4:
  print("sat")
if X==fri or X==fri+7 or X==fri+7*2 or X==fri+7*3 or X==fri+7*4:
  print("fri")
if X==thu+7 or X==thu+7*2 or X==thu+7*3 or X==thu+7*4:
  print("thu")
if X==wed or X==wed+7 or X==wed+7*2 or X==wed+7*3:
  print("wed")
if X==tue or X==tue+7 or X==tue+7*2 or X==tue+7*3:
  print("tue")
if X==mon or X==mon+7 or X==mon+7*2 or X==mon+7*3:
  print("mon")
if X==sun or X==sun+7 or X==sun+7*2 or X==sun+7*3:
  print("sun")

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

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

Python: x = int(input())
a = ['mon','tue','wed','thu','fri','sat','sun']

print(a[(x+3) % 7])

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

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

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

Python: from datetime import date
days = {i: d for i, d in enumerate(["mon", "tue", "wed", "thu", "fri", "sat", "sun"])}
day = int(input())
result = date(2017, 9, day)
index = result.weekday()
print(days[index])

Python: from datetime import date

weekdays = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]

x = int(input())
idx = date(2017, 9, x).weekday()
print(weekdays[idx])

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

print(table[(X+3)%7])

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

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

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

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

Python: X = int(input())
if X % 7 == 0:
  print('thu')
if X % 7 == 1:
  print('fri')
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')

Python: d = ["fri", "sat", "sun", "mon", "tue", "wed", "thu"]
d = [None] + d * 4 + d[:2]
print(d[int(input())])

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: w=["thu","fri","sat","sun","mon","tue","wed"]
print(w[int(input())%7])

Python: X=int(input())
if(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")
elif(X%7==0):
  print("thu")
else:
  print("fri")

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

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:
  n=int(input())
  if n%7==0:
    print('{}'.format('thu'))
  elif n%7==1:
    print('{}'.format('fri'))
  elif n%7==2:
    print('{}'.format('sat'))
  elif n%7==3:
    print('{}'.format('sun'))
  elif n%7==4:
    print('{}'.format('mon'))
  elif n%7==5:
    print('{}'.format('tue'))  
  else:
    print('{}'.format('wed'))

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

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

Python: a = int(input())
week = {0:"thu",1:"fri",2:"sat",3:"sun",4:"mon",5:"tue",6:"wed"}
print(week[a%7])

Python: x= int(input())

if x%7 == 3:
  print("sun")

elif 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")