using System.Collections.Generic; using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = long.Parse(line[0]); var b = long.Parse(line[1]); getAns(a, b); } static void getAns(long a, long b) { var t = a / b; a %= b; var ans = new List(); for (int i = 0; i < 50; i++) { a *= 10; var w = a / b; ans.Add(w); a -= (w) * b; } Console.Write(t); Console.Write("."); Console.WriteLine(string.Join("", ans)); } }