import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long A = scan.nextLong(); long B = scan.nextLong(); long C = scan.nextLong(); scan.close(); if(60 * A <= B) { System.out.println(-1); System.exit(0); } double t = (double) 3600 * C / ((double)60 * A - B); long ans = (long)Math.ceil(t); System.out.println(ans); } }