#include <stdio.h>
int
main (void)
{
int a;
double x;
a = 1000;
x = 100.583665;
printf ("%d\n", a);
printf ("%3d\n", a);
printf ("%4d\n", a);
printf ("%5d\n", a);
printf ("\n");
printf ("%lf\n", x);
printf ("%15lf\n", x);
printf ("%15.4lf\n", x);
printf ("%18.2lf\n", x);
printf ("%12.0lf\n", x);
return (0);
}