import std.stdio; import std.algorithm; import std.conv; import std.datetime; void main() { int numHappy; for (auto date = Date(2015, 1, 1); date.year == 2015; date += 1.dur!"days") { if (date.month == date.day / 10 + date.day % 10) { writeln(date); ++numHappy; } } writeln(numHappy); }