#include <iostream>
int main()
{
int a, b, c ;
std::cout << "enter three integers: " ;
std::cin >> a >> b >> c ;
// if a is smaller than b, swap a and b
if( a < b ) { int temp = a ; a = b ; b = temp ; }
// at this point, we know that a is not smaller than b
// if b is smaller than c, swap b and c
if( b < c ) { int temp = b ; b = c ; c = temp ; }
// at this point, we know that c is not larger than either a or b
// print out a and b; both are not smaller than c
std::cout << "the largest two are: " << a << " and " << b << '\n' ;
}