﻿from math import *
def f(x):
  return x*exp(x)
def d():
  a=0;b=1
  while(b-a)>=0.01:
    y=f((a+b)/2)
    if y>1:
      b=(a+b)/2
    else:
      a=(a+b)/2
  return a,b







