import java.util.Scanner; public class FirstCode { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int k = scanner.nextInt(); int[] nums = new int[n]; for (int i = 0; i < n; i++) { ...