import java.util.Scanner; import java.util.ArrayList; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); ArrayList<String> list = new ArrayList<>(); for (int i = 1; i <= n; i++) { list.add(scanner.next()); } for (int i = 1; i <= n; i++) { for (int j = 1; j <= i&&j<=4; j++) { System.out.print(j + "=" + list.get(i - j) + " "); } System.out.println(); } } }