using System; using System.Linq; class No734 { static void Main() { var num = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray(); var a = num[0] * 60; var b = num[1]; var c = num[2] * 3600; var ans = a < b ? -1 : 2; if (ans == 2) while (true) { if (ans * a > c + ans * b) break; ans++; } Console.WriteLine(ans); } }