#include using namespace std; int main(){ int n, nr = 0; scanf("%d", &n); for(int i = 0; i <= 6; ++i){ if(n & (1<