#importing modules
import math
from __future__ import division
#Variable declaration
H=3; #initial position of hour hand
A=0; #required angle(degrees)
#Calculation
T=(2/11)*((H*30)+A); #required time(minutes)
#Result
print "required time is",round(T,2),"minutes past",H
#importing modules
import math
from __future__ import division
#Variable declaration
H=4; #initial position of hour hand
A=90; #required angle(degrees)
#Calculation
T1=(2/11)*((H*30)+A); #required time(minutes)
T2=(2/11)*((H*30)-A); #required time(minutes)
#Result
print "one timing is",round(T1,2),"minutes past",H
print "another timing is",round(T2,2),"minutes past",H
#importing modules
import math
from __future__ import division
#Variable declaration
H=7; #initial position of hour hand
A=90; #required angle(degrees)
#Calculation
T1=(2/11)*((H*30)+A); #required time(minutes)
T2=(2/11)*((H*30)-A); #required time(minutes)
#Result
print "one timing is",round(T1,3),"minutes past",H
print "another timing is",round(T2,3),"minutes past",H
#importing modules
import math
from __future__ import division
#Variable declaration
H=7; #initial position of hour hand
A=180; #required angle(degrees)
#Calculation
T=(2/11)*((H*30)-A); #required time(minutes)
#Result
print "required time is",round(T,2),"minutes past",H
print "answer given in the book is wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
H=5; #initial position of hour hand
A=42; #required angle(degrees)
#Calculation
T1=(2/11)*((H*30)+A); #required time(minutes)
T2=(2/11)*((H*30)-A); #required time(minutes)
#Result
print "one timing is",round(T1,3),"minutes past",H
print "another timing is",round(T2,3),"minutes past",H
#importing modules
import math
from __future__ import division
#Variable declaration
Ti=6-1; #time interval(hours)
h=1/60; #hour gained(hour)
#Calculation
Tti=Ti/(1+h); #true time interval(hours)
Tt=1+Tti; #true time(hours)
H=int(Tt); #hour hand(p.m)
m=(Tt-H)*60; #true time(minutes)
#Result
print "true time is",round(m,2),"minutes past",H,"p.m"
#importing modules
import math
from __future__ import division
#Variable declaration
H=2; #initial position of hour hand
A=90; #required angle(degrees)
#Calculation
T1=(2/11)*((H*30)+A); #required time(minutes)
T2=(2/11)*((H*30)-A); #required time(minutes)
#Result
print "required time is",round(T1,2),"minutes past",H,"and at",H+1,"o' clock"
#importing modules
import math
from __future__ import division
#Variable declaration
T=12; #time(hours)
x=65; #time(minutes)
y=65+(5/11); #time interval(minutes)
#Calculation
Ttg=(T*60)*(y-x)/x; #total time gained(minutes)
#Result
print "total time gained is",round(Ttg,3),"minutes"
#importing modules
import math
from __future__ import division
#Variable declaration
H=0; #initial position of hour hand
A=90; #required angle(degrees)
#Calculation
T1=(2/11)*((H*30)+A); #required time(minutes)
T2=(2/11)*(360+(H*30)-A); #required time(minutes)
#Result
print "required time is",round(T1,2),"minutes and",round(T2,2),"minutes past 12"