import java.util.*; import java.lang.*; import java.io.*; class Main { public static void main (String[] args) { // 入力値の読み込み Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int goukei =0; ArrayList fr = new ArrayList<>(); for(int i=0;i0){ goukei += fr.get(i); } } System.out.println(goukei); } }