using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); float A = input[0]; float B = input[1]; float C = input[2]; var list = new List(); var N1 = (B + C) / A; if (N1-(int)N1 == 0 && N1 > B / A) list.Add(N1); var N2 = C / A; if (N2 - (int)N2 == 0 && N2 <= B / A) list.Add(N2); list = list.Distinct().OrderBy(x => x).ToList(); if (list.Count == 0) Console.WriteLine(-1); else list.ForEach(Console.WriteLine); } }