import java.util.*; class Main { public static void main(String[] args) { // input Scanner in = new Scanner(System.in); int p1 = in.nextInt(); int p2 = in.nextInt(); int n = in.nextInt(); int[] r = new int[n]; for(int i=0; i