// Arup Guha
// 3/30/2012
// COP 3223 Exam #3 Question: Three/Five.

#include <stdio.h>

int main() {

    int i;

    // Go from 1 to 10000.
    for (i=1; i<=10000; i++) {

        // Print if the number is divisible by 3 or 5.
        if (i%3 == 0 || i%5 == 0)
            printf("%d\n", i);
    }

    return 0;
}
