// Block.java:  compute Golden number and Gregorian correction for 2001

class Block  {

   private static final int METONIC = 19; // Length of the Metonic cycle
   public static void main (final String[] args)  {
      final int year    = 2022;
      final int golden  = (year % METONIC) + 1;
      System.out.printf ("Golden number in the 19-year Metonic cycle: %d%n", golden);
      final int century = (year / 100) + 1;
      final int gregorian = (3*century / 4) - 12;
      System.out.printf ("Gregorian correction: %d%n", gregorian);
   }
}