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