'use strict';
function main(input) {
    let args = input.split('');
  	
	while(args.find(a => a % 2 === 1)) {
      args = args.map(a => a / 2)
    }
  	console.log(args)
  	
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf8'));