Formatted required output correctly