• + 0 comments
    lambda_A,lambda_B =map(float,input().split())
    
    E_X2_A = lambda_A + (lambda_A ** 2)
    e_cost_A = 160 + 40 * E_X2_A
    
    E_X2_B = lambda_B + (lambda_B ** 2)
    e_cost_B = 128 + 40 * E_X2_B
    
    print(round(e_cost_A,3))
    print(round(e_cost_B,3))