class Solution:
def judgeCircle(self, moves):
"""
:type moves: str
:rtype: bool
"""
a=0
b=0
c=0
d=0
for i in moves:
if i=='U':
a+=1
elif i=='D':
b+=1
elif i=='L':
c+=1
elif i=='R':
d+=1
if a-b==0 and c-d==0:
return True
return False