Problem1907--输出n以内既能被3整除又能被5整除的数

1907: 输出n以内既能被3整除又能被5整除的数

Time Limit: 1.000 Sec  Memory Limit: 128 MB
Submit: 8  Solved: 11
[Submit] [Status] [Web Board] [Creator:]

Description

输入一个数n,输出n以内既能被3整除又能被5整除的正数。

Input

n

Output

输出n以内既能被3整除又能被5整除的数,两个数之间用空格隔开。

Sample Input

50

Sample Output

15 30 45

Source/Category

cc1 

[Submit] [Status]