import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int b1 = sc.nextInt(); int b2 = sc.nextInt(); int b3 = sc.nextInt(); double r = (b2 - b3) / (b1 - b2); double d = b2 - b1 * r; int ans = (int)(b3 * r + d); System.out.println(ans); } }