a, b = gets.chomp.split.map &:to_i aa = gets.chomp.split.map &:to_i if(b != 0) p (a-b) * 2