object Main
  extends App {
  val n                 = readInt
  val seq: Seq[Boolean] = for {
    a <- 0 to 9
    b <- a to 9
    c <- b to 9
    d <- c to 9
  } yield if (a + b + c + d == n) true else false
  println(seq.count(b => b))
}
