#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  cin >> T;
  while (T--) {
    int a;
    cin >> a;
    if (a % 2 == 0)
      cout << a - 1 << " ";
    else
      cout << a << " ";
  }
}
