
input = gets

key = ['SUN','MON','TUE','WED','THU','FRI','SAT']

if input == key[0] then
    p 7
elsif input == key[1] then
    p 6
elsif input == key[2] then
    p 5
elsif input == key[3] then
    p 4
elsif input == key[4] then
    p 3
elsif input == key[5] then
    p 2
elsif input == key[6] then
    p 1
end