using System.Collections.Generic;
public static void Main()
string[] first = ("3 1 2 2 3").Split(null);
int N = int.Parse(first[0]);
int X = (int.Parse(first[1]) - 1);
int Y = (int.Parse(first[2]) - 1);
int Z = (int.Parse(first[3]) - 1);
int T = (int.Parse(first[4]) - 1);
List<int> list = new List<int>();
list = second.Split().Select(str => int.Parse(str)).ToList();
List<int> xorList = new List<int>();
for (int i = X; i <= Z; i++)
for (int j = Y; j <= T; j++)
temp = list[i] & list[j];