A,B=map(int, input().split()) print(*[x for x in range(1,A+5*B+1)if x%5 <= A],sep='\n')