import java.util.Scanner;

public class StringBracket {
    public static void main(String[] args){
        Scanner check = new Scanner(System.in);
        String  text   = check.nextLine();
        int sum = 0;
        char left = '(';
        char right = ')';


        for (int i = 0; i < text.length(); i++){

            char one = text.charAt(i);
            if(text.charAt(i)== left || text.charAt(i) == right  ){
                sum++;
            }

        }
        if(sum%2==0){
            System.out.println("Ok");
        }
        else{
            System.out.println("Błędnie sparowane nawiasy");
        }

        


    }



}

© Wklejaj.pl