/*
using System;
namespace ConsoleApp7
{
class Program
{
static void Main(string[] args)
{
int x = Convert.ToInt32(Console.ReadLine());
string a = Console.ReadLine();
string[] b = a.Split(' ');
int y = Convert.ToInt32(Console.ReadLine());
string c = Console.ReadLine();
string[] d = c.Split(' ');
int [] q = new int[d.Length];
int[] ans = new int[10000005];
for(int i = 0; i<x; i++)
{
int p = Convert.ToInt32(b[i]);
ans[p] = 1;
}
for(int i = 0; i<y; i++) {
int p = Convert.ToInt32(d[i]);
Console.Write(ans[p] + " ");
}
}
}
}
*/
/*
using System;
namespace ConsoleApp
{
class Program
{
static void Main(string [] args)
{
int n = Convert.ToInt32(Console.ReadLine());
int[,] map = new int[n, n];
int k = 1;
for (int i = 0; i < n; i++)
{
for (int j = 0; j<n; j++)
{
map[j, i] = k++;
}
}
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
Console.Write(map[i, j] + " ");
}
Console.WriteLine();
}
}
}
}
*/
/*
using System;
namespace ConsoleApp
{
class Program
{
static void Main(string [] args)
{
int x = Convert.ToInt32(Console.ReadLine());
int[,] map = new int[x, x];
int k = 1;
for(int i = 0; i<x; i++)
{
for(int j = 0; j<x; j++)
{
map[i, j] = k++;
}
}
for(int i = 0; i<x; i++)
{
for(int j = 0; j<x; j++)
{
Console.Write(map[j,i] + " ");
}
Console.WriteLine();
}
}
}
}
*/
/*
using System;
namespace ConsoleApp
{
class Program
{
static void Main(string [] args)
{
string x = Console.ReadLine();
string[] y = x.Split(' ');
int p = Convert.ToInt32(y[0]);
int k = Convert.ToInt32(y[1]);
int[,] map = new int[p,k];
int t = 1;
for(int i = p-1; i>=0; i--)
{
for (int j = k-1; j>=0; j--)
{
map[i, j] = t++;
}
}
for(int i = 0; i<p; i++)
{
for(int j = 0; j<k; j++)
{
Console.Write(map[i,j]+" ");
}
Console.WriteLine();
}
}
}
}
*/
/*
using System;
namespace ConsoleApp
{
class Program
{
static void Main(string [] args)
{
string a = Console.ReadLine();
string [] b = a.Split(' ');
int n = Convert.ToInt32(b[0]);
int m = Convert.ToInt32(b[1]);
int[,] map = new int[n, m];
int k = 1;
* 6 4 2
* 5 3 1
*
* 1 3 5
* 2 4 6
for (int i = 0; i < m; i++)
{
for (int j = 0; j < n; j++)
{
map[j, i] = k++;
}
}
for(int i=n-1; i>=0; i--)
{
for(int j=m-1; j>=0; j--)
{
Console.Write(map[i, j] + " ");
}
Console.WriteLine();
}
}
}
}
*/
1098, 1099