import java.util.*; import static java.lang.System.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); int k = sc.nextInt(); int x = sc.nextInt(); int[] a = new int[k]; int[] b = new int[k]; String temp1,temp2; for (int i=0; i=x; i--) { temp = end[a[i]]; end[a[i]] = end[b[i]]; end[b[i]] = temp; } List list = new ArrayList<>(); for (int i=0; i