import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int cnt = 0, tmp, sum; for(int i = 1; i <= 30; i++){ sum = 0; tmp = i; while(tmp>0){ sum += tmp%10; tmp /= 10; } if(0