from decimal import Decimal, getcontext getcontext().prec = 50 # Set high precision for accurate calculations # Read input values as strings to handle decimal points accurately p_str, q_str = input().split() p = Decimal(p_str) q = Decimal(q_str) # Calculate the numerator and denominator components numerator = p * q term2 = (Decimal(100) - p) * (Decimal(100) - q) denominator = numerator + term2 # Compute the result using high precision division result = (numerator / denominator) * Decimal(100) # Format the result to ensure sufficient decimal places without unnecessary trailing zeros formatted_result = format(result, 'f') # Convert to string in fixed-point notation # Remove trailing zeros and unnecessary decimal points if any if '.' in formatted_result: formatted_result = formatted_result.rstrip('0').rstrip('.') else: formatted_result += '.' # Ensure at least one decimal place for consistency with sample outputs if '.' not in formatted_result: formatted_result += '.0' print(formatted_result)