https://www.acmicpc.net/problem/10817
using System;
class Program
{
static void Main() {
int[] arr=new int[3];
int min=100;
int count=0;
string[] s=Console.ReadLine().Split(' ');
arr[0]=int.Parse(s[0]);
arr[1]=int.Parse(s[1]);
arr[2]=int.Parse(s[2]);
for(int i=0;i<3;i++){
if(arr[i]<=min){
min=arr[i];
count=i;
}
}
if(count==0) Console.Write("{0}",arr[1]<=arr[2] ? arr[1] : arr[2]);
else if(count==1) Console.Write("{0}",arr[0]<=arr[2] ? arr[0] : arr[2]);
else Console.Write("{0}",arr[0]<=arr[1] ? arr[0] : arr[1]);
}
}