using System; using System.Collections.Generic; using System.Linq; class Program { static string InputPattern = "InputX"; static List GetInputList() { var WillReturn = new List(); if (InputPattern == "Input1") { WillReturn.Add("100 2"); //100.666666666667 } else if (InputPattern == "Input2") { WillReturn.Add("0 30"); //10 } else if (InputPattern == "Input3") { WillReturn.Add("114 514"); //285.333333333333 } else { string wkStr; while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn; } static void Main() { List InputList = GetInputList(); int[] wkArr = InputList[0].Split(' ').Select(X => int.Parse(X)).ToArray(); int M = wkArr[0]; int N = wkArr[1]; decimal Answer = M; for (int I = 1; I <= N; I++) { Answer += 1M / 3M; } Console.WriteLine(Answer); } }