import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String nx = sc.nextLine(); String[] nxArr = nx.split(" "); long a = Long.parseLong(nxArr[0]); long b = Long.parseLong(nxArr[1]); long c = Long.parseLong(nxArr[2]); sc.close(); long t =b+(a-1); System.out.println(c/t*a+(c-c/t*t)); } }