/***************************** Name : Yoshitak Create Date : 2015/06/05 Program Name : main.d Problem No. : 256 *****************************/ /*--------------------- import -----------------------*/ import std.stdio; import std.string; import std.conv; import std.array; /*--------------------- main -----------------------*/ int main(string[] args) { //input uint[] num; string input; input = chomp(readln()); //into the arry num.length = input.length; foreach(int i, char c; input){ num[i] = to!int(c); } int tmp; if(num[0] > num[1]){ //first change!! tmp = num[0]; num[0] = num[1]; num[1] = tmp; } //max is first!! int max = 0; for(int i=0; i<2; i++){ max = i; //where is max!? for(int j=i+1; j