import scala.io.Source.stdin
import scala.math.{max,min}

object Main extends App {

  val p = (
    (
      for (i <- (0 until 19) ++ (17 to 0 by -1)) yield (i+3)*(i+2)*(i+1)/6 - max(2*(i-9)*(i-8)*(i-7)/3,0)
    ) ++
    (for (i <- 37 to 51) yield 0)
  )

  stdin.getLines.foreach { x => println(p(x.toInt)) }
}