/** * Author: AcFunction * Date: 2019-08-24 13:43:12 * Email: 3486942970@qq.com **/ #include #define ll long long #define db double #define PII pair #define pb push_back #define fi first #define se second #define MP make_pair using namespace std; int T; int main() { scanf("%d", &T); while(T--) { int n; scanf("%d", &n); printf("%d\n", 1 ^ n); } return 0; }