1067: 有问题的里程表
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);int n=cin.nextInt();int result=n;for(int i=1;i<=n;i++){
if(i%10==4||(i/10)%10==4||i/100==4)result--;}System.out.println(result);}
}