using System; namespace y { class Program { static void Main(string[] args) { string[] ss = Console.ReadLine().Split(); double m = double.Parse(ss[0]); double n = int.Parse(ss[1]); Console.WriteLine(m + n / 3); } } }