import random
a = 0
nums = []
nums1 = []
for x in range(10):
i=random.randint(4,25)
nums.append(i)
a=len(nums)
c=0
for a in nums:
if a%3 == 0:
nums1.append(a)
c=c+1
s = nums1
print(*s)
import random
a = 0
nums = []
nums1 = []
for x in range(10):
i=random.randint(4,25)
nums.append(i)
a=len(nums)
c=0
for a in nums:
if a%3 == 0:
nums1.append(a)
c=c+1
s = nums1
print(*s)