// https://omegaup.com/arena/problem/El-menor-de-tres-numeros 
#include <stdio.h> 
 
int minimo(int a, int b) { 
   return (a < b ? a : b); 
} 
 
int main( ) { 
   int a, b, c; 
   scanf("%d%d%d", &a, &b, &c); 
 
   int t = minimo(a, b); 
   int r = minimo(t, c); 
   printf("%d", r); 
}