#include <bits/stdc++.h>
using namespace std;
struct note{
int a,b;
};
queue<note>q;
int main(){
freopen("chuanqiu,out.txt","w",stdout);
for(int n=1;n<=30;n++){
for(int m=1;m<=30;m++){
long long cnt=0;
q.push({0,0});
while(!q.empty() && q.front().a<=n){
note fr=q.front();
q.pop();
for(int i=-1;i<=1;i+=2){
int x=fr.a+1;
int y=(fr.b+i)%m;
if(y<0)y+=m;
q.push({x,y});
if(x==n && y==0)cnt++;
}
}
cout<<cnt<<",";
}
}
return 0;
}