#include <iostream>
using namespace std;

int main() {
    
    int a, b, c;
    while(cin>>a>>b>>c){
        int longer = (a>b) ? a : b; 
        int longest = (longer>c) ? longer : c;
        cout <<longest;
    }

    // write your code here......
    
    return 0;
}

三个数比较只需要两次三元运算符

很优雅很简洁