fun main(args: Array<String>) {
    val x = readLine()!!.toLong()
    val mod = x % 11
    val d = when {
        mod == 0L -> 0
        mod <= 6L -> 1
        else -> 2
    }
    println(x / 11 * 2 + d)
}
