$_=gets.split.tally.values*'' puts /3/?/2/?'FULL HOUSE':'THREE CARD':/2.*2/?'TWO PAIR':/2/?'ONE PAIR':'NO HAND'