import sys
try:
v0=float(sys.argv[1])
t=float(sys.argv[2])
g=9.81
if t2*v0/g:
raise
y=v0*t-0.5*g*t**2
print y
except:
print "t invalid"
import sys
try:
v0=float(sys.argv[1])
t=float(sys.argv[2])
g=9.81
s=2*v0/g
if ts:
raise
y=v0*t-0.5*g*t**2
print y
except:
raise ValueError,"t shold be in%s"%repr([0,s])