```
import java.util.Scanner;

public class SeperateLetters 
{

    public static void main(String[] args)
    {
        Scanner scan= new Scanner(System.in);
        System.out.println("Enter a word:");
        String w= scan.nextLine();
        for(int i=0; i<w.length();i++)
            System.out.println(w.charAt(i));    
    }
}

```

This is what I have so far and I can't figure how to make it so that if the word is 5 letters or longer to print it one letter per line and if not to just print the word. So far it'll just print any word with one letter per line.