#include <stdio.h>

int main() {
    int n1, n2, cap;
    scanf("%d", &n1);
    scanf("%d", &n2);
    cap = n1/(n2+2) * 2; 
    printf("%d", cap);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: