#include
using namespace std;
int main()
{
int a[7];
int MAX = -1000*1000*1000-13;
for (int i = 0; i < 7; ++i)
cin >> a[i];
if (a[0] > MAX)
MAX = a[0];
if (a[1] > MAX)
MAX = a[1];
if (a[2] > MAX)
MAX = a[2];
if (a[3] > MAX)
MAX = a[3];
if (a[4] > MAX)
MAX = a[4];
if (a[5] > MAX)
MAX = a[5];
if (a[6] > MAX)
MAX = a[6];
cout << MAX;<br>}