#include <bits/stdc++.h> using namespace std; int main() { int a=0,b=0,head=0,foot=0; cin>>head>>foot; b=(foot-head*2)/2; //a=(head*4-foot)/2; a=head-b; cout<<a<<" "<<b<<endl; return 0; }
By signing up a 羽润编程 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 羽润编程 universal account