#include int main(){int a,b,c,*p1,*p2;scanf("%d%d%d",&a,&b,&c);p1=&((a>b?a:b)>c?a>b?a:b:c);p2=&((aprintf("%d %d",*p1,*p2);return 0;}