#7 input command fixed by reading the whole line and parse it as double.