Sum of number
Anonymous User
355

A boy writes a number in a wall and everday he comes the last digit of the number disappears and he adds the remaining number to the sum .The sum also includes the original number.After few days he only has the total sum with him. Guess the original number he wrote on the wall ?

Sample input 1:

	i/p:162
    the number on wall was 147 so 147+14+1=162 so we must output 147
	o/p:147

Sample Input 2:

	i/p:7
	o/p:7

Samle Input 3:

	i/p:592
	o/p:534 (534+53+4=562)

Sample Input 4:

	i/p:38
	o/p:35(35+3=38)
Comments (1)