fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6. cin >> a >> b;
  7. cout << b + b - a << " " << b * 3 - a * 2 << " " << b * 4 - a * 3;
  8. return 0;
  9. }
Success #stdin #stdout 0s 5276KB
stdin
5 2
stdout
-1 -4 -7