Arrodonir la nota


Submit solution

Points: 10
Time limit: 5.0s
Memory limit: 256M

Author:
Problem types
Allowed languages
C#, Go, Java

Al butlletí de notes no es poden posar notes amb decimals, així que el professor ha decidit arrodonir-les. Si els decimals estan per sota de 0.5 es trunca la nota (es lleven els decimals), però si són igual o majors que 0.5 aleshores s'arrodoneix cap amunt.

Input Format

Una nota amb o sense decimals

Constraints

-

Output Format

enter

Test Case 1

Input
5.1
Output
5

Test Case 2

Input
7.49
Output
7

Test Case 3

Input
10
Output
10

Test Case 4

Input
4.5
Output
5

Test Case 5

Input
7.75
Output
8

Test Case 6

Input
6
Output
6

Authorship: Gerard Falcó

CC BY-NC-SA 4.0