var count = 0 for m in 1..12: var d = case m of 2: 28 of 4,6,9,11: 30 else: 31 for i in 1..d: if m == i div 10 + i mod 10: inc count echo count