#include using namespace std; int toadd[] = {0, 1, 1, 0}; int N; int main() { cin >> N; cout << 15 + toadd[N % 4] << '\n'; return 0; }