#include <iostream>using namespace std;main() { int a,b; cin>>a>>b; cout<<b-1<<" "<<a-1; }
4 3
2 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!