public class Reduction2 {
    public static void main(String[] args) {
        long[] a = new long[10_000];
        for (int i = 0; i < 10_000; i++) {
            test1(a);
        }
        for (int i = 0; i < 10_000; i++) {
            test2(a);
        }
        for (int i = 0; i < 10_000; i++) {
            test3(a);
        }
    }

    public static long test1(long[] a) {
        long s = 0;
        for (int i = 0; i < a.length; i++) {
            s *= a[i];
        }
        return s;
    }

    public static void test2(long[] a) {
        for (int i = 0; i < a.length; i++) {
            a[i] = a[i] * 53;
        }
    }

    public static long test3(long[] a) {
        long s = 0;
        for (int i = 0; i < a.length; i++) {
            s += a[i];
        }
        return s;
    }
}
