#include <stdio.h>

int main(void) {
	// your code goes here
    float a,b;
    scanf("%f,%f",a,b);
    if (a>b)
    printf("%f",a);
    else
    printf("%f",b);
	return 0;
}
