So, you have two buckets — one for 3 liters and one for 5. You have an unlimited supply of apple juice. On each step, you can do one of the following:

1. Fill one of the buckets with apple juice. Write this as “Fill 3” or “Fill 5”.
2. Empty one of the buckets on the ground. Write this as “Empty 3” or “Empty 5”.
3. Transfer juice from one of the buckets to another, until target bucket is filled or source is empty, whichever happens first. Write this as “Transfer 3 to 5” or “Transfer 5 to 3”.

Your goal is to have 4 liters of juice in a 5-liter bucket. Think step-by-step. Provide response in all capital letters, no lowercase letters allowed.
user