#include <iostream>
#include <iomanip>
using namespace std;

int main(void){
    int A, B;
    cin >> A >> B;
    cout << setprecision(10) << 100.0L-100.0L*(long double)B/(long double)A << endl;
    return 0;
}
#include <iostream>
#include <stdio.h>
#include <vector>
#include <algorithm>
#include <string>
#include <iomanip>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
#define rep(i,n) for(i=0;i<n;i++)
#define repl(k,n) for(k=0;k<n;++k)

int main() {
	int A, B;
	cin >> A >> B;
	cout << (A + B) / 2<<"\n";
	cout << (A - B) / 2;
	return 0;
}