set `dd` ruby -e"p (1..).bsearch{|x|x/$1+x/$2-x/$1.lcm($2)>=$3}"