public static void main(String[] args) {
Scanner toko = new Scanner(System. in);
int a =toko.nextInt() ;
int b =toko.nextInt() ;
int c =toko.nextInt() ;
int d =toko.nextInt() ;
int e =toko.nextInt() ;
int f =toko.nextInt() ;
int q =toko.nextInt() ;
int w =toko.nextInt() ;
int r =toko.nextInt() ;
...