using System; using System.Collections.Generic; using System.Linq; public class P0586 { public static void Main() { var p1 = int.Parse(Console.ReadLine().Trim()); var p2 = int.Parse(Console.ReadLine().Trim()); var n = int.Parse(Console.ReadLine().Trim()); var r = new HashSet(); for(int i=0; i