#include <iostream>

using namespace std;

int main() {
  int x = 3;
  x = (x = 5) + x;
  cout << x << endl;

  x = 3;
  x = x + (x = 5);
  cout << x << endl;

  x = 3;
  x += (x = 5);
  cout << x << endl;
}
