#include #include using namespace std; using namespace atcoder; /////////////////// メイン /////////////////// int main () { /////////////////// 前入力 /////////////////// int q; cin >> q; /////////////////// 前処理 /////////////////// /////////////////// ループ /////////////////// for (int loop=0; loop> n; //////////////// 出力変数定義 //////////////// int result = 1; //////////////////// 処理 //////////////////// if (n==2||n==6||n>=9) result = 2; //////////////////// 出力 //////////////////// cout << result << endl; } /////////////////// 後処理 /////////////////// //////////////////// 終了 //////////////////// return 0; }