Function to convert String to int
static int StringtoInt ( String s ) { return Int32 . Parse ( s ) ; } static int min ( int a , int b , int c ) { return Math . Min ( a , Math . Min ( b , c ) ) ; } static int max ( int a , int b , int c ) { return Math . Max ( a , Math . Max ( b , c ) ) ; }