from __future__ import division
#Given
fabc=10000 #Rs/waffer
c=100
y=40/100
coc=fabc/(y*c)
#Cost of one chip
print 'Cost of one chip:' ,coc,'Rs'
#Market Cost
mc=2*coc
print 'Market costof one chip:' ,mc,'Rs'
from math import sqrt, floor
#Given
c=5000 #Rs
S=0.6 #cm
#Sides
x=3 #cm
y=2.54 #cm
#break even cost
bec=250
#hence, chips/waffers needed
cpw=c/bec
D=x*y
#For given Area, atleast 40 chips are required
n=2*cpw
#Diameter
N=D/(sqrt(2)*S)
#Lower round off
NN=floor(N)
#Chips possible
cp=NN**2
#Yield
Y=(n/cp)*100 #Percent
print 'Yield:',Y, '%'