1.
#include <iostream>
using namespace std;
int main()
{
int a, r, v;
cin >> a;
r = 2 * a;
v = r - 3;
cout << a + r + v;
return 0;
}
2.
#include <iostream>
using namespace std;
int main()
{
int f, b, n;
cin >> n >> f >> b;
f = f * 3 * n;
b = b * 2 * n;
cout << f + b;
return 0;
}