public class Kyosaya{ public static void main(String args[]) { int pocky = Integer.parseInt(args[0]); int gnaw = Integer.parseInt(args[1]); System.out.println(pocky-(pocky-(pocky/gnaw/2)*gnaw)); } }