#include <iostream>
#include <iomanip>
using namespace std;

void format(double d)
{
	cout << setw(7) << fixed << setprecision(3) << d << endl;
	//printf("%7.3f\n", d);
}

int main() {
	// your code goes here
	format(3.45678);
	format(123.4);
	format(123.45678);
	format(0);
	format(1000);
	return 0;
}