#include using namespace std; using ll = long long; #define fi first #define se second #define all(a) a.begin(),a.end() int main(){ int a,n; cin >> a >> n; cout << 2 << endl; if(a%2==1) cout << 1 << endl; else cout << 0 << endl; return 0; }