#P15914. [TOPC 2024] Just Round Down

[TOPC 2024] Just Round Down

Description

The Taiwan Online Programming Contest is a prestigious event that attracts talented programmers from all over the world. Known for its challenging problems and competitive environment, the contest has become a platform where only the best can prove their skills. However, there is one problem setter who has gained a notorious reputation among participants. This problem setter, known only by their pseudonym “truckski,” has an unusual fascination with numbers – particularly big numbers, floating-point numbers, and any kind of mathematical challenge that involves precise calculations. truckski has a unique style of creating problems that often requires competitors to think carefully about the properties of numbers and how they can be manipulated.

In this year’s edition of the Taiwan Online Programming Contest, truckski has come up with a seemingly simple yet tricky problem. The problem revolves around a fundamental concept in mathematics: rounding down a floating-point number to its nearest integer. While this task might appear straightforward at first glance, truckski’s twist lies in the precision required and the ability to handle a variety of floating-point values accurately.

Your task is to help the participants solve this problem by writing a program that takes a positive floating-point number as input and outputs the result of rounding it down to the nearest integer. This process is often referred to as taking the “floor” of a number. The floor of a number is the greatest integer that is less than or equal to the number itself.

Input Format

The input consists of a single line containing one positive floating-point number xx.

Output Format

The output should be a single integer, which is the floor of the input number xx. Please do not output decimal points.

1999.99
1999
2.00000
2

Hint

  • 0<x1080 < x \le 10^8
  • The input contains several digits and exactly one decimal point.
  • The last printable character of the input must be a digit.
  • There is at least one digit before the decimal point.
  • There is no leading zero for x1x \ge 1.
  • The size of input file is no more than 1515 bytes.