#include <stdio.h> int main() { int count = 0; for (int i = 1; i <= 2019; i++) { int j = 10; while (i % (j / 10) != i) { if ((i % j) / (j / 10) == 9) { count++; j *= 10; break; } j *= 10; } } printf("%d",count); return 0; }