import java.io.Console; import java.util.*; public class No227 { public static void main(String[] args){ /* ArrayList numList = new ArrayList(); for(int i=0;i<5;i++) { Console console = System.console(); numList.add(Integer.parseInt(console.readLine())) ; } System.out.println(numList); System.out.println(numList.get(0)); */ ArrayList numList = new ArrayList(); Scanner sc = new Scanner(System.in); for(int i=0;i<5;i++) { numList.add(sc.nextInt()) ; } int val = 0; String role = "NO HAND"; for(int i=0;i