import java.util.Arrays;
class Solution {
public int solution(int[] numbers) {
int answer = 45;
int len = numbers.length;
Arrays.sort(numbers);
int j = 0;
for (int i = 0; i < 10; i++) {
if (j < len && i == numbers[j]) {
answer -= numbers[j];
j++;
}
}
return answer;
}
}