Description Input Output Sample Input5 1 3 -1 -4 7 2 A 2 4 -1 5 B 1 5 Sample Output2Hint SourceJSOI2009Day1