I get the following error when I use the floor function: com/codegym/task/task04/task0416/Solution.java:17: error: incompatible types: possible lossy conversion from double to int int a = Math.floor(t); I've tried making t a double and a float, and adjusting from input.nextDouble to input.nextFloat. Both result in this error. I think my solution can work, but needs tweaking. Any suggestions?