#include <iostream>
using namespace std;
int N;
void triangle_star(int n)
{
if (n == 3)
{
}
else
{
triangle_star(n / 2);
}
}
int main(void)
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin >> N;
triangle_star(N);
return 0;
}