number = int(input())
summ, counter, product = 0, 0, 1
digits = [int(i) for i in str(number)]
for digit in digits:
if digit%2 != 0:
summ += digit
if digit%6 == 0:
counter += 1
if digit<5:
product *= digit
print(summ, counter, product)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
number = int(input())
summ, counter, product = 0, 0, 1
digits = [int(i) for i in str(number)]
for digit in digits:
if digit%2 != 0:
summ += digit
if digit%6 == 0:
counter += 1
if digit<5:
product *= digit
print(summ, counter, product)