#include <stdio.h>#include <iostream>#include<math.h>using namespace std;
int main(){ double a,b; double r1,r2; scanf("%lf%lf",&a,&b); r1=fabs(a-b)/2+min(a,b); r2=(a+b)/2; printf("%lf%lf",r1,r2); system("pause");
}