LearnPy Hub
← Context Managers problems
Medium

Timer Without Time

Write a context manager Steps with a tick() method; on exit it prints steps: N. Inside, tick once for every number in the input that is divisible by 3.

Input

One line of integers.

Output

One line.

Sample 1

Input
3 6 7 9
Output
steps: 3

Sample 2

Input
1 2
Output
steps: 0
solution.py
Output appears here
Timer Without Time · Python practice problem · LearnPy Hub