a,b=gets.split.map &:to_i c=[] (b+1).times{|y| (a+1).times{|x| c << x + 5 * y if x > 0 || y > 0 } } puts c.uniq