#include <bits/stdc++.h>
int main(void) {
  int n, i, j, ans = 0, x[10000];
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &x[i]);
  }
  for (i = 0; i < n; i++) {
    if (x[i] % 2 != 0 && x[i] > 50) {
      for (j = 3; j < x[i] / 8; j += 2) {
        if (x[i] % j == 0) {
          break;
        }
      }
      if (j >= x[i] / 8) {
        printf("%d *\n", x[i]);
        ans++;
      }
    } else if ((x[i] % 2 != 0 && x[i] <= 50) || x[i] == 2) {
      for (j = 3; j < x[i]; j += 2) {
        if (x[i] % j == 0) break;
      }
      if (x[i] <= j || x[i] == 2) {
        printf("%d **\n", x[i]);
        ans++;
      }
    }
  }
  printf("%d\n", ans);
  return 0;
}
