#include <stdio.h>

int main(void) {
	// your code goes here
	int a,b,c,d,max;
	printf("Input a,b,c,d:\n");
	scanf("%d,%d,%d,%d",&a,&b,&c,&d);
	max=a;
	if(b>max)max=b;
	if(c>max)max=c;
	if(d>max)max=d;
	printf("max=%d\n",max);
	return 0;
}
