Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

HS08TEST - ATM

Julia would like to withdraw X € from an ATM. The cash machine will only accept the transaction if X is a multiple of 5, and Julia's account balance is sufficient to perform the withdrawal transaction (including bank charges). Calculate Julia's account balance after an attempted transaction, if you know that for an accepted transaction the bank makes a charge of 0.50 €.

Input

Positive integer 0 < X <= 2000 - the amount of cash which Julia wishes to withdraw.

Nonnegative number 0<= Y <= 2000 with two digits of precision - Julia's initial account balance.

Output

Output the account balance after the attempted transaction, given as a number with two digits of precision.

Example1

Input:
30 120.00

Output:
89.50

Example2

Input:
300 120.00

Output:
120.00

Scoring

This is a test problem and you will receive no points for solving it. However, at 12:00 on Saturday, September 27, we will give out small gifts to some users, drawn from among those registered contestants who have solved this problem in more programming languages available at SPOJ then all other registered contestants. See the "prizes" tab for more details. Note: the special contest is over now.


Added by:kuszi
Date:2008-09-07
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:ADA95 ASM32 BASH BF C CSHARP CPP C99 CLPS LISP sbcl LISP clisp D FORTRAN HASK ICON ICK JAVA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON RUBY SCM guile SCM qobi ST WHITESPACE
Resource:SPOJ High School Programming League 2008/2009

hide comments
2016-05-08 14:49:08
keep getting wrong answer :(
2015-11-02 09:00:29 kuszi
This error should not appear any more
2015-11-01 20:05:17
Please help; Error coming:
Wrong problem!
2014-12-06 13:23:27 Nikola Krstic
Yea @Marcin Frejlich I pissed up after 100 maden codes and all of them not working xD The problem is that i forgot to add ?X is a multiple of 5? xD
2009-08-08 12:34:10 Marcin Frejlich
Reading carefully the description really helps a lot :P
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.