using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OneAndFive { class Program { static void Main(string[] args) { int[] r = new int[601]; string[] s = Console.ReadLine().Split(' '); var a = int.Parse(s[0]); var b = int.Parse(s[1]); for (int i = 0; i <= a; i++) { for (int j = 0; j <= b; j++) { r[i + j * 5] = 1; } } for (int x = 1; x < 601; x++) { if(r[x] == 1) { Console.WriteLine(x); } } } } }