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