package com.codegym.task.task04.task0424;
/*
Three numbers
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
int c=sc.nextInt();
int arr[]=new int [4];
for(int i=0;i<arr.length;i++){
arr[0]=a;
arr[1]=b;
arr[2]=c;
}
if((arr[1]==arr[2])&&(arr[1]!=arr[3])){
System.out.println(3);
}
else if((arr[2]==arr[3])&&(arr[2]!=arr[1])){
System.out.println(1);
}
else if((arr[3]==arr[1])&&(arr[3]!=arr[2])){
System.out.println(2);
}
else{
}
}
}

package com.codegym.task.task04.task0424;
/*
Three numbers
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
int c=sc.nextInt();
int arr[]=new int [4];
for(int i=0;i<arr.length;i++){
arr[0]=a;
arr[1]=b;
arr[2]=c;
}
if((arr[1]==arr[2])&&(arr[1]!=arr[3])){
System.out.println(3);
}
else if((arr[2]==arr[3])&&(arr[2]!=arr[1])){
System.out.println(1);
}
else if((arr[3]==arr[1])&&(arr[3]!=arr[2])){
System.out.println(2);
}
else{
}
}
}