Graderpractice for programmers

Back to 254275 OOP - Labs 1-5 Review

H. Looking for a long word

Problem

Given an array of strings, return the first word that is longer than 6 letters. If no such word is found then print nothing.

Template

class TaskB {

    public static void main(String[] args) {
        String[] words = Input.stringArray();
        String result = longWord(words);
        System.out.println(result);
    }

    // TODO: Your answer here
}

Examples

Input

find,what,you,are,looking,for

Output

looking

Input

the,longest,and,the,furthest

Output

longest

Input

what,may,be,the,oldest,always,hurts,the,same

Output


                

Submit your solution

java