package algo; import java.util.*; public class sample7 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a1 = sc.next(); String a2 = sc.next(); String a3 = sc.next(); if(a1.equals("2") && a2.equals("3")) { System.out.println(1); } if(a1.equals("3") && a2.equals("2")) { System.out.println(4); } if(a2.equals("2") && a3.equals("3")) { System.out.println(4); } if(a2.equals("3") && a3.equals("2")) { System.out.println(1); } if((a1.equals("2") && a3.equals("3")) || (a1.equals("3") && a3.equals("2"))) { System.out.println(14); } } }