import scala.io.Source.stdin

object Main {
  def sumEqInt(n: Int): Int = {
    (for (i <- 0 to 9;
      j <- 0 to 9;
      k <- 0 to 9;
      l <- 0 to 9 if i+j+k+l == n) yield s"$i$j$k$l").length
  }

  def main(args: Array[String]): Unit = {    
    val num = stdin.getLines
    num.foreach(i => println(sumEqInt(i.toInt)))
  }
}