repeat 3, 2
buffer cnt
loop

で良いんじゃないのか?