#include <stdio.h>#include <stdlib.h>int main(){ int a,b,i; scanf("%d %d",&a,&b); for(i=a;i<=b;i++) if( (i %3) != 0 ) printf("%d ", i);}