#include <iostream>
using namespace std;
int N;
int main()
{
    cin>>N;
    if(N%4==0||N%4==3)cout<<16;
    else cout<<15;
    return 0;
}