import java.util.Scanner; public class test2 { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int m = in.nextInt(); while(++n 10) { tmp = tmp /10; } if(tmp % 10 == 3) { System.out.println(n); } } } }