import java.io.PrintWriter; import java.util.Scanner; public class Main { public static void a(String[] args) { try (Scanner scan = new Scanner(System.in)) { int N = scan.nextInt(); int stayCost[] = new int[N]; for(int i=0; i