#include <
stdio.h>
int main()
{
int array[10];
int max = 0, min = 0;
for(int i = 0; i < 10; i ++) {
scanf("%d", &array[i]);
if (i == 0) {
max = array[i];
min = array[i];
}
else if (array[i] > max) max = array[i];
else if (array[i] < min) min = array[i];
}
printf("Max is %d, Min is %d\n", max, min);
return 0;
}