#include <bits/stdc++.h> using namespace std; int a[15]; int main() { for(int i=1;i<=12;i++) cin >> a[i]; sort(a+1,a+13); cout << a[12]; return 0; }