#include <stdio.h>

int main() {
    int n1,  n2, n3, n4;
    scanf("%d", &n1);
    scanf("%d", &n2);
    scanf("%d", &n3);
    n4=n1-n2-n3;
    if(n2>n3 && n2>n4){
        printf("%d", n2);
    }
    else if(n3>n2 && n3>n4){
        printf("%d", n3);
    }
    else{
        printf("%d", n4);
    }
    return 0;
}

Embed on website

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