using System;
public class Program
{
public static void Main()
/*
Example One:
Input: [5, 1, 10, 3, 2], 2
Output: 5
Example Two:
Input: [4, 1, 2, 2, 3], 4
Output: 2
*/
}