fun main (args:Array<String>){
    val dayOfWeek = readLine()!!
    if(dayOfWeek == "SUN") print(7)
    if(dayOfWeek == "MON") print(6)
    if(dayOfWeek == "TUE") print(5)
    if(dayOfWeek == "WED") print(4)
    if(dayOfWeek == "THU") print(3)
    if(dayOfWeek == "FRI") print(2)
    if(dayOfWeek == "SAT") print(1)
}