#variable declaration
i=10
j=20
x=43.2892
y=5527.0
#print statement
print "i = %d, j = %d, x = %f, y = %f" % (i,j,x,y)
def main():
#variable declaration
i=40
x=839.21
#formatted printing
print "|%d|%5d|%-5d|%5.3d|" % (i,i,i,i)
print "|%10.3f|%10.3e|%-10g|" % (x,x,x)
if __name__=='__main__':
main()
def main():
print " Enter first fraction: ",
#accepting numerator and denominator separated by '/'
num1,denom1=map(int,raw_input().split('/'))
print "Enter second fraction: ",
num2,denom2=map(int,raw_input().split('/'))
#adding the fractions
result_num = num1*denom2 + num2*denom1
result_denom = denom1*denom2
print "The sum is %d/%d" % (result_num,result_denom)
if __name__=='__main__':
main()