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