import java.util.Random;
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
int [] codes = new int [5];
Scanner sc = new Scanner(System.in);
System.out.println("请依次输入5名同学的学号: ");
for (int i = 0; i < codes.length; i++) {
int code = sc.nextInt() ;
codes[i] = code;
}
Random r = new Random();
for (int i = 0; i < codes.length; i++) {
int index = r.nextInt(codes.length);
int temp = codes[index] ;
codes[index] = codes[i] ;
codes[i] = temp;
}
for (int i = 0; i < codes.length; i++) {
System.out.print(codes[i] + " ");
}
}
}