import java.util.ArrayList; import java.util.Scanner; public class UselessHash { public static void main(String[] args) { UselessHash p = new UselessHash(); } public UselessHash() { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int n = sc.nextInt(); solve(k, n); } public void solve(int k, int n) { ArrayList primes = new ArrayList(); boolean[] sieve = new boolean[n+1]; sieve[0] = sieve[1] = true; for(int i=2;i 0 ){ curUsed -= (1<=10){ a = a/10 + a%10; } return a; } }