Correct

聊以自娱

/ liáo yǐ zìyú / 
Strokes

Example

Definition

just to amuse/enjoy oneself

1
Yǒushí
有时
xiě
写
xiē
些
xiǎo
小
shī
诗
  
,
liáo
聊
yǐ
以
zìyú
自娱
  
。

Sometimes I wrote some little poems just to enjoy myself.