object Main extends App {
  for (i <- 0 until 50) {
    val strn = readLine()
    if (strn.nonEmpty) {
      val n = strn.toInt
      val sumperms = for {
        a <- 0 to 9
        b <- 0 to 9
        c <- 0 to 9
        d <- 0 to 9
      } yield { a + b + c + d }
      println(sumperms.count(_==n))
    }
  }
}

