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