var day: array[12, int] = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] ans: int = 0 for i in 1..12: for j in 1..day[i - 1]: if i == j div 10 + j mod 10: inc(ans) echo ans