class Main {
public static void main(String[] args) {
int a=1;
int b=1;
int c=1;
double f=1;
double g=1;
int d=0;
int e=0;
double r=0;
double y=0;
while(a<=100){
d=d+a;
a++;
}System.out.println(d);
while(b<=99){
e=e+b;
b++;
b=b+c;
}System.out.println(e);
while(g<=10){
y=f/g;
g++;
r=r+y;
}System.out.println(r);
String[] ti={"N","10*N","100*N","1000*N"};
for(int op=0;op<ti.length;op++)
System.out.print(ti[op]+" ");
System.out.println();
int[] iu={1,10,100,1000};
for(int ir=0;ir<iu.length;ir++)
System.out.print(iu[ir]+" ");
System.out.println();
int[] tr={2,20,200,2000};
for(int br=0;br<tr.length;br++)
System.out.print(tr[br]+" ");
System.out.println();
int[] qw={3,30,300,3000};
for(int fr=0;fr<qw.length;fr++)
System.out.print(qw[fr]+" ");
System.out.println();
int[] yu={4,40,400,4000};
for(int mr=0;mr<yu.length;mr++)
System.out.print(yu[mr]+" ");
System.out.println();
int[] hh={5,50,500,5000};
for(int cr=0;cr<hh.length;cr++)
System.out.print(hh[cr]+" ");
}
}