#include<stdio.h>
float diff_abs(float, float);

int main() {
	float a, b, abs;
	scanf("%f%f", &a, &b);
	abs=diff_abs(a, b);
	return 0;
}

float diff_abs(float a, float b) {
	float pos, neg;
	pos=a-b;
	neg=b-a;
	printf("%.2f\n", pos);
	printf("%.2f\n", neg);
	return 0;
}


