a='@F-1]KPL_a?=a\V$SNX$ ^5 " \'N )O!O<0"8%' d=[n=0]*?d gets.to_i.times{d[a[n=-~n%55]=(a[n]-a[n-24])%?d]+=1} (0..99).zip(d){|c|puts c*" "}