#include int main() { int pocky, haru, a = 0; scanf("%d%d", &pocky, &haru); while (pocky > haru) { pocky -= 2 * haru; a++; } printf("%d\n", haru * a); return 0; }