#include using namespace std; int main(){ int tulos; int x = 0; int z = 0; cin >> x; cin >> z; tulos = x*4 + z*5; cout << tulos; return 0; }