#include int main(void) { int n; scanf("%d", &n); if(n % 2 == 0){ printf("2\n"); } else{ printf("1\n"); } return 0; }