using System;
using System.Globalization;
namespace ProgramConsole
{
class Program
{
static void Main(string[] args)
{
string s = "2005";
DateTime dt;
if(DateTime.TryParseExact(s, "yyyy", CultureInfo.InvariantCulture,
DateTimeStyles.None, out dt))
{
Console.WriteLine(dt);
}
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uR2xvYmFsaXphdGlvbjsKCm5hbWVzcGFjZSBQcm9ncmFtQ29uc29sZQp7CiAgICBjbGFzcyBQcm9ncmFtCiAgICB7CiAgICAgICAgc3RhdGljIHZvaWQgTWFpbihzdHJpbmdbXSBhcmdzKQogICAgICAgIHsKICAgICAgICAgICAgc3RyaW5nIHMgPSAiMjAwNSI7CiAgICAgICAgICAgIERhdGVUaW1lIGR0OwogICAgICAgICAgICBpZihEYXRlVGltZS5UcnlQYXJzZUV4YWN0KHMsICJ5eXl5IiwgQ3VsdHVyZUluZm8uSW52YXJpYW50Q3VsdHVyZSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBEYXRlVGltZVN0eWxlcy5Ob25lLCBvdXQgZHQpKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZShkdCk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9Cn0=