#importing modules
import math
from __future__ import division
#Variable declaration
h=6.626*10**-34; #planck's constant(Js)
e=1.6*10**-19; #conversion factor from J to eV
m=1.67*10**-27; #mass of proton(kg)
E=30*10**6; #energy(eV)
r=1.2*10**-15; #radius of nucleon(m)
#Calculation
lamdaP=h/math.sqrt(2*m*E*e); #wavelength of proton(m)
lamdaAlpha=h/math.sqrt(2*4*m*E*e); #wavelength of alpha particle(m)
a=2*r; #size of nucleon(m)
#Result
print "wavelength of proton is",round(lamdaP*10**15,1),"*10**-15 m"
print "wavelength of alpha particle is",round(lamdaAlpha*10**15,1),"*10**-15 m"
print "size of nucleon is",a,"m"
print "alpha particle is better"
#importing modules
import math
from __future__ import division
#Variable declaration
q=1.6*10**-19; #conversion factor from J to eV
B=2; #magnetic field(T)
m=1.67*10**-27; #mass of proton(kg)
R=0.25; #radius(m)
a=6.24*10**12; #conversion factor from J to MeV
#Calculation
f=q*B/(2*math.pi*m); #frequency needed(MHz)
KE=q**2*B**2*R**2/(2*m); #kinetic energy(J)
KE=KE*a; #kinetic energy(MeV)
#Result
print "frequency needed is",round(f*10**-6,1),"MHz"
print "kinetic energy is",round(KE),"MeV"