#include <iostream>
using namespace std;
int main(){
std::ios::sync_with_stdio(false);
unsigned long long n, m, c[101][101], i;
for (n = 0; n <= 100; n++){
c[n][0] = c[n][n] = 1;
for (m = 1; m < n; m++)
c[n][m] = c[n - 1][m] + c[n - 1][m - 1];
}
while (cin >> n >> m, n){
cout << n << " things taken " << m << " at a time is " << c[n][m] << " exactly." << endl;
}
}