package yukicoder; import java.util.Scanner; public class N429 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int N=sc.nextInt(),K=sc.nextInt(),X=sc.nextInt(); int[] h=new int[N],hh=new int[N]; int[] a=new int[K],b=new int[K]; for(int i=0;i=X;i--) { swap(hh,a[i]-1,b[i]-1); } int[] ans=new int[2]; int p=-1; for(int i=0;i