import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int cityNum = sc.nextInt(); int money = sc.nextInt(); int roadNum = sc.nextInt(); List cityS = new ArrayList(); for (int i = 0; i < cityNum; i++) { cityS.add(sc.nextInt()); } // 標準出力に書き出す。 System.out.println("cityNum = " + cityNum); System.out.println("money = " + money); System.out.println("roadNum = " + roadNum); System.out.println("cityS = " + cityS.toString()); } }