#include<stdio.h> int main() { int n, j, a=1; scanf("%d", &n); for (int i = 1; i <= n; i++) { if (i % 3 == 0) { j = 1; while (a / j > 0) { a = i / j; if (a % 10 == 5) { printf("%d\n", i); ...