#include<bits/stdC++.h> using namespace std; int main(){ int a,b=1,c,d=0,e=0; cin>>a; while(b<=a){ c=b; d=0; while(c>0){ d=c%10+d; c=c/10; } if(d%2!=0&&d%5!=0){ e++; }b++; } cout<<e; } /************************************************************** Problem: 1395 User: panyuchen Language: C++ Result: Compile Error ****************************************************************/