import java.util.*; import java.io.*; public class Main{ static final Reader sc = new Reader(); static final PrintWriter out = new PrintWriter(System.out,false); public static void main(String[] args) throws Exception { int n = sc.nextInt(); int m = sc.nextInt(); int k = sc.nextInt(); ArrayList list = new ArrayList(); ArrayList> map = new ArrayList>(); for(int i=0;i()); } for(int i=0;i point = map.get(a); Point z = new Point(b,c); point.add(z); point = map.get(b); Point w = new Point(a,c); point.add(w); } ArrayList now = new ArrayList(); for(int i=0;i point = map.get(now.get(j)); for(int l=0;l