#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define pb push_back
#define pii pair<int,int>
#define pll pair<ll,ll>
#define uu first
#define vv second
#define MOD 1000000007
#define inf 1000000000
#define limit 10001000
set<ll> a;
ll ar[]={1, 5, 10, 50};
void solve(ll pos, ll sum)
{
if(pos==0)
{
a.insert(sum);
return;
}
for(int i=0; i<4; i++)
{
solve(pos-1, sum+ar[i]);
}
}
int main()
{
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
// ios_base::sync_with_stdio(0);
ll tc, test, i, n, y;
ll x=4;
// while(scanf("%lld", &n)==1)
for(i=1, y=0 ; i<=11; i++)
{
solve(i, 0);
// printf("%lld\n", a.size());
// cout<<i<<" "<<a.size()<<endl;
cout<<i<<" "<<a.size()<<" "<<a.size()-y<<" "<<(i+2)*(i+1)/2<<" "<<((i+2)*(i+1)/2)-(a.size()-y)<<endl;
y=a.size();
a.clear();
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiNkZWZpbmUgbGwgbG9uZyBsb25nCiNkZWZpbmUgdWxsIHVuc2lnbmVkIGxvbmcgbG9uZwojZGVmaW5lIHBiIHB1c2hfYmFjawojZGVmaW5lIHBpaSBwYWlyPGludCxpbnQ+CiNkZWZpbmUgcGxsIHBhaXI8bGwsbGw+CiNkZWZpbmUgdXUgZmlyc3QKI2RlZmluZSB2diBzZWNvbmQKI2RlZmluZSBNT0QgMTAwMDAwMDAwNwojZGVmaW5lIGluZiAxMDAwMDAwMDAwCiNkZWZpbmUgbGltaXQgMTAwMDEwMDAKCnNldDxsbD4gYTsKCmxsIGFyW109ezEsIDUsIDEwLCA1MH07Cgp2b2lkIHNvbHZlKGxsIHBvcywgbGwgc3VtKQp7CiAgICBpZihwb3M9PTApCiAgICAgICAgewogICAgICAgICAgICBhLmluc2VydChzdW0pOwogICAgICAgICAgICByZXR1cm47CiAgICAgICAgfQoKICAgIG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