322_C. Ciel and Robot
Fox Ciel has a robot on a 2D plane. Initially it is located in (0, 0). Fox Ciel code a command to it. The command was represented by string s. Each character of s is one move operation. There are four move operations at all:

  * 'U': go up, (x, y)  →  (x, y+1); 
  * 'D': go down, (x, y)  →  (x, y-1); 
  * 'L': go left, (x, y)  →  (x-1, y); 
  * 'R': go right, (x, y)  →  (x+1, y). 



The robot will do the operations in s from left to right, and repeat it infinite times. Help Fox Ciel to determine if after some steps the robot will located in (a, b).

Input

The first line contains two integers a and b, ( - 109 ≤ a, b ≤ 109). The second line contains a string s (1 ≤ |s| ≤ 100, s only contains characters 'U', 'D', 'L', 'R') — the command.

Output

Print "Yes" if the robot will be located at (a, b), and "No" otherwise.

Examples

Input

2 2
RU


Output

Yes


Input

1 2
RU


Output

No


Input

-1 1000000000
LRRLU


Output

Yes


Input

0 0
D


Output

Yes

Note

In the first and second test case, command string is "RU", so the robot will go right, then go up, then right, and then up and so on.

The locations of its moves are (0, 0)  →  (1, 0)  →  (1, 1)  →  (2, 1)  →  (2, 2)  →  ...

So it can reach (2, 2) but not (1, 2).
```python
target = tuple(map(int, input().split()))
s = input()

#print(target)
#print(s)

ok = False
pos = (0, 0)
for c in s:
    if c == 'L': pos = (pos[0]-1, pos[1])
    if c == 'R': pos = (pos[0]+1, pos[1])
    if c == 'U': pos = (pos[0], pos[1]+1)
    if c == 'D': pos = (pos[0], pos[1]-1)
    if pos == target: ok = True

if pos == (0, 0):           #termin pe pozitia din care am pornit
    if ok: print('Yes')
    else: print('No')
    exit()

if pos[0] == 0:
    if target[1] * pos[1] < 0: raport = 0
    else: raport = target[1] // pos[1]
else:
    if target[0] * pos[0] < 0: raport = 0
    else: raport = target[0] // pos[0]

if raport > 0: raport = max(0, raport - 1000)
if raport < 0: raport = min(0, raport + 1000)

#print('Ajung in (%i, %i) dupa o executie, si raport = %i' %(pos[0], pos[1], raport))

coord = (pos[0] * raport, pos[1]*raport)
for rep in range(0, 10**4):
    if coord == target: ok = True
    for c in s:
        if c == 'L': coord = (coord[0]-1, coord[1])
        if c == 'R': coord = (coord[0]+1, coord[1])
        if c == 'U': coord = (coord[0], coord[1]+1)
        if c == 'D': coord = (coord[0], coord[1]-1)
        if coord == target: ok = True
    
if ok: print('Yes')
else: print('No')

```