b=2/3.0;loop{a,c=gets.split.map(&:to_i);p ((a**b+c**b)**1.5).round}