Read double and int from console