#K43002. Equal Count Binary String

    ID: 27212 Type: Default 1000ms 256MiB

Equal Count Binary String

Equal Count Binary String

In this problem, you are given a binary string consisting only of characters '0' and '1'. Your task is to determine whether the string contains an equal number of '1's and '0's. Formally, let ( N_1 ) be the number of ones and ( N_0 ) be the number of zeros in the string. You should print "True" if ( N_1 = N_0 ), and "False" otherwise.

For example, given the string "1100", the output should be "True" since there are two '1's and two '0's. Conversely, for the string "101", the output should be "False".

inputFormat

The input consists of a single line containing a binary string. The string contains only the characters '0' and '1'.

outputFormat

Output a single line: "True" if the binary string has an equal number of 1s and 0s, and "False" otherwise.## sample

1100
True