public static void Main()
Func<string,int,string> f =
(string v,int i)=>string.Join(".",v.Split('.').Select(int.Parse).Select((x,n)=>n==i?x+1:n>i?0:x));
Console.WriteLine(f("1.0.3", 0));
Console.WriteLine(f("1.2.3.4.5", 2));
Console.WriteLine(f("10.0", 0));
Console.WriteLine(f("3", 0));