#include using namespace std; int n, m; int main() { scanf("%d", &n); if(n%4==0 || n%4==3) printf("%d\n", 15); else printf("%d\n", 16); return 0; }