Vladik is a competitive programmer. This year he is going to win the International Olympiad in Informatics. But it is not as easy as it sounds: the question Vladik face now is to find the cheapest way to get to the olympiad.

Vladik knows n airports. All the airports are located on a straight line. Each airport has unique id from 1 to n, Vladik's house is situated next to the airport with id a, and the place of the olympiad is situated next to the airport with id b. It is possible that Vladik's house and the place of the olympiad are located near the same airport. 

To get to the olympiad, Vladik can fly between any pair of airports any number of times, but he has to start his route at the airport a and finish it at the airport b.

Each airport belongs to one of two companies. The cost of flight from the airport i to the airport j is zero if both airports belong to the same company, and |i - j| if they belong to different companies.

Print the minimum cost Vladik has to pay to get to the olympiad.


-----Input-----

The first line contains three integers n, a, and b (1 ≤ n ≤ 10^5, 1 ≤ a, b ≤ n) — the number of airports, the id of the airport from which Vladik starts his route and the id of the airport which he has to reach. 

The second line contains a string with length n, which consists only of characters 0 and 1. If the i-th character in this string is 0, then i-th airport belongs to first company, otherwise it belongs to the second.


-----Output-----

Print single integer — the minimum cost Vladik has to pay to get to the olympiad.


-----Examples-----
Input
4 1 4
1010

Output
1
Input
5 5 2
10110

Output
0


-----Note-----

In the first example Vladik can fly to the airport 2 at first and pay |1 - 2| = 1 (because the airports belong to different companies), and then fly from the airport 2 to the airport 4 for free (because the airports belong to the same company). So the cost of the whole flight is equal to 1. It's impossible to get to the olympiad for free, so the answer is equal to 1. 

In the second example Vladik can fly directly from the airport 5 to the airport 2, because they belong to the same company.

Difficulty: interview

Starter code:

Solutions:
n, a, b = list(map(int, input().split()))
m = input()
if m[a - 1] == m[b - 1]:
    print(0)
else:
    print(1)

n, a, b = map(int, input().split())
s = input()
a -= 1
b -= 1
if s[a] == s[b]:
    print(0)
else:
    print(1)

n, a, b = list(map(int, input().split()))

s = input()
a -= 1
b -= 1

if s[a] == s[b]:
    print(0)
else:
    print(1)


n, a, b = [int(x) for x in input().split()]
s = input()
if (s[a - 1] != s[b - 1]):
    print('1')
else: print('0')

n, a, b = list(map(int, input().split()))
arr = input()
print(abs(int(arr[b - 1]) - int(arr[a - 1])))

n, a, b = map(int, input().split())
s = input()
if s[a - 1] == s[b - 1]:
    print(0)
else:
    print(1)

n , a, b = map(int, input().split())
k = input()
if k[a - 1] == k[b - 1]:
    print(0)
else:
    print(1)

n, a, b = map(int, input().split())
s = input()
if s[a-1] == s[b-1]:
  print(0)
else:
  print(1)  

read = lambda: list(map(int, input().split()))
n, a, b = read()
s = ' ' + input()
if s[a] == s[b]:
    print(0)
    return
else:
    print(1)


n, a, b = map(int, input().split())
s = input().strip()
if (s[a - 1] == s[b - 1]):
    print(0)
else:
    print(1)

n, a, b =map(int,input().split())
s = input()
if s[a-1] == s[b-1]:
    print(0)
else:
    print(1)

# coding=utf-8
__author__ = 'Alexander'


n, a, b = map(int,input().split())

t = input()

if t[a-1] != t[b-1]:
    print(1)
else:
    print(0)

n, a, b = map(int, input().split())
lst = input()
if (lst[a - 1] == lst[b - 1]):
    print(0)
else:
    print(1)

n,a,b = [int(x) for x in input().split()]
ports=[int(x) for x in input()]
if ports[a-1]==ports[b-1]:
    print(0)
else:
    print(1)

n, a, b = map(int, input().split())
s = input()
if s[a - 1] == s[b - 1]:
    print(0)
else:
    print(1)

n, a, b = list(map(int, input().split()))
s = input()
if s[a-1] == s[b-1] or a == b:
    print(0)
else:
    print(1)


N, a, b = [int(x) for x in input().strip().split(" ")]
airports = input().strip()
airports = [int(x) for x in airports]

print(abs(airports[a-1] - airports[b-1]))

n, a, b = map(int, input().split())
aero = input()
if aero[a - 1] == aero[b - 1]:
    print(0)
else:
    print(1)

n, a, b = map(int, input().split())
string = input()
print(abs(int(string[a-1])-int(string[b-1])))

n,a,b=map(int, input().split())
s=input()
k=s[a-1]
t=s[b-1]
if k==t:print(0)
else:print(1)

n,a,b=map(int, input().split())
s=input()
k=s[a-1]
t=s[b-1]
if k==t:print(0)
else:print(1)

n, a, b = list(map(int, input().split()))
s = input()

a -= 1
b -= 1
if s[a] == s[b]:
    print(0)
else:
    print(1)
    #i = a
    #while s[i] != s[b]:
        #i += 1
   # j = a
    #while j > 0 and s[i] != s[b]:
        #j -= a


n,a,b = map(int, input().split())
s = input()
if(s[a-1]==s[b-1]):
    print(0)
else:
    print(1)

n, a, b = list(map(int, input().split(' ')))
s = input()

if a == b or s[a - 1] == s[b - 1]: print('0')
else: print('1')


n,a,b = list(map(int,input().split()))
m = input()
if m[a-1] == m[b-1]: print(0)
else: print(1)