a,b=gets.split.map &:to_i (b+1).times{|y| (a+1).times{|x| p x + 5 * y if x > 0 || y > 0 } }