using System; class Q0048 { public static void Main() { int x = int.Parse(Console.ReadLine()); int y = int.Parse(Console.ReadLine()); int l = int.Parse(Console.ReadLine()); int count = 0; if (y < 0) { count += 2; } else if (x != 0) { count ++; } x *= x < 0 ? -1 : 1; y *= y < 0 ? -1 : 1; count += x / l + (x % l > 0 ? 1 : 0); count += y / l + (y % l > 0 ? 1 : 0); Console.WriteLine(count); } }