content: <<<<<<< HEAD
  import java.util.regex.Matcher;
  import java.util.regex.Pattern;
  import java.util.Scanner;
  
  class Solution{
  
      public static void main(String[] args){
          Scanner in = new Scanner(System.in);
          while(in.hasNext()){
              String IP = in.next();
              System.out.println(IP.matches(new MyRegex().pattern));
          }
  
      }
  }
  
  class MyRegex {
      private String regularExpression = "(\\d{1,2}|(0|1)\\d{2}|2[0-4]\\d|25[0-5])";
      public String pattern = regularExpression + "." + regularExpression + "." +
                              regularExpression + "." + regularExpression;
  =======
  import java.util.regex.Matcher;
  import java.util.regex.Pattern;
  import java.util.Scanner;
  
  class Solution{
  
      public static void main(String[] args){
          Scanner in = new Scanner(System.in);
          while(in.hasNext()){
              String IP = in.next();
              System.out.println(IP.matches(new MyRegex().pattern));
          }
  
      }
  }
  
  class MyRegex {
      private String regularExpression = "(\\d{1,2}|(0|1)\\d{2}|2[0-4]\\d|25[0-5])";
      public String pattern = regularExpression + "." + regularExpression + "." +
                              regularExpression + "." + regularExpression;
  >>>>>>> cded02a3519e594c508657d8c349c299c5e1dfcc
  }