#include<iostream>
using namespace std;
void f(int a, int b);
void main()
{
int a, b, tem;
cin >> a >> b;
if (a > b)
{
tem = a;
a = b;
b = tem;
}
f(a, b);
}
void f(int a, int b)
{
int i, j;
j = 0;
for (i = a + 1; i < b; i++)
if (i % 2 == 0)
{
j++;
cout << i << " " << endl;
}
if (j % 5 == 0)
cout << endl;
getchar();
getchar();
}
using namespace std;
void f(int a, int b);
void main()
{
int a, b, tem;
cin >> a >> b;
if (a > b)
{
tem = a;
a = b;
b = tem;
}
f(a, b);
}
void f(int a, int b)
{
int i, j;
j = 0;
for (i = a + 1; i < b; i++)
if (i % 2 == 0)
{
j++;
cout << i << " " << endl;
}
if (j % 5 == 0)
cout << endl;
getchar();
getchar();
}