#include using namespace std; int main() { unsigned long int s=15,n; cin >> n; for(unsigned long int i=n;i>=1;i--) s+= (s-i)>=15?-i:i; cout << s; }