#include<stdio.h>
int main()
{
int a,b,c;
int min,mid,max,i=1;
if(((a<b)&&(b<c)) || ((a>b)&&(a<c)))
{
min=a;
mid=b;
max=c;
}
if(((b<a)&&(a>c)) || ((a>b)&&(a<c)))
{
min=c;
mid=a;
max=b;
}
if(((c<a)&&(c>b)) || ((c>a)&&(c<b)))
{
min=b;
mid=c;
max=a;
}
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KCmludCBtYWluKCkKCnsKICAgIGludCBhLGIsYzsKICAgIGludCBtaW4sbWlkLG1heCxpPTE7CiAgICBzY2FuZigiJWQiLCZhKTsKICAgIHNjYW5mKCIlZCIsJmIpOwogICAgc2NhbmYoIiVkIiwmYyk7CiAgICBpZigoKGE8YikmJihiPGMpKSB8fCAoKGE+YikmJihhPGMpKSkKICAgIHsKICAgICAgICBtaW49YTsKICAgICAgICBtaWQ9YjsKICAgICAgICBtYXg9YzsKICAgIH0KICAgIGlmKCgoYjxhKSYmKGE+YykpIHx8ICgoYT5iKSYmKGE8YykpKQogICAgewogICAgICAgIG1pbj1jOwogICAgICAgIG1pZD1hOwogICAgICAgIG1heD1iOwogICAgfQogICAgaWYoKChjPGEpJiYoYz5iKSkgfHwgKChjPmEpJiYoYzxiKSkpCiAgICB7CiAgICAgICAgbWluPWI7CiAgICAgICAgbWlkPWM7CiAgICAgICAgbWF4PWE7CiAgICB9CiAgICBwcmludGYoIiVkIixtaWQpOwoJcmV0dXJuIDA7IAp9