#include <iostream>

using namespace std;

int main() {
	int n;
	cin >> n;
	int res = 15;
	if (n%4==1 || n%4==2) {
		res++;
	}
	cout << res << endl;
	return 0;
}