fork download
  1. n,x=input()
  2. i,f=0,[]
  3. while i<x:v=[sum(f[i-n:]),1][i<n];f.append(v);print v;i+=1
Success #stdin #stdout 0.01s 7144KB
stdin
3,8
stdout
1
1
1
3
5
9
17
31