#include #include int main(void) { int i, l, n, sum = 0; int *w; scanf("%d", &l); scanf("%d", &n); w = (int *)malloc(sizeof(int) * n); for (int i = 0; i < n; i++) { scanf("%d", w[i]); } for (int i = 0; i < n; i++) { printf("%d\n", w[i]); if (w[i] <= l) { sum++; } } printf("%d", sum); return 0; }