Problem: Petya's friends made him a birthday present — a bracket sequence. Petya was quite disappointed with his gift, because he dreamed of correct bracket sequence, yet he told his friends nothing about his dreams and decided to fix present himself. 

To make everything right, Petya is going to move at most one bracket from its original place in the sequence to any other position. Reversing the bracket (e.g. turning "(" into ")" or vice versa) isn't allowed. 

We remind that bracket sequence s is called correct if: 

  * s is empty; 
  * s is equal to "(t)", where t is correct bracket sequence; 
  * s is equal to t_1 t_2, i.e. concatenation of t_1 and t_2, where t_1 and t_2 are correct bracket sequences. 



For example, "(()())", "()" are correct, while ")(" and "())" are not. Help Petya to fix his birthday present and understand whether he can move one bracket so that the sequence becomes correct.

Input

First of line of input contains a single number n (1 ≤ n ≤ 200 000) — length of the sequence which Petya received for his birthday.

Second line of the input contains bracket sequence of length n, containing symbols "(" and ")".

Output

Print "Yes" if Petya can make his sequence correct moving at most one bracket. Otherwise print "No".

Examples

Input


2
)(


Output


Yes


Input


3
(()


Output


No


Input


2
()


Output


Yes


Input


10
)))))(((((


Output


No

Note

In the first example, Petya can move first bracket to the end, thus turning the sequence into "()", which is correct bracket sequence.

In the second example, there is no way to move at most one bracket so that the sequence becomes correct.

In the third example, the sequence is already correct and there's no need to move brackets.

Solution (in PYTHON3):

Solution:
# sys.setrecursionlimit(300000)
import sys
def main():
    pass
def binary(n):
    # decimal to binary
    return (bin(n).replace("0b", ""))
def decimal(s):
    # binary to decimal
    return (int(s, 2))
def pow2(n):
    # power of a number base 2
    p = 0
    while n > 1:
        n //= 2
        p += 1
    return (p)
def isPrime(n):
    # if  number is prime in √n time
    if (n == 1):
        return (False)
    else:
        root = int(n ** 0.5)
        root += 1
        for i in range(2, root):
            if (n % i == 0):
                return (False)
        return (True)
def lts(l):
    # list to string ,no spaces
    s = ''.join(map(str, l))
    return s
def stl(s):
    # for each character in string to list with no spaces -->
    l = list(s)
    # for space in string  -->
    # l=list(s.split(" "))
    return l
# Returns list of numbers with a particular sum
def sq(a, target, arr=[]):
    s = sum(arr)
    if (s == target):
        return arr
    if (s >= target):
        return
    for i in range(len(a)):
        n = a[i]
        remaining = a[i + 1:]
        ans = sq(remaining, target, arr + [n])
        if (ans):
            return ans
# 1000000007
mod = int(1e9) + 7
def ssinp(): return sys.stdin.readline().strip()
#s=input()
def iinp(): return int(input())
#n=int(input())
def nninp(): return map(int, sys.stdin.readline().strip().split())
#n, m, a=[int(x) for x in input().split()]
def llinp(): return list(map(int, sys.stdin.readline().strip().split()))
#a=list(map(int,input().split()))
def p(xyz): print(xyz)
def p2(a, b): print(a, b)
import math
from collections import OrderedDict
#for _ in range(iinp()):
n=iinp()
s=ssinp()
if(n%2==1):
    print("No")
else:
    left=right=tot=0
    f=0
    for c in s:
        if(right-left==2):
            print("No")
            f=1
            break
        elif(c=="("):
            left+=1
        else:
            if (left > 0):
                tot += 1
                left -= 1
            else:
                right+=1
    if(f==0):
        if(left==1 and right==1):
            print("Yes")
        elif(left==0 and right==0):
            print("Yes")
        else:
            print("No")