Question

Write a function count number of 1s in the given number?

Login to Submit

Examples

Input: 101
Output: 2

Input: 1911
Output: 3