using System; using System.Collections.Generic; using System.Linq; class test { static void Main() { new aaaa().Solve(); } } class aaaa { private int one, five; private void Scan() { var line = Console.ReadLine().Split(' '); one = int.Parse(line[0]); five = int.Parse(line[1]); } public void Solve() { Scan(); var cash = new HashSet(); for (int i = 0; i <= one; i++) { for (int j = 0; j <= five; j++) { cash.Add(i + (j * 5)); } } var answer = cash.ToArray(); Array.Sort(answer); for (int i = 1; i < answer.Length; i++) { Console.WriteLine(answer[i]); } } }