Specify an operation "~": a~6 means to find the difference between two numbers a and b, that is, the larger number of a and b is subtracted from the smaller number, for example, 5~4=5-4=1, 1~ 4=4-1=3, 6~6=6-6=0, then when x=how much, the value of y=(x~1)+(x~2)+(x~3) is the smallest.
规定一种运算"～"：a～6表示求a，b两个数的差，即a，b中较大的数减较小的数，例如5～4=5-4=1，1～4=4-1=3，6～6=6-6=0，那么当x=多少时，y=(x～1)+(x～2)+(x～3)的值最小．
<result>2</result>