public class Home_2_1 {
public static void main(String[] args){
int m = print();
System.out.println(m);
}
public static int print(){
int j = 0;
for (int i = 1;i<101 ;i++ ) {
int n = 0;
if (i/10==9||i%10==9) {
continue;
}
System.out.print(i+" ");
j++;
if (j%5==0) {
System.out.println();
}
}
return j;
}
}
class Home_Work {
public static void main(String[] args) {
int count=0;
for (int i=2;i<=100 ;i++ ) {
int t=0;
for (int j=2;j<i ;j++ ) {
if (i%j==0) {
t++;
continue;
}
}
if (t==0) {
count++;