pbinfo | varena | campion | timus | codeforces | atcoder |
#include <iostream> using namespace std; int main() { int G,O,C,P; cin>>G>>O; C=G+O; P=2*C+2*O; cout<<C<<" "<<P; return 0; }