#include <iostream>
using namespace std;
int main()
{
int gaini, porci, capete, picioare;
cout << "gaini= "; cin >> gaini;
cout << "porci= "; cin >> porci;
capete=gaini + porci;
picioare=2*gaini + 4*porci;
cout << "capete= " << capete << endl;
cout << "picioare= " << picioare;
return 0;
}