#include <iostream>
int main(){
int dp[82][10];
for(int i = 0; i < 82; i++)
for(int j = 0; j < 10; j++)
dp[i][j] = 0;
dp[1][1] = 1;
for(int s = 1; s < 82; s++)
for(int n = 1; n < 10; n++)
for(int i = 0; i <= 9; i++){
dp[s][n] += ((s - i >= 0) ? dp[n-1][s-1] : 0);
}
for(int i = 1; i < 82; i++){
for(int j = 1; j < 10; j++)
std::cout << dp[i][j] << " ";
std::cout << std::endl;
}
std::cout << dp[1][9];
int pause;
std::cin >> pause;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKXsKCWludCBkcFs4Ml1bMTBdOwoJCglmb3IoaW50IGkgPSAwOyBpIDwgODI7IGkrKykKCQlmb3IoaW50IGogPSAwOyBqIDwgMTA7IGorKykKCQkJZHBbaV1bal0gPSAwOwoJCglkcFsxXVsxXSA9IDE7Cglmb3IoaW50IHMgPSAxOyBzIDwgODI7IHMrKykKCQlmb3IoaW50IG4gPSAxOyBuIDwgMTA7IG4rKykKCQkJZm9yKGludCBpID0gMDsgaSA8PSA5OyBpKyspewoJCQkJZHBbc11bbl0gKz0gKChzIC0gaSA+PSAwKSA/IGRwW24tMV1bcy0xXSA6IDApOwoJCQl9CgkJCQoJZm9yKGludCBpID0gMTsgaSA8IDgyOyBpKyspewoJCWZvcihpbnQgaiA9IDE7IGogPCAxMDsgaisrKQoJCQlzdGQ6OmNvdXQgPDwgZHBbaV1bal0gPDwgIiAiOwoJCXN0ZDo6Y291dCA8PCBzdGQ6OmVuZGw7Cgl9CgkKCXN0ZDo6Y291dCA8PCBkcFsxXVs5XTsKCQoJaW50IHBhdXNlOwoJc3RkOjpjaW4gPj4gcGF1c2U7CQkKfQ==