#include <stdio.h>
int popcount_gcc(int n) {
  return __builtin_popcount(n);
}
int popcount_7bits(int n) {
  return (n >> 0 & 1)
    + (n >> 1 & 1)
    + (n >> 2 & 1)
    + (n >> 3 & 1)
    + (n >> 4 & 1)
    + (n >> 5 & 1)
    + (n >> 6 & 1);
}
int main() {
  printf("%d %d %d\n", popcount_gcc('a'), popcount_gcc(127), popcount_gcc(255));
  printf("%d %d %d\n", popcount_7bits('a'), popcount_7bits(127), popcount_7bits(255));
  return 0;
}
