More comments
Let log to handle huge input that cannot fit in double