package text;
import java.util.Scanner;
public class lianxi {
public static void main(String[] args) {
int a=1300, b=350,m=6789,z=1900;
System.out.print("你想要多少个随机数:");
Scanner n=new Scanner(System.in);
int j=n.nextInt();
for(int i=0;i<j;i++){
int y=i+1;
z=(a*z +b )% m;
System.out.println(z);
}
}
}