def getOutputFormat(seconds):
	"""Returns a format string for the given number of seconds with the least leading zeros."""
	if seconds < 60:
		return "%S"
	elif seconds < 3600:
		return "%M:%S"
	else:
		return "%H:%M:%S"