using System;
using System.Text.RegularExpressions;

public class RegexTest 
{
public static void Main(string [] args)
{
   if(args.Length != 2)
   {
      Console.WriteLine("usage: RegexTest <regex> <to match>");
      Environment.Exit(0);
   }
   Regex rx = new Regex(args[0]);
   Console.WriteLine(rx.IsMatch(args[1]));
}
}