while~0:s=raw_input().split();print[a+2*b+2*c+d for a,b in s for c,d in s if b+c in s][0]
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page