// Arup Guha
// 6/15/2023
// Solution to SIUCF CP Contest 2 Problem: Princess Peach
// https://open.kattis.com/problems/princesspeach

using namespace std;
#include <bits/stdc++.h>

int main() {

    int n, k, tmp;
    cin >> n >> k;

    vector<bool> used(n);

    for (int i=0; i<k; i++) {
        cin >> tmp;
        used[tmp] = true;
    }

    int cor = 0;
    for (int i=0; i<n; i++) {

        // Didn't do this.
        if (!used[i]) cout << i << endl;

        // Got it.
        else cor++;
    }

    // Last piece of output.
    cout << "Mario got " << cor << " of the dangerous obstacles." << endl;
    return 0;
}
