Efim just received his grade for the last test. He studies in a special school and his grade can be equal to any positive decimal fraction. First he got disappointed, as he expected a way more pleasant result. Then, he developed a tricky plan. Each second, he can ask his teacher to round the grade at any place after the decimal point (also, he can ask to round to the nearest integer). 

There are t seconds left till the end of the break, so Efim has to act fast. Help him find what is the maximum grade he can get in no more than t seconds. Note, that he can choose to not use all t seconds. Moreover, he can even choose to not round the grade at all.

In this problem, classic rounding rules are used: while rounding number to the n-th digit one has to take a look at the digit n + 1. If it is less than 5 than the n-th digit remain unchanged while all subsequent digits are replaced with 0. Otherwise, if the n + 1 digit is greater or equal to 5, the digit at the position n is increased by 1 (this might also change some other digits, if this one was equal to 9) and all subsequent digits are replaced with 0. At the end, all trailing zeroes are thrown away.

For example, if the number 1.14 is rounded to the first decimal place, the result is 1.1, while if we round 1.5 to the nearest integer, the result is 2. Rounding number 1.299996121 in the fifth decimal place will result in number 1.3.


-----Input-----

The first line of the input contains two integers n and t (1 ≤ n ≤ 200 000, 1 ≤ t ≤ 10^9) — the length of Efim's grade and the number of seconds till the end of the break respectively.

The second line contains the grade itself. It's guaranteed that the grade is a positive number, containing at least one digit after the decimal points, and it's representation doesn't finish with 0.


-----Output-----

Print the maximum grade that Efim can get in t seconds. Do not print trailing zeroes.


-----Examples-----
Input
6 1
10.245

Output
10.25

Input
6 2
10.245

Output
10.3

Input
3 100
9.2

Output
9.2



-----Note-----

In the first two samples Efim initially has grade 10.245. 

During the first second Efim can obtain grade 10.25, and then 10.3 during the next second. Note, that the answer 10.30 will be considered incorrect.

In the third sample the optimal strategy is to not perform any rounding at all.

Difficulty: competition

Starter code:

Solutions:
def main():
    n, t = map(int, input().split())
    s = input()
    dot = s.find('.')
    for i in range(dot + 1, n):
        if s[i] > '4':
            break
    else:
        print(s)
        return
    while t:
        i -= 1
        t -= 1
        if s[i] < '4':
            break
    if i > dot:
        print(s[:i], chr(ord(s[i]) + 1), sep='')
        return
    else:
        l = list(s[dot - 1::-1])
        for i, c in enumerate(l):
            if c == '9':
                l[i] = '0'
            else:
                l[i] = chr(ord(c) + 1)
                break
        else:
            l.append('1')
    print(''.join(reversed(l)))


def __starting_point():
    main()

__starting_point()

def main():
    n, t = map(int, input().split())
    s = input()
    dot = s.find('.')
    for i in range(dot + 1, n):
        if s[i] > '4':
            break
    else:
        print(s)
        return
    while t:
        i -= 1
        t -= 1
        if s[i] < '4':
            break
    if i > dot:
        print(s[:i], chr(ord(s[i]) + 1), sep='')
        return
    else:
        l = list(s[dot - 1::-1])
        for i, c in enumerate(l):
            if c == '9':
                l[i] = '0'
            else:
                l[i] = chr(ord(c) + 1)
                break
        else:
            l.append('1')
    print(''.join(reversed(l)))


def __starting_point():
    main()
__starting_point()

def solve():
    n, t = map(int, input().split())
    s = input()
    dot = s.find('.')
    for i in range(dot + 1, n):
        if s[i] > '4':
            break
    else:
        print(s)
        return
    while t:
        i -= 1
        t -= 1
        if s[i] < '4':
            break
    if i > dot:
        print(s[:i], chr(ord(s[i]) + 1), sep='')
        return
    else:
        l = list(s[dot - 1::-1])
        for i, c in enumerate(l):
            if c == '9':
                l[i] = '0'
            else:
                l[i] = chr(ord(c) + 1)
                break
        else:
            l.append('1')

    print(''.join(reversed(l)))
solve()

(n, t) = [int(x) for x in input().split()]
(a, s) = input().split('.')

s = list(s)

pos = len(s) - 1
for i in range(len(s)):
	if ord(s[i]) > ord('4'):
		pos = i
		break

while t > 0 and pos > 0:
	if ord(s[pos]) > ord('4'):
		pos -= 1
		s[pos] = chr(ord(s[pos]) + 1)
		t -= 1
	else:
		break

if t > 0 and pos == 0 and s[0] > '4':
	it = len(a) - 1
	A = [ord(ch) - ord('0') for ch in a]
	A[it] += 1
	while it > 0:
		if A[it] == 10:
			A[it] = 0
			A[it - 1] += 1
			it -= 1
		else:
			break
	res = "".join([str(x) for x in A])
	print(res)
else:
	
	res = a + '.' + "".join(s[:pos + 1])
	
	print(res)

def main():
    n,t = map(int,input().split())
    b = input()
    p = b.find('.')
    for i in range(p+1,n):
        if b[i]>'4':
            break
    else:
        print(b)
        return

    while t:
        i-=1
        t-=1
        if b[i]<'4':
            break
    if i>p:
        print(b[:i], chr(ord(b[i])+1), sep = '')
    else:
        k = list(b[:i])
        for x in range(len(k)-1,-1,-1):
            if k[x] == '9':
                k[x] = '0'
            else:
                k[x] = chr(ord(k[x])+1)
                break
        else:
            k.insert(0,'1')
        print(''.join(k))
def __starting_point():
    main()

__starting_point()

def main():
    n,t = list(map(int,input().split()))
    b = list(input())
    p = b.index('.')


    if int(b[p+1]) > 4:
        del b[p:n]
        b = list(b)
        for x in range(len(b)-1,-1,-1):
            if b[x] == '9':
                b[x] = '0'
            else:
                b[x] = chr(ord(b[x])+1)
                break
        else:
            b.insert(0,'1')
        print(''.join(b))
        return
    else:
        if p + 1 < n - 1:
            for x in range(p+1,n):
                if int(b[x+1]) > 4:
                    b[x] = chr(ord(b[x])+1)
                    del b[x+1:n]
                    t-=1
                    break
            else:
                print(''.join(b))
                return
            for y in range(x,p,-1):
                if int(b[y]) < 5 or t == 0:
                    break
                elif b[y-1] != '.':
                    b[y-1] = str(int(b[y-1])+1)
                    del b[y:n]
                    t-=1
                elif b[y-1] == '.': 
                    del b[y-1:n]
                    b = list(b)
                    for x in range(len(b)-1,-1,-1):
                        if b[x] == '9':
                            b[x] = '0'
                        else:
                            b[x] = chr(ord(b[x])+1)
                            break
                    else:
                        b.insert(0,'1')
        b = ''.join(b)
    print(b)
main()


#EFIM AND STRANGES GRADE 718A
import sys
import decimal
a,b = map(int,input().split())
c = input()
clock = c.find(".")

for x in range(clock+1,a):
	if c[x] > '4': break
else:
	print(c)
	return


while b:
	x -=1
	b -=1
	if c[x] != '4': break
	
				
if x > clock:
	print(c[:x],chr(ord(c[x])+1),sep="")
else:
	c = list(c[:x])
	x -= 1
	while x>=0:
		if c[x] == '9':
			c[x] = '0'
			x-=1
		else:
			c[x] = chr(ord(c[x])+1)
			break
	else:
		c.insert(0,'1')
	print("".join(c) )
		


a,b = map(int,input().split())
c = input()
clock = c.find(".")

for x in range(clock+1,a):
	if c[x] > '4': break
else:
	x=a
	print(c)
if x != a:
	while b:
		x -=1
		b -=1
		if c[x] != '4': break				
	if x > clock:
		print(c[:x],chr(ord(c[x])+1),sep="")
	else:
		c = list(c[:x])
		x -= 1
		while x>=0:
			if c[x] == '9':
				c[x] = '0'
				x-=1
			else:
				c[x] = chr(ord(c[x])+1)
				break
		else:
			c.insert(0,'1')
		print("".join(c) )
		


n, t = map(int, input().split())
x = input()
i = x.find('.')
for j in range(i + 1, n):
    if x[j] > '4':
        for k in range(t):
            j -= 1
            if x[j] != '4': break
        if j == i:
            j -= 1
            while j and x[j] == '9': j -= 1
            x = x[:j] + str(int(x[j]) + 1) + '0' * (i - j - 1)
        else:
            x = x[:j] + str(int(x[j]) + 1)
        break
print(x)

n, t = map(int,input().split())
s = "0"+input()
f = s.find('.')
if f == -1:
	print(s[1:])
	return
r = list(s[:f]+s[f+1:])
for i in range(f,len(r)):
	if r[i] >= "5" and r[i] <= "9":
		while r[i] >= "5" and r[i] <= "9":
			if i < f or t <= 0:
				break
			i -= 1
			z = ord(r[i])+1
			while z == ord("9")+1:
				i -= 1
				z = ord(r[i])+1
			#print(r[i])
			while len(r) != i+1:
				r.pop()
			r[-1] = chr(z)
			t -= 1
		break
if r[0] == '0':
	r = r[1:]
	f -= 1
r += ['0']*max(f-len(r),0)
if len(r) == f:
	print(*r,sep='')
else:
	print(*r[:f],'.',*r[f:],sep='')


R = lambda: map(int, input().split())
n, t = R()
s = list(input())
r = -1
l = s.index('.') + 1
for i in range(l, n):
    if s[i] >= '5':
        r = i
        break
for i in range(r, max(l - 1, r - t), -1):
    if s[i] >= '5':
        if i - 1 != l - 1:
            s[i - 1] = str((int(s[i - 1]) + 1) % 10)
            r = i - 1
        else:
            s[i - 2] = str((int(s[i - 2]) + 1) % 10)
            r = l - 2
            if s[r] == '0':
                for j in range(r - 1, -1, -1):
                    if s[j] == '9':
                        s[j] = '0'
                    else:
                        s[j] = str((int(s[j]) + 1) % 10)
                        break
                if s[0] == '0':
                    s = ['1'] + s
                    r += 1
print(''.join(s[:r + 1]) if r >= 0 else ''.join(s))

def main():
    n, t = map(int,input().split())
    b = input()
    p = b.find('.')
    for i in range(p+1,n):
        if b[i] > '4':
            break
    else:
        print(b)
        return
    
    while t:
        i-=1
        t-=1
        if b[i] < '4':
            break
    
    if i > p:
        print(b[:i], chr(ord(b[i]) + 1), sep='')
    else:
        k = list(b[:i])
        for x in range(len(k) - 1, -1, -1):
            if k[x] == '9':
                k[x] = '0'
            else:
                k[x] = chr(ord(k[x]) + 1)
                break
        else:
            k.insert(0, '1')
        
        print(''.join(k))

def __starting_point():
    main()

__starting_point()

n, t = map(int, input().split())

s = input()
ind = s.find(".")

for i in range(ind+1, n):
    if s[i] > "4":
        break
else:
    print(s)
    quit()

while t:
    t -= 1
    i -= 1
    if s[i] < "4":
        break

if i > ind:
    print(s[:i], chr(ord(s[i])+1), sep = "")
else:
    t = list(s[:i])
    for i in range(len(t)-1, -1, -1):
        if t[i] == "9":
            t[i] = "0"
        else:
            t[i] = chr(ord(t[i])+1)
            break
    else:
        t.insert(0, "1")

    print("".join(t))


import sys
n, t = list(map(int,sys.stdin.readline().split()))
x = sys.stdin.readline()
y = x.find('.')
for i in range(y+1,n):
    if x[i] > '4':
        for j in range(t):
            i -= 1
            if x[i] != '4': break
        if i == y:
            i -= 1
            while i and x[i] == '9':
                i -= 1
            x = x[:i] + str(int(x[i]) + 1) + '0' * (y - i - 1)
        else:
            x = x[:i] + str(int(x[i]) + 1)
        break
print(x)

    



n,t=list(map(int,input().split()))
s=input()
ans=[]
te=[]
for i in range(len(s)):
    if(s[i]=='.'):
        for j in range(i+1,len(s)):
            ans.append(int(s[j]))
        break;
    te.append(int(s[i]))
    
flag=0
for i in range(len(ans)):
    if(ans[i]>=5):
        flag=1
        break;
if(flag==0):
    print(s)
    return
ans=ans[0:i+1]
pre=[0 for i in range(len(ans))]
for i in range(1,len(ans)):
    if(ans[i-1]>=5):
        pre[i]=pre[i-1]+1
    else:
        pre[i]=pre[i-1]
    
shrink=[0 for i in range(len(ans))]
car=0
for i in range(len(ans)-1,-1,-1):
    if(i==len(ans)-1):
        car=1
        shrink[i]=1
        t-=1
    else:
        if(car==1):
            ans[i]+=1
            
        if(ans[i]<5):
            car=0
            continue;
        elif(5<=ans[i]<=9):
            car=0
            if(pre[i]>0):
                continue;
            else:
                if(t==0):
                    car=0
                    break;
                else:
                    t-=1
                    shrink[i]=1
                    car=1
        else:
            shrink[i]=1
            car=1
    
if(car==1):
    for i in range(len(te)-1,-1,-1):
        if(te[i]==9 and i>0):
            te[i]=0
        elif(te[i]<9):
            te[i]+=1
            car=0
            break;
if(car==1):
    te=[1]+[0]*len(te)

x=shrink.index(1)
if(x==0):
    print(''.join(map(str,te)))
    return
else:
    ans=ans[0:x]
    print(''.join(map(str,te))+'.'+''.join(map(str,ans)))
    
        
            
            
        
        


from sys import *
input = stdin.readline
n,t = list(map(int,input().split()))
num = input()
idx = num.find(".")
if idx<0:
    print(num)
    return
cnt=1
for i in range(idx+1,n):
    if num[i]<"5":
        if 5-int(num[i])==1:cnt+=1
        else:cnt=1
    if num[i]>="5":
        j = min(cnt,t)
        if num[i-j]!=".":
            num = num[:i-j]+str(int(num[i-j])+1)
        else:
            curr = 0
            while num[idx-curr-1]=="9" and (idx-curr)!=0:
                curr+=1
            num = num[:idx-curr-1]+str(int(num[idx-curr-1])+1)+"0"*curr if curr!=idx else "1"+"0"*curr
        break
print(num)


n,t = list(map(int,input().split()))
num = input()
idx = num.index(".")
cnt=1
for i in range(idx+1,n):
    if num[i]<"5":
        if 5-int(num[i])==1:cnt+=1
        else:cnt=1
    if num[i]>="5":
        j = min(cnt,t)
        if num[i-j]!=".":
            num = num[:i-j]+str(int(num[i-j])+1)
        else:
            curr = 0
            while num[idx-curr-1]=="9" and (idx-curr)!=0:
                curr+=1
            num = num[:idx-curr-1]+str(int(num[idx-curr-1])+1)+"0"*curr if curr!=idx else "1"+"0"*curr
        break
print(num)