import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = 0;
        int b = 0;
        int c = 0;
        while (in.hasNext()) {
            a = in.nextInt();
            b = in.nextInt();
            c = in.nextInt();
        }
        
        int max = a;
        int min = a;
        
        if (a <= b) {
            max = b;
        } else {
            min = b;
        }
        
        if (max <= c) {
            max = c;
        } 
        if (min >= c) {
            min = c;
        }

        System.out.println("The maximum number is : " + max);
        System.out.println("The minimum number is : " + min);
    }
}