using System; using System.Linq; class Program { static void Main(string[] args) { int X = int.Parse(Console.ReadLine()); int Y = int.Parse(Console.ReadLine()); int L = int.Parse(Console.ReadLine()); int moveCnt = 0; if (Y < 0) moveCnt += 2; if (0 <= Y && X != 0) moveCnt += 1; moveCnt += (int)Math.Ceiling((double)Math.Abs(X) / L); moveCnt += (int)Math.Ceiling((double)Math.Abs(Y) / L); Console.WriteLine(moveCnt); } }