#include <stdio.h>
int main() {
int a, b, c, d, freq[37] = {0}, i;
#define _(x) for (x = 0; x <= 9; x++)
_(a) _(b) _(c) _(d) freq[a + b + c + d]++;
for (i
= 0; i
<= 36; i
++) printf("%d\t%d\n", i
, freq
[i
]); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkgewogIGludCBhLCBiLCBjLCBkLCBmcmVxWzM3XSA9IHswfSwgaTsKI2RlZmluZSBfKHgpIGZvciAoeCA9IDA7IHggPD0gOTsgeCsrKQogIF8oYSkgXyhiKSBfKGMpIF8oZCkgZnJlcVthICsgYiArIGMgKyBkXSsrOwogIGZvciAoaSA9IDA7IGkgPD0gMzY7IGkrKykgcHJpbnRmKCIlZFx0JWRcbiIsIGksIGZyZXFbaV0pOwogIHJldHVybiAwOwp9Cg==