#include <stdio.h>
//関数のプロトタイプ宣言
//ここ↓を埋めてね１
int max(int , int);
//main関数
int main(void) {
    int a,b,c,d;
//ここ↓を埋めてね２


    scanf("%d %d %d %d", &a, &b, &c, &d);

    printf("最大値は%dです\n", max(max(a, b), max(c, d)));

	return 0;
}

//max関数の定義
int max(int x, int y){
//ここ↓を埋めてね３
 return (x > y) ? x : y;
}


