#include using namespace std; int main(){ bool mod[4] = {0, 1, 1, 0}; int N; scanf("%d", &N); printf("%d", 15 + mod[N%4]); return 0; }