using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; using System.IO; class Program { static void Main() { new Magatro().Solve(); } } class Magatro { private int A, B; private void Scan() { var line = Console.ReadLine().Split(' '); A = int.Parse(line[0]); B = int.Parse(line[1]); } public void Solve() { Scan(); var hs = new HashSet(); for (int i = 0; i <= A; i++) { for (int j = 0; j <= B; j++) { hs.Add(i + j * 5); } } var ans = hs.ToArray(); Array.Sort(ans); for (int i = 1; i < ans.Length; i++) { Console.WriteLine(ans[i]); } } }