a, b = map(int,input().split()) for bb in range(b+1): for aa in range(a+1): if aa+(5*bb) == 0: pass else: print(aa+(5*bb))