using System; using System.Linq; public class P0048 { public static void Main() { var x = int.Parse(Console.ReadLine().Trim()); var y = int.Parse(Console.ReadLine().Trim()); var l = int.Parse(Console.ReadLine().Trim()); var count = 0; if(y < 0) { count += 2; } else if (x != 0) { count += 1; } count += Math.Abs(x) / l + (x % l == 0 ? 0 : 1); count += Math.Abs(y) / l + (y % l == 0 ? 0 : 1); Console.WriteLine(count); } }