import java.io.*; import java.util.*; public class Main_yukicoder664 { private static Scanner sc; private static Printer pr; private static void solve() { int n = sc.nextInt(); int m = sc.nextInt(); int k = sc.nextInt(); int[] a = new int[n + 1]; for (int i = 0; i <= n; i++) { a[i] = sc.nextInt(); } long[] dp = new long[n + 1]; Arrays.fill(dp, k); long max = k; for (int l = 0; l < m; l++) { for (int i = n; i > 0; i--) { for (int j = i - 1; j >= 0; j--) { dp[i] = Math.max(dp[i], dp[j] / a[j] * a[i] + dp[j] % a[j]); dp[i] = Math.max(dp[i], dp[j]); } } for (int i = 1; i <= n; i++) { dp[i] = Math.max(dp[i], dp[i - 1]); max = Math.max(max, dp[i]); } } pr.println(max); } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); solve(); pr.close(); sc.close(); } private static class Printer extends PrintWriter { Printer(PrintStream out) { super(out); } } }