import java.util.Scanner; class Main { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); int[] cards = new int[13]; for(int i=0; i<5; i++) { cards[in.nextInt() - 1]++; } in.close(); int hand = 0; for(int i=0; i