import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); String[] str = s.nextLine().split(" "); s.close(); int b1 = Integer.parseInt(str[0]); int b2 = Integer.parseInt(str[1]); int b3 = Integer.parseInt(str[2]); double r = (double)(b3 - b2) / (double)(b2 - b1); double d = (double)(b2*b2-b1*b3)/(double)(b2-b1); double b4 = r*b3 + d; System.out.println((int)b4); } }