import math
# Variables
# Given
#t1 = 30 min ;T1 = 336 k;
#t2 = 15 sec ;T2 = 347 k;
# Converting t2 in min
t1 = 30. # milk heated (mins)
T1 = 336. # K based on t1
t2 = 0.25 # seconds
T2 = 347. # K based on t2
R = 8.314
# Calculations
#math.log(t1/t2) = E(1/T1-1/T2)/R
E = (math.log(t1/t2)*R)/(1/T1-1/T2);
# Results
print "E is %d J/mol"%(round(E,-3))