Satellites
import math
while 1:
try:
r,d,n=input().split()
r,d=int(r)+6440,int(d)
if n=='min':
d=d/60
ans1=2*r*math.pi*(d/360)
ans2=2*r*math.sin(math.pi*(d/360))
print('{:.6f} {:.6f}'.format(ans1,ans2))
except:
break
All You Need Is Love
T=input()
for t in range(int(T)):
a=int(input(),2)
b=int(input(),2)
while b>0:
z=a%b
a=b
b=z
if a>1:
print('Pair #'+str(t+1)+': All you need is love!')
else:
print('Pair #'+str(t+1)+': Love is not all you need!')