#include <stdio.h>

int main() {
    int A, B;
    scanf("%d", &A);
    scanf("%d", &B);
    printf("%d", (A*4+B*6)/10);
    return 0;
}

Embed on website

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