@main def happy_day(): Unit = var ans = 0 val month: Array[Int] = Array(0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31) for i <- 1 to 12 j <- 1 to month(i) if i == (j % 10 + j / 10) do ans += 1 println(ans)