Module: (Java) Processing data in a loop. Anchoring


Problem

2 /9


We process the digits of the number - 2

Problem

Given a natural number N. Determine the sum of its digits greater than z. If there are no such digits in the number, print 0.

Input 
Enter two numbers separated by a space, first a natural number N, then - z (\(0<=z<=9\) ).

Imprint
Print the answer to the problem.
 

 

Examples
# Input Output
1 432 2 7