package yukicoder; import java.util.Scanner; public class Yuki63 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int L = scan.nextInt(); int K = scan.nextInt(); scan.close(); int haru = 0; int yuki = 0; int count = 0; Boolean flg = true; while(flg){ haru += K; yuki += K; if( L <= haru + yuki ){ break; } count++; } System.out.println(K*count); } }