public class text1 {
public static void main(String args[]){
text1 text=new text1();
text.print();
}
public void print(){
int i,num=0;
for(i=1;i<+100;i++){
if(i%5!=0)
{
System.out.print(i+" ");
num++;
}
if(num==10)
{
System.out.print("\n");
num=0;
}
}
}
}