#include<stdio.h>
#include<string.h>
int main()
{
char str[100];
char* p;
int a[100];
int i, k;
for (i = 0;i < 100;i++)
{
a[i] = 0;
}
gets_s(str);
p = str;
i = -1;
while (*p != '\0')
{
if (*p <= '9' && *p >= '0')
{
i = i + 1;
}
while (*p <= '9' && *p >= '0')
{
a[i] = a[i] * 10 + *p-48;
p = p + 1;
}
p++;
}
for (k = 0;k < i+1;k++)
{
if (a[0] < a[k])
{
a[0] = a[k];
}
}
printf("%d", a[0]);
return 0;
}
05-09
2850