import java.util.List;

public class SebelumRapi {
    public static void main(String[] args) {
        List<int[]> d = List.of(
                new int[]{2, 18000},
                new int[]{1, 25000},
                new int[]{3, 15000});

        int t = 0;
        // hitung total
        for (int[] x : d) {
            t += x[0] * x[1];
        }
        // kalau lebih dari 100rb dapat diskon 10 persen
        if (t > 100000) {
            t = t - t / 10;
        }
        System.out.println("Total belanja: Rp" + t);
        System.out.println("Jumlah item: " + d.size());
    }
}
