#include <iostream.h>
extern "C" int bits(int);

void main()
{

        short int a;       /* a is the argument to the procedure */

        cout << "Enter an integer:  ";

        cin >> a;

        a = bits(a);
        

        cout << "Result:  " << a << endl;


}