fun main(args: Array<String>) {
    val x = readLine()!!.toInt()-1
    val a = IntArray(30) {0}
    for (i in a.indices) {
        a[i] = i % 7
    }
    println(when(a[x]) {
        0 -> "fri"
        1 -> "sat"
        2 -> "sun"
        3 -> "mon"
        4 -> "tue"
        5 -> "wed"
        6 -> "thu"
        else -> ""
    })
}
