import math
FTL=50
M=12
NFL=2*FTL
NFLG=(NFL-M)
G_max1=NFLG/2
G_max1=round(G_max1,1)
print 'a)The max gain is',G_max1,'dB'
#b) Determination of max gain2
IL=3
RLW=20
RLE=40
NL=(4*IL)+RLW+RLE
NLG=(NL-M)
G_max2=NLG/2
print 'b)The max gain is',G_max2,'dB'
#c ) Determination of amplr gain
LT=15.0
OM=6.0
OLW=(RLW-LT)/2
OLE=(RLE-LT)/2
A=OM+OLW+OLE+(2*IL)
print 'c)The amplr gain is',A,'dB'