#include <stdio.h>
int main() {
    int a, b;
    scanf("%f %f",&a,&b);
    printf("%.2f\n%.2f",a + b,a - b);
    return 0;
}