#include <bits/stdc++.h> using namespace std; int main(){ int i=1,n,a=0; while(i<=500) {if(i%3==2&&i%5==3&&i%7==2) a++; i++;} cout<<a; return 0; } /************************************************************** Problem: 1021 User: ljl2 Language: C++ Result: Wrong Answer ****************************************************************/