/**
  * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0008
  * Sum of 4 Integers
  */
object Main {
  def main(args: Array[String]): Unit = {
    Iterator.continually(io.StdIn.readLine()).takeWhile(_ != null).map(_.toInt)
      .map((n) => {
        (for (a <- 0 to math.min(9, n); b <- 0 to math.min(9, n); c <- 0 to math.min(9, n); d <- 0 to math.min(9, n))
          yield {
            a + b + c + d
          })
          .count(_ == n)
      })
      .foreach(println)
  }
}