import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; import java.util.regex.Pattern; /* 6 4 11 + 22 * 33 - 44 * 55 * 66 1 2 2 3 4 5 3 5 */ public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNextLine()) { String[] numbersInFirstLine = scanner.nextLine().split(" "); int N = Integer.parseInt(numbersInFirstLine[0]); int M = Integer.parseInt(numbersInFirstLine[1]); String[] originalExpression = scanner.nextLine().split(" "); int[] cisla = new int[N]; //String[] znamienka = new String[N]; int[] skupina = new int[N]; int zhluk = 1; for (int i = 0; i < originalExpression.length; i++) { if (i % 2 == 0) { cisla[i / 2] = Integer.parseInt(originalExpression[i]); skupina[i / 2] = zhluk; } else { if (!originalExpression[i].equals("*")) { zhluk++; } } } Boolean[] cislaBin = new Boolean[N]; for (int i = 0; i < N; i++) { if (cisla[i] % 2 == 0) { cislaBin[i] = false; } else { cislaBin[i] = true; } } Boolean[] groupBin = new Boolean[zhluk]; for (int i = 0; i < zhluk; i++) { boolean temp = true; for (int j = 0; j < N; j++) { if (i + 1 == skupina[j]) { temp = temp && cislaBin[j]; } } groupBin[i] = temp; } int vysl = 0; for (boolean o : groupBin) { vysl = vysl + (o ? 1 : 0); } if (vysl % 2 == 0) { System.out.println("even"); } else { System.out.println("odd"); } for (int index = 0; index < M; index++) { String[] line = scanner.nextLine().split(" "); int indexCisla = Integer.parseInt(line[0]); boolean value = Integer.parseInt(line[1]) % 2 == 1; cislaBin[indexCisla - 1] = value; int netusim = skupina[indexCisla - 1]; boolean temp = true; for (int j = 0; j < N; j++) { if (netusim == skupina[j]) { temp = temp && cislaBin[j]; } } groupBin[netusim - 1] = temp; vysl = 0; for (boolean o : groupBin) { vysl = vysl + (o ? 1 : 0); } if (vysl % 2 == 0) { System.out.println("even"); } else { System.out.println("odd"); } } break; } } }