import java.util.*;
import java.io.*;
public class Maksclub
{
public static String STRING_TRUE = "1";
public static String STRING_FALSE = "0";
public static void main (String[] args)
{
String strFalse = "0";
String strTrue = "1";
System.out.println(isTrueBinaryString(strFalse)); // false
System.out.println(isTrueBinaryString(strTrue)); // true
System.out.println(isTrueBinaryString(null)); // IllegalArgumentException
System.out.println(isTrueBinaryString("5")); // IllegalArgumentException
}
public static Boolean isTrueBinaryString(String value)
{
if (!STRING_FALSE.equals(value) && !STRING_TRUE.equals(value)) {
throw new IllegalArgumentException("Value must be `0` or `1`.");
}
return STRING_TRUE.equals(value);
}
}