using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); public static void Main() { Solve(); } static void Solve() { var m = NN; var n = NN; WriteLine(Count(m, n)); } static string Count(int m, int n) { if (m < n) { return "00000000"; } if (n > m / 2) n = m - n; var mod = 100_000_000; var ans = 1L; var count2 = 0; var count5 = 0; var dic = new Dictionary(); for (var i = 0; i < n; ++i) { var ch = m - i; while (ch % 2 == 0) { ++count2; ch /= 2; } while (ch % 5 == 0) { ++count5; ch /= 5; } ans = ans * ch % mod; var pa = i + 1; while (pa % 2 == 0) { --count2; pa /= 2; } while (pa % 5 == 0) { --count5; pa /= 5; } if (dic.ContainsKey(pa)) ans = ans * dic[pa] % mod; else { var rev = ModInv(pa, mod); dic[pa] = rev; ans = ans * rev % mod; } } ans = ans * Exp(2, count2, mod) % mod * Exp(5, count5, mod) % mod; return ans.ToString("00000000"); } // a ^ -1 mod m を求める static int ModInv(int a, int mod) { (int g, int x, int y) = XGcd(a, mod); return (x + mod) % mod; } // 拡張ユークリッド互除法 ax + by = gcd(a, b) を満たす x, y を求める static (int g, int x, int y) XGcd(int a, int b) { int x0 = 1, y0 = 0, x1 = 0, y1 = 1; while (b != 0) { var q = a / b; var prevA = a; a = b; b = prevA % b; var prevX0 = x0; var prevY0 = y0; x0 = x1; x1 = prevX0 - q * x1; y0 = y1; y1 = prevY0 - q * y1; } return (a, x0, y0); } static long Exp(long n, long p, int mod) { long _n = n % mod; var _p = p; var result = 1L; if ((_p & 1) == 1) result *= _n; while (_p > 0) { _n = _n * _n % mod; _p >>= 1; if ((_p & 1) == 1) result = result * _n % mod; } return result; } }