CF697B.Barnicle

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

Barney is standing in a bar and starring at a pretty girl. He wants to shoot her with his heart arrow but he needs to know the distance between him and the girl to make his shot accurate.

Barney asked the bar tender Carl about this distance value, but Carl was so busy talking to the customers so he wrote the distance value (it's a real number) on a napkin. The problem is that he wrote it in scientific notation. The scientific notation of some real number xx is the notation of form AeBAeB , where AA is a real number and BB is an integer and x=A×10Bx=A×10^{B} is true. In our case AA is between 00 and 99 and BB is non-negative.

Barney doesn't know anything about scientific notation (as well as anything scientific at all). So he asked you to tell him the distance value in usual decimal representation with minimal number of digits after the decimal point (and no decimal point if it is an integer). See the output format for better understanding.

输入格式

The first and only line of input contains a single string of form a.deba.deb where aa , dd and bb are integers and ee is usual character 'e' ( 0<=a<=9,0<=d<10^{100},0<=b<=100 ) — the scientific notation of the desired distance value.

aa and bb contain no leading zeros and dd contains no trailing zeros (but may be equal to 00 ). Also, bb can not be non-zero if aa is zero.

输出格式

Print the only real number xx (the desired distance value) in the only line in its decimal notation.

Thus if xx is an integer, print it's integer value without decimal part and decimal point and without leading zeroes.

Otherwise print xx in a form of p.qp.q such that pp is an integer that have no leading zeroes (but may be equal to zero), and qq is an integer that have no trailing zeroes (and may not be equal to zero).

输入输出样例

  • 输入#1

    8.549e2
    

    输出#1

    854.9
    
  • 输入#2

    8.549e3
    

    输出#2

    8549
    
  • 输入#3

    0.33e0
    

    输出#3

    0.33
    
首页