#include <stdio.h> int main() { int i = 0, j = 0; int arr[4] = { 0 }; for (i = 0; i < 4; i++) { scanf("%d", &arr[i]); } for (i = 0; i < 3; i++) { for (j = 0; j < 3 - i; j++) { int temp = 0; if (arr[j] < arr[j + 1]) { temp = arr[j]; arr[j] = arr[j + 1]; arr[j + 1] = temp; } } } printf("%d\n", arr[0]); return 0; }