import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long a1 = sc.nextInt(); long a2 = sc.nextInt(); long a3 = sc.nextInt(); int count =0; int p=1; if(a1==a2||a2==a3||a3==a1){ p=0; }else if(((a2>a1)&&(a2>a3))||((a2b1)&&(b2>b3))||((b2