eolymp
bolt
Try our new interface for solving problems
Problems

How Many?

How Many?

Preparing for the calculus exam, Petya spread out $n$ different cheat sheets in front of himself. They were his salvation, as throughout the entire semester Petya had never bothered to properly study the material. There were so many cheat sheets that they didn’t fit into any pocket. Therefore, Petya decided to calculate the maximum number of cheat sheets he could take with him to the exam. And then the question arose: how many ways are there in total to choose the required number of cheat sheets? \InputFile Contains the total number of cheat sheets $n~(1 \le n \le 12)$ and the number of cheat sheets $k~(0 \le k \le n)$ that Peter can take with him. \OutputFile Print the number of ways to choose $k$ cheat sheets from $n$.
Time limit 1 second
Memory limit 128 MiB
Input example #1
3 2
Output example #1
3
Input example #2
4 1
Output example #2
4
Source 2012 All-Ukrainian Collegiate Programming Contest Round I Training Contest, April 19