fun main(args :Array<String>) {
    val map = hashMapOf<String, Int>(
        "SUN" to 7,
        "MON" to 6,
        "TUE" to 5,
        "WED" to 4,
        "THU" to 3,
        "FRI" to 2,
        "SAT" to 1
    )
    val s = readLine()!!
    println(map[s])
}

fun readInteger() = readLine()!!.toInt()
fun readStringList() = readLine()!!.split(" ")
fun readIntegerList() = readStringList().map(String::toInt)
fun readLongList() = readStringList().map(String::toLong)
