using System.Collections.Generic;
public static void Main()
string FormatDateTime = "yyyy-MM-dd HH:mm:ss.fff";
List<string> newList = new List<string>();
int n = Int32.Parse(Console.ReadLine());
String k = Console.ReadLine();
newList.Add(k.ToString());
List<long> listFormatDate = new List<long>();
List<long> result = new List<long>();
List<long> listResult = new List<long>();
for (int i = 0 ; i < newList.Count; i++)
DateTime myDate = DateTime.ParseExact(newList[i], FormatDateTime, System.Globalization.CultureInfo.InvariantCulture);
listFormatDate.Add(myDate.Ticks / 10000);
for (int i = 0; i < listFormatDate.Count; i++)
result.Add(listFormatDate[i]);
while (number < listFormatDate.Count)
for (int i = 0; i < listFormatDate.Count; i++)
result.Add(listFormatDate[i]);
result.RemoveAt(result.Count - 1);
for (int i = 0; i < result.Count; i++)
double x = tong / result.Count;
listResult.Add((long)Math.Round(x, 0, MidpointRounding.AwayFromZero));
for (int i = 0; i < listResult.Count; i++)
DateTime myDate = new DateTime(listResult[i]*10000);
String kq = myDate.ToString(FormatDateTime);