package yukicoder; import java.util.Scanner; public class Yuki11 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long n = scan.nextLong(); long m = scan.nextLong(); System.out.println( "1番目=" + m * 1000 ); System.out.println( "2番目=" + n / (m * 1000) ); long ans = n / ( m * 1000 ) * 1000; System.out.println(ans); /* final int thousand = 1000; Scanner scan = new Scanner(System.in); long n = scan.nextLong(); int m = scan.nextInt(); scan.close(); if(n >= m*thousand && m > 0){ System.out.println(thousand*(n/(m*thousand))); }else{ System.out.println(0); } */ } }