#include <stdio.h>
#include <stdlib.h>

int main() {
    int a, b, c, m;

    while (scanf("%d %d %d", &a, &b, &c) != EOF) {
        m = (a + b + abs(a - b)) / 2;
        m = (m + c + abs(m - c)) / 2;

        printf("%d eh o maior\n", m);
    }
}

Solve The Greatest in c
Solve The Greatest in c
