The Stirling number of the second kind
represents
the number of ways
to partition a set of
things into
nonempty subsets.
For example, there are seven ways to split a four-element set into two parts:
.
Problem
Write a program that reads two positive integers
and
,
computes
, and writes the result.
Input specification
The input consists two integers
and
separated by
a space, with
.
Output specification
The output should be the integer
.
Sample input
4 2
1