#include <stdio.h>int main(){ int m,n; while(scanf("%d%d",&m,&n)!=EOF) { int i; for(i=m;i<=n;i++) if(i%3==0) printf("%d ",i); printf(" "); } return 0; }