JAL-629 changes merged in from develop fixed it. Deleted duplicate example PAE file.
authorBen Soares <b.soares@dundee.ac.uk>
Thu, 1 Jun 2023 16:10:08 +0000 (17:10 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Thu, 1 Jun 2023 16:10:08 +0000 (17:10 +0100)
examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4_2023.json [deleted file]
test/jalview/ws/dbsources/EBIAlphaFoldTest.java

diff --git a/examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4_2023.json b/examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4_2023.json
deleted file mode 100644 (file)
index 8861037..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[{"predicted_aligned_error":[[0,1,3,5,5,6,8,10,13,14,15,17,18,18,20,21,23,22,23,25,24,24,27,26,26,28,28,27,28,27,27,28,27,28,28,28,27,28,28,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,29,29,28,30,29,29,30,30,30,30,29,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,31,31,30,30,31,30,31,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,30,30,30,30,30,31,30,30,31,31,30,31,31,30,30,30,30,31,31,30,31,31,30,31,30,31,30,30,31,30,30,30,30,30,31,30,30,30,30,30,31,31,30,31,31,31,30,30,31,31,31,31,31,31,31,30,31,31,30,31,30,30,30,30,31,30,30,31,31,30,30,31,30,30,30,29,30,30,30,29,30,30,29,30,30,30,30,30,31,31,30,30,30,31,31,30,31,31,31,30,30,31,31,30,31,30,31,31,31,31,30,30,31,30,30,30,31,30,30,31,30,31,31,31,31,31,31,31,31,31,30,30,31,30,29,30,30,29,29,30,30,30,31,30,30,31,30,30,30,31,29,30,31,30,29,30,29,30,30,31,30,31,30,31,31,30,30,30,30,30,30,30,31,30,30,30,31,30,30,31,30,30,30,30,30,30,31,30,30,31,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,31,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,29,30,30,30,30,30,30,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,28,29,29,30,30,29,30,30,30,30,30,30,31,31,30,30,31,30,30,30,31,30,29,30,30,29,28,30,31,29,30,31,30,30,30,31,30,30,31,30,30,30,30,30,30,29,30,30,29,30,31,31,30,30,30,30,31,30,31,31,31,30,30,30,30,30,30,31,30,30,31,30,30,31,31,30,31,31,31,30,30,31,31,30,31,30,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,31,30,30,31,31,30,31,31,30,29,30,30,28,29,29,30,30,29,30,31,31,30,31,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,31,30,31,31,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,31,30,31,31,30,30,30,30,30,30,30,30,30,30,31,30,31,30,31,30,30,30,31,30,30,31,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,31,30,30,31,31,30,31,31,31,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,28,30,30,29,29,30,30,29,30,31,29,29,30,30,29,30,30,30,29,30,30,30,29,28,28,27,28,28,27,27,28,28,28,28,28,28,28,28,28,28,27,28,29,28,28,27,27,28,25,26,23,28,28,26,27,26,29,27,28,27,29,28,28,28,29,28,28,29,28,28,28,29,28,27,28,27],[1,0,1,3,4,5,6,7,9,12,13,15,16,17,17,19,20,21,22,23,23,24,25,25,26,27,27,27,27,27,28,28,28,28,29,28,29,29,29,29,29,29,29,29,29,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,31,30,30,30,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,31,30,31,31,30,29,30,29,30,30,30,29,30,30,29,29,30,30,30,30,31,31,31,30,30,31,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,29,30,30,29,29,30,30,30,31,30,30,30,30,30,31,30,29,30,31,30,29,30,29,30,30,30,30,31,30,31,31,30,30,31,31,30,30,31,31,30,30,31,31,30,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,30,31,31,31,30,31,31,30,31,31,31,31,31,30,31,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,31,30,31,31,30,30,31,31,30,30,30,30,30,30,31,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,30,31,31,30,30,30,31,31,30,31,31,30,30,30,30,30,30,30,29,29,29,30,30,29,30,30,30,30,30,30,31,31,30,30,31,30,30,30,31,30,29,29,30,29,28,30,30,29,30,30,30,30,30,31,30,30,30,30,29,30,30,30,30,29,29,29,29,29,30,30,31,30,30,31,30,31,31,31,31,30,30,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,31,31,30,30,30,30,30,30,30,29,29,30,30,30,29,30,31,31,30,31,30,30,31,30,31,31,31,30,31,30,31,30,31,30,31,31,31,31,31,31,31,30,31,31,31,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,31,31,30,31,31,30,31,31,30,30,31,30,30,31,31,30,29,31,31,30,30,31,30,30,31,31,30,30,30,30,30,30,30,30,31,31,30,30,30,31,30,30,30,31,31,30,30,31,31,30,31,30,31,31,31,31,31,31,30,31,30,31,30,30,31,30,30,30,31,30,31,30,30,30,31,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,31,30,30,30,30,29,29,27,30,30,29,29,30,30,29,30,30,29,29,30,30,28,30,30,30,29,30,30,30,28,28,27,27,28,28,26,27,28,28,28,28,28,28,28,28,28,28,28,27,27,28,27,27,26,28,25,25,25,27,27,26,27,27,28,26,27,27,28,26,27,26,28,28,27,27,28,28,28,29,28,28,29,28],[2,1,0,1,3,4,5,5,7,10,11,12,14,15,17,18,20,20,21,21,22,23,24,24,26,26,25,26,26,26,27,27,26,27,27,27,27,27,27,27,28,27,28,28,29,29,29,29,29,29,29,29,29,30,29,30,30,30,29,29,30,28,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,31,31,30,30,30,31,31,31,31,31,31,30,31,31,31,31,31,31,30,30,31,30,31,31,31,30,31,31,30,30,31,31,31,31,31,30,30,31,31,31,31,31,30,31,31,30,30,30,30,30,30,31,30,31,31,31,30,31,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,30,29,30,31,30,29,30,29,30,30,29,29,30,30,29,30,30,30,30,30,30,31,30,30,30,31,31,30,31,31,31,30,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,30,30,30,30,29,29,29,30,30,30,30,30,30,30,29,30,30,29,30,30,30,28,30,29,30,30,30,30,31,30,31,31,30,30,30,30,30,30,31,30,30,31,31,30,30,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,30,31,30,30,30,30,31,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,29,30,29,29,30,30,29,30,30,30,30,30,30,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,30,31,30,31,31,31,30,30,30,30,30,30,30,30,31,31,30,30,31,31,31,31,31,30,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,30,31,31,31,31,31,31,31,30,31,31,31,30,30,30,30,30,30,31,30,30,30,30,29,30,29,29,28,29,30,30,29,30,30,30,30,30,30,31,31,30,30,31,30,30,30,30,29,29,29,30,29,28,30,30,29,30,31,30,30,30,30,29,30,30,30,29,29,29,29,29,28,29,29,29,30,30,30,30,30,30,30,30,31,31,30,30,30,30,31,30,31,31,30,30,31,30,30,30,31,30,30,31,30,30,30,31,30,30,30,31,30,30,30,30,30,30,31,30,30,30,30,30,31,31,30,30,31,30,30,30,30,29,30,30,30,29,30,30,28,29,29,30,30,29,30,31,31,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,31,30,30,31,31,31,31,30,31,31,31,31,30,31,30,30,30,30,30,30,31,30,30,30,30,30,30,31,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,31,30,30,31,31,30,30,30,30,30,31,31,29,30,30,30,30,30,30,31,31,30,30,30,30,31,30,31,30,30,31,31,30,30,31,30,31,30,31,31,31,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,31,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,27,30,30,28,30,30,30,28,30,30,29,29,30,30,28,30,30,30,29,30,30,30,28,29,28,26,28,27,26,27,29,28,29,28,28,28,28,27,28,28,28,27,28,28,28,27,26,28,24,26,24,28,28,26,26,27,28,27,28,28,28,28,28,28,28,28,29,29,28,29,27,29,28,28,29,28],[3,3,2,0,1,2,4,5,6,7,9,11,13,13,15,16,18,18,19,20,21,22,23,23,26,26,25,26,27,26,28,28,26,27,28,28,27,28,28,28,29,28,28,29,29,30,30,29,29,30,30,30,29,30,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,31,31,30,31,31,31,30,31,31,31,31,30,30,31,31,31,31,31,31,30,31,31,31,31,31,30,31,30,31,30,31,31,31,31,31,31,30,30,31,31,31,31,31,30,30,31,31,30,31,31,30,31,31,31,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,30,30,30,29,30,30,29,29,30,30,29,30,30,30,30,30,30,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,29,30,30,30,31,31,30,30,30,30,30,30,31,30,30,31,30,29,29,29,30,30,31,30,31,30,31,31,30,31,31,31,30,30,31,31,30,31,31,31,30,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,30,30,31,31,30,30,31,31,30,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,30,30,29,30,29,29,29,29,30,29,30,30,30,30,30,31,31,31,30,30,31,30,30,30,31,30,29,30,30,29,28,30,30,29,30,31,30,30,31,30,29,30,30,30,30,30,30,30,30,29,29,30,29,30,30,31,31,30,30,31,30,30,31,30,31,30,30,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,30,31,31,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,29,31,30,30,29,30,30,28,29,29,30,30,29,30,31,30,30,31,30,30,31,30,30,30,31,30,31,30,31,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,30,30,31,30,30,31,30,30,31,30,31,31,31,31,30,31,31,30,30,30,30,30,30,30,30,30,31,30,30,30,30,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,31,31,31,31,30,31,31,31,31,31,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,31,30,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,27,30,30,28,29,30,30,28,29,30,30,28,30,30,29,29,30,30,29,29,30,30,29,29,28,26,28,28,27,28,28,29,29,29,28,28,29,28,28,28,28,28,28,28,28,28,25,27,25,27,26,28,28,27,27,28,27,27,29,27,27,28,27,26,27,27,28,27,27,28,27,28,28,27,28,28],[4,4,3,2,0,1,3,4,5,5,6,8,10,11,13,14,17,17,18,19,20,20,22,22,24,24,25,26,26,26,27,27,27,27,28,28,28,28,28,28,29,28,29,29,29,30,29,29,29,30,30,30,30,29,29,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,31,30,31,30,31,30,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,31,30,29,30,29,30,30,29,29,30,30,29,30,31,30,30,30,31,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,29,30,30,31,30,30,30,30,30,30,30,30,30,29,30,30,30,28,30,29,30,30,30,30,30,30,31,31,30,30,31,31,30,30,31,31,30,31,31,31,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,30,30,30,31,31,30,31,31,31,31,30,30,30,31,30,30,30,30,30,31,30,30,30,29,30,31,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,31,30,31,30,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,30,31,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,31,31,31,30,30,31,30,31,30,30,30,30,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,30,30,30,30,30,30,30,29,29,30,30,30,30,30,30,30,31,30,31,31,31,30,30,30,30,30,30,30,30,29,29,30,29,28,30,30,29,30,30,30,30,30,30,29,30,30,30,30,30,29,29,29,29,29,29,29,29,30,30,31,30,30,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,31,30,30,30,30,29,30,30,30,30,30,30,29,29,29,30,30,30,30,30,31,30,30,31,30,31,30,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,30,30,31,31,30,31,30,31,31,31,31,30,31,31,30,30,31,30,30,31,30,30,30,31,30,30,31,31,30,30,31,30,30,31,31,30,30,30,30,30,30,30,31,31,31,30,31,30,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,30,30,30,29,29,27,30,30,28,29,30,30,28,30,31,29,28,30,30,28,29,30,30,29,30,30,30,29,29,27,28,28,28,27,28,29,28,29,29,28,29,29,28,29,28,29,28,29,29,29,28,28,28,26,27,26,28,28,28,29,28,29,29,28,28,29,28,27,27,29,29,28,29,28,29,29,30,29,28,30,29],[4,4,4,3,2,0,1,3,3,5,5,6,8,10,11,13,16,16,18,19,19,21,21,21,24,23,23,26,25,25,26,27,25,26,27,26,28,27,28,27,28,28,29,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,30,30,31,31,31,30,30,31,31,30,31,31,31,30,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,29,30,30,30,30,31,30,30,31,30,30,31,30,29,30,30,30,28,29,29,30,30,31,30,31,30,31,31,30,30,31,31,30,30,31,30,30,31,31,31,30,30,31,30,30,30,30,31,30,31,31,31,31,30,30,31,30,30,30,30,31,31,31,30,30,30,30,31,31,31,30,30,30,31,30,31,30,30,30,30,31,30,30,30,30,30,30,30,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,31,31,31,31,31,31,31,31,30,30,30,31,29,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,31,31,30,30,31,31,30,31,31,30,30,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,29,28,29,29,30,29,29,30,29,30,30,30,31,31,31,30,30,30,30,29,30,30,30,29,30,30,29,28,30,30,29,30,31,30,29,31,31,29,30,30,30,30,30,29,29,30,29,28,29,28,30,30,31,31,30,30,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,29,30,30,30,29,30,30,28,29,29,30,30,29,30,31,31,30,31,31,30,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,31,31,30,31,31,31,30,30,30,31,30,30,31,30,30,30,30,31,30,31,30,30,30,31,29,30,30,30,29,31,30,30,29,30,30,30,30,30,30,31,30,31,31,30,31,31,31,31,31,31,31,31,30,31,31,31,30,31,30,31,30,31,30,30,30,30,30,30,30,30,31,31,31,31,30,31,31,30,31,31,31,30,31,31,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,29,29,28,27,30,30,27,29,30,30,28,30,30,29,28,30,30,28,29,30,30,29,30,30,30,29,29,27,26,28,28,26,28,29,29,29,28,28,29,29,28,28,29,28,28,29,29,28,28,27,28,26,27,27,29,28,28,28,28,29,28,29,29,29,28,29,28,28,28,29,28,28,29,28,29,29,28,28,29],[5,5,5,4,3,1,0,1,2,3,4,5,6,8,10,11,14,15,16,18,19,19,21,21,23,23,24,26,26,26,27,27,27,27,28,28,28,28,28,28,28,28,29,29,29,30,30,29,29,29,29,29,30,29,29,30,30,30,30,29,30,29,30,29,30,30,30,30,30,30,31,30,30,30,31,30,30,30,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,29,30,30,29,29,30,30,28,29,30,30,30,30,31,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,29,30,30,30,30,31,30,31,31,30,30,31,31,30,30,31,31,30,31,31,31,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,30,30,31,30,30,31,31,31,31,30,31,30,30,31,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,31,30,30,31,30,31,31,30,31,31,30,31,31,30,30,30,30,30,30,30,31,31,31,31,31,31,30,31,30,30,31,30,30,31,31,30,30,31,30,30,30,31,30,30,30,30,30,30,29,31,31,31,31,31,30,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,30,29,30,30,30,30,30,31,31,31,29,30,30,30,30,30,30,30,29,30,30,29,29,29,30,29,30,30,30,30,31,30,29,30,30,30,30,30,29,30,29,29,29,29,29,29,30,30,31,30,30,31,30,31,31,31,30,30,30,31,30,31,31,30,31,31,31,30,31,31,30,31,31,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,29,30,30,28,29,29,30,30,29,29,30,30,30,30,30,30,31,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,30,30,30,30,31,30,30,31,31,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,29,30,30,29,29,30,30,30,29,30,30,30,30,30,30,30,31,30,31,31,31,31,31,31,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,31,30,30,31,31,30,31,30,31,30,30,31,30,30,30,30,30,30,30,29,29,29,28,28,29,29,28,29,29,30,27,29,30,29,28,29,29,28,29,29,29,29,29,30,29,29,28,28,28,27,29,28,29,29,29,29,29,29,29,29,29,29,29,28,28,28,29,28,28,27,28,25,28,28,29,28,28,29,28,28,28,29,27,28,29,28,27,28,29,29,29,28,29,28,29,29,28,29,29],[8,5,5,4,3,2,1,0,1,2,4,5,5,6,9,10,12,15,15,18,19,19,21,21,23,23,24,25,25,26,27,26,26,27,27,27,27,27,28,27,28,27,28,28,29,29,29,28,29,29,29,29,29,29,29,30,30,30,30,29,30,29,30,29,30,30,30,30,30,30,31,30,31,30,30,30,30,30,31,30,31,31,31,30,30,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,29,30,30,29,29,30,29,29,30,29,29,29,29,28,29,30,30,30,29,30,31,31,30,30,31,31,30,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,29,29,30,30,30,30,29,29,30,30,29,30,30,29,30,30,30,28,29,29,30,30,30,30,30,30,30,31,30,30,30,30,30,30,31,30,30,31,31,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,31,30,31,31,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,31,30,30,30,30,30,29,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,31,31,31,31,31,30,31,31,31,31,31,30,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,31,31,31,30,30,30,29,30,30,30,29,29,29,29,28,28,29,30,29,29,30,30,29,30,30,29,29,30,30,29,30,28,29,29,29,28,28,28,29,30,30,30,30,30,30,30,31,31,31,31,30,30,31,30,31,31,30,31,31,30,30,31,31,30,30,31,30,30,30,31,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,29,30,30,30,29,30,30,29,29,30,29,28,29,28,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,30,30,30,30,31,30,30,31,30,30,30,31,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,29,30,30,30,29,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,30,31,31,31,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,30,31,30,31,30,30,30,30,30,30,30,29,29,26,30,30,28,29,30,29,28,29,30,28,28,29,30,28,29,30,29,29,30,30,29,29,29,28,28,28,28,28,28,29,28,29,29,28,29,29,29,29,29,28,28,28,29,28,29,28,28,26,27,26,28,28,28,28,27,28,29,28,27,29,28,29,27,28,29,29,29,28,29,28,29,29,28,30,29],[9,7,5,5,4,3,3,2,0,1,2,3,4,4,6,7,10,10,12,15,15,17,19,19,21,21,22,23,23,23,25,25,24,26,26,25,26,26,26,26,27,26,27,28,28,29,29,28,28,29,29,29,29,30,29,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,31,31,31,30,30,31,30,31,31,31,30,31,30,30,30,30,30,30,31,31,30,31,31,30,31,31,31,30,31,31,31,30,31,31,30,31,31,30,31,31,30,30,30,31,30,31,31,31,31,31,30,30,31,31,31,30,31,31,31,31,30,31,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,30,30,30,31,30,30,31,30,29,30,30,30,29,30,29,30,30,29,29,30,29,28,29,30,30,30,29,30,30,31,30,30,31,30,30,30,31,31,30,30,31,30,30,31,31,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,29,30,30,29,29,29,30,30,30,29,30,30,29,29,30,30,29,29,30,29,28,29,29,30,29,30,30,30,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,29,29,29,29,30,29,29,30,29,29,30,29,30,29,29,29,30,29,29,29,29,30,29,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,30,31,31,31,31,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,29,30,30,30,29,29,29,29,29,29,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,28,29,29,28,28,29,28,29,29,29,29,29,29,30,29,30,30,30,31,30,30,30,30,29,29,30,30,29,28,29,30,29,27,29,29,29,30,30,29,29,30,30,29,30,30,30,30,30,28,29,29,28,27,29,27,29,30,30,30,30,30,30,30,31,31,30,30,30,30,31,30,31,31,30,31,31,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,29,30,30,30,29,30,29,29,30,30,29,30,29,29,28,30,30,28,28,27,29,30,28,29,30,30,29,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,31,31,31,31,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,28,29,30,29,28,30,30,28,28,29,29,30,30,30,30,30,30,30,30,30,31,31,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,29,29,29,29,29,28,28,25,29,30,27,27,30,29,27,28,30,28,27,29,29,27,28,30,29,28,29,30,29,28,29,28,26,28,28,27,28,28,28,29,29,28,29,29,29,29,29,28,28,29,29,28,29,28,28,26,27,27,29,28,28,28,27,28,28,28,28,28,28,28,27,28,28,29,28,28,28,28,28,29,28,28,28],[11,9,8,5,5,4,3,2,1,0,1,2,3,4,5,5,10,11,11,15,14,15,19,19,19,21,21,22,23,23,26,25,24,25,26,26,27,26,26,26,27,27,27,27,28,28,28,28,28,29,28,28,29,28,28,29,29,29,29,28,29,29,29,29,30,30,30,30,30,30,30,29,30,30,30,30,30,30,31,30,30,31,31,30,30,31,30,30,30,30,31,30,30,31,31,30,30,31,30,30,31,31,30,30,31,30,30,30,31,30,30,31,31,30,31,30,30,30,31,31,31,31,31,30,30,31,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,30,30,30,31,30,30,30,30,29,30,30,30,29,30,29,29,30,29,29,30,29,28,29,30,30,30,29,30,31,31,30,30,31,30,30,31,31,30,30,31,31,31,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,29,29,30,30,30,30,29,29,30,30,29,30,30,28,29,30,30,28,29,29,30,30,30,30,31,30,31,31,30,30,30,30,29,29,31,30,30,30,31,30,30,31,31,30,31,31,30,30,31,31,30,30,30,30,31,30,30,30,30,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,30,30,30,30,30,29,29,29,30,29,29,29,29,29,30,29,29,29,28,29,30,29,29,29,29,29,30,29,30,30,30,29,30,29,29,29,29,30,29,29,29,29,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,29,30,31,30,29,30,30,29,29,30,30,30,30,30,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,31,31,30,30,30,31,30,30,30,29,30,30,29,30,30,30,29,29,29,29,29,30,29,30,30,29,30,29,30,30,30,30,30,30,31,30,29,30,30,29,29,30,30,29,28,29,29,29,27,29,30,28,30,30,29,29,30,30,29,30,30,30,29,30,29,29,29,28,27,29,27,28,29,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,29,29,30,29,29,30,30,29,29,28,29,29,28,27,29,29,29,28,29,29,26,28,27,29,29,28,29,30,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,29,29,29,29,29,29,29,29,29,29,30,29,28,29,28,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,29,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,29,29,28,28,28,28,28,26,28,29,27,28,28,29,26,27,29,28,27,28,29,27,28,29,28,28,29,30,29,29,29,28,28,28,29,27,28,28,29,29,30,29,30,29,29,30,29,28,29,28,29,28,28,28,27,26,28,27,27,28,28,28,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,28,28,29,28],[14,11,10,9,6,5,5,4,3,1,0,1,3,3,4,4,6,9,10,11,13,13,17,18,17,18,20,21,20,21,23,22,22,24,24,25,25,25,25,25,25,25,27,26,27,28,27,27,28,28,28,28,28,28,27,29,29,29,29,29,29,29,29,29,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,31,31,30,31,31,30,30,30,30,30,30,30,31,30,31,31,30,30,31,31,30,30,31,30,30,31,31,30,31,31,30,30,31,30,30,30,30,30,30,30,31,30,31,30,30,31,30,31,30,31,31,31,31,31,31,30,31,30,31,30,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,29,30,30,29,28,30,27,29,29,28,28,29,29,27,29,30,28,29,29,30,30,30,30,29,30,30,30,30,31,31,30,30,31,31,30,31,31,30,31,31,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,30,29,29,29,30,30,30,29,29,30,29,29,30,29,28,29,30,29,27,28,29,29,29,30,30,30,29,30,30,30,29,30,30,29,30,30,30,29,30,30,30,29,30,30,30,31,31,29,30,31,31,30,30,31,30,30,30,31,30,30,30,30,30,31,30,31,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,29,30,29,29,30,30,30,29,29,30,30,30,29,30,29,29,30,30,29,30,30,30,29,30,29,30,29,29,30,29,29,29,30,30,30,30,30,29,30,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,31,30,30,30,30,30,30,31,31,31,30,30,31,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,30,31,31,30,31,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,29,29,30,29,29,30,30,30,29,30,30,30,30,30,30,31,30,30,30,30,29,30,30,30,29,28,28,29,28,27,29,29,27,29,30,29,28,30,30,29,29,30,29,30,29,28,29,28,27,27,28,27,28,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,30,29,30,30,30,30,30,30,29,30,30,30,30,30,29,29,30,30,28,30,30,28,29,30,29,27,28,26,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,31,31,31,31,31,31,31,30,31,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,29,30,30,30,30,30,29,29,30,29,29,30,30,28,28,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,31,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,29,29,29,28,25,29,29,27,29,29,29,27,29,30,28,28,30,29,27,29,30,29,29,30,30,29,29,29,28,28,29,28,28,28,30,30,29,30,29,29,29,29,30,29,29,29,29,29,29,29,29,29,27,28,27,29,29,29,28,29,29,29,28,29,29,28,28,28,29,28,29,29,29,29,29,30,29,29,30,29],[14,13,11,11,10,6,6,5,4,3,1,0,1,3,3,4,5,6,8,11,11,12,16,17,18,20,19,21,22,21,23,23,22,24,24,25,24,25,25,25,25,26,26,26,27,28,28,27,28,29,28,27,28,29,28,29,29,29,29,29,30,29,29,29,30,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,31,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,31,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,31,31,30,30,31,30,31,31,30,30,31,31,30,31,31,31,30,31,31,30,30,31,31,30,30,30,30,30,30,30,30,31,30,29,30,30,29,29,30,29,30,30,28,29,30,29,27,29,30,29,29,29,30,30,31,30,29,30,30,30,30,31,30,29,30,31,30,30,31,31,30,30,31,30,30,30,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,30,30,30,30,30,30,29,30,30,29,29,29,30,30,30,29,30,30,29,29,30,29,29,29,30,29,28,28,29,30,29,30,30,30,29,30,30,29,29,30,30,29,29,30,30,29,30,30,30,29,31,30,29,31,30,29,30,31,30,30,31,30,30,30,31,30,30,30,30,31,31,30,30,30,30,29,30,31,30,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,29,29,29,30,29,29,29,29,30,30,29,29,29,28,29,30,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,31,30,30,30,30,30,30,30,31,30,31,30,31,30,31,30,30,30,29,30,28,29,31,29,28,30,30,29,29,30,30,30,30,30,30,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,31,30,30,30,30,30,28,29,30,29,28,30,30,28,29,29,29,28,29,30,27,29,30,29,30,29,29,30,29,30,30,30,30,30,29,30,30,29,30,30,30,29,29,29,29,28,28,29,29,28,29,30,29,29,30,29,29,29,30,29,30,30,28,28,29,27,25,29,27,29,29,29,30,30,30,30,30,30,30,30,29,30,30,30,30,31,30,30,30,30,30,30,30,30,29,30,31,30,29,30,30,29,29,30,30,28,29,30,29,28,30,30,29,29,30,30,29,29,30,30,29,30,28,28,29,29,28,29,29,28,29,29,29,27,28,26,29,29,28,29,30,30,29,30,30,29,30,30,30,30,30,29,30,30,30,30,30,30,31,31,31,30,30,30,31,31,30,31,31,31,30,31,30,30,30,30,30,31,31,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,29,30,30,30,29,30,29,29,29,29,30,28,29,29,28,29,29,28,28,30,29,28,29,29,27,28,28,29,29,29,29,29,30,30,29,30,30,30,30,30,30,30,29,30,30,29,30,30,30,28,30,30,29,28,30,29,29,28,28,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,30,29,29,29,28,28,28,27,27,25,29,29,26,27,28,28,26,28,29,28,27,29,28,27,29,30,28,28,29,30,29,28,29,28,27,29,28,27,28,29,30,29,29,29,29,30,30,30,29,29,29,29,29,29,28,28,28,26,28,27,28,28,28,27,28,29,28,28,28,28,28,28,28,29,27,29,27,28,28,28,29,29,27,29,29],[17,14,14,13,11,9,7,6,5,4,3,1,0,1,3,3,4,6,6,9,10,11,14,15,16,18,19,19,19,20,23,21,22,23,23,25,25,24,25,24,26,26,27,26,27,28,27,26,28,28,27,27,28,28,25,28,29,28,28,28,29,28,28,29,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,31,30,31,30,30,30,31,31,30,30,31,30,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,30,31,30,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,30,30,30,30,29,29,30,28,30,29,28,29,30,29,28,29,30,29,29,29,30,30,31,30,30,30,31,30,31,31,31,30,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,29,30,30,30,30,30,30,30,30,29,29,30,30,27,29,29,29,28,29,29,30,29,30,30,30,29,30,30,30,30,30,30,30,29,30,30,30,30,31,30,30,31,31,30,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,30,31,31,31,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,29,30,29,29,29,30,30,29,29,30,30,30,29,29,29,29,30,30,29,29,30,30,30,30,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,30,31,30,31,29,30,31,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,30,31,30,30,30,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,30,30,29,30,31,30,29,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,31,31,30,30,30,30,29,30,30,30,29,29,29,29,28,28,29,29,27,29,29,29,28,29,29,28,29,29,29,29,29,28,28,28,27,26,28,27,28,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,31,30,30,31,31,30,30,31,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,29,30,30,29,30,30,30,30,30,30,29,29,29,28,29,29,28,28,29,29,27,29,27,28,29,28,29,30,30,29,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,28,29,30,29,29,30,30,29,29,29,28,29,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,31,30,30,29,30,30,29,29,29,30,30,30,30,30,29,29,31,30,30,30,30,30,30,30,30,30,30,31,31,31,31,30,30,30,30,30,30,30,30,30,29,29,29,28,28,25,29,30,27,28,29,29,27,28,29,28,28,29,29,27,29,30,29,29,30,30,29,29,29,29,28,28,29,29,28,30,30,30,30,30,30,30,30,30,30,29,29,29,29,30,29,29,28,27,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,30,29],[18,15,13,14,13,11,10,6,5,5,4,3,1,0,1,2,4,4,6,8,8,9,12,13,14,16,17,20,19,19,22,21,20,23,23,24,22,24,24,24,25,24,25,25,26,28,27,27,27,29,28,26,28,29,28,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,31,31,30,30,30,30,30,31,30,31,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,30,31,30,30,30,30,30,31,31,30,31,30,30,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,30,30,31,30,30,30,31,30,30,31,30,29,29,30,28,30,30,29,29,30,29,28,29,30,29,29,29,30,30,31,30,29,31,31,30,30,31,30,29,30,31,30,30,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,31,30,29,30,29,30,30,30,29,30,30,29,29,30,29,29,30,30,29,28,28,29,30,29,30,30,30,29,30,30,30,29,30,30,29,29,31,30,29,30,31,30,30,31,30,30,31,31,29,30,31,30,30,31,31,30,30,31,30,30,31,30,31,31,30,30,31,31,30,30,31,30,30,30,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,29,30,30,30,29,29,29,29,29,30,29,29,30,29,29,30,29,29,30,29,30,29,29,29,29,29,29,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,31,30,31,30,30,31,30,30,31,30,31,30,30,31,30,31,31,30,30,31,30,30,30,30,30,29,29,30,29,28,30,30,29,29,30,30,29,30,30,30,30,30,29,30,30,29,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,31,30,30,30,30,30,30,29,30,30,30,29,30,30,29,29,30,30,29,29,30,28,30,30,30,30,30,30,30,30,31,30,31,31,30,30,30,30,29,30,30,30,29,29,29,30,29,28,30,29,28,30,30,29,28,30,30,28,29,30,29,29,29,28,28,29,26,25,28,26,29,29,29,30,29,30,30,30,30,31,31,30,30,30,31,30,31,31,30,31,31,30,30,30,30,30,30,31,30,29,30,30,30,29,30,30,28,29,30,30,29,30,30,30,29,30,30,30,29,30,30,30,30,29,30,30,29,29,30,29,29,29,30,29,27,28,26,29,30,28,29,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,29,30,30,29,29,30,29,30,30,29,29,30,30,28,30,30,28,28,29,29,29,29,29,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,29,29,29,29,30,29,29,30,30,30,29,31,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,29,29,28,27,26,29,29,27,28,29,29,28,29,29,28,28,29,29,28,29,30,29,29,30,30,30,29,30,28,28,29,28,28,29,30,30,30,29,30,29,30,29,30,30,29,30,30,30,29,29,29,29,28,27,29,30,29,28,28,29,28,29,29,29,28,28,29,28,29,28,29,28,29,29,28,29,29,28,29,29],[21,18,16,15,15,13,12,10,6,5,5,4,3,1,0,1,2,4,4,5,7,8,9,11,12,15,16,16,18,19,19,21,21,23,22,24,23,25,25,24,25,25,26,25,27,28,27,26,27,28,26,26,28,28,25,28,29,28,28,28,29,28,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,31,30,30,30,30,30,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,30,31,30,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,29,30,30,29,29,30,29,28,30,30,29,29,29,30,31,31,30,30,31,31,30,31,31,31,30,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,30,30,29,30,30,29,29,30,29,28,29,30,29,28,29,29,30,30,30,30,30,30,30,31,30,30,30,30,30,29,31,31,30,31,31,31,30,31,31,30,31,31,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,28,29,29,30,29,30,30,30,30,30,30,29,29,29,30,29,30,30,30,30,30,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,30,31,29,30,31,30,30,31,31,30,30,30,31,30,30,30,30,30,31,30,30,30,30,31,30,31,31,30,31,31,30,30,31,30,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,29,30,31,30,29,31,31,30,30,30,30,30,30,31,30,31,30,30,30,30,30,31,30,31,30,31,31,30,30,30,30,29,30,30,30,29,29,30,30,29,28,29,29,28,29,29,29,28,30,29,28,29,29,29,29,29,28,28,28,27,25,28,27,29,29,30,30,30,30,30,30,30,31,31,30,30,30,30,30,31,31,30,31,31,30,30,31,31,30,30,31,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,29,30,30,30,30,31,30,30,30,29,30,29,29,28,29,28,29,29,29,29,28,28,27,29,29,28,29,29,30,28,30,30,29,30,30,30,30,30,30,30,30,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,30,31,30,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,29,30,30,29,30,29,30,29,29,30,30,28,29,29,29,28,29,29,28,29,28,29,29,29,29,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,30,29,30,30,30,30,29,31,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,30,30,30,30,30,29,29,30,28,28,28,28,27,26,28,29,26,28,29,28,28,28,29,28,28,30,29,28,30,30,29,29,30,30,30,29,30,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,29,30,28,29,28,30,30,29,29,29,30,29,30,30,30,30,29,29,30,30,30,30,29,30,30,30,29,30,30,30],[20,18,16,15,14,14,13,12,9,7,5,4,4,3,1,0,1,3,5,5,6,7,9,10,10,13,14,15,16,17,19,19,19,21,21,22,21,23,23,23,24,24,25,24,26,27,26,26,26,29,27,26,28,28,27,28,29,29,28,29,29,28,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,29,30,30,30,30,30,30,30,31,30,30,31,31,30,31,31,30,30,30,31,30,30,31,30,30,31,31,30,30,31,30,30,31,31,31,30,31,30,30,31,31,30,31,30,30,30,30,30,30,30,30,30,30,31,31,30,31,30,30,30,31,31,30,31,31,30,30,30,31,30,31,31,30,30,31,30,31,31,30,30,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,30,30,30,31,30,30,31,30,29,30,30,29,30,30,29,30,30,29,29,30,29,27,29,30,28,29,29,30,30,30,30,29,30,30,30,30,31,31,29,30,31,31,30,31,31,30,30,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,29,29,30,29,29,30,30,28,28,28,29,30,29,30,30,30,29,30,30,30,29,30,30,29,30,31,30,30,30,30,31,30,31,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,31,30,30,30,31,31,29,30,31,31,30,30,30,30,30,30,29,30,29,30,29,29,29,29,30,30,30,30,30,29,29,30,29,28,29,29,30,28,30,29,29,29,29,29,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,31,30,30,30,29,30,29,29,31,29,28,30,30,29,28,30,30,29,30,30,30,29,30,29,30,29,29,30,30,31,30,30,30,30,30,30,31,30,30,30,31,30,30,31,31,30,30,31,30,30,30,30,30,30,29,29,30,30,28,30,30,29,29,30,30,28,29,30,29,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,29,30,30,30,29,29,29,30,29,28,29,30,28,29,30,29,28,30,29,28,29,30,29,29,29,28,27,29,25,25,28,26,29,29,29,30,29,30,30,29,30,31,31,30,30,30,30,30,31,31,30,30,30,30,29,30,30,30,30,31,30,29,30,30,30,29,30,30,29,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,29,30,30,29,29,30,29,29,29,29,29,28,29,26,29,30,27,29,30,30,28,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,31,31,30,30,30,30,30,31,31,31,31,31,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,29,29,30,29,29,29,29,29,29,29,29,29,30,28,30,30,29,27,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,28,29,29,29,28,29,30,29,28,29,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,29,29,29,29,28,28,28,27,26,29,30,27,28,29,29,27,29,29,28,28,29,29,28,30,29,29,29,30,30,30,29,30,29,28,29,29,29,29,30,30,30,30,30,29,30,30,30,30,30,30,30,30,29,29,29,29,28,29,29,30,29,29,28,29,29,29,29,29,29,29,29,29,30,28,29,28,29,29,29,29,29,29,30,29],[22,22,20,18,18,16,16,15,12,9,7,5,5,5,3,2,0,1,3,4,5,5,6,7,9,10,13,13,14,16,16,18,19,19,19,21,21,22,24,23,24,23,25,24,26,27,26,25,26,27,25,26,27,26,24,27,28,27,27,28,28,28,28,28,29,29,29,30,29,29,30,29,30,30,30,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,31,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,30,30,31,30,30,29,30,28,30,30,29,29,30,29,27,29,30,29,28,29,30,30,30,30,30,30,30,30,30,31,31,30,31,31,31,30,31,31,30,31,31,31,30,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,29,30,30,30,30,30,29,29,29,30,29,28,29,29,29,28,28,29,30,29,30,29,30,29,30,30,30,29,30,30,29,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,31,31,30,31,31,31,30,31,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,29,30,29,30,29,29,29,29,29,29,28,29,29,29,29,30,29,29,29,29,29,29,29,29,29,28,29,29,29,30,29,29,29,28,29,30,29,29,29,29,29,30,29,30,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,31,30,30,30,30,29,29,31,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,31,30,30,30,31,31,30,30,31,31,30,31,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,29,29,29,30,29,28,29,29,28,27,28,29,27,28,28,28,28,29,28,27,28,29,28,29,28,27,27,28,25,24,27,25,28,29,29,30,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,29,30,30,30,30,30,30,29,30,30,30,29,30,30,29,29,30,29,29,29,30,29,29,30,30,29,30,30,30,29,29,29,29,29,28,28,29,29,28,28,29,29,27,28,27,28,29,27,28,29,29,29,29,29,29,30,29,29,30,30,29,30,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,29,29,29,29,29,29,29,29,29,29,28,29,29,28,29,28,29,29,29,29,28,29,28,29,28,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,29,29,29,29,28,28,30,29,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,31,30,28,29,29,30,29,29,28,28,27,27,27,27,26,25,27,28,25,27,29,29,27,28,29,28,27,29,29,27,29,29,29,29,29,29,29,29,29,28,29,28,29,29,28,30,30,30,30,29,30,30,30,30,30,29,30,29,30,29,29,29,29,27,29,29,30,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,28,29,30,30,30,29,30,30],[22,20,19,18,17,16,16,14,13,12,8,7,5,4,3,2,1,0,1,2,4,4,4,5,6,8,9,10,13,14,14,16,17,18,19,19,19,21,21,21,22,22,23,23,24,25,25,24,25,26,25,25,27,27,25,28,28,27,27,28,29,28,29,29,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,31,30,29,30,30,29,30,29,30,30,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,30,30,31,30,30,30,30,30,30,31,31,30,31,31,30,30,31,31,30,31,31,31,30,31,31,30,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,31,30,30,31,30,30,29,30,29,29,29,29,28,29,28,27,29,30,28,28,28,29,30,30,29,29,30,30,30,30,31,30,30,30,31,31,30,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,29,28,30,28,28,26,27,28,29,28,29,29,30,28,29,30,29,29,30,30,29,29,31,30,30,30,30,30,30,31,30,30,30,31,30,30,31,31,30,31,31,30,31,31,31,30,30,30,30,31,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,28,29,29,29,29,29,29,28,29,30,29,28,29,29,28,28,29,29,28,29,29,29,28,27,28,29,28,28,28,28,28,28,28,28,29,29,29,28,28,29,29,29,29,29,29,29,29,30,30,29,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,30,30,30,30,29,30,31,30,29,30,30,29,29,30,30,29,30,30,30,30,30,29,30,29,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,31,30,31,30,31,31,30,30,30,30,30,30,30,30,29,29,29,29,28,27,29,29,27,28,29,29,27,29,29,27,28,28,28,28,27,27,26,26,24,23,26,25,28,28,29,29,29,29,29,29,30,30,30,30,30,29,30,29,30,30,29,30,30,30,29,30,30,29,29,30,29,28,29,30,29,28,30,30,28,29,30,29,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,28,28,29,29,26,27,25,29,29,27,28,29,29,27,29,29,28,29,29,30,30,29,29,30,30,29,30,29,30,30,30,31,30,30,31,31,31,30,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,29,30,29,29,30,30,29,28,30,30,29,29,30,29,29,29,29,28,29,29,27,29,30,27,26,28,28,29,29,28,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,28,28,29,28,28,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,28,28,28,27,25,24,29,28,25,28,29,28,27,29,29,28,29,30,29,28,30,30,29,30,30,30,30,30,30,29,29,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,29,29,28,30,29,29,29,29,29,29,28,29,29,28,29,29,29,28,29,29,29,29,29,30,29,29,30,30],[22,21,20,20,19,17,17,16,14,14,11,9,7,5,5,4,3,2,0,1,2,3,4,4,5,7,8,8,11,12,13,15,16,17,17,19,17,20,21,20,21,21,22,23,24,25,25,24,24,27,25,24,26,27,25,26,28,27,26,27,28,27,28,29,29,30,30,29,30,29,30,28,30,29,29,29,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,29,30,31,30,30,30,30,30,30,30,29,30,31,30,30,30,30,30,30,31,31,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,30,30,31,31,30,30,31,31,30,31,31,30,30,31,30,31,30,30,30,30,30,30,30,30,29,30,30,30,30,29,30,29,30,30,29,29,30,29,27,30,30,28,28,29,30,30,30,29,29,30,30,30,29,30,30,29,30,31,30,30,31,31,30,30,30,30,30,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,30,29,29,30,30,30,30,30,30,29,30,30,29,29,30,29,29,28,27,29,30,28,29,30,30,29,30,30,30,29,30,29,29,29,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,29,29,30,30,29,30,30,30,30,29,28,29,29,28,28,28,27,29,28,28,27,29,29,28,28,29,28,28,28,29,28,27,28,28,28,28,28,28,26,27,27,28,27,27,28,28,27,28,28,28,28,27,28,27,27,27,27,28,28,28,28,28,28,28,29,28,28,29,29,29,29,28,29,29,30,30,29,29,30,30,30,29,30,30,30,30,29,30,30,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,29,30,30,28,28,30,29,27,29,30,29,28,29,30,29,29,30,29,29,29,29,30,29,30,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,30,30,30,29,30,29,29,30,30,28,30,30,29,29,30,30,28,29,30,29,29,30,30,30,30,29,30,29,31,29,30,31,30,30,30,30,29,30,30,29,29,29,29,29,28,28,29,29,28,29,29,29,28,29,28,27,28,29,28,28,28,27,25,27,23,24,27,26,28,28,28,29,29,29,30,29,29,30,30,29,30,29,30,29,30,30,30,30,31,30,29,30,30,29,29,30,30,29,30,30,29,28,30,30,29,29,30,30,29,29,30,29,29,30,30,29,30,30,29,30,29,29,29,29,29,27,29,29,29,28,29,29,27,28,26,29,29,26,28,29,29,28,29,29,28,29,30,29,30,30,29,30,30,30,30,29,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,28,29,29,29,28,29,29,28,29,28,28,28,28,27,28,28,29,28,29,28,28,27,28,29,29,28,28,29,29,29,29,29,30,30,30,29,30,30,30,29,30,29,29,29,30,28,29,29,29,28,29,28,28,27,27,27,27,28,29,28,28,28,30,29,29,29,29,29,29,30,29,29,29,30,30,29,30,29,28,28,28,29,29,27,27,27,26,26,27,27,26,25,25,28,25,26,28,28,26,27,29,27,27,29,28,27,29,29,29,29,30,29,29,29,29,29,28,28,29,29,29,29,29,29,30,29,30,30,30,29,30,30,30,29,30,29,29,29,30,29,28,28,30,29,29,29,29,29,29,30,30,29,29,30,29,30,28,29,28,29,29,29,29,29,30,29,30],[22,21,21,20,20,19,18,17,15,14,13,11,9,6,4,4,3,2,1,0,1,2,3,4,4,5,7,8,10,10,11,13,15,16,16,18,18,19,21,21,21,21,23,22,23,24,23,23,23,24,23,23,25,25,23,26,26,25,25,26,27,26,27,28,28,30,29,29,29,29,30,29,30,30,30,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,30,31,31,31,31,31,30,30,30,30,30,30,31,31,31,31,30,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,30,30,30,29,29,30,29,28,29,28,26,28,30,27,28,29,30,30,30,30,30,30,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,30,31,30,31,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,29,28,30,29,29,27,28,29,30,29,30,29,30,29,30,30,29,29,30,30,29,29,31,30,30,30,31,31,30,30,30,30,30,30,30,30,30,31,30,31,31,30,31,31,31,31,31,30,31,30,30,30,30,30,29,30,30,30,29,30,30,30,30,29,29,29,28,29,29,28,26,28,28,28,27,28,29,28,28,29,29,28,28,29,29,28,29,29,29,29,29,29,28,28,28,29,28,28,28,28,28,29,29,28,29,29,28,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,30,29,29,29,29,30,30,29,29,29,30,30,29,30,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,31,31,30,31,30,31,29,29,31,30,28,30,31,30,29,30,30,30,30,30,30,30,30,29,31,30,30,31,30,31,31,30,30,30,30,30,30,30,30,31,31,30,31,31,31,30,31,31,31,31,30,31,30,31,29,30,31,30,29,30,31,29,30,31,30,30,30,31,30,30,30,30,31,30,30,31,30,31,31,31,31,30,30,30,30,29,30,30,29,29,29,29,29,28,27,28,29,28,29,28,29,28,29,28,26,28,29,28,29,26,26,25,27,24,23,25,25,27,28,29,29,29,29,30,29,30,30,30,29,30,29,30,29,30,30,29,30,31,30,29,30,30,29,29,30,29,29,29,30,29,28,30,30,29,29,30,29,29,29,30,29,29,30,30,29,29,31,30,30,29,29,29,29,29,28,29,29,28,28,29,29,27,28,27,29,29,27,28,29,29,27,29,28,28,29,29,29,29,29,29,29,29,30,30,29,30,31,30,31,31,30,31,31,31,31,31,31,31,31,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,27,28,28,27,28,29,29,28,28,28,29,28,29,29,29,29,29,29,29,29,30,30,30,30,30,29,30,30,29,30,30,30,29,29,29,28,29,29,29,29,27,28,28,28,28,29,28,28,29,29,29,29,29,30,30,29,30,30,30,30,30,30,30,31,30,29,29,29,29,29,28,27,28,26,27,27,27,25,24,27,28,25,28,28,28,27,28,28,28,28,29,28,27,30,30,29,29,30,30,29,29,30,29,29,29,30,30,30,30,30,31,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,29,29,29,30,29,30,29,29,30,29,29,30,30,29,30,30,30,29,30,30,29,30,29,30,30,30,30,30],[22,21,21,20,21,20,19,17,16,15,12,13,10,8,6,5,4,2,2,1,0,1,2,3,3,4,5,6,8,8,10,12,14,15,16,16,16,18,19,19,20,20,21,22,23,24,23,21,22,24,22,22,25,25,21,25,27,24,25,26,28,26,27,27,28,30,29,30,29,29,30,28,30,30,29,29,30,30,30,29,30,30,29,29,30,30,29,29,29,30,30,29,30,30,31,30,30,31,30,30,31,31,30,31,31,31,30,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,30,30,31,30,30,30,30,30,29,30,31,30,30,30,30,30,31,31,30,31,31,31,30,31,31,30,31,30,31,30,31,30,31,31,30,30,31,30,30,31,31,31,30,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,30,30,30,30,29,29,30,28,28,29,28,28,28,28,26,28,29,26,28,29,29,30,29,29,29,30,30,29,29,30,30,29,30,31,30,29,30,31,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,30,30,30,30,30,30,30,30,29,29,29,29,28,28,29,28,28,27,27,29,29,27,29,29,30,28,28,30,29,28,30,30,29,28,30,30,30,30,30,30,30,30,30,29,30,31,29,30,31,30,30,30,31,30,30,31,31,30,30,30,30,31,30,30,30,31,30,30,30,30,29,30,30,29,30,29,29,30,29,28,29,28,26,28,29,28,27,29,29,28,27,29,28,27,28,29,28,27,28,28,28,28,28,28,28,27,28,28,27,28,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,30,29,29,29,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,29,29,29,30,29,30,30,30,29,30,30,30,30,30,30,30,31,30,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,31,31,31,31,30,30,30,30,29,30,30,30,29,29,29,30,28,27,29,29,27,28,29,29,27,29,28,27,27,28,28,28,27,27,24,27,22,22,26,25,28,28,28,29,28,29,29,28,30,29,29,29,29,28,29,28,29,29,29,29,30,29,29,29,30,29,29,30,29,28,29,30,28,28,30,30,28,29,30,29,28,29,30,29,29,30,30,29,30,30,30,30,30,30,30,30,29,28,30,29,27,28,29,28,26,27,27,28,28,27,27,29,29,27,28,29,28,29,29,29,30,29,28,30,29,29,30,29,30,30,30,30,30,30,30,31,30,30,31,31,31,30,30,30,29,30,30,29,29,30,29,29,30,30,30,30,30,30,29,30,30,29,29,30,29,29,29,30,29,28,29,29,29,28,29,29,29,28,29,29,29,29,27,28,29,28,26,29,29,27,25,27,28,28,28,27,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,29,30,30,28,29,30,29,28,29,29,29,28,27,28,28,28,29,29,29,29,29,30,29,30,29,30,30,29,30,30,30,30,30,30,30,30,29,30,29,29,29,29,28,29,28,28,28,26,23,23,28,28,24,27,28,27,27,29,29,28,29,30,29,29,30,30,29,30,30,30,30,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,29,29,30,30,29,29,29,29,30,29,30,29,29,30,29,30,29,30,29,30,30,30,30,30,30,30,30],[23,21,21,21,21,21,21,19,17,16,14,12,12,8,8,5,5,3,2,2,1,0,1,2,3,4,4,5,7,8,8,11,12,14,15,17,16,18,19,19,20,20,20,21,22,23,23,21,22,24,23,21,24,25,21,25,26,24,24,26,27,26,27,27,27,29,29,29,29,29,30,28,29,30,29,29,30,29,30,29,30,30,29,29,30,29,28,29,29,29,30,29,29,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,29,29,30,30,29,30,30,30,29,30,30,29,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,31,30,30,31,30,30,29,30,30,29,30,30,30,29,29,30,29,30,29,29,29,30,29,28,29,29,27,27,29,30,30,30,29,29,30,30,29,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,31,30,31,30,31,31,31,30,31,30,30,30,31,30,30,30,31,30,29,30,30,30,30,30,30,30,29,30,30,30,30,29,29,29,29,30,29,29,30,29,28,28,27,29,30,28,29,30,30,28,30,30,29,29,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,28,30,30,30,29,29,29,29,29,29,28,29,28,27,27,27,25,28,27,27,26,28,28,27,27,29,28,27,28,28,27,27,28,27,27,27,27,27,26,26,26,27,25,26,27,27,26,28,27,28,27,27,27,27,26,26,26,26,27,26,26,27,27,28,28,27,27,28,28,29,28,28,28,28,29,29,28,29,29,29,29,29,29,29,30,29,29,30,29,29,30,29,30,29,29,30,29,30,30,30,29,30,30,29,29,30,30,28,28,30,29,27,29,30,29,28,29,30,29,29,29,29,28,29,29,30,30,30,30,30,30,30,30,30,29,29,30,30,30,29,30,30,29,30,30,30,29,30,30,30,30,30,30,29,30,29,29,30,30,29,30,30,29,29,30,30,29,29,30,30,30,30,30,30,30,30,30,29,31,30,30,31,30,30,30,30,29,30,30,30,29,29,29,30,28,27,29,29,28,29,29,29,28,29,29,28,28,29,29,28,27,27,23,26,22,22,26,25,28,27,29,29,29,29,29,28,30,30,30,28,30,29,30,29,30,30,29,29,30,30,29,30,30,29,28,30,29,28,29,30,29,28,30,30,28,29,30,29,29,30,30,29,29,30,30,29,30,30,30,30,30,29,30,30,29,29,29,29,28,28,29,28,25,28,25,29,29,25,29,29,29,27,29,29,27,28,29,29,29,29,28,30,29,29,30,29,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,29,30,30,30,30,29,30,29,30,29,30,30,29,29,30,30,28,29,29,29,28,29,29,29,28,28,28,29,29,27,28,29,26,26,28,28,26,25,26,28,29,27,28,29,29,29,29,29,29,30,29,29,30,30,29,29,29,29,29,29,29,28,29,29,29,28,29,28,28,27,27,27,26,28,28,28,28,28,29,28,29,28,29,29,29,29,28,28,29,29,29,29,30,29,28,29,28,29,28,27,27,27,25,25,27,25,25,22,26,27,24,26,28,27,27,28,29,28,28,30,29,28,29,29,29,29,29,29,29,29,30,29,28,29,29,30,29,29,30,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,29,29,30,30,29,29,29,30,29,29,30,29,29,30,29,30,28,30,29,30,29,29,30,30,30,30,30],[23,22,21,21,21,20,20,20,18,16,16,13,13,9,9,6,5,4,3,2,2,1,0,1,2,3,4,4,6,7,7,10,11,12,13,16,16,18,20,20,20,20,20,21,22,23,22,20,22,23,20,20,24,24,20,24,25,23,24,25,26,25,25,26,27,29,28,29,29,29,30,28,30,29,29,29,30,30,30,30,30,31,30,30,30,30,29,30,30,30,30,30,30,30,31,30,30,31,30,30,31,31,30,30,31,30,30,30,30,30,30,31,31,30,30,30,30,30,31,30,30,31,31,30,30,31,31,30,31,31,30,31,31,31,30,30,30,30,30,31,31,30,31,31,30,31,31,31,30,31,31,31,31,31,31,30,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,30,29,30,30,29,28,29,29,27,28,29,27,28,29,29,30,30,29,29,30,31,30,30,31,31,30,30,31,31,30,31,31,30,31,31,31,30,31,30,31,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,30,30,30,30,31,30,30,30,30,30,30,30,30,29,29,30,29,28,28,27,29,30,28,29,29,30,29,30,30,30,29,30,30,30,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,31,31,30,30,30,31,31,30,30,30,30,29,30,30,30,29,29,29,29,29,29,28,29,28,28,28,27,25,27,27,27,27,28,28,27,27,28,28,27,28,28,28,27,28,28,28,28,28,28,27,27,27,28,27,27,28,27,27,28,28,29,28,28,28,28,28,28,28,28,28,29,28,28,29,29,29,29,28,29,29,29,29,29,28,28,29,29,29,29,29,29,29,29,30,29,30,30,29,30,30,29,29,29,29,29,29,30,29,30,30,30,29,30,30,30,30,30,31,29,29,31,30,28,30,31,30,29,30,30,30,30,30,30,30,30,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,31,31,31,31,30,31,30,31,29,30,31,30,29,30,31,29,30,31,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,31,31,30,30,31,30,29,30,30,30,29,29,29,29,29,28,29,29,27,29,28,28,27,29,28,26,28,29,27,29,25,25,23,26,22,22,25,25,28,28,29,29,29,29,30,29,30,30,30,29,30,28,30,29,30,30,29,30,30,29,29,30,30,29,29,30,29,28,29,30,29,28,29,30,28,29,30,29,29,28,29,29,28,29,30,29,29,30,30,30,29,29,29,29,28,28,29,28,28,28,29,28,25,28,26,28,28,26,28,28,28,27,28,28,27,29,29,28,29,29,28,29,29,29,30,29,30,30,30,31,30,30,31,31,31,30,31,31,31,31,30,30,30,30,30,29,30,30,30,29,30,29,29,30,30,30,29,30,30,30,29,30,30,29,29,29,29,29,29,28,29,28,28,28,28,28,28,28,27,28,28,28,27,26,27,28,28,27,27,27,28,27,28,28,28,29,28,28,29,28,30,29,30,30,30,29,30,29,29,30,29,29,28,29,29,27,28,28,27,28,27,26,28,27,28,28,28,28,28,29,28,28,29,29,29,29,29,29,29,29,30,30,29,30,30,28,29,28,29,29,27,26,27,25,26,26,27,26,24,27,27,26,27,28,28,27,28,28,27,28,29,28,28,29,29,29,30,30,30,30,30,30,30,29,29,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[23,22,22,21,21,21,21,20,18,18,15,15,13,11,10,8,7,4,4,3,2,2,1,0,1,2,3,4,4,6,7,8,10,12,13,16,15,17,18,18,19,19,20,21,21,23,22,21,21,23,21,21,24,25,20,24,26,23,24,25,27,25,26,27,27,29,29,30,29,29,30,29,30,30,29,29,30,30,30,30,30,31,30,29,30,30,28,29,29,30,30,29,29,30,30,30,30,31,30,30,31,31,30,31,31,30,30,31,31,30,30,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,31,31,30,30,31,31,30,31,31,30,31,31,31,30,31,31,30,31,31,31,30,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,29,30,30,28,29,29,28,28,28,28,26,28,29,26,28,29,29,29,30,29,29,30,30,30,29,30,31,30,30,31,31,29,31,31,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,30,30,31,30,30,30,30,30,29,29,29,29,28,29,29,27,28,27,29,29,27,29,29,30,28,28,30,29,29,30,30,29,29,31,30,30,30,30,31,30,31,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,30,30,31,31,30,30,30,30,29,29,30,29,30,29,29,29,29,28,29,27,26,27,28,28,27,28,29,27,26,29,28,27,28,29,27,27,28,28,28,29,28,28,28,27,28,28,28,28,28,28,28,28,29,28,28,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,29,29,29,29,29,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,30,30,31,30,30,31,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,30,29,30,30,30,31,30,31,30,30,31,31,31,30,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,30,30,31,30,30,31,30,30,31,31,31,31,30,31,31,31,31,31,30,31,30,30,30,30,30,29,30,29,30,29,27,29,29,27,29,29,28,27,28,28,26,27,28,28,28,26,26,23,25,22,22,24,26,28,28,28,29,28,29,29,29,30,29,29,28,29,28,29,28,29,29,29,29,30,29,28,29,30,29,29,30,29,28,29,30,28,28,30,30,28,29,30,29,29,29,30,29,29,30,30,29,30,30,30,31,30,30,30,30,30,29,29,30,29,28,29,28,26,28,26,29,28,27,27,29,29,27,28,29,28,28,29,29,29,29,27,30,29,29,30,29,30,30,30,30,30,30,30,31,31,30,31,31,31,30,30,30,29,30,29,28,29,30,29,28,30,29,30,30,30,30,29,30,30,29,29,30,30,29,29,30,29,28,29,29,29,28,29,30,29,29,29,29,30,29,29,29,29,28,26,29,29,26,25,27,28,29,27,28,29,29,28,29,30,29,30,30,30,30,30,29,30,30,29,29,30,30,28,29,30,29,29,29,30,29,28,28,29,28,29,29,29,29,28,30,30,28,30,29,30,30,30,30,30,30,30,30,30,30,30,29,30,28,30,29,29,29,29,28,28,28,26,24,23,29,29,25,29,29,28,28,30,30,29,29,30,30,29,30,30,29,30,30,30,30,30,30,30,29,30,30,30,30,31,31,31,30,30,31,31,30,30,31,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,29,31,30,30,30,30,30,31,30,31,31],[23,22,22,23,21,22,22,21,21,20,17,16,15,12,13,9,9,6,5,4,3,2,2,1,0,1,2,3,5,5,6,8,9,11,13,15,14,17,17,18,19,19,19,20,21,22,22,20,21,23,22,20,23,24,20,23,24,24,24,25,26,25,26,26,26,29,29,29,29,29,30,28,29,30,29,29,30,30,30,29,30,30,29,28,29,29,28,29,29,29,30,29,29,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,29,30,31,30,29,30,30,29,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,31,30,30,30,31,30,30,30,30,29,30,31,30,30,30,30,30,29,29,29,29,29,29,28,28,30,26,27,29,29,29,30,29,29,30,30,30,29,30,30,29,29,30,30,29,30,31,30,30,30,30,30,30,30,31,31,31,30,31,31,31,30,31,31,31,31,31,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,29,28,29,27,29,30,28,29,29,30,28,29,30,29,29,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,31,30,30,30,30,31,30,30,30,30,29,29,30,30,29,29,29,29,29,29,28,28,28,28,27,26,25,26,27,26,26,27,28,27,26,28,28,27,28,28,28,27,28,28,28,28,27,28,26,26,26,27,26,27,27,27,26,28,28,28,28,28,27,27,27,27,27,27,27,27,27,27,28,28,28,28,27,28,28,29,29,28,29,28,29,29,28,29,29,29,29,29,30,29,30,29,29,30,29,29,30,29,30,29,29,30,29,30,30,30,30,29,30,30,29,30,30,29,29,30,30,29,29,30,29,29,29,30,29,28,29,29,28,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,31,30,31,30,31,31,30,30,30,30,29,30,30,30,30,30,30,30,29,28,30,30,28,30,30,29,27,30,29,27,27,29,28,27,26,26,22,25,21,22,25,25,28,27,29,29,29,29,29,28,30,30,30,28,29,29,29,28,30,30,28,28,30,29,27,30,30,28,28,30,29,28,29,30,29,27,30,30,29,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,27,28,25,29,29,25,28,29,29,27,29,29,27,28,28,29,29,28,28,30,29,28,30,28,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,29,28,29,30,29,28,29,29,30,30,30,30,29,30,29,30,29,30,30,29,29,30,30,28,29,30,29,28,29,30,29,28,29,29,29,29,29,29,29,28,27,29,29,27,25,25,28,29,27,28,29,29,28,29,29,29,29,29,30,30,30,29,29,29,30,29,29,29,29,29,29,29,28,29,29,28,27,27,28,27,28,29,28,28,28,29,28,28,29,28,29,29,28,29,29,29,29,29,30,29,29,29,29,29,28,28,28,27,28,27,27,27,25,26,25,28,28,26,28,29,28,28,29,29,28,29,30,30,29,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,29,29,30,30,29,30,30,29,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30],[25,24,24,23,22,23,22,21,20,20,18,17,17,13,12,10,11,9,6,5,4,3,3,2,1,0,1,2,4,5,4,7,9,10,12,14,13,16,17,17,19,19,19,20,20,22,21,20,20,22,20,19,23,24,18,23,25,22,22,24,26,24,25,26,26,29,28,30,28,29,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,28,30,30,30,30,30,30,30,31,30,30,31,30,30,31,31,30,30,30,30,30,30,30,30,30,31,31,30,31,31,30,30,31,31,30,31,31,30,30,31,31,30,31,31,30,30,30,30,30,30,30,30,30,31,31,30,31,31,30,30,31,31,30,31,31,31,30,31,31,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,30,31,30,30,30,30,30,30,30,30,29,30,29,28,29,29,27,27,29,30,30,30,29,30,30,31,30,30,31,31,30,30,31,31,30,31,31,31,30,31,31,30,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,31,31,30,30,30,30,30,30,30,29,29,30,30,28,29,28,30,30,29,30,30,30,29,30,30,30,29,30,30,30,29,30,31,30,30,30,31,30,30,30,30,30,31,30,30,31,31,30,30,31,31,30,31,31,31,30,31,30,31,30,30,30,30,29,30,30,30,29,29,30,30,29,29,28,29,28,28,28,27,25,27,27,26,27,28,27,27,27,28,27,27,27,28,27,27,27,28,28,28,27,28,26,26,27,28,26,26,28,27,28,29,27,28,28,28,28,27,27,28,27,28,28,28,28,28,28,28,28,28,28,29,29,29,28,28,28,28,29,28,28,29,29,29,29,29,30,29,30,29,29,30,29,29,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,31,30,29,31,30,28,30,31,30,29,30,30,30,29,30,30,29,30,30,30,30,30,30,30,31,30,30,31,30,30,30,30,30,30,31,30,30,30,31,30,30,31,31,30,31,30,31,30,31,30,30,31,30,30,31,31,30,30,31,31,30,30,30,30,30,30,30,31,30,30,31,30,31,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,28,29,29,29,27,30,28,27,28,29,28,28,26,27,22,26,22,22,25,26,28,28,29,29,29,30,30,28,30,30,30,29,29,29,29,28,30,30,28,29,30,30,29,30,30,29,29,30,29,28,29,30,29,28,30,30,29,29,30,30,29,28,30,29,29,29,30,30,29,30,30,30,29,29,30,30,29,29,29,28,28,29,30,28,27,29,26,29,29,26,29,29,28,27,29,28,27,29,29,29,29,29,28,30,29,29,30,29,30,30,30,30,30,30,30,31,31,30,30,30,31,31,30,31,30,30,29,29,30,30,30,29,30,29,29,30,30,29,29,30,30,30,29,30,30,29,29,29,29,29,29,29,29,29,28,29,29,29,28,28,28,28,28,29,28,27,28,29,28,27,27,26,28,28,27,27,28,28,28,29,29,29,30,29,29,30,30,30,30,29,29,29,29,29,29,29,29,28,29,29,27,29,28,27,28,27,28,28,28,28,28,29,28,28,29,28,29,29,29,29,29,29,30,30,30,30,30,28,29,29,29,28,28,27,28,25,26,27,27,27,26,27,28,28,28,28,28,28,29,29,28,29,29,29,29,30,29,30,30,30,30,30,30,30,30,29,30,30,30,30,30,31,30,30,30,30,30,30,30,31,30,30,30,31,30,31,31,31,30,30,30,30,30,30,30,30,31,30,30,30,30,30,31,30,30,30,31,30,30,30,30,30,30,31,31,31],[26,25,25,25,24,24,24,23,22,21,20,18,17,15,13,13,12,11,8,6,5,4,4,4,3,2,0,1,3,4,4,5,7,9,11,12,13,15,16,16,18,18,19,20,21,22,21,20,21,22,20,20,23,23,19,24,25,23,23,25,27,25,26,27,27,29,28,29,30,29,30,30,30,30,30,30,30,31,31,30,31,31,30,30,30,30,29,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,29,29,29,28,29,30,26,27,29,29,30,30,29,30,30,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,29,30,29,29,29,28,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,30,30,30,30,29,29,29,29,29,27,25,26,29,28,26,29,29,28,26,28,28,28,28,29,27,27,29,28,28,29,28,29,28,28,29,28,28,29,29,28,29,29,29,30,29,29,30,29,29,29,30,30,30,30,30,29,30,30,30,29,29,30,30,30,30,29,29,29,30,29,29,30,29,30,30,30,30,29,30,30,29,30,29,29,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,30,31,30,30,30,30,30,31,31,31,31,31,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,29,30,30,28,29,30,29,28,29,29,27,28,29,28,28,26,26,24,25,23,22,26,27,29,29,29,29,29,29,29,28,30,30,29,29,29,28,30,28,29,30,29,29,30,29,29,30,30,29,29,30,29,28,29,30,29,29,30,30,29,29,30,30,30,30,31,30,30,31,31,30,31,31,31,31,31,31,31,30,30,30,30,30,30,30,30,30,28,29,27,30,30,27,29,29,29,27,29,29,28,28,29,29,29,29,28,30,29,29,30,29,30,30,30,30,31,30,31,31,31,30,31,31,31,31,30,30,30,30,30,29,29,30,29,28,30,29,29,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,29,27,27,29,30,28,28,29,29,28,29,30,29,30,30,30,30,31,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,29,28,30,29,29,30,29,29,29,30,30,29,30,30,30,30,30,30,31,30,31,31,31,31,31,30,30,30,30,30,30,30,30,28,28,29,28,27,27,29,30,28,30,30,29,29,30,30,30,30,31,30,30,31,31,30,30,31,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,30,30,31,31,30,30,31,31,30,31,31,30,30,31,31,31,30,31,30,31,31,31,31,31,31,31,31],[26,24,24,25,23,26,24,23,24,22,21,22,19,17,17,14,14,12,12,10,7,6,5,4,4,3,2,0,1,3,4,5,5,7,10,12,13,15,15,16,18,18,18,19,21,21,21,19,21,23,21,19,23,23,20,24,25,24,23,26,27,25,26,28,27,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,29,30,30,30,30,30,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,31,31,31,30,31,31,30,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,30,30,30,30,30,30,29,29,29,30,26,27,29,29,30,30,30,30,30,31,30,30,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,30,30,30,29,30,28,30,30,28,30,30,30,30,30,30,30,30,30,31,30,29,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,30,30,30,30,30,30,29,29,29,28,28,28,26,24,24,28,28,25,28,29,28,25,29,29,28,28,29,28,27,29,28,28,29,28,28,27,26,28,28,28,28,28,28,28,29,29,29,29,29,29,28,29,29,29,28,29,29,29,29,29,29,29,29,29,29,29,30,30,29,29,29,30,30,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,31,30,31,31,30,30,31,31,29,30,31,30,30,30,31,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,30,31,30,30,31,31,31,30,31,31,31,31,31,31,30,31,30,31,31,31,30,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,31,30,29,30,30,29,30,30,29,28,30,29,28,28,30,29,28,26,27,24,25,22,23,27,27,30,28,30,29,29,30,30,28,30,30,30,28,30,28,30,28,30,30,28,28,30,30,28,30,30,29,29,30,30,28,29,30,30,29,30,30,30,29,30,31,30,30,31,30,30,30,30,30,30,31,31,31,31,30,30,30,30,30,31,30,30,30,30,30,28,29,27,30,30,27,29,30,29,27,30,30,27,28,29,29,30,28,29,30,30,29,30,30,31,30,30,30,31,30,31,31,30,30,30,31,31,31,30,30,30,30,29,29,30,30,30,29,30,29,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,30,29,29,30,30,30,30,29,30,30,29,30,30,29,29,30,30,28,27,26,29,30,27,28,29,29,28,29,30,29,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,28,29,30,29,28,29,29,29,29,29,29,28,29,30,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,29,30,29,29,29,29,28,29,28,28,28,27,28,27,29,30,28,29,30,29,29,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,31,30,31,31,30,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31],[27,26,26,26,25,26,25,23,24,24,22,22,21,18,18,16,15,15,12,12,10,6,6,6,4,4,3,2,0,1,2,4,5,5,7,10,10,14,15,15,16,17,18,19,20,21,21,20,20,22,20,19,22,23,18,23,25,22,21,24,26,24,25,26,26,29,29,30,29,29,30,29,30,30,30,30,30,30,30,30,31,31,30,29,30,30,29,30,30,30,30,30,30,31,31,30,30,31,30,30,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,30,30,30,30,30,29,29,30,27,27,30,29,30,30,30,30,31,31,31,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,30,29,30,28,30,31,29,30,30,31,30,30,31,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,29,30,30,30,29,29,28,29,28,27,28,26,25,26,27,27,27,28,28,28,26,28,28,27,26,28,27,26,28,28,28,28,28,28,27,26,28,28,27,27,28,28,28,29,28,29,29,29,29,28,29,29,28,29,29,28,28,28,29,29,29,28,29,29,29,29,29,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,30,29,29,30,29,30,30,30,30,30,30,31,31,31,31,31,31,30,30,31,31,30,31,31,31,30,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,30,30,30,30,30,30,30,29,30,30,29,28,30,29,27,29,29,28,28,26,27,23,26,22,23,27,28,29,28,30,29,29,30,30,29,30,30,30,28,30,29,29,27,30,30,28,29,31,30,28,30,30,29,29,31,30,29,29,30,30,29,30,30,29,29,30,30,30,29,30,30,30,30,31,30,30,31,31,31,31,30,31,30,30,30,30,30,30,29,29,29,28,29,28,30,30,27,29,29,29,28,30,28,28,28,29,29,29,29,29,30,29,29,30,29,30,30,30,31,31,30,31,31,31,30,31,31,31,31,30,31,30,30,29,28,30,30,29,27,30,29,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,29,30,30,29,29,30,29,29,29,30,30,30,29,30,29,29,29,30,29,29,29,28,29,29,27,29,28,28,28,29,29,29,30,29,29,30,30,30,29,30,29,30,29,30,29,29,29,29,29,29,29,30,28,29,29,28,29,29,29,29,29,30,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,28,29,28,28,28,28,30,29,28,30,30,29,29,30,30,30,30,31,30,30,31,31,30,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[27,27,27,26,26,26,25,26,24,24,23,22,22,20,19,17,16,15,14,13,11,10,8,6,5,5,4,3,2,0,1,3,3,4,5,7,9,13,14,15,16,17,18,19,20,20,20,19,20,22,21,20,22,22,21,23,24,23,23,25,26,25,25,26,27,29,28,29,29,29,30,29,30,30,30,29,30,30,30,29,31,31,30,29,30,30,28,29,29,30,30,29,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,30,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,30,30,30,29,30,29,28,29,30,26,27,29,29,29,30,30,30,30,31,30,30,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,29,29,30,29,29,30,28,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,30,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,30,30,30,30,30,29,29,28,28,29,27,24,24,28,28,25,26,29,28,27,28,28,28,27,29,28,26,28,28,29,29,29,29,28,28,28,29,28,29,28,29,28,29,29,30,29,29,30,29,29,29,29,30,29,29,29,29,29,29,30,29,29,29,30,30,30,29,29,29,30,30,29,30,29,30,29,29,30,29,30,29,29,30,30,29,30,30,30,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,31,30,30,30,31,29,29,30,29,28,29,29,26,27,28,28,27,26,26,25,26,24,24,27,27,29,29,29,29,29,29,29,29,29,30,29,29,29,28,29,27,29,30,28,28,30,29,28,29,30,29,29,30,29,28,29,30,29,29,30,30,29,29,30,30,30,30,30,30,30,31,31,30,31,31,31,31,31,30,31,31,30,29,30,30,30,29,30,30,29,29,28,30,30,28,29,30,29,27,29,30,28,28,29,29,29,28,28,30,29,28,30,29,30,30,30,30,30,30,30,31,30,30,30,31,31,30,30,30,29,29,29,27,29,29,29,27,29,29,29,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,29,30,30,29,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,29,28,28,29,29,27,28,29,29,27,29,29,29,30,30,30,30,30,30,30,30,29,29,30,30,29,30,30,30,29,30,30,30,29,29,30,29,29,30,30,28,29,31,30,29,30,30,30,31,30,31,30,30,30,30,31,31,31,30,30,30,30,30,30,30,30,28,28,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,31,31,31,30,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31],[27,26,27,27,25,27,26,25,25,25,23,24,22,21,21,20,19,17,16,15,13,11,10,7,6,5,4,3,3,1,0,1,3,4,6,6,10,11,13,14,16,17,17,19,19,20,20,20,20,21,21,19,22,22,20,23,24,23,23,24,25,25,25,26,26,29,29,29,29,29,30,28,30,30,29,29,30,30,30,29,30,30,29,29,30,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,30,31,31,31,30,31,31,31,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,30,30,31,31,30,30,31,31,30,31,31,30,30,31,31,30,30,30,30,30,30,30,30,30,30,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,30,30,30,31,30,30,30,30,29,30,29,29,29,30,27,27,30,29,29,30,30,29,30,31,30,30,30,30,30,30,31,31,30,31,31,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,29,29,30,28,30,30,29,30,29,30,29,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,29,30,30,30,29,30,30,29,29,28,29,28,27,29,27,26,25,24,27,28,26,26,28,28,25,28,28,28,26,29,29,27,29,29,29,28,28,28,27,26,27,28,27,28,28,28,28,29,29,29,29,29,28,29,28,29,28,28,29,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,29,30,29,30,30,29,30,30,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,31,31,30,30,31,31,30,30,31,30,30,30,31,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,30,30,30,31,30,30,31,31,30,31,31,30,30,31,31,30,31,31,31,30,31,30,30,31,31,30,31,31,30,31,31,31,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,30,29,28,30,29,27,27,29,29,27,26,26,23,25,22,24,27,28,30,28,30,28,30,30,29,28,30,30,30,28,29,29,30,27,30,30,28,28,30,29,27,29,30,28,28,30,29,28,29,30,30,28,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,31,31,30,31,30,30,30,30,30,30,29,30,30,29,29,28,30,30,28,28,30,29,27,29,29,27,27,28,29,29,28,29,30,29,28,29,29,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,29,28,29,30,29,26,29,28,29,29,30,29,29,30,30,30,28,29,29,29,28,30,29,28,29,30,30,28,29,30,30,29,30,30,30,30,29,30,30,30,29,29,29,29,28,27,29,29,27,28,29,30,28,29,29,28,29,29,29,30,30,29,29,29,29,29,29,30,29,29,29,30,29,29,29,29,28,29,29,28,29,29,29,28,29,29,29,28,29,28,29,30,29,29,29,30,30,30,30,30,30,29,30,29,29,29,29,28,29,28,29,29,28,28,28,29,29,28,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31],[29,28,28,28,27,28,27,26,26,26,24,24,23,22,22,20,21,18,16,17,15,13,12,11,7,6,5,4,3,3,1,0,1,3,4,5,6,7,11,12,15,15,16,18,19,19,19,18,19,20,19,18,21,21,19,21,23,21,22,22,24,23,23,25,25,28,28,29,29,28,30,29,30,30,30,30,30,30,30,30,30,31,30,30,30,30,29,30,30,31,30,30,30,30,31,30,31,31,30,30,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,29,30,28,28,30,30,30,30,30,30,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,29,30,31,30,30,30,31,30,30,31,31,30,30,31,30,30,31,31,31,30,31,31,31,31,30,30,30,31,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,30,30,30,30,29,30,30,30,29,29,30,29,29,29,28,28,28,28,28,27,25,26,26,26,27,27,27,28,26,28,28,27,27,28,27,26,28,28,28,28,28,28,26,27,28,28,27,27,28,28,28,29,28,30,28,29,29,28,29,29,29,28,29,29,29,29,29,29,29,28,29,29,29,29,29,28,29,28,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,28,29,30,29,29,29,29,29,30,30,30,30,30,30,30,30,30,31,30,30,31,31,30,30,31,31,29,31,31,30,30,31,31,30,31,30,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,30,31,31,30,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,30,30,30,30,30,30,30,30,30,30,30,29,30,30,28,29,30,29,28,25,28,24,27,24,24,28,28,30,29,30,29,30,30,30,29,30,30,29,28,29,28,29,27,30,30,28,29,30,30,28,30,30,30,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,29,30,30,30,30,31,30,30,30,31,31,31,30,31,30,30,30,30,30,30,30,30,30,29,30,29,30,30,28,29,30,29,27,29,29,27,29,28,29,28,28,29,30,29,29,30,29,30,30,30,30,30,30,30,31,31,30,30,31,31,31,30,30,29,30,29,28,29,30,29,26,29,29,29,30,29,29,29,30,30,30,29,29,30,30,29,30,29,29,29,30,30,30,29,30,30,30,30,30,30,30,30,30,29,29,30,30,29,29,29,28,29,29,28,29,29,29,28,29,29,28,30,29,30,30,30,29,29,29,29,30,29,30,29,30,29,29,30,30,29,30,29,29,29,28,28,29,29,28,28,29,28,29,29,28,29,30,29,29,29,30,30,30,30,30,30,29,30,29,30,29,29,29,29,28,29,29,28,28,29,30,29,29,30,30,29,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,30,30,30,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[29,28,28,28,28,28,28,27,26,26,25,24,25,22,23,22,21,19,19,17,16,15,13,12,9,8,6,5,4,3,3,1,0,1,3,4,6,6,7,10,13,14,15,17,18,19,19,19,20,20,19,20,22,22,20,22,24,23,23,24,25,24,25,26,27,29,28,29,29,29,30,30,30,31,30,30,30,31,30,30,31,31,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,30,29,30,27,28,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,29,30,31,30,30,30,31,30,30,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,30,30,30,30,30,30,29,28,29,29,27,26,26,29,28,26,28,29,28,26,29,29,28,27,29,27,27,29,29,28,30,29,29,29,28,29,29,29,29,29,29,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,29,30,30,30,30,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,28,29,29,29,28,26,27,23,27,23,25,28,29,30,29,30,29,30,30,30,29,30,30,29,29,29,28,29,27,29,30,28,28,30,30,28,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,30,29,30,31,29,30,30,30,28,30,30,28,29,29,30,29,28,29,30,29,29,29,29,30,30,30,30,31,30,31,31,31,30,31,31,31,31,30,30,29,30,29,28,29,29,29,27,29,29,29,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,31,31,30,31,31,30,30,30,31,30,29,28,30,30,28,29,30,30,28,30,30,29,30,30,30,30,30,30,30,31,30,30,30,31,30,30,31,31,30,31,31,30,30,30,30,29,30,30,30,29,29,30,30,30,30,30,30,31,30,30,30,31,31,31,31,31,31,30,31,30,31,30,30,30,30,30,30,30,29,29,30,30,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[28,28,28,28,27,29,28,27,27,27,26,26,25,24,24,23,22,20,19,19,17,16,14,12,12,10,8,6,5,5,4,3,2,0,1,3,4,5,5,7,10,12,13,15,17,18,18,18,19,20,19,20,21,22,20,22,23,22,23,24,25,25,25,26,27,29,29,29,30,29,30,30,30,30,30,30,30,30,31,30,31,31,30,30,31,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,29,29,30,28,28,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,30,30,30,30,30,30,29,28,29,29,28,26,26,29,28,26,28,29,28,26,29,29,28,27,29,28,27,29,28,29,29,28,29,28,28,29,29,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,30,29,30,30,29,30,29,30,29,29,30,29,30,30,30,30,29,29,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,30,29,31,30,29,29,30,29,29,27,28,25,28,25,26,28,29,30,29,31,29,30,30,30,29,30,30,30,29,29,29,30,27,30,30,29,28,31,30,29,30,30,30,30,31,30,30,30,31,30,30,30,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,31,29,30,30,30,28,30,30,29,29,29,30,30,29,29,30,30,29,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,30,30,30,30,30,29,28,29,30,30,27,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,30,30,31,30,30,31,30,31,31,30,31,31,30,30,30,30,30,30,29,30,30,28,29,30,30,28,30,30,30,30,30,30,31,30,30,30,31,30,30,31,31,30,30,31,31,30,31,30,30,30,30,30,29,30,31,30,29,30,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,30,31,30,31,30,30,30,30,29,29,30,29,29,30,30,31,30,30,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[29,29,29,30,29,30,28,28,28,28,26,27,26,26,26,25,24,22,22,22,21,18,17,16,14,14,13,10,7,6,5,4,3,2,0,1,3,4,5,5,7,10,12,14,16,17,18,18,19,20,20,20,21,22,20,22,23,22,22,23,24,24,24,25,26,28,29,29,29,29,30,30,30,30,30,30,30,30,30,30,31,31,30,30,31,30,30,30,30,31,30,30,31,31,31,30,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,30,31,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,28,29,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,30,30,31,31,31,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,30,30,29,29,29,28,28,28,27,26,26,28,27,26,28,28,28,26,29,28,27,26,28,28,26,28,27,29,28,28,28,27,27,28,29,27,28,28,28,28,29,28,30,29,29,29,29,29,29,29,28,28,28,28,29,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,30,29,30,29,30,30,29,29,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,30,30,31,30,29,30,30,29,29,28,29,26,28,26,26,29,30,30,29,30,30,30,30,30,29,30,30,30,29,29,29,30,27,30,30,28,29,31,30,29,30,31,30,30,31,30,29,30,31,31,30,30,31,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,29,30,31,29,30,30,30,29,30,30,29,29,29,30,29,29,29,30,29,29,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,30,30,30,29,30,29,29,29,30,29,28,30,29,30,30,30,30,30,30,30,31,29,30,30,30,30,30,30,30,30,30,31,30,30,31,31,30,31,31,31,31,30,31,30,30,30,30,30,30,30,29,30,30,29,30,30,30,29,30,30,29,30,29,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,29,30,30,29,30,30,30,29,29,30,29,30,30,29,30,30,30,30,30,31,31,30,31,31,31,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[29,29,29,29,28,29,28,27,28,27,26,26,26,25,26,24,24,23,21,22,20,19,19,17,16,15,14,12,9,8,6,4,4,2,1,0,1,3,4,4,5,6,9,12,14,15,16,18,19,19,18,19,21,22,20,22,23,22,23,23,24,24,24,26,26,29,29,29,29,30,30,30,30,30,30,30,30,31,30,30,31,31,30,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,28,28,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,30,31,31,30,31,31,31,30,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,30,30,30,30,29,29,29,28,29,28,27,26,25,28,28,26,27,29,28,26,28,29,28,27,29,28,26,28,28,29,29,28,29,28,28,28,29,28,28,29,29,29,29,29,30,29,30,30,29,29,30,29,29,29,29,29,29,30,29,29,29,29,30,29,30,29,29,29,29,30,29,29,29,29,30,29,29,30,29,30,30,29,30,30,29,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,30,30,30,31,30,29,30,30,29,30,28,28,25,28,25,27,28,29,30,30,30,30,30,30,30,29,30,30,29,29,29,29,30,27,30,30,29,28,30,30,28,31,31,30,30,31,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,29,30,31,29,30,30,30,29,30,30,29,30,29,30,30,29,30,30,30,29,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,30,30,30,29,30,29,28,29,30,29,28,30,30,30,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,31,31,30,30,31,30,30,30,30,30,30,29,30,30,29,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,30,29,30,30,30,29,29,30,30,30,30,30,30,30,30,30,30,31,30,31,31,31,30,30,30,30,31,30,30,30,31,30,30,30,30,30,29,30,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,29,29,29,29,30,29,29,29,29,28,28,28,28,28,26,25,25,24,23,23,22,22,19,17,17,16,14,12,10,9,6,5,4,3,2,0,1,3,4,5,5,7,10,13,15,16,17,17,17,18,19,19,21,20,21,22,22,22,23,24,24,24,25,26,29,29,29,30,30,30,30,30,31,30,30,30,31,30,30,31,31,30,30,31,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,28,28,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,29,29,29,28,29,28,27,26,24,28,28,26,26,29,28,25,28,29,28,25,29,27,26,28,28,28,29,28,29,28,28,29,29,28,29,29,29,29,29,30,31,29,29,30,30,29,30,29,29,29,29,29,29,29,29,29,29,29,30,29,30,29,29,29,28,30,29,29,29,29,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,29,29,30,30,28,28,28,27,28,26,28,29,30,31,30,31,29,30,30,30,29,30,30,30,30,29,29,29,27,29,30,29,29,31,30,29,30,30,30,30,31,30,30,30,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,29,31,31,29,30,29,30,30,28,30,30,30,29,30,30,30,30,30,30,31,30,31,31,30,30,31,31,30,30,30,30,29,30,29,28,29,29,29,27,29,29,29,30,30,30,30,30,31,31,30,31,31,30,30,31,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,29,30,31,29,30,30,30,29,30,30,29,30,30,30,31,31,30,30,31,31,30,31,31,31,30,31,31,30,31,31,31,30,30,31,30,30,31,30,30,30,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,30,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,29,30,29,30,28,28,29,28,28,28,27,27,28,27,26,25,24,23,22,22,22,20,18,18,17,15,14,12,8,7,6,5,4,3,2,0,1,3,4,5,5,7,10,13,14,16,16,17,17,18,19,21,19,21,22,22,22,22,23,23,24,25,26,28,29,29,29,30,30,30,30,30,31,30,30,31,30,30,31,31,30,30,31,31,30,31,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,29,29,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,30,31,31,30,31,31,31,31,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,30,31,30,30,30,30,30,29,29,29,28,28,27,27,26,26,28,27,26,27,28,28,26,28,28,27,26,29,28,26,28,28,28,29,28,28,28,27,28,29,28,28,28,29,29,29,28,30,29,30,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,30,29,29,29,29,30,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,30,30,31,30,30,30,30,29,29,28,28,26,29,26,28,29,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,27,30,30,29,28,31,30,29,30,31,30,30,31,31,30,30,31,31,30,30,31,30,30,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,29,30,30,30,29,30,30,30,30,29,30,30,28,30,30,30,29,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,30,30,30,29,30,30,28,28,30,29,27,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,30,31,31,31,31,30,31,31,30,30,30,30,30,30,29,30,30,29,30,30,30,29,30,30,29,30,30,30,30,31,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,29,30,31,30,30,30,31,31,31,31,31,31,30,30,30,30,30,30,30,31,30,30,30,30,30,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,29,30,29,29,29,29,29,29,28,28,28,28,27,26,26,25,24,23,23,22,20,20,19,17,16,15,11,10,7,5,5,4,3,2,0,1,3,4,5,5,7,11,13,15,15,16,17,19,19,20,20,22,22,22,23,23,23,24,24,25,26,28,29,29,30,30,31,30,31,31,31,30,31,31,31,30,31,31,30,31,31,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,29,29,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,30,30,29,28,29,28,27,27,25,28,28,27,26,29,28,26,28,28,28,27,29,28,27,28,28,29,29,28,29,28,29,29,29,28,29,29,29,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,30,29,29,29,28,30,29,29,30,29,29,30,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,29,30,30,29,29,29,28,26,29,27,29,29,30,31,30,31,29,30,30,30,29,30,30,30,29,29,28,29,27,29,29,29,28,31,30,29,30,31,30,30,31,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,29,31,31,30,30,29,30,30,28,30,30,30,29,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,30,30,30,29,30,30,27,28,29,29,27,29,30,30,30,30,30,30,31,31,31,30,30,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,29,30,31,30,29,30,31,29,30,30,31,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,30,30,30,31,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,30,29,29,30,29,28,29,28,28,28,28,27,27,26,25,24,24,24,23,20,21,20,18,18,16,13,13,10,7,5,5,5,3,2,0,1,3,4,5,5,8,12,14,14,15,17,18,18,19,19,21,21,22,22,22,23,23,23,24,26,28,29,29,29,30,30,30,31,31,31,30,30,31,31,30,31,31,31,31,31,31,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,29,29,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,29,28,29,28,27,27,25,28,28,27,27,29,29,26,28,29,28,27,29,28,27,28,27,29,29,29,29,28,28,29,29,28,29,29,29,29,30,29,30,30,30,29,30,30,30,30,29,29,29,29,30,29,29,29,29,29,29,29,29,30,29,29,29,30,29,29,29,29,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,29,30,30,29,29,29,29,27,29,27,29,29,30,31,30,31,29,30,30,30,29,30,30,30,29,29,29,30,27,29,30,28,28,30,30,28,30,31,30,30,31,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,30,31,30,30,30,29,30,30,27,30,30,29,29,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,30,30,29,30,29,28,28,29,29,26,29,29,30,29,30,30,30,31,31,31,30,30,30,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,30,30,31,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,30,29,30,31,30,30,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,30,30,29,30,29,29,29,29,29,29,28,27,27,26,26,25,24,24,23,22,22,21,19,19,17,14,14,12,9,6,5,5,5,3,2,0,1,3,4,5,6,8,12,13,13,15,16,17,18,19,21,21,21,23,23,23,23,23,25,25,28,29,29,30,29,30,30,30,30,31,30,30,31,30,30,31,31,30,30,31,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,29,28,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,29,29,29,28,29,28,28,27,24,28,28,27,27,29,28,26,28,29,28,27,29,28,27,28,27,29,29,28,29,28,28,29,29,28,29,29,29,29,29,29,30,29,30,30,29,29,30,29,29,29,29,29,30,29,29,29,29,29,30,29,30,29,29,29,28,30,29,29,29,28,29,29,28,30,29,29,29,29,29,29,29,30,30,29,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,29,29,29,28,29,28,29,29,30,31,30,31,29,30,30,30,29,30,30,30,29,29,29,29,27,29,29,29,28,31,30,29,30,30,30,30,31,30,30,30,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,30,30,30,30,30,29,30,30,27,30,30,30,29,30,30,30,30,30,30,31,30,31,31,30,30,31,31,30,30,30,30,29,30,29,27,28,29,29,26,29,29,29,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,31,29,30,30,30,28,30,30,29,30,30,30,31,30,30,30,31,30,30,31,31,31,31,31,31,30,31,31,31,30,30,31,30,30,31,30,30,30,31,30,30,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,30,30,29,30,29,29,29,29,28,28,28,28,27,26,26,24,24,24,23,22,23,22,20,20,18,15,16,16,13,9,7,6,5,6,3,2,0,1,3,4,5,6,9,11,13,14,14,15,17,17,19,20,20,21,22,23,22,22,25,25,28,28,29,30,30,30,30,30,30,31,30,30,31,30,30,31,31,30,31,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,29,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,30,30,30,30,30,30,29,29,28,28,28,27,27,24,26,28,26,26,28,28,25,27,28,27,25,28,27,26,27,27,28,28,28,29,28,28,29,29,28,28,29,29,29,30,29,30,30,30,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,29,29,29,29,30,29,29,29,29,30,30,30,30,30,30,30,30,29,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,29,29,29,29,27,29,28,29,30,30,31,30,31,30,31,30,30,29,30,31,30,29,29,29,30,27,30,30,29,28,30,30,29,30,30,30,30,31,30,30,30,31,31,30,30,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,30,30,28,30,30,28,30,30,30,29,30,30,30,30,30,30,31,31,31,31,31,30,31,31,31,30,30,30,29,30,29,28,28,30,29,26,30,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,28,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,31,31,30,30,30,29,30,31,30,29,29,30,30,30,30,30,30,31,31,30,30,31,31,31,31,31,31,30,31,30,30,30,30,30,31,30,30,30,30,30,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,31,30,30,30,30,29,29,29,29,29,29,28,28,27,26,26,25,26,25,23,24,24,21,21,20,17,18,19,16,14,11,8,6,6,6,4,2,0,1,3,5,6,9,9,11,13,14,14,16,17,20,19,20,23,24,24,24,25,25,26,28,29,29,30,30,30,30,30,30,31,30,30,31,30,30,31,31,30,30,31,30,29,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,29,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,29,30,29,28,29,28,27,28,25,28,28,27,26,28,28,26,27,28,28,26,27,27,27,27,27,29,29,29,29,29,28,29,29,28,30,29,29,29,30,30,30,29,30,30,30,29,29,29,30,30,30,30,29,30,30,30,29,29,30,29,30,29,29,29,29,30,29,29,30,29,30,30,29,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,29,29,29,28,29,29,30,29,30,31,30,30,30,30,30,30,29,30,30,30,29,29,29,29,26,29,29,28,27,30,30,28,30,30,30,30,30,30,30,30,30,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,30,30,28,30,30,27,30,30,29,29,30,30,30,30,30,30,30,30,31,31,30,30,31,31,30,30,30,30,29,30,29,27,27,29,29,25,28,29,30,30,30,30,30,30,30,31,30,30,30,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,30,30,31,30,30,30,31,31,30,31,31,31,31,31,31,30,30,30,30,30,31,30,30,30,31,30,30,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,28,28,28,27,27,26,25,26,25,23,24,23,21,23,21,17,19,19,18,15,14,10,7,6,5,5,3,1,0,1,3,6,7,7,9,11,12,13,15,16,17,18,19,21,20,23,22,23,24,25,28,28,29,29,30,30,30,30,30,31,30,30,31,30,30,31,31,30,30,30,30,30,29,30,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,29,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,30,30,30,30,29,29,29,28,28,28,27,27,27,23,26,27,27,25,27,27,25,26,27,27,25,27,26,26,27,27,27,27,27,28,28,27,28,28,27,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,27,29,28,29,29,28,29,29,28,29,29,29,29,29,29,29,29,29,30,29,29,30,29,29,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,29,29,29,27,28,28,29,30,30,31,29,30,29,31,30,30,29,30,31,30,29,29,29,29,27,29,29,28,27,30,29,28,30,30,30,29,30,30,30,30,30,30,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,29,30,30,29,30,27,29,28,26,30,30,29,29,30,30,30,30,30,30,30,30,31,31,30,30,31,31,30,31,30,30,29,29,29,27,27,29,28,24,29,29,30,29,30,29,30,30,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,29,30,30,29,30,30,30,28,30,29,27,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,29,30,30,30,30,30,30,29,29,30,29,30,30,29,30,31,30,30,30,31,30,31,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,29,28,27,27,26,25,26,25,23,24,24,22,23,22,18,20,20,19,16,15,13,10,7,6,6,5,3,2,0,1,3,4,5,6,9,10,9,13,14,17,16,17,20,20,22,22,23,24,24,28,28,28,29,29,30,30,30,31,31,30,30,31,30,30,31,31,30,30,31,30,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,29,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,29,29,29,29,27,28,27,26,27,24,26,27,27,25,27,27,26,26,27,27,26,27,26,26,27,26,28,28,27,28,28,28,28,28,28,29,29,29,29,29,29,30,29,29,30,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,27,29,28,29,29,28,29,29,27,29,29,29,29,29,29,29,29,29,30,29,30,29,29,29,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,29,29,29,27,28,28,29,29,30,31,30,31,29,30,30,30,29,30,30,30,28,28,29,29,26,28,29,28,27,29,29,28,29,30,30,29,30,30,29,29,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,29,27,30,29,25,29,30,29,28,29,30,30,29,30,30,30,30,31,31,30,30,31,31,30,30,30,29,29,29,29,27,27,28,28,24,28,29,29,29,29,29,30,30,30,30,30,30,30,30,29,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,29,30,30,28,30,30,29,27,29,30,27,29,29,30,30,30,30,30,30,30,29,30,30,30,30,31,31,30,31,30,31,30,30,30,29,30,30,30,29,29,30,29,30,30,30,29,31,30,30,30,31,30,31,31,31,31,30,31,30,31,30,30,30,31,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,28,28,28,27,26,26,25,25,25,23,23,24,22,23,23,19,20,21,20,17,16,14,13,11,8,7,7,6,3,2,0,1,3,4,4,7,9,9,9,12,15,15,14,17,20,22,21,23,24,23,28,27,28,28,29,30,30,30,30,30,29,30,31,30,29,30,31,29,30,30,30,30,29,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,29,30,30,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,31,31,30,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,30,29,29,29,28,26,27,26,25,26,23,26,27,26,25,27,27,26,26,27,26,25,27,26,25,26,26,27,26,27,27,27,27,28,28,27,28,29,28,28,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,28,29,28,29,28,28,28,26,29,28,28,29,27,28,29,27,28,28,29,28,29,29,29,29,29,30,29,30,29,29,29,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,29,29,30,29,28,28,29,27,28,28,29,29,30,30,29,30,29,30,30,30,29,30,30,29,28,28,28,28,26,28,29,27,27,29,29,28,29,29,29,28,30,30,29,29,30,30,29,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,30,29,30,29,29,29,27,29,28,25,29,29,28,28,29,29,30,29,30,29,30,30,30,31,30,30,30,30,30,30,29,29,28,29,29,26,27,29,28,24,28,28,29,28,29,29,30,29,30,30,29,29,30,30,29,30,30,30,30,30,31,30,30,31,30,30,31,30,31,31,30,30,31,30,30,30,30,30,29,29,30,30,28,29,29,29,26,28,29,26,28,29,29,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,28,29,30,28,29,30,29,29,30,30,30,30,30,30,30,31,31,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,30,30,30,30,29,29,30,29,29,29,29,28,28,27,26,26,25,26,25,23,24,24,22,24,23,18,22,21,21,19,18,16,16,15,12,9,8,7,6,4,2,0,1,3,4,4,5,7,7,8,11,12,13,15,16,19,19,21,22,23,26,27,28,29,29,30,29,30,30,30,29,30,30,30,29,30,31,30,29,30,30,30,29,30,30,30,30,31,30,30,31,30,30,31,30,31,30,31,31,31,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,30,31,30,30,31,31,30,31,31,30,31,31,31,30,31,31,30,30,31,31,30,30,31,30,30,31,30,31,31,29,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,30,29,30,30,30,30,31,31,31,31,31,30,31,31,31,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,31,31,30,31,31,30,31,30,31,31,30,30,31,31,29,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,29,30,30,29,29,28,28,28,25,26,25,24,25,21,24,25,24,23,25,24,23,24,26,25,23,25,25,25,25,25,26,26,26,26,26,26,28,27,26,28,28,28,28,28,28,29,29,29,29,28,29,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,27,28,27,28,28,28,28,27,28,28,27,27,28,28,28,28,29,28,29,29,29,29,28,29,29,29,29,30,29,30,30,30,30,31,31,31,31,30,31,31,30,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,30,30,30,29,30,29,29,29,28,28,29,26,29,27,29,30,30,31,29,30,29,30,30,29,29,30,30,30,29,29,29,29,26,29,29,28,27,29,29,28,29,29,30,29,29,29,29,29,30,30,29,29,30,30,29,30,31,30,29,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,30,30,30,30,30,29,29,29,29,29,25,29,27,25,28,29,28,28,28,29,29,29,29,29,30,29,30,31,30,29,30,31,30,30,29,29,28,29,29,26,25,27,28,23,27,28,28,28,29,29,30,29,30,30,28,29,29,29,29,29,29,29,29,29,30,30,30,30,30,30,30,31,31,31,30,30,30,30,30,30,30,30,29,29,29,29,27,29,29,28,26,28,28,26,28,28,29,29,29,29,29,29,29,29,30,30,29,29,30,30,29,30,30,30,29,29,30,28,30,29,28,28,28,29,28,28,29,29,28,30,30,29,29,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,31,30,30,30,30,30,30,29,29,30,29,28,28,27,28,27,25,27,25,21,24,24,21,24,22,19,22,22,22,20,20,19,18,17,14,12,9,8,7,5,4,2,0,1,3,4,3,6,6,6,7,10,10,13,14,16,18,20,21,22,25,26,27,27,28,29,29,30,30,30,29,29,30,30,29,30,30,30,28,30,30,29,29,29,30,29,29,30,30,30,30,31,30,30,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,30,31,31,30,30,30,30,31,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,29,30,30,30,30,31,30,31,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,31,31,30,30,31,31,30,30,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,29,30,29,29,28,28,27,27,25,27,26,23,24,21,23,25,25,22,25,25,22,24,26,26,25,26,25,25,26,26,27,27,27,27,26,27,28,27,27,28,28,28,29,29,29,30,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,28,29,28,28,29,27,28,28,28,28,27,28,29,27,27,28,29,27,29,28,28,28,29,29,28,29,29,29,28,29,30,29,30,30,30,30,31,31,31,31,30,31,31,31,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,30,31,31,31,31,31,30,30,30,30,29,29,29,29,28,28,28,29,26,28,28,29,30,30,31,30,30,29,30,30,29,28,30,30,29,28,28,29,28,26,27,28,27,26,29,28,27,29,29,29,28,29,29,29,28,30,30,28,29,30,30,29,30,31,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,30,30,30,29,29,30,29,30,29,29,28,29,25,28,27,24,28,29,27,27,28,28,29,29,29,29,30,29,30,30,30,30,30,30,30,29,29,28,28,28,28,26,25,27,27,24,27,28,28,27,28,28,28,29,29,30,28,29,29,29,28,29,29,29,29,30,30,29,30,30,30,30,30,30,31,31,30,31,30,30,30,29,30,29,29,29,28,29,28,28,29,28,27,28,28,26,27,28,29,29,29,28,29,29,29,28,29,30,29,29,30,30,29,30,30,30,29,29,30,29,29,30,29,28,28,30,28,28,29,29,28,29,29,28,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,29,30,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,28,28,28,27,27,27,26,26,25,23,25,24,22,24,24,20,23,22,22,20,20,18,18,18,16,15,12,9,7,6,5,4,1,0,1,3,3,4,5,5,6,7,10,11,12,16,16,19,21,20,26,26,26,27,28,29,29,30,30,30,29,30,30,29,29,30,30,29,29,30,30,29,29,29,30,29,29,30,30,30,31,31,31,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,31,30,31,30,30,29,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,29,28,30,30,30,30,30,30,31,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,31,31,30,31,31,30,31,29,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,29,30,29,29,28,26,27,26,23,26,25,22,24,21,23,25,25,22,25,24,23,23,24,24,23,25,23,24,25,25,25,26,25,26,26,26,27,27,26,28,28,28,28,29,28,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,28,28,27,28,27,26,28,26,27,28,26,27,28,26,27,27,28,27,28,28,28,28,29,28,29,28,28,29,28,29,30,29,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,29,29,28,28,28,28,27,28,27,27,28,28,29,30,30,29,30,28,30,30,29,28,29,30,29,28,27,28,28,25,27,28,26,26,28,27,27,28,28,29,28,29,29,29,28,29,30,28,29,30,30,29,30,31,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,30,30,30,29,29,30,29,29,29,28,28,28,25,28,27,24,27,28,26,26,28,28,29,28,29,28,29,29,30,30,30,29,30,30,29,30,29,28,28,27,28,25,27,26,26,23,26,26,28,27,28,27,28,28,29,29,28,28,29,29,28,30,29,29,29,30,30,30,30,30,30,30,31,31,31,31,30,31,30,30,30,30,30,30,29,28,29,29,27,28,29,27,26,27,28,26,27,27,29,29,29,29,28,29,29,28,29,29,29,29,30,30,29,29,30,30,29,29,29,28,29,29,28,28,27,29,27,28,29,28,28,30,29,28,29,30,30,30,31,31,31,30,30,30,30,30,30,30,31,29,30,30,30,30,31,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,30,30,29,30,30,28,29,29,29,28,28,28,28,27,27,26,26,25,25,24,24,25,23,24,24,20,23,23,23,20,20,19,18,18,17,16,13,11,8,7,5,5,3,1,0,1,3,4,3,5,5,6,6,10,11,14,14,17,20,20,24,25,25,27,28,29,28,29,30,29,28,30,30,29,29,30,30,29,29,30,30,29,28,29,30,29,29,30,30,29,30,30,30,30,30,30,30,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,31,31,30,30,31,31,30,31,31,30,30,30,30,30,31,30,30,30,31,30,30,31,30,30,31,31,30,30,31,30,30,30,30,29,30,30,30,30,30,29,30,30,29,30,30,30,30,30,31,31,30,31,31,30,31,31,31,31,30,31,30,31,31,31,31,31,30,31,31,30,31,30,31,30,30,30,30,31,31,29,30,30,30,30,28,30,30,29,30,30,30,30,31,30,30,30,31,30,30,31,31,30,30,31,31,30,30,31,30,30,31,31,30,30,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,30,31,30,30,30,30,31,30,30,30,30,30,31,31,30,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,28,30,31,30,29,30,30,29,30,31,31,30,31,31,30,31,30,29,30,31,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,30,30,30,30,30,29,29,29,29,28,29,28,28,27,26,26,25,22,24,23,21,23,20,22,23,23,21,24,24,23,24,25,25,23,26,24,24,25,25,25,25,25,26,25,24,26,27,26,27,27,27,27,28,28,29,28,29,28,29,28,28,28,28,28,28,28,28,28,28,28,28,27,28,27,27,27,27,27,25,28,27,27,27,25,26,27,25,26,27,26,26,27,27,27,27,28,27,27,28,28,28,27,28,29,28,29,29,30,30,31,30,31,30,30,31,31,30,31,30,31,29,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,30,30,31,31,30,30,31,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,30,30,30,31,30,30,30,30,29,30,29,28,28,29,28,27,27,28,27,28,27,28,29,29,30,29,30,28,30,30,29,29,29,30,30,29,28,29,29,27,28,29,28,27,29,29,28,28,29,29,28,28,29,29,28,29,29,28,29,30,30,29,29,30,30,29,30,30,30,30,30,31,30,30,30,30,31,30,31,30,30,30,31,30,30,30,30,30,30,30,29,30,30,29,28,29,28,29,29,29,28,28,24,27,25,25,27,28,26,27,28,28,28,29,29,28,29,29,30,30,29,29,30,30,29,29,28,28,28,28,28,27,26,27,28,23,28,28,28,27,27,26,28,27,29,29,27,28,29,29,27,29,29,29,29,29,30,29,29,30,30,29,30,30,30,30,30,30,29,30,29,29,29,29,29,28,28,28,26,28,28,27,26,27,28,26,27,26,27,28,28,28,28,28,29,28,29,29,29,28,29,29,29,29,29,29,28,28,29,27,28,29,27,27,27,28,26,27,28,28,27,29,29,27,28,29,30,29,30,30,30,29,29,29,29,29,29,29,30,29,29,29,29,29,30,30,30,30,30,31,30,30,31,30,31,30,30,31,30,31,31,31,30,30,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,30,30,29,30,30,29,30,29,29,29,29,28,28,28,27,27,25,27,26,21,24,25,21,23,23,19,22,23,23,21,20,19,18,18,17,16,15,13,11,9,6,5,4,3,1,0,1,3,3,3,4,5,5,7,10,13,14,16,18,19,22,23,26,27,28,29,28,29,29,30,29,29,30,30,29,29,30,29,28,30,30,28,28,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,31,30,30,30,30,30,31,30,30,30,31,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,30,29,29,30,30,30,30,31,30,30,30,30,30,30,30,31,29,30,30,30,29,31,31,30,30,30,31,30,31,30,30,31,31,30,31,31,31,30,31,31,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,31,31,31,30,30,30,30,30,30,30,30,30,29,29,29,29,28,29,28,28,27,25,25,24,22,24,23,22,22,20,22,22,23,20,22,23,21,23,24,24,22,25,24,24,24,24,26,25,24,25,25,25,27,27,25,28,28,27,28,29,29,29,28,29,29,28,29,29,29,28,28,28,28,28,28,28,28,28,28,28,28,28,27,27,28,25,28,28,27,27,27,27,27,26,26,27,28,27,28,27,27,27,28,28,28,27,28,28,27,28,29,29,30,29,29,30,30,31,31,30,30,30,31,30,30,30,31,30,30,31,30,30,30,30,31,30,31,31,31,31,31,31,31,31,30,31,31,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,31,31,31,30,31,31,31,31,30,30,31,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,28,28,28,27,28,27,26,28,27,29,29,30,30,28,29,29,29,29,28,28,29,30,29,28,28,29,29,26,28,28,27,26,28,28,28,28,28,29,28,29,29,28,27,29,29,28,29,30,29,28,29,30,30,29,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,29,29,28,28,28,28,26,27,22,27,25,24,27,28,26,26,26,27,29,28,29,29,29,29,29,30,30,30,30,30,30,30,29,28,28,28,28,26,25,28,26,23,26,27,27,27,28,26,27,28,29,29,27,27,29,28,28,28,28,28,28,29,29,28,29,30,30,30,30,30,30,30,29,30,30,30,30,28,30,30,29,29,28,28,27,28,28,27,26,27,27,24,27,26,27,28,28,27,27,28,28,27,28,29,28,28,28,29,28,29,29,29,29,29,29,28,29,29,28,28,27,28,26,27,28,27,27,29,28,27,28,29,29,29,30,30,30,29,29,29,28,29,29,30,30,29,30,30,30,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,30,30,30,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,31,30,30,30,30,30,29,30,29,30,29,29,29,28,28,27,25,28,25,20,26,25,22,25,23,20,23,24,24,22,22,21,20,20,19,18,16,14,12,10,8,6,4,5,3,1,0,2,2,4,4,6,5,7,9,12,14,17,18,18,22,24,26,26,27,28,28,29,30,29,28,29,30,29,28,29,30,29,28,30,30,29,28,29,30,29,29,30,29,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,30,31,30,30,30,31,30,30,30,30,31,30,30,30,30,31,30,30,30,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,30,31,31,31,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,31,30,31,30,31,30,31,30,31,31,30,30,30,31,31,30,31,31,31,30,31,30,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,30,30,28,30,30,30,30,30,30,31,31,31,30,31,31,31,30,31,31,30,31,31,31,30,31,31,30,30,30,31,30,30,31,31,31,30,30,31,31,31,31,31,30,31,31,31,30,30,31,30,30,30,30,30,30,30,31,31,31,31,31,30,31,31,31,30,31,31,30,30,30,30,30,30,30,30,31,30,31,30,30,31,30,30,31,30,29,31,31,31,30,31,31,30,31,30,30,30,30,30,30,30,31,31,30,30,31,31,31,31,30,31,31,31,30,30,30,30,30,29,29,29,29,28,29,28,28,27,26,26,25,23,25,23,21,23,20,21,24,24,20,23,23,22,22,24,25,23,25,25,25,25,26,26,26,26,26,27,26,27,27,26,28,28,27,29,29,29,30,29,29,29,30,29,30,29,29,29,29,29,29,28,28,28,29,29,29,28,29,27,28,28,25,29,27,27,28,26,27,27,25,26,27,27,27,28,27,28,27,29,28,28,28,28,29,28,29,29,28,30,30,30,30,31,31,31,31,30,31,31,30,31,31,31,30,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,30,31,30,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,31,30,31,30,30,31,30,30,31,31,31,30,30,30,30,30,29,28,29,28,28,28,27,28,26,27,28,29,29,30,30,29,29,28,30,30,29,29,29,30,29,28,28,29,28,25,26,28,27,26,28,28,27,28,28,28,28,29,29,29,27,29,30,27,29,30,30,29,30,31,30,29,30,30,30,30,31,31,31,31,30,31,31,30,31,31,31,30,31,30,30,30,30,30,30,30,29,30,30,29,30,29,28,28,29,29,27,28,24,27,25,24,26,27,25,26,27,28,28,28,28,27,29,29,29,30,29,29,30,30,29,29,29,27,27,27,27,26,25,26,26,23,26,27,26,26,26,26,27,27,29,29,27,27,29,28,27,29,28,29,28,29,30,29,29,30,30,30,30,30,31,31,30,30,30,30,30,29,29,29,29,28,29,28,28,28,28,27,26,27,27,25,26,26,28,28,29,27,27,29,29,28,28,29,29,29,29,30,29,29,29,29,29,29,29,29,28,29,28,28,28,29,27,27,28,28,27,29,29,28,28,29,29,30,30,30,31,30,30,29,29,29,29,30,30,29,30,30,30,30,31,30,30,30,30,31,30,31,31,30,31,31,31,31,31,31,31,31,30,30,30,31,31,31,31,30,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,30,30,30,30,30,30,29,29,28,29,28,29,28,28,27,27,26,27,25,25,25,25,23,25,25,21,24,24,24,22,22,20,20,19,18,18,16,14,13,11,8,6,5,4,4,4,1,0,1,3,3,4,5,6,7,10,11,15,17,16,22,23,25,27,27,28,28,29,30,30,28,30,30,29,28,30,30,29,28,30,30,28,28,29,30,29,29,30,29,29,30,30,30,30,30,31,30,31,31,31,30,30,30,30,30,30,31,30,30,30,30,30,30,31,31,30,30,31,30,30,31,31,31,30,31,30,31,30,30,30,30,30,30,30,30,31,30,31,31,31,31,31,31,30,30,31,31,30,30,30,30,30,30,30,30,30,28,30,30,30,30,30,31,30,31,31,31,30,31,31,31,31,31,30,30,31,31,30,30,31,31,31,31,31,31,31,30,31,30,30,31,31,30,30,31,30,29,30,30,30,29,28,30,29,29,30,30,30,30,31,31,30,31,31,31,30,31,31,30,30,31,31,30,31,30,30,30,30,31,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,31,30,30,30,31,31,31,31,30,31,30,31,30,30,30,29,29,30,30,30,30,29,30,30,30,30,29,31,31,30,30,30,30,29,31,31,31,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,30,30,30,30,30,30,30,30,30,29,29,29,29,28,29,28,28,27,24,26,24,22,24,23,20,22,19,22,23,23,21,24,24,23,22,23,24,23,24,23,24,24,24,25,26,25,25,25,24,27,27,25,27,27,28,28,29,28,30,28,29,29,28,29,29,29,29,29,29,28,28,28,28,28,28,28,28,28,28,27,27,27,24,27,26,26,27,25,27,25,24,26,26,26,27,27,28,28,27,28,27,28,28,27,28,27,28,28,27,30,30,29,30,30,31,31,30,30,31,31,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,31,31,31,31,31,31,30,31,30,30,30,30,29,30,30,30,29,31,31,30,30,31,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,30,30,31,31,30,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,31,30,30,31,30,30,30,31,30,30,30,30,29,30,29,27,27,28,27,28,27,27,26,27,27,28,29,29,30,28,29,28,30,30,28,28,29,30,29,28,27,28,28,26,27,28,27,27,28,28,27,28,28,28,28,29,29,28,27,28,29,27,29,30,30,29,30,30,30,29,30,30,30,30,30,31,30,30,30,31,31,30,31,30,30,30,31,30,31,30,30,30,30,30,28,29,29,28,28,29,28,28,28,28,27,28,22,26,24,23,25,26,26,26,27,28,28,28,29,28,28,29,30,30,29,29,30,30,29,29,29,28,27,27,28,26,27,28,27,24,27,27,28,26,27,25,27,27,29,29,27,27,29,28,27,28,28,28,27,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,27,29,28,26,27,28,26,25,26,27,23,26,26,27,28,29,27,27,28,28,27,28,29,29,28,29,29,29,29,29,29,28,28,28,27,28,28,27,27,27,28,26,27,28,27,26,29,28,27,28,29,29,29,30,30,30,30,30,29,29,28,29,29,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,31,31,30,30,30,31,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,30,30,29,30,30,29,30,29,29,29,29,29,28,28,28,27,26,27,26,24,26,26,23,26,25,20,24,25,25,22,22,21,21,20,19,19,17,15,15,13,11,7,6,5,4,4,4,1,0,1,3,4,4,6,8,11,10,13,16,16,21,23,25,26,27,28,28,29,29,29,28,30,30,29,28,29,30,29,28,30,30,29,29,29,30,29,29,30,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,30,29,30,30,30,30,30,28,30,30,29,29,30,30,29,30,30,30,29,30,30,30,30,31,30,30,30,29,30,31,30,30,30,30,29,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,28,30,29,29,30,30,30,30,30,30,29,30,30,30,30,30,31,29,30,30,30,29,30,30,30,30,30,30,30,30,30,31,30,31,30,31,31,31,30,31,31,30,30,31,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,28,30,30,29,29,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,29,29,30,30,30,30,30,31,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,29,29,28,29,29,27,28,27,27,27,25,25,24,22,24,22,20,22,18,21,22,22,20,22,22,22,22,23,24,22,24,24,24,24,25,25,25,24,25,26,25,26,27,26,28,28,27,28,29,28,30,29,29,29,28,29,29,29,29,28,28,28,29,28,28,28,28,28,28,27,28,26,27,28,25,28,27,26,27,26,26,26,25,26,27,27,26,25,27,27,27,28,27,28,28,27,28,27,28,28,27,29,29,29,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,30,31,31,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,31,30,31,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,28,28,28,28,27,28,29,28,28,28,29,29,30,30,29,29,29,30,29,28,29,29,30,30,29,28,29,29,27,28,28,29,27,28,29,28,29,28,29,29,28,29,29,28,28,29,28,29,30,30,28,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,30,29,29,29,29,29,29,29,29,28,28,27,27,22,26,24,23,26,26,25,26,26,28,28,29,28,28,29,28,30,30,29,29,30,30,30,30,28,27,28,28,28,26,25,26,26,23,25,27,26,26,26,25,27,28,28,29,28,27,28,28,28,28,28,29,28,28,30,29,28,30,30,29,30,30,30,30,30,30,29,30,30,29,29,28,28,28,28,28,26,28,28,26,25,27,27,23,26,25,26,28,28,27,27,28,28,28,28,28,29,28,28,29,28,29,29,29,28,28,28,27,28,28,27,27,27,27,26,26,27,26,26,28,28,28,27,28,28,28,29,29,30,29,29,28,28,28,29,29,29,29,29,29,30,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,28,29,29,27,29,28,25,28,27,23,26,25,22,24,25,21,25,25,25,22,23,22,22,22,20,20,18,17,16,15,13,11,9,8,6,4,4,4,1,0,2,3,4,5,6,9,9,13,15,15,20,20,23,24,26,27,27,28,28,28,28,29,29,29,27,29,29,28,28,29,29,28,28,28,29,29,28,29,28,29,29,29,29,29,29,30,29,30,30,30,29,30,30,29,29,29,29,30,30,30,29,29,29,30,30,30,30,30,30,29,30,30,30,29,30,30,30,29,29,29,30,30,30,30,30,31,30,30,30,30,30,30,30,29,29,30,30,29,29,29,29,29,29,29,29,29,28,29,29,29,29,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,31,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,28,29,29,29,29,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,31,29,30,30,29,29,30,30,29,30,29,29,29,30,30,29,30,30,29,30,30,29,29,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,31,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,29,28,29,29,27,28,27,26,26,24,24,23,22,24,22,20,21,19,20,23,22,20,24,23,21,22,25,25,23,26,26,25,24,26,27,26,26,25,26,26,27,28,26,27,27,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28,27,27,28,26,27,28,27,28,27,27,27,25,26,27,26,26,27,27,27,26,27,28,27,27,26,28,27,27,29,26,29,29,29,29,30,30,30,30,29,30,30,29,29,30,30,29,30,31,30,29,30,30,30,30,30,30,30,31,31,30,30,31,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,30,29,29,30,30,30,30,30,29,30,30,31,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,30,31,30,29,30,30,30,29,30,30,30,30,29,30,30,30,30,30,30,29,29,30,28,28,28,27,27,27,28,27,27,27,28,29,28,30,30,28,29,28,29,29,28,28,29,29,29,29,27,28,29,27,27,28,28,26,28,28,27,27,29,28,28,29,28,28,27,29,29,27,28,29,29,28,30,30,29,29,30,30,29,29,30,29,29,30,30,30,30,30,30,29,30,30,30,29,30,30,29,29,30,30,28,30,29,28,29,28,27,28,27,26,27,26,22,26,23,23,26,25,24,26,27,27,28,27,27,27,28,28,29,29,28,28,28,29,28,28,28,27,27,27,26,26,24,26,26,23,24,26,26,25,26,25,26,27,28,28,27,27,27,27,27,28,28,28,27,29,29,28,28,30,29,29,30,30,30,30,30,30,30,30,30,28,29,29,28,29,27,28,27,27,27,26,26,26,26,23,24,24,25,27,28,27,26,28,27,27,28,28,28,28,28,29,28,29,28,28,29,27,29,28,28,28,27,27,27,28,26,26,28,26,26,28,28,27,27,28,29,28,29,29,29,29,29,28,28,29,29,29,29,29,30,30,30,29,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,31,30,30,30,31,30,30,30,30,30,30,30,30,29,29,29,29,28,29,27,27,28,27,24,27,26,23,27,25,21,25,26,26,23,24,23,22,23,22,21,19,18,17,16,14,13,9,8,7,6,4,4,4,2,0,2,3,4,5,6,8,11,14,14,19,20,22,24,25,27,26,28,29,29,27,28,29,28,27,29,29,28,27,29,29,28,28,29,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,30,30,30,30,30,30,30,30,29,30,30,30,30,30,28,29,30,30,30,30,30,30,30,30,31,30,31,30,31,31,30,30,30,30,31,30,31,31,31,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,28,30,29,29,30,30,30,30,31,31,30,31,31,30,30,31,31,30,30,31,31,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,30,31,30,31,31,31,30,30,31,30,30,30,30,30,30,31,31,30,30,31,30,30,30,30,31,30,30,30,30,29,30,30,30,30,29,30,30,30,30,28,30,30,30,30,30,30,29,30,30,31,30,30,30,30,30,30,29,30,30,30,30,30,31,30,30,31,31,31,30,30,30,31,31,30,30,30,30,29,30,28,29,29,29,27,28,27,26,26,23,25,23,20,23,22,18,20,16,20,22,21,18,22,22,21,20,22,24,21,24,24,24,24,26,26,27,26,26,27,25,27,27,26,28,27,27,28,28,28,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,28,29,29,28,28,27,25,28,27,27,28,25,28,26,24,27,27,26,26,27,27,27,27,28,27,28,27,27,28,26,28,28,27,29,29,29,30,30,31,30,30,29,31,31,30,30,30,30,29,30,31,30,29,30,30,30,30,30,30,31,30,31,30,31,31,30,31,30,30,30,30,29,30,30,30,30,31,31,30,30,31,30,30,31,30,31,30,30,30,31,31,31,30,31,31,30,31,31,31,30,31,31,31,30,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,30,30,30,31,30,30,30,29,29,30,28,28,28,27,26,26,27,27,26,26,27,28,28,29,30,28,29,27,29,29,28,28,29,29,29,28,26,28,28,27,27,28,27,26,27,28,27,27,28,28,27,28,28,27,25,28,29,27,28,30,30,28,29,30,30,29,30,30,30,30,31,30,30,30,30,30,31,31,31,30,30,30,31,30,30,30,30,30,30,30,28,30,30,28,29,28,28,27,28,26,26,27,23,25,23,22,25,24,24,25,27,26,27,26,27,28,28,28,29,30,29,29,29,29,29,29,28,27,27,27,27,26,26,25,25,23,26,26,25,24,25,24,25,26,28,28,25,25,28,27,26,28,28,28,27,29,30,28,28,30,30,29,30,30,30,30,30,30,30,30,30,29,29,29,28,28,28,27,26,27,27,26,24,25,26,22,24,23,25,27,28,25,26,28,28,27,27,28,28,27,28,29,29,28,29,29,28,29,28,28,28,28,27,27,26,28,25,26,27,27,26,28,28,27,27,29,29,29,30,30,30,29,29,28,28,29,29,29,30,29,30,30,30,29,30,30,30,30,30,30,29,30,30,30,31,30,31,31,30,31,31,31,30,30,30,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,29,28,27,28,27,27,27,26,26,26,26,25,26,25,23,25,25,25,23,23,22,22,22,21,21,19,18,17,16,14,13,12,11,8,7,6,4,4,4,2,0,1,3,4,6,6,11,13,12,18,20,22,25,25,27,26,28,29,29,28,28,29,29,28,29,29,29,28,29,30,28,28,29,29,29,28,29,29,29,29,29,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,30,31,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,30,30,30,27,29,30,29,29,30,30,29,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,28,29,29,29,29,30,30,30,30,30,29,30,30,30,29,30,31,29,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,29,30,30,29,30,30,29,30,29,30,30,30,29,30,30,29,30,30,30,29,30,30,30,30,29,29,29,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,29,29,29,28,28,28,28,26,27,26,26,26,23,24,22,20,22,20,18,19,17,19,20,21,18,21,21,21,20,22,23,21,24,23,24,23,24,26,25,24,25,24,24,25,26,25,27,26,27,27,29,28,29,28,28,28,28,28,28,28,28,28,28,28,28,29,28,28,28,28,27,27,27,26,26,26,24,26,25,25,26,25,25,24,24,26,25,25,25,25,26,26,26,27,26,27,27,27,28,26,27,28,26,29,29,29,29,30,30,30,30,29,30,30,29,30,30,30,29,30,31,30,30,30,30,30,30,30,30,30,31,31,30,30,31,30,31,30,30,30,30,29,30,30,29,30,30,30,29,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,28,28,28,28,27,28,27,27,27,27,27,28,28,29,29,28,29,28,29,29,28,29,29,30,29,29,28,29,29,28,28,29,27,28,28,28,28,28,29,28,28,29,29,28,27,29,29,28,29,29,30,29,29,30,30,28,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,30,28,29,29,28,28,28,27,27,27,26,27,27,21,24,22,23,24,24,24,27,27,28,28,28,28,28,29,28,30,30,29,29,30,30,29,29,29,28,28,28,28,27,27,27,27,24,27,28,27,25,26,24,25,26,28,28,26,25,28,27,27,27,28,27,26,28,29,28,28,30,30,29,29,29,30,29,29,30,29,29,29,28,28,28,27,27,27,27,25,26,27,24,23,24,24,20,23,22,24,26,27,26,25,27,27,26,27,28,28,27,28,28,28,28,27,28,27,28,28,26,28,27,26,26,25,27,23,25,26,25,25,27,27,26,25,28,28,28,29,29,29,29,28,28,28,28,28,28,29,28,28,29,29,28,30,29,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,30,30,30,30,31,30,30,30,30,30,30,30,29,30,29,30,30,29,30,29,28,29,28,26,27,27,25,27,27,23,26,27,26,24,25,24,24,23,22,22,21,20,18,17,17,15,13,12,10,8,7,7,5,5,4,1,0,1,3,5,6,10,11,13,17,20,20,24,25,27,26,28,29,28,27,29,29,29,28,29,29,29,28,29,29,29,28,29,29,29,29,29,29,29,30,29,29,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,30,30,28,29,30,29,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,29,30,29,29,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,29,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,29,29,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,29,29,29,29,29,30,30,29,29,30,30,30,30,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,27,28,28,29,27,27,27,25,24,22,23,20,18,20,18,18,20,17,18,21,21,17,21,21,20,20,22,24,21,23,25,24,23,25,27,26,26,26,26,25,26,27,26,27,28,27,28,29,28,29,28,29,29,29,29,29,29,29,29,29,28,29,29,29,28,29,28,28,28,28,28,27,28,26,28,27,27,27,26,26,26,25,26,27,25,26,26,27,27,27,27,27,27,27,26,28,26,27,27,26,29,29,28,30,30,30,30,30,29,30,30,29,30,30,30,29,30,31,30,29,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,29,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,28,30,30,30,30,30,30,29,30,30,30,29,30,30,30,28,28,29,28,28,26,28,27,28,28,29,29,29,30,30,29,29,28,30,30,28,29,29,30,30,29,28,29,29,28,28,29,29,27,29,29,28,28,29,29,29,28,29,28,27,29,29,28,28,29,30,28,29,30,29,29,29,29,29,29,30,30,30,29,29,30,30,30,30,29,30,30,30,29,30,29,29,30,30,30,29,29,29,28,28,28,28,28,28,27,27,26,20,24,20,20,25,25,23,25,25,28,27,29,27,29,29,28,29,30,29,29,29,30,29,29,29,28,29,28,28,28,25,27,27,24,26,27,26,24,26,22,26,26,27,28,27,25,27,27,27,26,28,28,27,28,29,28,28,29,30,29,29,29,30,30,30,30,29,30,30,28,29,29,28,29,28,27,26,26,26,25,24,24,24,20,23,21,23,26,26,25,24,27,26,27,27,28,27,27,28,29,27,27,28,28,27,28,28,27,27,27,26,25,25,26,22,24,26,25,25,27,27,26,27,28,29,28,29,29,29,28,28,28,27,28,29,28,29,28,29,29,30,28,30,30,29,30,30,29,29,30,30,29,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,29,30,29,29,29,28,27,29,28,26,28,27,24,27,27,24,27,27,27,25,26,24,25,25,24,25,22,22,20,20,18,17,15,16,15,12,11,9,8,7,6,4,2,0,1,3,5,8,10,12,16,17,20,22,24,27,26,28,28,28,26,28,29,28,27,29,29,28,28,29,29,28,28,30,29,30,29,30,29,29,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,31,31,31,30,30,30,31,30,30,30,30,30,30,30,31,31,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,31,30,30,31,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,31,31,30,30,30,30,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,31,31,30,30,31,31,31,31,31,31,31,31,30,30,31,30,31,30,30,31,30,31,31,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,31,31,30,30,31,31,30,31,30,31,31,30,30,30,30,30,30,29,28,29,29,27,28,27,27,24,21,23,18,18,20,18,16,18,17,17,20,22,18,21,22,23,21,23,25,22,24,25,25,25,26,26,28,27,28,27,26,28,27,27,28,28,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,29,29,28,29,29,29,29,28,27,28,27,27,28,26,27,26,25,27,26,25,27,26,27,27,25,27,27,26,26,25,28,27,27,27,27,29,29,29,30,30,31,31,30,29,31,31,30,30,30,30,30,30,31,30,30,30,30,30,30,31,31,31,31,31,30,31,30,30,31,30,30,30,31,30,30,30,30,30,31,30,30,30,30,30,30,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,30,31,30,30,30,30,30,30,30,29,30,30,28,28,29,27,27,27,27,28,27,27,28,28,28,30,30,29,29,28,30,30,29,29,30,30,30,29,29,29,28,27,27,29,28,25,28,28,27,26,28,29,27,29,29,28,26,29,30,28,27,30,30,28,29,30,30,28,30,30,30,30,30,30,30,30,30,31,31,31,31,30,30,30,31,30,30,30,30,30,30,30,29,30,29,29,29,28,28,28,28,27,26,27,22,25,21,22,25,23,23,25,26,27,27,27,27,27,29,28,29,29,29,29,29,29,29,29,29,28,28,27,27,26,24,26,26,23,25,25,25,24,25,22,23,26,27,28,26,24,27,27,27,26,28,28,27,29,29,28,27,30,30,29,30,30,30,30,30,31,30,30,30,29,29,29,29,28,28,27,27,27,26,25,24,24,23,20,21,20,23,25,26,25,24,27,27,26,26,28,28,26,28,29,28,28,28,29,28,29,28,28,26,27,27,27,23,27,22,24,26,24,25,27,28,27,26,28,30,28,30,29,30,29,29,28,28,28,29,29,30,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,31,30,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,30,30,30,30,30,30,30,30,29,30,29,28,29,28,27,28,28,26,27,27,26,28,26,25,26,27,27,25,26,25,25,24,24,24,23,22,21,21,19,18,17,16,15,14,13,10,10,9,7,6,5,2,0,1,3,5,7,9,13,16,18,21,22,25,25,27,28,28,27,28,28,28,27,29,29,28,27,29,29,28,28,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,29,29,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,30,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,29,30,30,30,29,29,30,30,30,30,30,30,30,30,30,30,31,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,30,30,30,28,30,30,29,29,30,30,29,30,30,30,29,30,30,30,30,30,28,29,29,29,29,29,30,30,30,30,30,31,30,30,30,30,30,30,30,29,28,29,29,27,27,28,28,25,27,26,25,23,19,22,18,16,19,19,17,20,16,18,21,22,17,22,23,22,22,23,23,24,24,24,25,25,27,26,27,27,26,27,25,26,27,27,27,27,28,29,29,29,30,29,30,30,29,29,30,30,30,30,30,30,29,29,30,29,28,29,28,29,29,28,28,26,26,27,26,27,27,26,27,24,25,27,25,24,26,25,27,27,26,27,26,25,26,24,27,26,27,26,25,29,29,28,30,30,30,30,30,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,30,30,30,30,29,30,30,30,29,30,30,29,30,30,30,29,30,30,30,30,30,30,31,30,30,30,30,31,31,31,30,30,30,30,30,30,30,30,29,30,30,31,31,30,31,30,31,31,30,31,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,28,28,29,28,26,26,26,28,27,27,28,29,29,29,30,29,29,27,29,30,28,29,29,30,30,29,29,29,29,28,28,29,28,26,29,29,27,27,29,29,26,28,29,28,26,29,29,27,28,30,30,28,29,30,29,28,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,28,29,29,28,28,28,27,27,26,25,26,25,22,22,20,21,24,22,22,25,26,27,27,28,27,28,28,28,29,29,29,29,30,29,28,29,29,28,29,28,28,27,27,27,26,25,27,26,25,24,25,21,22,25,27,28,25,23,27,27,25,26,28,28,26,28,29,28,27,29,29,29,29,29,30,29,29,30,29,30,30,28,28,29,28,27,28,27,25,26,25,24,23,23,22,18,20,17,21,24,26,23,22,26,27,25,25,28,27,25,28,28,27,27,28,29,26,28,28,26,27,27,26,26,24,26,21,25,26,25,24,26,26,25,26,27,29,27,29,29,29,28,28,27,27,28,29,29,29,28,30,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,30,30,29,29,29,28,29,28,27,28,28,26,28,28,25,28,28,28,27,28,26,26,26,25,26,24,23,23,23,22,20,18,18,17,16,15,12,11,10,9,8,6,4,2,0,1,3,5,7,11,13,16,21,21,24,24,26,27,27,24,26,27,27,25,27,28,28,26,28,28,27,28,29,28,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,29,30,30,29,30,30,30,29,29,27,29,30,29,28,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,28,29,30,29,28,28,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,29,28,29,30,29,29,29,29,27,29,30,30,28,29,30,29,29,28,26,28,28,29,28,29,30,29,29,30,30,30,30,30,30,30,30,29,29,28,28,27,28,26,26,27,27,23,26,25,25,21,17,20,15,15,18,17,15,20,16,17,21,22,18,22,22,23,23,23,24,24,25,25,26,26,27,26,27,27,27,26,26,26,27,27,28,28,28,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,29,29,29,28,28,26,27,28,26,27,28,27,27,25,25,27,25,25,26,25,27,27,25,26,26,26,26,24,26,26,27,25,25,27,28,28,29,29,30,30,30,29,30,30,29,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,29,29,30,30,28,30,30,29,28,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,27,28,29,27,26,26,27,28,28,28,29,29,28,29,30,29,29,29,30,29,28,29,30,29,29,29,29,29,29,29,29,30,29,28,29,29,28,27,29,29,27,28,29,28,25,29,29,26,26,29,29,27,27,29,29,26,29,29,29,28,30,30,29,29,30,30,30,30,30,29,30,30,30,29,30,30,28,29,29,30,28,29,29,28,28,26,26,27,25,24,26,26,21,22,18,21,24,21,20,25,26,26,26,28,27,28,29,28,29,29,29,29,30,29,29,29,29,29,29,29,29,28,27,27,27,26,27,27,26,24,23,19,20,25,25,26,24,20,25,26,22,24,26,26,23,27,28,27,26,29,29,28,28,28,29,29,29,30,29,29,29,27,28,29,28,27,27,26,24,25,24,22,21,21,20,16,18,13,18,22,23,19,19,24,25,22,23,27,26,24,27,28,27,27,28,29,26,29,28,27,26,26,26,26,23,25,20,23,25,23,22,25,26,25,24,26,28,27,29,29,29,28,28,27,27,28,29,28,29,29,30,29,30,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,29,30,30,28,30,29,28,29,29,27,29,28,26,28,28,28,27,27,27,27,27,26,26,25,24,24,24,23,21,20,19,20,18,16,15,13,12,11,10,9,7,5,2,0,1,3,6,9,13,15,18,20,24,22,25,26,27,24,27,27,26,25,26,28,27,26,28,28,28,28,29,28,28,29,29,28,29,29,29,29,29,29,30,29,29,30,29,29,29,29,29,29,29,29,29,30,29,29,29,30,29,30,30,29,30,30,29,30,30,30,29,30,30,30,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,29,29,29,28,29,29,29,28,28,29,29,27,28,30,28,29,29,29,29,30,29,30,29,30,29,30,30,30,29,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,30,29,30,29,29,30,30,29,30,30,30,29,30,30,29,29,30,29,28,29,29,29,27,29,29,28,28,28,29,28,29,28,29,29,30,29,29,30,30,29,29,30,30,29,30,30,29,30,30,30,29,30,30,30,30,29,29,28,30,30,29,28,30,30,28,29,30,29,29,30,30,30,29,29,29,29,29,29,28,29,29,28,28,29,28,27,29,29,28,28,29,29,28,29,28,26,28,28,28,27,28,29,28,28,29,29,29,29,30,29,30,29,29,28,27,27,27,27,26,26,27,26,23,25,25,24,19,17,17,16,15,18,18,18,22,16,17,22,23,19,21,22,24,24,23,24,25,26,26,26,26,28,27,28,28,27,27,26,27,28,27,28,28,28,29,29,29,30,29,30,29,30,29,30,30,30,30,30,30,30,29,30,29,29,29,28,29,29,28,28,28,27,28,27,27,28,27,26,25,25,25,25,25,25,24,26,25,25,26,25,26,26,24,26,26,28,26,26,28,28,27,28,29,29,30,29,28,29,29,28,29,29,29,28,29,30,29,29,29,30,29,29,29,30,30,29,30,29,30,30,29,30,30,28,29,29,29,29,29,29,29,30,29,28,28,29,28,27,29,28,29,29,29,29,30,30,30,29,30,30,30,30,30,30,29,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,29,29,29,29,29,29,30,29,28,28,30,30,27,28,29,27,26,26,27,28,29,28,29,29,29,29,30,29,29,29,29,29,29,29,29,30,30,29,29,29,30,29,29,29,29,27,29,29,28,27,28,29,27,27,29,28,25,28,29,27,27,28,29,26,27,28,28,26,28,28,28,28,29,29,28,29,29,29,29,30,30,28,29,30,29,28,29,29,28,29,30,29,29,29,28,29,29,26,27,28,26,24,26,25,21,22,18,21,22,20,19,24,24,26,25,27,26,28,28,27,28,28,28,29,29,29,28,28,29,28,28,28,28,28,27,27,26,26,27,25,24,22,22,17,20,24,24,26,24,20,25,25,23,22,26,26,24,27,28,27,26,29,29,28,28,29,29,29,30,30,28,29,29,27,28,29,29,28,26,26,27,27,23,24,23,21,19,16,18,14,18,21,23,20,20,24,25,23,23,27,26,25,27,28,27,27,28,29,27,28,28,28,27,26,27,26,24,25,21,23,25,22,23,25,26,24,24,26,28,27,28,28,28,27,28,27,26,28,28,28,29,28,30,29,30,29,30,29,28,30,30,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30],[31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,29,29,30,29,28,29,29,27,29,28,27,28,28,28,28,28,27,27,27,27,27,26,26,26,26,25,23,22,22,21,19,18,17,15,14,12,11,10,10,8,5,2,0,1,4,7,10,13,14,16,21,21,23,25,25,23,25,27,25,24,26,28,27,26,28,29,27,29,29,28,29,29,29,28,29,30,29,29,30,30,30,30,30,30,30,29,29,30,29,29,30,30,30,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,29,30,29,29,29,29,28,28,29,29,27,29,29,29,29,29,30,29,29,30,30,29,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,29,30,29,29,29,30,29,30,30,30,29,30,30,29,28,30,30,28,29,29,29,27,29,29,28,28,28,29,28,29,29,29,29,30,29,29,30,30,29,29,30,30,29,30,30,29,30,30,30,29,30,30,30,30,29,29,28,30,30,29,28,30,29,28,29,30,29,29,29,30,30,29,29,29,29,29,29,28,29,29,28,27,29,28,27,28,29,29,27,28,28,28,28,27,25,26,27,27,27,28,29,28,28,28,29,29,29,29,29,29,28,29,28,27,26,26,26,24,25,25,25,22,24,23,22,17,14,16,14,14,16,16,15,20,16,17,20,22,19,22,23,23,23,24,24,24,24,25,25,25,26,26,27,27,27,27,26,26,28,27,28,27,28,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,29,28,28,27,27,27,27,27,27,26,26,25,25,27,25,25,26,24,26,26,24,26,25,24,25,23,25,25,25,24,23,27,26,27,27,28,29,29,29,28,29,29,28,28,29,29,29,29,30,29,29,29,29,29,30,30,30,30,30,30,29,29,30,29,30,30,29,29,29,29,29,29,29,29,30,29,28,29,29,28,26,28,28,29,28,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,29,30,29,30,30,29,29,30,30,29,30,30,29,29,29,29,29,28,29,29,28,28,29,29,27,28,28,26,25,25,26,27,28,27,29,28,28,29,29,28,28,29,29,29,28,29,29,29,29,30,29,29,29,29,29,29,29,27,29,29,27,26,28,29,25,27,28,27,24,27,28,25,25,27,28,26,26,28,28,26,27,28,28,27,28,28,28,28,28,29,29,30,29,28,29,29,29,28,29,29,28,28,29,28,28,28,28,27,28,26,26,27,24,22,25,25,20,20,18,20,22,19,19,24,23,25,25,27,26,28,28,27,29,29,28,29,29,29,29,29,29,29,28,28,28,27,27,27,26,25,26,25,23,21,19,16,18,23,22,25,21,19,23,24,20,20,24,25,22,25,27,26,24,28,28,28,27,28,28,28,29,29,28,29,29,27,28,28,28,27,26,25,24,23,22,21,21,20,17,15,16,10,16,18,21,18,17,22,24,21,21,25,25,23,26,27,27,26,27,28,26,28,27,26,27,26,26,24,22,24,19,22,24,21,20,24,24,22,21,24,27,26,27,27,27,27,28,27,26,28,28,27,28,28,29,28,30,29,29,29,28,29,29,29,29,29,29,29,30,29,29,30,29,30,30,30,30,30,30,30,30,30,29,29,30,30,30,30,30,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30],[31,31,30,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,29,29,28,28,29,28,29,28,27,28,28,28,27,28,27,27,27,27,27,26,26,26,25,25,23,23,22,21,20,20,19,18,17,15,14,12,10,9,7,5,2,0,1,4,7,8,11,12,15,17,20,21,20,17,18,21,21,18,21,22,21,20,23,24,22,22,24,24,25,25,26,24,25,27,26,27,28,28,28,28,28,29,28,28,28,28,28,27,28,28,27,28,26,28,28,28,28,29,29,27,29,28,28,28,29,29,28,29,28,29,28,28,28,28,28,28,29,29,29,29,29,29,28,28,29,28,26,27,27,26,25,27,26,24,27,25,25,25,25,21,24,25,23,23,25,27,24,25,26,26,26,27,28,27,27,28,28,29,27,27,28,28,28,29,28,29,27,28,29,28,29,28,28,28,28,28,27,28,28,28,28,28,28,27,27,26,26,26,27,28,27,27,28,27,27,27,27,26,24,27,26,24,24,26,25,24,24,25,22,23,25,25,25,26,26,26,27,28,27,26,28,28,26,27,28,27,26,28,28,26,27,28,28,27,27,28,28,28,27,26,26,28,27,26,25,28,27,24,27,27,27,26,27,27,27,27,26,27,26,25,25,23,25,25,24,22,24,24,23,25,25,25,23,24,26,24,25,24,22,23,24,24,23,25,26,26,25,26,27,28,27,28,28,28,27,27,26,25,24,24,24,21,23,22,23,17,20,19,18,15,13,16,13,13,16,16,16,20,18,16,19,21,18,19,21,21,20,21,22,21,22,23,25,24,26,25,27,28,26,27,25,25,28,27,28,27,28,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,28,29,29,29,29,28,27,26,27,28,26,27,27,25,27,25,25,27,24,23,24,24,25,24,22,25,24,23,23,22,22,23,23,23,21,25,25,25,26,27,27,28,28,27,28,28,27,27,28,28,27,27,29,28,29,28,28,28,28,28,28,28,28,29,27,28,28,28,28,29,28,28,28,27,28,28,28,27,29,28,26,27,28,27,25,26,27,27,27,26,26,29,28,28,29,28,29,29,29,29,29,28,29,28,28,28,28,28,29,29,30,29,29,28,29,27,27,26,29,28,26,27,29,29,26,28,28,27,26,26,27,26,24,27,26,24,25,26,26,23,25,26,23,22,20,23,23,24,24,25,25,26,25,26,25,25,24,26,25,24,26,25,27,27,27,24,26,25,25,24,25,25,23,23,26,24,22,24,25,22,22,24,24,20,22,25,21,20,24,25,21,23,25,24,23,23,24,24,24,25,25,25,26,26,27,27,28,27,25,26,27,26,25,27,26,24,26,26,26,24,25,25,24,25,22,23,25,22,20,22,21,19,17,16,18,18,15,15,19,17,20,19,22,20,23,23,21,24,23,23,24,25,25,24,24,24,24,24,24,23,24,23,21,22,21,21,18,17,16,15,12,13,16,18,20,17,16,20,19,17,18,21,22,20,22,24,23,22,25,26,25,25,26,26,26,26,27,25,27,27,24,26,27,26,26,23,24,22,22,20,20,19,19,18,15,13,9,13,15,16,16,17,19,20,19,19,22,22,21,24,25,25,23,26,27,24,26,26,25,25,24,24,23,20,20,18,19,22,20,20,22,22,20,20,21,25,24,26,26,26,26,27,25,23,26,27,26,27,26,28,27,28,26,28,28,26,27,29,28,28,28,28,27,28,28,28,28,28,29,29,28,28,29,28,29,29,28,28,27,28,28,28,29,29,29,29,30,30,30,30,30,30,31,30,30,30,30,31,30,30,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30],[30,30,30,30,30,31,30,30,30,30,30,29,30,29,29,29,29,29,29,29,29,28,29,28,28,28,28,28,28,28,28,28,28,28,28,28,27,27,27,27,27,26,26,26,26,25,24,24,23,22,22,20,20,19,17,16,15,14,11,10,9,7,5,2,0,1,4,6,8,10,12,13,15,18,18,15,16,19,19,17,19,21,19,19,22,22,21,22,24,23,25,25,25,24,24,25,23,24,25,25,26,25,25,26,25,25,25,26,25,24,24,25,24,25,24,23,24,24,25,26,26,25,26,26,26,26,26,27,25,26,27,26,25,25,25,25,26,27,26,26,27,26,26,26,26,26,25,25,23,24,24,23,22,25,23,23,25,23,23,22,22,20,20,23,22,19,22,25,22,23,24,24,23,25,25,25,24,25,25,26,25,24,25,26,26,25,26,26,24,25,26,25,25,27,26,26,25,26,26,26,25,24,26,26,26,26,25,25,24,24,25,27,24,25,27,26,26,25,25,23,22,25,24,22,21,24,22,20,21,23,21,20,22,22,20,23,24,24,25,25,25,24,25,26,24,25,25,25,23,25,25,24,25,25,26,24,26,25,25,26,25,25,23,25,25,23,23,26,24,22,24,26,25,25,25,26,26,25,25,25,24,24,23,22,22,23,22,21,22,22,22,21,22,23,21,21,23,21,23,20,19,18,21,21,21,21,23,22,22,24,25,25,25,24,25,25,25,25,23,21,22,20,19,18,18,18,17,12,13,13,12,11,10,12,12,13,14,14,15,16,16,15,17,19,16,16,18,18,18,19,20,21,20,22,24,24,25,23,26,25,25,26,23,24,25,26,27,26,27,28,29,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,27,28,28,28,28,27,27,26,26,25,26,26,25,24,26,24,24,25,23,22,23,22,23,22,20,22,20,20,21,20,21,19,19,18,15,20,21,22,22,23,24,25,24,23,25,25,24,24,26,25,24,25,27,25,25,26,26,26,26,27,26,27,26,26,26,26,26,26,26,27,26,26,25,25,26,25,24,23,26,24,23,24,24,24,22,24,24,25,24,24,23,26,26,26,25,26,26,26,26,26,26,26,26,26,27,26,26,27,26,26,27,26,26,26,26,24,25,24,25,26,24,24,25,26,22,25,26,25,24,25,25,23,23,24,24,22,23,24,23,21,21,23,20,18,20,19,20,22,21,22,22,24,24,25,23,23,24,24,24,22,25,25,26,25,25,24,24,24,24,23,24,25,22,22,23,22,20,22,22,18,18,22,20,16,21,22,17,17,21,22,18,20,22,22,20,21,21,23,22,22,23,23,23,23,24,25,25,24,23,24,24,23,23,24,23,22,24,24,24,23,23,23,22,21,17,19,20,18,17,18,20,15,16,11,16,16,13,13,16,16,17,17,20,17,21,22,20,22,22,22,23,23,23,23,22,22,23,23,22,20,21,21,19,20,19,17,17,15,15,13,9,11,15,14,18,15,13,16,16,14,14,15,17,15,16,21,18,17,22,23,23,23,24,24,24,24,25,23,24,24,22,23,24,23,22,18,19,19,18,16,15,17,16,14,11,11,6,9,10,12,13,13,14,14,15,15,17,17,17,20,21,21,20,22,24,20,22,22,20,22,20,19,19,17,18,15,15,18,16,16,16,17,16,15,16,22,21,23,23,23,21,23,23,21,22,23,24,24,25,26,24,26,25,27,25,24,25,26,26,25,26,26,24,26,26,25,25,26,26,26,25,26,26,26,26,27,26,26,26,26,26,28,27,28,27,28,29,28,29,28,30,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,29],[30,30,30,29,29,30,30,30,29,29,29,28,28,28,28,28,28,28,28,28,28,27,28,28,27,28,28,27,27,27,27,27,28,27,26,28,27,27,27,26,26,25,25,25,24,24,23,22,23,22,20,21,20,19,17,17,16,15,13,11,8,8,6,3,1,0,1,3,4,6,8,10,10,13,14,11,11,14,14,12,13,15,14,15,15,16,15,15,18,18,18,21,20,18,21,22,20,21,23,22,22,22,23,23,23,22,22,23,22,20,22,22,21,22,20,22,21,21,22,23,23,22,23,22,23,22,22,23,22,23,23,24,22,21,22,22,24,23,22,24,24,24,24,23,22,23,22,22,18,20,21,20,18,19,20,17,21,19,18,19,18,15,16,19,18,16,18,20,17,18,19,20,19,20,21,21,19,21,22,23,21,19,21,22,21,22,22,23,21,22,22,22,23,22,22,21,22,23,22,22,23,22,22,22,24,23,22,21,20,19,21,22,21,22,22,22,20,21,20,20,16,20,19,17,17,19,18,15,16,18,16,14,18,16,17,19,19,20,20,21,19,19,21,21,19,19,21,19,18,20,20,19,20,21,21,21,22,22,21,22,19,20,17,21,21,19,18,21,21,18,21,21,19,20,21,22,22,22,20,21,20,18,19,17,18,19,18,15,18,18,16,17,18,18,16,17,17,17,17,15,15,14,16,17,16,16,17,17,17,18,19,20,19,20,20,20,18,18,17,16,16,15,15,13,12,13,11,9,9,11,9,9,7,8,9,10,12,12,13,14,15,13,15,17,15,15,18,18,18,20,21,21,21,22,23,23,25,23,26,24,24,24,23,23,24,25,24,25,24,26,27,27,28,26,28,28,28,27,28,29,28,29,29,28,28,29,29,29,27,28,27,27,28,26,26,24,25,26,25,26,25,24,26,22,24,24,23,22,23,21,21,22,20,21,21,19,18,17,17,16,16,15,12,18,17,17,17,18,18,19,19,19,19,21,20,18,21,21,21,21,23,21,21,22,23,22,23,22,23,23,22,22,21,21,23,21,23,23,22,22,22,21,21,21,20,18,22,20,20,19,20,19,18,18,18,19,18,19,19,20,20,21,21,21,22,22,21,22,22,22,22,22,22,23,23,23,23,23,22,21,23,20,22,19,19,18,21,21,19,20,22,23,18,21,21,20,19,19,20,19,18,20,19,18,19,19,18,17,18,18,16,16,16,17,15,17,18,18,18,19,18,19,19,19,19,19,19,18,20,21,21,21,21,19,20,19,19,18,20,18,16,17,18,16,17,17,17,15,15,17,17,13,14,17,16,15,15,17,15,13,16,17,14,15,17,18,16,17,18,19,18,18,19,20,20,20,18,19,19,19,18,19,18,17,19,19,18,18,18,18,17,17,16,17,17,15,14,16,16,14,12,11,13,15,10,12,13,13,12,11,14,12,14,15,14,16,17,15,17,17,18,17,18,18,16,17,16,15,15,14,13,13,14,14,14,11,11,10,7,8,10,10,11,11,10,9,12,11,11,13,14,12,13,15,17,15,17,18,17,16,18,18,18,18,20,18,19,18,16,18,17,17,17,16,16,16,16,13,14,13,11,10,9,8,4,5,6,8,8,8,10,11,13,11,14,15,14,16,16,17,16,16,17,16,17,17,16,16,16,15,16,14,15,14,12,15,14,14,13,15,14,11,13,15,16,17,18,17,17,17,16,16,16,17,18,18,18,20,19,19,19,21,20,18,20,21,19,20,22,21,20,21,22,21,22,21,22,22,22,22,22,22,23,23,23,22,23,23,24,24,24,25,25,26,26,26,27,26,27,27,28,28,28,27,27,28,28,27,29,28,28,28,29,28,28,28,29,29,28,29,28,29,29,28,29,28,28,29,29,28,28,29,29,28,28,28,28],[30,29,29,29,30,30,29,29,29,29,29,28,29,28,28,28,28,28,28,28,28,27,28,28,28,28,28,27,27,27,26,27,28,28,27,27,27,26,27,26,27,26,26,25,26,25,23,23,23,23,21,21,21,20,18,19,18,17,16,14,11,10,8,5,3,1,0,1,3,4,5,7,8,10,9,6,7,10,9,7,10,10,10,9,10,11,11,11,12,12,14,14,14,13,14,17,15,15,17,16,16,16,17,16,18,17,17,18,18,17,18,18,16,17,16,16,17,17,16,18,17,16,18,17,18,16,17,18,17,18,17,17,17,15,16,16,17,17,16,17,17,17,18,18,15,16,16,15,13,15,15,13,12,15,14,12,15,13,13,13,13,10,12,13,12,11,13,15,13,13,14,14,13,14,15,15,14,16,16,16,15,13,16,15,15,15,16,17,14,15,16,15,16,16,16,16,17,17,16,16,16,16,17,17,18,17,16,16,15,13,16,16,14,15,15,15,13,15,14,13,12,14,13,13,12,13,12,10,12,13,11,9,12,11,13,15,14,14,14,16,13,15,16,16,15,14,16,13,13,15,14,12,14,15,15,15,16,15,15,14,14,13,13,15,15,13,12,15,15,14,14,15,14,13,14,16,15,15,14,15,14,13,14,11,11,12,12,10,12,12,12,11,11,12,12,12,11,12,11,13,11,12,12,13,13,11,13,14,12,13,15,16,15,16,15,17,16,16,14,14,12,10,10,9,8,9,10,7,7,7,6,6,4,8,6,8,12,11,13,15,15,13,13,17,15,14,18,18,16,18,21,20,20,22,24,23,26,24,27,25,24,26,25,24,26,26,26,25,26,27,29,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28,28,27,28,25,26,27,25,26,25,24,27,24,23,25,23,22,22,23,21,21,20,19,19,17,16,15,13,12,12,10,11,12,12,12,15,16,17,17,17,18,17,18,17,18,18,18,19,18,18,18,19,19,19,18,19,20,18,16,17,17,18,17,17,19,18,19,19,19,19,18,18,17,17,17,18,17,16,16,15,14,13,14,14,15,15,16,15,17,16,16,17,19,17,16,18,18,17,17,18,17,16,17,17,19,18,17,18,17,17,16,17,16,13,14,15,16,14,13,16,16,13,14,15,13,12,13,13,12,13,13,12,12,13,12,13,11,12,13,11,11,10,11,10,13,14,14,15,14,14,14,14,12,14,14,12,13,14,13,15,15,15,13,15,14,14,14,13,13,13,12,13,13,12,12,12,12,9,12,12,8,10,11,10,8,10,12,10,10,12,12,12,12,12,12,12,13,12,14,13,12,14,16,14,13,15,13,13,14,14,13,12,13,14,13,13,12,13,12,13,14,12,12,12,10,9,11,10,8,9,7,8,9,7,7,7,7,8,7,10,9,10,11,9,11,11,11,12,13,12,13,12,12,13,12,12,12,12,12,11,10,11,11,8,7,8,5,5,5,6,5,6,6,5,7,7,7,9,9,9,10,8,12,11,9,14,14,13,13,15,12,15,13,13,13,15,15,13,13,13,12,13,13,13,11,9,9,9,11,10,7,5,4,3,3,5,7,6,5,7,8,9,9,10,10,10,11,13,14,12,13,14,12,13,14,13,13,12,12,11,10,11,10,10,11,10,9,10,10,9,8,10,10,12,14,13,15,14,14,14,12,13,14,14,15,16,18,16,16,15,16,17,15,15,17,16,14,16,17,15,15,17,16,15,15,17,16,14,15,18,16,15,16,17,16,18,18,20,19,20,21,20,23,24,24,26,24,26,25,27,26,26,25,26,27,28,27,29,27,27,28,28,27,29,28,29,28,29,29,28,28,28,28,29,28,28,28,28,28,27,28,28,27,27,27,26],[30,30,29,29,30,30,30,29,29,29,29,28,29,28,29,28,29,29,28,29,28,28,28,29,28,28,28,27,28,28,27,28,28,28,27,28,27,28,27,27,27,26,26,26,26,25,24,23,24,23,22,22,22,21,20,20,19,18,17,16,12,10,9,7,5,3,1,0,1,3,3,4,6,6,6,6,5,7,8,8,7,8,8,9,9,9,9,9,12,12,11,12,12,11,12,15,14,12,14,15,14,14,14,14,14,13,14,14,14,14,14,14,14,15,15,14,14,15,14,14,14,13,15,14,13,14,13,15,14,14,14,15,13,14,13,14,14,16,14,14,14,14,13,15,13,13,13,13,12,11,12,12,11,13,11,12,12,12,12,12,11,9,10,12,12,9,11,11,12,12,11,12,13,11,12,13,12,14,14,13,14,12,14,14,13,13,14,14,13,14,13,14,14,15,15,15,15,15,14,15,15,15,15,15,16,15,15,15,15,14,14,15,14,14,13,13,12,12,12,12,11,11,12,11,10,11,11,9,10,11,8,8,10,10,11,12,12,12,13,13,12,11,13,13,12,11,13,11,12,13,12,11,13,13,13,13,14,15,14,13,12,11,12,12,12,12,12,13,13,12,12,13,14,13,13,15,14,13,14,13,12,12,12,10,10,11,10,10,11,10,10,8,11,10,10,9,10,10,10,9,7,8,10,9,9,10,11,11,12,12,13,13,14,14,14,14,14,13,14,12,11,11,8,7,7,7,7,6,6,6,6,6,6,7,7,7,9,10,12,12,15,13,12,17,16,14,17,19,17,18,20,21,21,22,23,23,24,23,26,24,24,25,22,22,25,26,26,25,26,27,27,27,28,28,28,28,29,28,29,29,29,29,29,29,28,29,28,29,27,28,27,28,28,27,27,25,26,26,25,26,25,24,25,23,22,23,23,21,21,22,21,21,19,19,18,16,16,14,13,11,11,8,8,9,11,10,12,12,13,15,14,15,15,16,15,14,16,17,15,17,18,17,16,17,18,17,17,18,16,17,16,16,17,17,17,17,16,18,18,17,16,15,17,15,15,12,16,14,13,13,14,13,12,13,12,14,14,14,13,15,15,13,16,16,15,15,17,17,15,16,16,16,16,16,16,18,16,16,17,15,16,15,15,13,12,12,13,14,12,13,14,14,13,12,14,12,13,12,12,12,12,13,12,10,11,10,11,10,10,11,8,8,7,9,9,11,11,12,13,13,12,14,13,12,12,13,12,11,14,13,13,14,14,13,14,12,12,13,11,12,11,9,10,10,8,9,9,10,9,9,8,9,10,8,9,8,7,8,9,9,9,9,9,9,10,10,9,10,11,12,12,12,13,15,12,13,13,13,12,13,13,12,11,11,13,11,12,10,11,11,10,9,10,8,8,8,9,8,7,7,6,3,6,8,4,5,7,6,7,7,7,8,9,9,7,10,9,9,10,10,11,11,10,10,11,10,11,11,11,10,9,8,8,9,8,7,7,6,3,3,7,4,6,7,4,5,8,6,6,8,7,8,7,11,9,9,9,11,11,11,13,13,13,12,12,12,12,12,12,11,10,10,10,8,8,7,7,6,7,9,6,4,4,4,3,3,5,6,5,6,6,7,7,7,8,7,8,9,11,11,10,10,11,10,11,10,10,11,9,8,9,7,8,7,8,9,7,8,9,7,6,8,8,9,10,12,12,11,11,11,11,11,10,12,12,12,13,15,14,14,14,15,15,13,14,15,15,14,15,15,13,13,15,14,15,15,16,15,14,15,16,15,14,15,16,15,17,17,20,19,20,18,20,20,22,23,25,23,25,25,26,25,25,26,25,27,26,27,27,27,28,28,28,27,28,28,28,28,28,28,27,28,28,27,27,28,29,27,29,28,27,28,28,27,26,27,27],[29,28,29,29,29,29,29,29,29,28,27,28,28,27,28,27,28,28,27,28,27,27,28,28,27,27,28,27,27,27,26,27,27,28,26,27,26,27,27,26,27,25,26,26,26,25,24,22,23,23,21,21,22,20,19,20,19,18,16,16,14,11,9,7,6,3,3,1,0,1,2,4,4,5,5,5,5,8,8,8,7,8,8,7,8,10,10,10,12,12,12,13,13,12,14,14,12,13,16,14,14,15,16,15,14,15,15,15,15,15,15,15,14,14,12,15,14,15,13,16,14,14,14,16,14,12,15,16,13,13,15,15,12,13,14,14,15,14,15,15,15,13,16,15,14,13,13,13,11,13,13,12,11,12,12,11,14,13,10,11,10,9,9,12,10,9,11,12,11,9,12,13,10,11,12,12,12,13,13,12,12,10,11,13,12,12,13,14,12,12,14,13,14,14,14,14,14,14,15,14,15,14,15,15,15,15,14,13,13,12,14,14,13,13,13,13,13,12,12,11,11,12,11,12,10,11,10,8,9,10,8,7,9,8,9,10,10,12,11,12,11,10,11,11,11,11,11,11,10,11,12,11,12,11,12,12,13,13,13,11,11,11,11,12,12,12,12,12,13,12,12,12,13,13,12,13,13,13,12,13,12,11,12,10,10,11,11,10,11,11,10,8,10,9,8,9,10,10,10,8,6,7,9,9,8,9,11,10,10,10,12,13,12,12,11,13,12,12,11,11,10,9,8,8,7,7,8,7,5,6,8,6,8,9,9,10,9,11,11,15,14,13,15,16,16,16,17,18,17,18,20,19,21,21,22,23,25,22,25,23,24,25,23,21,25,24,25,24,25,26,27,26,28,26,28,28,28,28,28,28,28,29,29,29,28,29,29,28,27,27,27,28,28,26,27,24,25,25,24,25,24,23,25,22,23,24,22,19,21,20,19,20,18,17,17,14,15,14,13,11,11,10,8,12,11,11,12,12,13,14,14,14,14,15,15,14,16,16,16,15,17,16,15,16,16,17,16,16,16,15,16,16,15,16,15,16,18,17,16,17,16,14,16,15,15,13,15,14,14,13,12,13,12,12,12,12,13,13,13,14,13,14,14,15,15,14,16,16,16,15,15,15,14,15,15,15,15,15,14,14,13,13,13,11,12,12,11,12,12,13,13,13,12,13,12,12,12,11,11,12,12,12,12,11,12,10,12,10,11,12,10,10,9,9,9,11,13,12,13,12,12,12,12,11,12,13,12,12,14,13,13,14,14,13,14,13,12,12,13,12,10,11,12,10,10,10,11,9,8,10,9,9,8,9,8,6,9,9,9,8,9,9,8,9,11,10,10,10,11,11,11,11,11,14,13,12,13,12,12,14,12,12,12,12,13,11,13,10,11,11,10,11,10,9,9,10,9,7,8,7,7,6,6,8,7,6,8,7,8,7,9,8,10,10,8,10,9,8,10,11,10,10,11,11,10,11,11,10,10,10,9,8,9,9,11,8,8,7,5,5,5,4,5,6,6,5,6,7,6,5,7,8,8,9,10,10,11,12,11,11,14,12,12,12,13,12,12,13,11,11,11,11,9,9,9,7,10,9,9,7,8,7,6,6,4,4,6,5,6,7,8,8,8,9,10,10,11,11,12,11,10,11,12,11,12,12,12,11,10,10,9,9,10,9,10,10,9,8,11,10,8,8,10,11,11,13,12,12,12,12,11,11,12,12,12,13,12,15,12,13,12,15,15,13,14,15,14,14,14,15,13,14,15,14,13,13,15,14,13,14,15,14,14,14,15,15,16,17,18,18,19,18,19,21,22,23,24,24,24,24,25,24,25,24,24,27,25,26,27,25,27,27,28,26,27,26,27,28,27,29,27,28,28,27,27,27,27,27,28,27,27,27,27,26,25,27,26],[29,29,29,29,29,30,29,29,29,28,28,27,28,27,27,27,28,28,27,28,28,26,27,28,27,27,28,27,27,27,27,27,28,28,27,28,27,27,28,27,27,26,26,26,26,25,24,23,23,23,22,22,22,21,20,21,20,19,19,19,16,13,11,8,7,5,3,4,1,0,1,2,2,3,4,2,3,5,5,4,4,5,5,4,5,5,6,6,7,7,7,8,8,8,8,8,9,9,9,9,9,9,9,9,9,10,9,10,10,10,11,10,10,9,9,10,10,10,9,10,10,8,9,10,9,9,8,10,9,9,9,9,9,9,9,10,9,10,9,9,8,9,8,8,8,8,8,8,8,8,8,8,8,8,7,8,8,8,8,9,8,6,8,8,7,6,7,7,7,7,7,7,8,7,7,8,8,8,8,8,8,7,7,8,9,8,8,8,8,8,9,8,8,9,9,10,10,10,9,10,10,11,10,10,10,10,10,9,9,9,8,8,9,8,7,7,7,7,6,7,7,7,7,6,6,7,5,5,6,6,4,5,5,7,8,8,7,8,8,7,7,7,7,7,7,6,7,7,6,6,6,6,7,7,8,8,9,9,9,8,7,7,6,7,6,6,6,7,8,7,7,7,8,8,8,8,9,8,8,7,8,7,7,6,6,7,6,5,6,5,6,5,5,5,5,5,6,5,5,4,4,4,4,4,4,5,5,6,6,6,7,7,8,7,8,8,8,8,8,7,8,7,5,5,5,5,5,4,4,5,5,5,6,7,9,9,10,12,12,14,16,15,15,17,18,16,16,18,18,16,18,19,20,20,22,23,24,23,24,22,23,24,22,21,24,25,25,23,25,26,27,27,28,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,27,28,28,27,27,25,27,27,25,26,24,25,26,23,23,23,22,22,21,21,20,20,19,19,17,15,15,14,11,10,9,7,7,6,8,8,8,9,9,10,9,10,10,11,11,10,12,11,11,12,13,13,13,13,13,12,13,13,12,12,12,12,12,12,12,13,12,14,13,12,13,12,12,11,10,10,10,10,9,9,9,8,8,8,8,8,8,7,8,8,8,8,8,10,9,8,9,10,9,10,10,11,11,11,11,11,11,11,10,9,8,8,8,6,7,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,6,7,7,6,6,6,6,5,6,7,6,5,6,6,7,8,9,9,9,9,8,8,7,7,7,8,7,7,8,8,8,8,9,9,8,8,7,8,7,7,7,6,6,6,6,5,6,5,6,5,5,6,6,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,6,6,6,7,6,8,7,7,6,7,6,6,6,7,6,6,6,6,7,6,6,6,6,6,6,5,5,6,6,5,5,5,6,4,5,6,4,4,5,5,5,5,5,6,6,6,5,6,6,6,7,7,7,7,7,7,8,7,7,8,7,8,7,6,7,7,7,7,6,6,3,3,5,2,4,5,2,2,5,4,2,6,5,4,4,7,5,6,5,6,6,7,8,7,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,5,8,6,7,4,5,5,5,2,3,3,3,4,4,4,6,6,6,6,7,7,6,7,8,7,7,7,7,8,7,8,7,7,7,7,7,7,7,7,6,6,7,7,6,5,6,6,7,8,8,8,8,8,8,8,8,9,9,8,10,9,9,9,10,9,9,8,9,9,9,8,8,8,8,7,8,7,9,8,9,8,8,9,9,8,8,10,11,11,13,13,14,15,15,15,16,17,18,19,21,20,23,24,23,21,23,23,22,25,23,24,26,23,27,26,27,26,27,26,27,27,27,27,26,27,28,25,25,27,27,26,27,26,25,26,27,25,23,26,25],[28,28,28,28,28,28,28,28,28,27,26,26,27,26,26,26,27,27,26,27,26,26,27,27,26,26,27,26,27,27,26,26,27,27,26,26,26,27,27,26,27,25,25,25,26,25,24,23,23,23,21,21,21,21,19,20,19,18,17,17,15,13,11,7,7,5,4,3,2,1,0,1,2,2,3,4,4,5,5,5,4,5,5,5,6,7,7,7,7,8,8,8,9,8,9,9,9,9,10,9,11,10,11,10,11,10,10,11,10,11,11,10,9,10,8,10,10,11,10,10,11,10,10,10,10,10,9,11,10,9,10,10,9,9,10,11,10,11,10,10,10,9,10,9,9,9,9,9,9,9,9,8,7,7,8,8,8,8,8,7,7,7,6,7,7,6,7,8,7,6,7,8,7,6,8,9,7,8,8,8,8,7,7,8,9,8,8,9,9,8,9,9,8,9,9,10,11,9,9,10,11,9,10,10,11,10,10,9,9,10,9,9,9,9,8,8,8,8,8,7,7,8,7,7,7,6,6,6,6,5,4,5,5,6,7,7,7,7,7,8,7,6,7,7,6,6,7,6,6,7,7,6,6,6,7,8,9,9,8,7,6,7,5,7,7,7,6,7,8,7,7,7,9,9,8,8,8,8,8,8,8,8,7,7,6,7,6,5,6,5,5,5,5,5,5,5,5,5,4,4,3,3,4,4,5,5,5,5,6,7,6,7,7,7,7,8,7,8,8,7,8,7,6,5,4,4,5,4,4,5,6,5,5,7,9,9,12,14,14,16,16,15,17,17,17,17,18,18,18,19,20,20,21,22,23,23,24,23,25,23,24,24,22,21,23,23,25,23,24,26,26,25,27,25,26,27,27,27,28,28,28,28,28,28,27,28,28,28,27,27,27,28,28,27,27,25,26,26,24,26,24,23,25,22,23,23,22,20,21,20,18,19,17,17,16,15,14,13,11,10,9,7,6,7,8,7,8,8,8,9,9,10,10,10,10,10,11,11,11,11,13,13,11,12,14,13,13,13,13,12,12,11,11,12,13,13,13,12,13,13,13,11,11,11,12,10,10,10,10,9,9,9,8,8,7,7,7,7,7,8,8,9,8,9,9,9,9,9,9,9,10,11,10,11,11,11,11,10,9,8,8,7,7,6,6,6,6,6,6,7,6,7,7,7,7,7,7,6,7,7,6,6,7,6,6,6,7,5,7,6,6,6,5,7,7,8,9,9,10,9,8,8,7,7,9,8,8,8,9,9,9,9,9,9,10,9,8,9,9,8,7,7,8,7,6,6,7,6,5,6,5,5,5,5,4,4,4,4,3,3,4,5,4,4,5,5,4,4,5,6,6,6,6,7,7,7,6,7,7,6,6,6,6,6,7,6,7,6,6,6,6,6,6,6,6,6,6,5,6,6,5,4,5,5,4,4,4,4,5,5,6,5,6,6,6,7,7,6,7,7,7,7,8,8,7,8,8,7,7,8,7,7,7,7,7,6,5,4,4,3,3,3,3,3,3,3,3,3,3,2,4,4,4,4,5,5,5,6,6,6,7,8,7,7,7,7,8,8,7,8,8,8,7,7,7,6,7,6,6,6,6,6,5,4,4,3,4,3,3,4,5,5,5,6,6,6,7,7,7,8,7,8,8,9,9,9,9,9,8,8,8,7,8,7,7,8,7,7,7,7,6,5,6,7,7,8,8,8,8,9,8,8,9,9,9,9,9,10,9,9,9,11,9,9,8,9,9,8,8,8,8,8,8,8,8,8,9,9,8,8,8,8,8,8,10,10,12,13,14,14,14,14,15,17,18,18,19,20,21,21,23,20,22,21,21,24,22,23,25,23,25,25,24,24,25,23,26,26,26,26,25,25,26,24,25,25,24,24,25,24,24,25,25,24,22,23,25],[29,29,29,29,29,29,29,28,28,28,28,27,27,27,27,27,27,28,27,27,27,27,26,27,27,27,27,27,27,27,27,27,28,28,27,27,27,27,28,27,27,26,26,26,26,25,24,24,24,25,23,22,23,22,21,21,21,19,20,20,17,13,11,7,7,5,3,3,2,2,1,0,1,1,1,2,2,3,4,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,8,8,7,6,6,6,7,6,6,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,6,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,6,6,6,5,5,5,5,5,4,5,5,4,4,5,5,4,4,5,5,5,5,5,5,5,4,4,5,5,4,5,5,5,5,5,5,5,5,6,6,6,7,6,7,7,7,6,7,7,6,6,6,5,5,5,5,5,5,5,4,4,5,4,4,4,5,4,4,4,4,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,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6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,6,7,8,9,10,11,12,13,12,13,15,15,17,18,19,22,22,21,19,20,21,21,24,21,23,24,22,26,26,26,24,25,25,26,26,25,26,25,25,25,23,24,26,26,24,26,24,24,25,26,23,22,24,24],[28,28,28,27,28,28,28,28,27,27,26,26,27,26,26,25,26,27,26,26,27,26,27,26,26,26,26,26,26,26,26,26,26,26,25,25,25,26,26,26,26,24,24,25,25,24,23,23,22,23,22,21,21,20,19,19,19,18,18,18,16,13,11,9,6,5,4,3,3,2,1,1,0,1,1,2,2,3,3,3,3,4,4,4,3,5,4,5,5,6,6,5,6,5,6,6,6,7,7,7,7,7,7,7,8,7,8,8,8,8,8,8,7,7,6,7,7,6,7,7,6,6,6,6,7,6,6,7,7,6,6,7,6,6,7,8,7,7,6,6,6,6,6,6,5,6,6,6,5,6,5,5,5,5,5,6,6,6,5,5,5,5,5,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,6,5,5,5,6,5,5,6,7,7,7,6,7,7,7,7,8,8,8,7,6,6,6,6,5,5,5,5,5,5,5,5,4,4,4,4,3,3,4,3,3,3,3,3,3,4,4,5,6,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,5,5,6,5,5,5,4,4,3,4,4,4,4,5,5,4,4,5,6,6,5,6,5,6,5,5,5,5,4,4,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,2,2,3,3,3,3,4,4,4,4,5,5,5,6,5,6,6,6,6,6,5,6,5,4,4,4,4,4,4,4,4,4,5,5,6,8,10,13,13,14,15,15,16,16,17,17,17,16,18,19,19,20,21,21,21,22,23,24,22,24,23,22,23,21,20,23,23,23,22,23,24,25,25,26,25,25,26,26,26,26,26,25,26,25,26,25,26,26,26,26,26,27,26,27,26,26,25,25,25,24,25,24,23,24,22,23,23,22,21,20,19,18,19,17,16,16,14,13,11,9,8,8,6,5,5,6,6,6,7,7,8,7,8,8,8,8,9,9,9,9,9,11,10,10,11,12,11,11,11,11,10,9,9,10,9,9,10,10,11,10,11,10,9,9,8,8,8,8,8,7,7,7,6,6,7,6,6,6,6,6,6,5,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,8,7,7,6,6,5,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,4,4,5,5,5,4,4,4,5,4,5,5,4,5,5,5,6,6,8,8,8,7,6,6,5,5,6,6,5,5,6,6,6,6,7,7,7,7,6,7,6,5,6,6,6,5,6,5,5,5,4,4,4,4,4,3,3,3,3,3,3,2,3,3,3,2,3,4,3,3,4,5,4,4,5,5,6,5,5,5,5,4,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,4,5,4,5,4,4,4,4,5,3,4,4,4,4,4,5,4,5,5,4,4,5,4,5,5,5,5,5,6,6,6,7,6,6,7,6,6,6,6,6,6,5,5,4,3,3,3,3,3,2,2,3,3,2,2,3,3,3,3,4,4,4,5,5,5,6,6,6,5,6,6,6,6,6,6,6,6,5,5,5,5,5,5,4,4,4,4,4,4,3,2,3,2,3,3,3,4,5,5,5,4,5,5,6,6,6,6,6,7,6,7,6,7,6,6,6,6,6,5,5,6,5,5,5,5,5,4,5,5,5,6,6,7,7,6,6,6,7,7,7,7,7,7,8,7,7,8,7,7,7,7,7,6,6,6,6,6,6,7,6,5,6,6,5,6,6,5,6,6,7,8,10,9,12,11,13,12,12,14,15,17,18,18,21,21,20,19,20,21,20,23,20,23,23,23,24,26,24,24,25,24,24,25,25,24,24,24,26,23,23,25,25,24,25,23,23,24,25,25,21,24,24],[28,29,28,28,29,29,29,28,28,28,28,27,28,27,28,26,27,27,26,28,27,26,27,27,26,27,27,27,27,27,26,27,27,27,26,27,26,27,27,27,27,26,26,26,26,26,24,24,24,23,23,23,22,21,20,20,19,18,18,18,16,13,11,8,7,6,4,4,3,2,2,1,1,0,1,2,2,2,2,2,2,2,2,2,2,3,3,3,4,3,4,4,4,3,4,5,4,5,5,5,5,5,6,6,6,7,7,7,7,8,8,7,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3,4,4,4,3,3,3,3,4,3,3,3,3,3,4,4,4,5,5,5,6,6,5,6,6,6,6,5,6,6,6,5,5,4,4,3,3,2,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,5,4,4,4,4,4,3,3,2,3,3,3,3,4,4,4,4,5,4,5,5,5,5,6,6,6,6,6,6,5,6,6,6,6,5,5,5,5,4,4,5,4,4,4,4,5,5,6,6,6,6,5,6,6,7,7,6,7,7,6,7,7,7,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,7,7,9,9,11,12,12,14,13,16,16,17,18,19,22,22,21,19,20,22,21,23,22,23,24,23,25,25,24,24,24,25,25,25,25,26,24,25,25,22,24,25,25,25,25,24,23,25,26,24,24,25,24],[28,28,28,28,29,29,28,28,28,28,27,27,28,26,27,26,27,27,26,27,27,26,27,27,26,27,27,26,27,26,26,27,27,26,26,27,26,26,26,26,26,26,25,25,25,25,23,23,23,23,22,20,21,20,19,19,20,18,18,18,15,13,12,10,9,7,5,4,4,3,3,2,1,1,0,1,1,2,2,2,2,2,3,3,3,3,4,4,4,4,4,5,5,4,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,8,8,7,6,6,5,6,6,7,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,6,6,7,6,5,6,5,5,5,5,4,5,4,4,4,4,4,4,5,5,4,4,4,3,3,4,4,3,4,4,4,4,5,5,4,4,5,5,4,5,5,5,5,5,5,5,5,4,5,6,5,5,6,6,6,5,6,6,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,4,4,5,5,4,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,3,4,5,5,6,6,5,5,4,4,4,4,4,4,5,4,5,5,5,5,6,5,5,6,5,5,5,5,5,5,4,4,3,4,4,3,3,3,2,2,3,2,2,3,3,3,2,2,2,3,2,2,3,3,3,3,4,4,4,4,5,5,5,5,5,6,5,5,6,5,4,4,4,5,5,4,5,5,5,7,6,7,10,11,12,12,15,16,17,18,16,17,19,17,18,20,21,20,21,22,22,22,23,24,24,23,24,22,22,23,22,22,23,23,24,22,24,24,25,25,27,26,26,26,26,26,27,27,27,26,26,26,26,26,27,27,26,26,26,26,26,26,26,25,26,26,24,26,24,24,25,22,23,23,23,22,21,20,20,19,18,17,17,14,13,13,10,8,7,7,6,6,6,6,5,6,6,7,7,8,8,9,8,9,10,9,10,10,11,11,11,12,12,11,11,11,11,10,9,10,9,10,10,11,11,12,11,12,10,10,9,9,9,9,9,8,8,7,7,6,6,6,6,5,5,4,5,5,5,5,5,6,6,6,6,6,6,7,8,8,8,9,9,9,8,8,7,6,6,5,5,4,3,3,4,4,3,4,4,4,4,5,5,5,5,5,5,4,5,5,5,4,4,4,5,4,5,5,5,4,5,5,6,6,8,8,8,8,6,6,5,4,5,5,4,4,6,6,6,6,7,6,7,6,6,6,5,5,5,5,5,4,4,4,4,4,4,3,4,3,3,3,3,2,2,3,3,2,3,3,3,2,3,3,3,3,4,4,3,4,5,5,5,5,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,5,5,5,5,4,5,5,4,4,4,4,3,3,3,3,3,3,4,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,6,5,6,6,5,5,5,5,4,4,3,2,2,3,3,2,3,3,3,3,3,4,3,4,4,4,3,5,5,4,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,3,3,4,4,4,3,5,5,4,5,6,5,5,6,6,6,6,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,5,5,5,6,6,7,7,7,6,7,7,7,7,7,7,8,8,7,8,7,8,7,7,7,7,7,6,6,6,6,6,6,6,6,5,6,6,6,5,6,6,6,6,7,9,10,10,11,13,13,13,13,15,16,17,18,19,21,21,20,19,20,21,20,22,20,23,23,23,25,26,25,25,25,24,26,25,25,25,25,25,27,23,24,25,25,24,25,23,22,24,26,24,22,25,24],[28,28,28,28,28,29,28,28,28,28,28,27,28,27,27,27,27,28,27,28,28,27,27,27,26,28,28,27,28,27,27,28,28,28,28,28,28,28,28,28,28,27,26,26,27,26,24,25,25,24,23,23,23,20,20,21,20,19,19,20,17,14,11,10,7,6,5,5,4,3,3,2,2,1,1,0,1,1,2,2,2,2,2,4,3,3,4,4,4,4,4,5,4,4,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,6,5,5,5,6,6,6,6,6,7,5,6,6,6,5,6,6,6,6,6,7,6,6,7,7,6,7,6,7,6,6,6,6,5,5,5,5,5,4,4,4,3,4,4,4,5,5,4,4,4,4,3,3,3,3,3,4,3,3,4,4,4,4,5,5,5,5,5,6,5,5,5,5,5,5,5,6,5,5,6,6,5,6,6,7,7,7,7,7,7,8,7,7,7,7,7,6,6,6,6,6,5,5,6,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,4,4,5,5,4,5,5,5,4,5,5,5,4,5,5,5,4,5,5,4,5,5,5,6,6,6,6,5,4,4,4,4,5,4,5,4,5,4,5,5,5,5,5,6,5,6,6,5,5,5,4,4,3,4,4,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,7,7,7,6,5,6,6,5,5,4,5,5,4,5,5,6,6,7,7,9,9,12,14,14,16,17,18,18,18,19,18,19,20,20,20,22,23,23,23,24,25,26,25,26,24,23,25,24,22,25,24,25,24,25,24,26,25,26,26,26,26,27,26,27,27,26,26,26,26,26,26,27,26,26,26,27,27,27,27,27,26,27,27,26,26,26,26,27,24,25,26,23,21,22,19,19,20,17,17,16,14,13,11,10,9,8,6,6,5,7,7,6,7,7,8,8,8,9,8,8,9,10,9,9,10,11,10,11,11,11,12,11,10,11,9,9,9,10,10,10,11,12,12,11,12,11,10,10,9,9,9,9,9,8,8,8,8,7,7,6,7,5,5,5,6,7,6,6,7,7,7,7,7,7,8,8,9,8,9,9,10,9,8,7,7,6,6,5,4,4,4,4,5,4,4,5,5,4,5,5,5,5,5,4,4,5,5,4,4,4,4,5,4,4,5,4,4,5,5,5,6,7,7,8,8,6,6,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,5,5,5,4,5,4,4,4,4,4,3,4,4,4,3,3,3,3,3,3,3,2,3,3,3,3,4,4,3,4,4,4,4,4,5,5,5,5,4,5,5,4,4,5,4,4,5,5,5,5,5,4,5,5,4,5,5,4,5,5,5,5,4,5,5,4,4,4,4,4,4,3,4,3,4,4,3,3,3,3,4,4,4,4,5,5,5,6,5,6,6,7,5,5,6,6,7,6,6,5,4,4,3,2,3,3,3,2,3,4,3,3,3,4,3,3,4,4,4,4,5,5,7,6,6,6,5,6,6,5,5,6,6,6,5,5,6,5,5,5,5,5,5,4,5,4,5,4,4,3,3,5,5,4,4,5,4,5,5,5,5,6,6,7,6,7,7,8,7,7,7,7,6,7,7,6,6,7,7,5,5,7,6,5,5,6,6,7,8,8,8,7,7,7,7,7,8,7,7,8,7,8,7,8,7,7,7,7,7,6,6,7,6,6,7,7,6,6,6,6,5,6,6,6,6,6,8,9,10,10,12,13,13,13,13,15,16,18,18,19,21,22,22,19,21,22,21,24,21,23,23,23,25,25,24,25,26,25,25,26,26,26,25,26,26,23,23,25,26,23,26,23,23,24,26,24,21,25,25],[27,27,27,28,27,28,28,28,28,27,26,26,26,26,26,25,26,26,26,26,27,26,26,27,26,26,26,26,27,26,26,26,27,26,26,26,26,26,27,26,26,25,25,25,25,25,23,22,23,22,22,21,22,21,19,20,19,17,18,16,16,14,11,9,7,6,5,4,4,3,3,2,2,2,2,1,0,1,1,1,2,1,2,3,2,3,3,4,4,4,4,4,4,3,4,5,4,4,5,5,5,5,5,6,5,6,6,6,6,6,6,5,5,4,4,5,5,5,4,6,5,4,5,5,5,4,5,6,5,5,5,6,5,6,6,7,6,6,5,6,5,5,5,5,4,4,5,4,3,4,3,3,3,3,3,3,4,4,4,4,4,3,3,3,3,2,3,3,2,3,4,3,3,4,4,4,4,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,7,7,7,7,7,7,7,8,7,7,6,6,6,6,5,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,2,3,3,3,3,4,4,5,5,4,5,5,5,4,4,5,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,5,5,5,4,5,5,4,5,5,5,5,5,5,5,5,6,6,6,6,5,5,5,5,4,4,3,4,4,3,3,3,3,3,4,4,4,4,4,5,4,3,3,3,4,5,5,5,5,5,5,5,6,6,7,7,7,7,7,7,7,6,7,6,5,5,4,5,5,4,4,5,5,6,6,7,9,10,12,13,13,15,15,16,16,17,17,17,17,18,19,20,21,22,21,21,24,24,24,24,25,24,22,23,23,23,23,23,24,23,23,23,25,25,26,24,25,25,25,26,26,25,25,25,25,25,26,25,26,25,26,26,26,26,26,25,25,25,25,25,24,26,24,24,25,22,23,24,23,22,21,19,19,19,18,16,17,14,12,11,10,9,7,6,5,6,7,7,7,8,7,8,7,8,9,9,8,9,10,9,9,10,11,10,11,12,12,12,13,11,11,10,10,10,10,10,11,11,12,12,11,12,12,10,10,10,10,9,9,9,9,8,8,8,7,7,7,7,6,7,6,7,7,8,7,7,8,8,8,8,8,8,8,9,9,9,10,9,9,9,8,7,7,7,6,5,5,5,6,6,5,6,6,6,5,6,6,5,6,5,5,5,5,5,5,4,4,4,5,4,5,5,4,4,5,5,6,6,7,7,7,7,6,5,5,5,5,6,4,5,5,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,3,3,3,4,3,3,4,4,4,3,4,5,4,5,5,5,5,6,6,6,6,6,6,6,6,5,5,5,5,5,5,6,6,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,3,4,3,2,2,3,4,4,4,4,5,4,5,6,6,6,6,6,5,5,6,6,7,5,6,4,4,3,3,2,3,3,3,2,3,3,3,3,4,4,4,4,4,5,5,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,5,5,4,5,5,4,4,4,4,4,3,4,3,3,4,4,4,4,5,5,5,6,6,7,6,6,7,6,7,7,8,7,7,7,7,6,6,7,6,6,6,6,5,6,6,6,5,5,6,6,8,7,7,7,7,7,7,8,8,8,8,8,8,8,8,7,9,8,7,7,8,7,7,7,7,7,6,7,7,7,7,7,7,7,7,7,7,7,7,8,9,10,10,12,13,12,12,14,15,16,17,18,19,21,22,22,19,21,21,20,23,22,22,23,23,23,24,24,24,24,25,25,24,25,26,24,24,26,24,24,24,24,24,25,23,23,25,24,24,22,23,23],[28,29,29,29,29,29,29,28,28,28,28,27,28,27,27,27,27,28,27,27,27,27,27,27,26,28,27,27,28,27,27,27,28,28,27,28,27,28,27,27,27,27,26,26,26,26,24,23,25,24,22,22,23,22,19,22,20,19,18,18,16,14,12,9,8,6,5,4,4,3,2,3,2,2,2,1,1,0,1,1,1,1,1,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,3,4,4,5,5,5,5,5,5,5,5,5,4,4,4,4,5,5,4,5,5,4,4,5,4,4,5,5,5,5,5,4,5,5,5,5,5,5,4,5,4,4,4,4,3,3,3,3,3,3,3,3,2,2,3,3,3,4,4,3,3,2,3,3,2,1,3,3,2,2,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,5,5,5,5,5,5,6,6,6,5,6,6,5,6,5,5,5,4,4,4,4,4,4,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,3,3,3,3,4,4,3,4,4,5,4,4,4,4,4,5,5,4,4,5,5,5,5,5,5,5,6,5,5,5,5,4,4,5,5,4,4,5,5,4,5,4,4,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,3,4,3,3,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,5,6,5,5,5,4,5,5,4,4,5,6,6,6,9,10,12,12,12,14,15,18,18,18,20,19,18,20,23,22,22,23,25,24,24,24,25,25,25,26,23,24,25,23,22,25,23,26,24,24,25,27,26,27,26,26,27,27,27,28,27,27,26,27,27,27,27,27,28,27,27,27,27,28,27,27,26,27,26,26,28,27,26,27,25,25,25,23,24,23,19,20,19,18,17,16,14,13,12,10,8,8,7,6,6,7,7,6,7,7,8,8,9,9,10,9,10,10,9,10,10,12,10,11,12,12,12,12,11,12,10,10,10,10,10,11,11,12,13,12,12,11,10,10,9,9,9,10,9,9,9,8,7,7,7,6,6,6,5,6,6,6,6,6,7,6,7,7,8,8,8,8,9,9,9,9,9,8,8,7,7,6,6,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,5,5,6,6,7,7,6,5,5,4,4,4,4,3,3,4,4,4,4,5,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,2,2,2,1,2,2,3,3,3,4,4,4,5,5,5,5,6,5,4,5,5,6,6,5,5,4,3,3,2,2,3,3,3,3,3,3,3,4,4,4,4,5,4,5,5,5,5,6,5,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,7,7,7,7,7,7,8,7,7,7,6,6,6,6,6,6,5,6,6,5,5,5,6,6,7,7,7,7,7,8,7,7,7,7,7,8,8,7,7,7,8,7,7,7,7,7,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,10,10,12,13,13,12,14,16,17,19,20,19,23,22,23,21,22,21,21,24,23,23,25,24,25,26,27,25,26,26,27,25,26,28,25,25,27,24,26,26,26,26,26,26,24,26,26,25,24,25,25],[28,28,28,28,28,29,28,28,29,27,27,27,27,27,26,27,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,27,28,27,27,27,27,27,26,26,26,26,26,24,23,23,22,22,22,21,21,20,20,20,19,18,18,16,13,11,9,8,5,5,4,4,3,3,3,2,3,2,1,1,1,0,1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,5,4,5,5,5,5,6,6,5,4,4,4,4,4,4,4,5,4,4,4,5,4,4,5,5,4,4,5,5,4,5,5,5,5,5,5,5,4,4,4,4,4,3,4,4,3,3,3,3,2,3,3,3,4,4,3,3,3,2,2,2,2,2,2,3,2,2,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,5,5,5,4,4,3,4,4,3,3,4,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,3,2,3,3,4,4,3,3,4,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,5,4,4,4,4,4,3,3,3,2,2,3,3,2,3,3,2,3,3,3,3,3,3,4,3,3,3,3,3,4,4,4,4,5,4,4,5,5,5,5,6,6,6,6,5,6,6,6,5,5,5,5,5,5,5,5,6,6,6,8,9,12,12,12,14,16,16,16,17,17,17,17,18,19,19,20,22,22,22,22,23,24,25,24,25,24,22,23,22,22,24,23,24,24,23,24,25,24,26,25,26,26,26,26,26,26,25,26,25,26,26,26,26,26,26,25,26,26,26,26,26,25,25,26,25,26,25,25,26,23,24,25,24,22,22,20,20,20,18,17,16,14,13,12,10,8,8,7,6,6,6,7,6,7,7,7,8,8,8,8,8,9,10,9,9,10,10,9,10,12,12,12,11,10,11,10,9,9,9,10,10,11,11,12,11,12,11,11,10,9,9,9,9,8,8,8,7,7,7,6,7,6,6,5,5,6,6,6,6,6,6,7,7,7,7,7,7,8,8,9,8,8,8,8,6,6,6,5,5,4,4,4,4,4,4,4,5,5,4,5,5,4,4,5,4,4,4,4,4,3,4,3,3,3,4,3,3,3,4,4,4,5,6,6,6,6,5,4,4,3,3,4,3,3,3,4,4,4,4,4,5,4,4,4,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,2,2,3,3,3,3,4,4,3,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,5,4,5,5,5,4,4,5,5,5,5,5,4,4,3,3,2,2,2,3,3,3,3,4,3,3,4,4,4,5,5,5,5,5,5,6,5,6,5,5,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,7,6,7,7,7,7,7,7,6,7,7,6,6,6,6,6,6,6,5,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,7,8,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,8,10,9,11,12,12,12,13,14,16,16,18,18,20,20,21,19,20,20,19,22,21,21,23,22,24,25,25,22,24,23,24,24,24,25,24,24,25,24,24,24,24,24,25,24,23,24,24,25,23,24,25],[28,28,28,29,28,29,29,28,29,28,28,28,28,27,27,27,27,28,27,27,28,27,27,28,27,27,28,28,28,27,27,28,28,28,28,28,27,28,28,28,27,27,26,26,26,25,24,23,23,23,23,21,22,21,20,21,20,19,20,19,17,14,12,9,8,6,5,4,4,3,3,2,2,2,2,2,1,1,1,0,1,1,1,1,1,2,2,2,2,2,2,3,3,2,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,4,4,3,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,2,2,3,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,3,3,3,4,3,3,4,4,3,3,4,4,3,4,4,5,5,5,4,5,5,5,5,5,5,5,5,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5,6,6,6,6,6,7,7,7,6,6,6,6,6,6,5,6,6,5,6,6,5,5,5,5,5,6,6,7,7,6,6,7,7,7,7,7,7,7,7,7,6,7,7,6,6,6,6,5,6,6,5,5,6,5,5,5,5,6,5,5,5,5,5,5,7,8,10,9,11,12,13,12,13,14,16,18,18,19,21,21,21,19,21,21,21,23,21,23,23,22,25,25,24,24,26,24,26,25,25,26,24,25,26,24,24,25,25,25,25,25,24,25,26,25,22,25,24],[28,28,28,28,28,28,28,28,29,28,27,27,27,27,27,26,26,27,26,27,28,27,27,27,28,28,27,28,28,26,27,27,27,28,28,28,27,27,28,27,27,26,26,26,26,26,24,24,24,24,23,23,22,21,20,21,20,19,19,19,17,14,12,9,8,6,5,4,4,3,3,2,3,3,2,2,1,1,1,1,0,1,1,1,1,1,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,4,4,4,4,5,5,5,5,4,3,3,4,4,4,4,4,4,4,4,3,4,4,3,4,4,4,3,4,4,3,4,4,4,4,4,3,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,4,5,5,5,5,5,5,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,4,4,4,3,4,4,4,3,3,4,4,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,6,5,5,5,5,5,5,4,5,4,5,4,5,5,5,5,6,7,9,12,11,12,14,15,18,18,17,19,19,19,20,21,21,21,23,24,24,23,24,26,26,25,26,23,24,26,25,24,25,25,25,25,24,25,27,26,27,26,27,27,27,27,27,27,27,27,27,27,27,28,28,28,27,27,27,27,28,27,27,26,27,27,26,27,27,26,27,25,25,25,25,24,23,21,22,22,20,19,17,15,15,13,10,8,7,6,6,5,6,6,6,6,6,7,7,7,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,10,11,10,9,10,9,9,10,10,11,12,10,12,10,11,9,9,9,9,9,8,8,8,7,7,6,6,6,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,8,8,9,9,8,8,7,6,6,5,5,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,6,6,6,6,4,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,1,2,2,2,2,2,3,3,3,4,4,4,4,5,5,4,4,5,5,5,5,5,4,3,3,2,2,3,2,2,3,3,3,2,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,7,7,6,6,6,6,6,6,5,5,5,6,5,5,6,5,5,5,5,6,6,7,7,6,7,6,7,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,5,5,6,5,5,6,5,5,5,5,6,5,5,5,5,5,6,7,8,10,10,11,13,12,12,12,16,17,18,20,20,22,23,23,20,21,22,20,24,21,23,23,22,25,25,26,24,25,25,26,25,25,26,25,25,26,24,26,26,25,24,25,25,23,25,25,23,22,24,24],[29,28,28,29,28,29,29,28,29,28,28,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,27,28,27,28,27,27,27,27,27,27,26,26,26,26,24,24,24,23,22,22,22,20,20,21,20,19,18,19,16,14,12,9,8,6,5,4,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3,3,3,3,3,4,3,3,4,4,4,4,4,4,5,4,4,4,5,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,5,5,5,4,4,5,5,6,5,5,4,4,3,2,2,2,2,2,2,2,3,3,3,3,4,3,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,5,4,4,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,7,7,7,6,6,6,6,6,6,5,6,5,5,5,6,5,5,5,5,5,6,7,6,6,6,6,7,6,7,6,7,7,7,7,7,6,7,7,6,7,6,6,5,6,6,5,6,6,6,5,6,6,5,5,6,6,5,5,6,8,8,9,9,11,12,13,11,13,14,16,17,18,18,22,22,20,20,21,21,21,23,21,22,23,22,26,25,25,24,26,25,25,26,26,26,26,26,26,23,24,26,25,25,26,25,24,25,26,24,23,26,26],[29,28,28,29,28,29,29,28,29,28,28,28,28,27,27,27,27,28,27,28,28,27,28,27,27,27,28,27,28,27,27,27,28,28,28,28,28,28,28,27,28,26,26,26,26,25,24,23,23,22,22,21,22,20,20,20,20,19,19,19,17,14,12,9,8,6,5,5,4,3,3,3,3,2,2,2,2,1,1,1,1,1,0,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,4,4,4,3,4,4,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,4,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,3,3,3,3,3,3,3,2,2,3,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,4,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,4,4,3,3,4,4,3,3,4,3,3,3,3,3,3,4,4,3,4,4,5,5,5,5,5,5,4,3,3,4,4,3,3,4,3,3,3,4,3,3,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,5,5,6,5,5,5,5,5,5,5,5,5,6,6,7,8,9,12,11,12,14,15,17,17,16,17,19,18,20,19,20,20,22,23,23,23,24,25,25,24,25,24,23,24,22,22,25,24,25,24,24,25,27,26,27,27,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,26,26,27,26,27,27,26,26,27,25,26,25,24,24,23,21,20,20,19,18,16,14,13,12,10,9,8,6,6,6,6,6,6,7,7,7,8,8,8,8,8,9,10,9,9,10,11,11,11,11,12,12,12,11,10,10,10,10,9,10,10,10,12,12,11,11,10,10,10,9,9,9,9,8,8,8,8,7,6,7,6,6,6,5,5,6,5,6,6,7,6,6,7,7,7,7,8,8,8,8,8,9,8,8,7,6,6,5,5,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,5,6,6,6,6,4,4,3,3,3,3,2,2,2,3,4,4,4,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,5,4,4,5,5,5,5,5,5,5,4,5,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,3,3,2,3,2,2,2,2,2,3,2,3,3,4,4,4,4,4,5,4,5,4,4,5,5,6,6,5,4,4,3,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,5,5,5,5,5,5,5,5,5,6,5,6,5,6,5,5,6,6,5,4,5,5,4,4,5,5,4,4,4,4,4,4,5,4,5,5,5,5,5,6,5,6,5,6,6,6,6,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,7,7,7,8,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,7,8,9,10,11,13,13,12,14,15,16,18,19,20,22,21,22,20,21,22,22,25,22,24,24,23,25,26,25,25,26,25,26,25,26,27,25,26,26,25,25,25,26,26,26,25,25,26,26,26,24,25,26],[28,27,28,28,27,28,28,28,28,27,27,27,27,26,26,25,26,27,25,27,27,25,27,27,26,27,27,26,27,26,26,27,27,28,27,28,26,27,28,27,27,26,25,25,26,25,23,24,24,23,21,23,23,20,20,21,20,19,19,19,17,14,11,9,7,6,5,4,4,3,3,3,3,2,2,2,2,1,1,1,1,1,1,0,1,1,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,4,4,4,4,4,4,5,5,4,4,3,3,4,4,4,4,4,4,3,4,4,4,3,4,4,3,3,4,4,3,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,3,3,4,4,3,4,4,4,3,4,3,3,4,4,4,4,5,5,4,4,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,1,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,6,5,5,5,6,5,5,4,4,5,5,4,4,5,5,5,6,7,8,10,9,11,14,14,16,16,16,18,19,17,18,21,20,20,22,23,24,23,23,24,26,25,25,24,24,25,23,23,25,24,24,24,24,24,26,26,26,25,26,27,27,26,26,26,26,27,27,27,26,27,27,27,26,27,27,27,27,27,26,26,27,26,26,27,26,26,27,26,26,25,25,24,23,22,21,20,19,18,18,15,14,12,10,8,7,6,6,6,6,6,5,6,6,7,7,7,7,8,8,8,9,9,9,9,10,10,10,10,10,10,10,10,10,9,9,9,9,9,10,9,10,11,10,10,9,10,9,8,8,8,8,8,8,8,7,6,6,6,6,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,7,7,7,8,8,8,7,7,6,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,4,5,5,6,7,7,5,4,3,3,2,2,3,2,2,2,3,3,4,4,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,3,4,4,4,3,3,4,3,3,3,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,1,1,2,2,2,2,2,2,3,3,3,4,3,4,4,5,4,4,4,5,5,4,4,4,3,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,4,5,5,5,5,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,3,3,4,4,4,4,4,5,4,4,5,5,5,5,6,6,6,6,6,7,7,6,6,6,6,6,6,5,5,6,6,5,5,6,5,5,5,5,6,6,7,7,6,7,6,6,7,7,7,7,7,7,6,6,6,6,7,6,6,6,6,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,8,9,9,11,12,12,12,12,15,16,18,20,20,21,22,22,20,21,22,21,23,21,22,23,22,24,24,25,24,25,25,25,24,24,26,24,24,26,23,24,25,25,24,25,24,23,25,25,23,23,24,23],[28,28,27,28,27,28,28,27,28,27,26,27,27,26,25,25,26,26,24,26,26,25,26,26,25,26,26,25,26,25,25,26,26,26,26,26,25,26,26,26,26,26,25,25,24,24,22,22,21,22,21,20,20,19,18,19,18,17,16,17,14,13,10,8,7,5,5,4,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3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,2,2,2,2,2,2,2,1,2,2,2,2,2,2,3,3,4,4,3,4,4,5,4,3,4,5,5,4,4,3,3,3,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,5,5,6,5,5,5,5,4,5,5,4,4,5,5,4,4,5,5,5,6,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,4,5,5,5,4,4,5,4,4,5,5,4,4,5,6,7,8,8,10,11,11,10,11,13,14,16,16,17,20,21,18,17,19,20,19,21,19,20,21,20,24,23,23,22,24,23,24,24,24,23,23,24,25,22,22,24,24,23,24,23,22,23,24,23,21,23,23],[28,28,28,28,28,28,28,27,28,27,26,27,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,26,27,26,26,27,27,27,27,27,27,27,27,27,27,26,26,26,25,25,23,23,23,22,21,21,21,20,19,20,18,18,17,17,15,13,11,8,7,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,2,1,2,2,1,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,4,4,4,3,4,4,3,4,4,4,4,3,3,2,2,2,2,2,2,2,2,1,1,2,1,1,2,1,1,2,2,2,2,2,2,2,2,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,3,3,3,3,4,4,4,3,3,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,4,4,4,4,5,4,5,5,5,6,7,6,7,10,10,10,14,14,15,15,15,17,17,17,18,19,19,20,21,22,22,22,23,23,25,23,24,23,22,24,23,21,24,23,24,24,23,23,25,24,26,25,26,26,27,26,27,26,26,27,26,27,26,26,27,26,27,26,27,27,27,27,26,25,26,26,27,27,26,26,26,23,25,24,24,24,22,21,20,19,18,16,16,14,12,11,9,8,7,6,6,5,5,5,5,6,6,6,6,6,7,7,7,7,8,7,8,8,9,9,9,10,10,10,10,9,9,9,8,8,8,8,9,9,10,10,10,9,9,9,9,8,7,8,7,7,7,7,6,6,6,5,5,5,4,4,4,5,4,4,5,5,5,5,5,5,5,6,6,6,7,7,7,7,6,6,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,4,4,5,6,6,6,5,4,3,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,3,3,3,3,3,4,3,4,4,3,4,5,5,4,4,4,3,3,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,3,4,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,4,4,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,4,5,5,5,4,4,4,4,4,4,4,4,4,5,6,6,8,8,10,11,11,10,11,13,14,17,17,18,20,21,19,18,20,20,19,22,20,22,22,22,24,24,24,24,25,23,25,25,25,26,24,25,25,23,23,25,25,25,25,24,23,25,25,24,21,23,25],[28,28,28,29,28,29,28,28,28,28,27,27,27,27,27,26,27,27,26,27,27,26,28,27,26,28,27,27,28,26,26,27,28,28,27,28,27,27,27,27,27,26,25,26,25,25,23,23,23,21,19,21,21,19,19,20,18,17,18,17,15,13,11,8,7,7,5,5,5,4,4,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,0,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,4,3,4,4,4,5,4,4,4,3,4,4,4,3,3,4,3,3,4,3,3,4,4,4,4,4,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,4,5,4,5,4,4,4,5,5,4,4,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,5,5,4,4,5,4,4,4,4,4,3,4,4,3,3,4,3,3,4,4,4,4,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,4,4,4,4,4,5,4,5,5,5,5,5,6,6,6,6,7,7,7,6,6,7,6,6,5,5,5,6,5,5,6,6,7,7,7,8,11,10,11,13,14,15,14,14,16,17,16,17,17,18,18,19,21,21,21,23,23,25,23,25,23,23,24,22,21,24,23,23,23,23,24,25,24,25,25,26,26,26,26,26,25,26,26,26,26,26,26,27,26,26,26,27,26,26,26,26,25,26,25,26,26,26,25,26,24,25,24,23,22,22,20,20,20,18,18,16,14,13,11,10,9,8,7,7,6,7,7,6,7,7,8,8,8,8,9,8,9,9,9,9,9,10,10,10,11,10,11,11,10,10,10,10,9,9,9,10,10,11,12,10,11,11,10,10,10,9,8,9,9,8,8,8,8,7,7,7,7,6,6,6,7,6,6,6,7,7,6,7,7,7,7,8,8,8,8,8,8,8,8,7,6,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,4,4,5,5,8,8,8,7,4,4,4,2,2,3,3,2,2,3,3,3,4,4,4,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,3,3,4,4,4,4,3,4,5,5,5,5,4,4,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,6,5,6,5,5,6,6,5,5,6,5,5,5,5,5,5,4,5,5,5,4,5,5,4,5,5,5,4,4,5,5,4,5,5,5,5,5,6,6,5,6,6,6,6,7,7,7,7,7,7,6,6,7,6,6,6,6,6,6,7,6,6,5,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,7,7,7,8,7,6,7,7,6,6,6,7,6,6,6,6,6,6,6,6,5,6,6,5,5,6,7,7,9,9,10,12,13,11,12,13,15,16,17,17,20,20,20,18,19,20,19,22,20,21,22,21,23,24,22,23,24,23,24,23,23,25,23,24,24,22,22,24,24,23,25,23,22,24,25,23,21,23,24],[28,28,28,28,28,29,28,28,28,27,27,27,27,27,27,27,27,27,26,27,27,26,27,27,26,27,27,27,28,27,26,27,28,28,27,28,27,28,28,27,28,26,26,26,26,25,23,24,24,22,22,22,22,20,20,21,19,18,19,19,16,14,11,8,7,6,5,4,4,3,4,3,3,3,3,2,3,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,5,4,3,3,3,4,4,4,4,4,4,3,4,4,3,3,4,4,3,3,4,3,3,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,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4,4,4,4,4,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,5,5,5,5,5,6,5,5,5,5,5,5,5,5,6,6,6,6,6,7,6,6,6,6,6,7,7,6,6,6,7,6,6,6,6,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,8,9,11,12,13,11,12,14,16,17,18,18,21,21,21,19,21,20,22,24,22,23,23,23,25,25,25,24,24,23,25,25,25,27,24,25,25,24,24,24,25,25,25,25,24,25,25,25,23,23,24],[28,28,28,28,28,29,28,28,28,27,27,27,28,27,27,27,27,28,26,28,27,26,28,28,26,27,28,26,27,27,26,27,28,28,26,28,27,26,27,26,27,25,25,25,26,25,21,23,23,21,21,22,21,19,19,20,18,17,18,18,16,13,11,9,8,7,6,5,5,4,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,1,1,1,0,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,5,5,5,4,4,4,4,5,4,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,3,3,3,4,3,3,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,5,5,4,4,5,4,5,4,4,4,5,4,4,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,4,4,3,4,4,4,4,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,5,4,5,4,5,4,4,4,4,4,4,4,4,3,4,4,4,4,4,3,3,3,3,3,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,4,4,5,5,5,5,5,6,6,6,6,7,7,7,7,7,8,8,8,8,8,8,7,7,6,6,6,7,6,6,7,7,7,8,8,9,11,11,11,13,13,14,15,15,16,16,16,17,18,18,18,20,21,21,21,23,23,25,24,24,23,22,24,23,22,24,23,23,24,23,24,26,26,27,25,26,26,27,27,27,26,26,26,26,26,27,27,27,27,27,27,26,26,26,26,25,25,26,25,25,26,25,25,26,24,24,24,24,23,22,21,21,20,19,19,17,15,14,14,11,10,9,8,8,8,8,8,8,9,8,9,9,9,9,10,10,10,11,10,10,12,12,11,12,13,13,13,12,12,12,11,10,11,11,12,12,14,13,13,13,14,13,13,12,11,10,10,11,11,10,10,10,9,8,8,9,8,7,7,7,8,8,7,7,8,7,7,8,8,8,8,9,9,9,10,10,10,9,9,7,8,7,6,6,5,6,5,5,5,5,5,6,6,6,5,6,5,5,5,5,5,5,4,4,4,4,4,4,3,4,4,3,3,4,4,4,5,7,7,8,6,5,4,4,3,3,3,3,2,3,2,3,3,3,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,4,4,4,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,5,6,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,4,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,8,8,7,7,7,7,7,7,6,6,7,7,6,7,7,6,6,6,7,7,8,8,8,8,8,8,7,8,8,8,8,9,9,8,8,7,9,8,7,8,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,7,7,8,9,10,11,12,13,14,12,14,15,17,19,19,19,22,21,22,21,21,22,21,24,21,23,24,22,25,25,25,24,25,24,26,26,24,27,26,26,25,25,26,26,26,24,26,25,24,25,25,24,24,24,25],[28,28,28,28,28,28,28,28,28,28,27,27,27,27,27,26,27,27,27,27,27,27,28,27,27,28,27,27,28,26,26,27,27,27,27,27,26,27,27,27,27,26,25,26,25,25,22,23,23,22,21,21,21,20,19,20,19,18,18,18,16,13,12,9,8,7,6,6,5,5,5,4,4,4,4,3,3,3,3,3,2,2,2,2,2,1,1,1,1,0,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,3,3,3,4,4,4,5,5,4,4,4,4,4,4,4,3,3,3,4,3,3,4,4,4,4,3,3,3,3,2,2,3,2,2,2,2,2,2,2,3,2,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,4,4,4,4,4,4,3,3,2,2,3,2,2,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,5,4,4,4,5,5,5,5,5,5,4,4,4,4,4,4,3,3,4,3,3,4,4,3,3,4,4,4,3,3,3,3,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,7,6,7,8,8,8,11,11,11,13,14,15,15,15,17,18,18,20,20,21,21,22,23,24,24,25,25,26,25,26,25,24,25,23,22,25,25,24,24,24,24,26,25,26,26,27,27,28,27,27,27,27,27,27,27,27,28,27,27,28,27,27,27,28,27,27,26,27,26,26,27,27,26,27,25,25,26,25,24,23,22,22,21,20,19,19,15,15,13,11,10,9,8,8,8,8,7,7,8,8,9,9,9,9,9,9,10,11,10,10,11,11,11,11,12,12,12,12,11,11,11,10,11,10,11,11,12,12,13,13,12,11,12,12,11,10,10,10,10,9,9,9,9,8,8,8,7,7,7,7,7,7,7,7,7,7,7,7,8,7,8,8,9,9,10,9,9,9,9,7,7,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,4,4,4,5,7,7,7,5,4,4,3,3,2,2,3,2,2,2,3,3,3,3,4,3,4,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,2,2,2,3,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,5,4,5,5,4,5,5,5,5,5,5,4,4,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,5,6,6,6,6,6,6,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,6,7,7,7,7,6,8,7,7,7,7,7,7,7,7,6,7,6,7,7,7,6,6,6,7,7,8,8,8,7,7,8,7,8,8,7,7,8,8,7,7,7,8,8,7,7,7,7,6,6,7,6,6,7,7,6,6,7,7,6,7,6,6,6,7,8,8,10,10,12,13,13,12,14,15,17,18,19,20,22,22,21,20,22,21,20,24,22,23,25,21,26,25,26,25,25,24,26,26,26,27,26,26,26,24,25,26,26,25,26,25,24,26,25,24,22,25,25],[28,28,28,28,28,28,29,28,28,27,26,26,27,27,26,27,26,27,26,27,27,26,28,27,26,27,27,26,27,26,25,27,27,28,27,27,26,26,27,26,27,25,25,25,25,24,22,23,23,20,20,22,20,19,18,20,18,17,17,17,16,14,12,9,8,8,7,6,6,5,6,5,5,5,4,4,4,4,3,3,3,3,2,2,2,2,2,1,1,1,0,1,2,1,2,2,2,2,2,3,3,2,3,3,3,3,4,4,4,4,4,4,3,4,4,4,4,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,2,2,3,3,3,3,3,4,4,3,3,3,4,3,3,4,4,3,4,4,4,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,4,3,4,4,4,4,4,4,4,5,5,6,6,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,9,9,9,8,8,8,8,7,7,6,7,7,7,7,7,7,8,8,8,9,11,11,12,13,13,14,14,15,17,16,17,18,19,18,20,21,22,22,22,24,24,26,24,26,23,23,23,24,22,24,24,24,25,23,24,26,25,27,26,27,26,27,27,27,26,26,26,26,26,27,28,27,28,28,27,27,27,28,27,27,26,27,26,26,27,26,25,27,25,26,26,24,24,22,22,20,20,18,17,17,15,15,14,12,11,10,9,8,8,8,8,9,9,10,10,11,10,10,11,11,11,13,11,11,12,14,13,13,14,15,14,14,14,13,12,13,13,13,13,13,15,14,14,15,14,14,13,13,12,11,11,12,11,10,10,10,10,9,9,9,9,8,8,7,8,9,8,9,9,8,8,9,9,9,9,10,10,11,10,10,10,10,9,8,8,8,7,6,6,6,6,6,6,5,6,6,6,5,5,6,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,7,7,7,6,5,4,4,3,3,3,3,2,3,3,3,3,3,4,4,4,4,4,3,3,3,2,2,3,3,2,2,3,3,2,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,5,6,6,6,6,6,7,7,7,6,6,6,6,5,6,6,5,5,6,6,5,5,5,6,5,5,5,5,5,4,5,5,5,5,5,5,5,4,4,4,4,4,3,3,2,3,2,2,2,3,3,3,2,2,3,3,3,4,4,4,4,5,5,5,5,4,5,5,6,6,6,5,5,5,4,4,4,4,5,4,4,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,8,7,6,7,7,6,6,7,7,6,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,7,7,6,7,8,7,7,7,8,8,7,8,9,9,8,9,8,8,7,8,8,7,8,8,7,8,8,8,7,7,8,8,9,8,9,8,8,9,8,9,8,9,8,9,9,8,8,7,9,8,8,8,8,8,7,7,8,8,7,8,8,7,7,8,8,7,7,8,7,7,7,8,9,11,11,13,13,14,13,14,16,17,18,20,20,23,23,23,22,22,23,23,24,23,24,25,24,26,26,26,26,25,25,25,27,26,27,25,26,26,25,25,27,26,26,26,26,24,26,26,26,24,26,26],[28,27,27,27,27,28,27,27,27,25,26,24,26,25,25,26,25,26,25,26,26,25,26,26,25,26,26,25,25,26,25,26,27,27,25,26,26,25,26,25,26,25,24,24,24,23,21,21,22,19,19,20,19,19,18,18,16,16,16,16,13,12,10,8,8,7,6,6,5,5,5,5,4,4,4,3,3,3,3,3,3,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,4,4,3,3,3,3,4,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,3,3,3,2,3,2,2,2,3,2,2,2,3,2,2,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,4,4,5,4,4,4,5,4,4,5,4,4,4,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,3,3,3,3,3,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,8,7,7,7,6,6,7,6,6,6,7,7,7,8,9,10,10,10,12,13,13,12,14,15,14,15,17,17,18,18,19,19,21,20,22,22,23,23,23,22,22,22,22,22,23,22,24,23,23,23,25,25,26,25,25,25,25,26,27,26,26,26,25,25,26,26,26,26,27,26,27,25,26,24,25,25,25,26,24,26,25,24,26,24,23,24,24,22,22,21,19,19,18,17,17,15,13,13,11,10,8,8,7,7,8,8,7,8,9,9,9,9,10,10,10,10,12,10,11,12,12,11,12,13,14,12,13,12,13,12,12,11,12,11,12,13,13,13,14,13,12,12,12,11,11,11,11,10,10,10,9,9,8,9,8,8,7,7,7,8,7,7,8,8,7,8,8,8,8,8,9,9,9,10,9,10,9,8,7,7,7,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,5,6,6,6,6,5,4,4,3,3,3,2,2,2,3,3,3,3,3,4,3,4,3,2,3,3,2,2,3,2,2,2,3,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,5,4,4,4,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,3,3,4,4,4,4,4,4,4,5,4,5,4,4,4,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,7,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,7,7,7,7,7,7,6,6,7,7,6,7,7,6,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,9,8,8,7,8,8,7,8,8,7,7,7,8,7,7,7,7,7,6,7,7,7,7,7,7,7,7,7,8,10,10,12,12,13,12,13,14,15,16,17,17,20,19,20,19,20,20,20,21,21,21,23,22,23,24,24,23,24,21,25,24,23,25,24,23,24,23,24,23,23,23,23,24,23,25,24,23,23,23,23],[28,28,28,28,28,29,28,28,28,27,27,27,28,26,27,26,27,27,27,27,27,27,28,27,26,28,27,27,28,26,26,28,28,28,27,28,26,27,27,27,27,26,25,26,26,26,23,23,23,21,21,21,21,19,18,19,17,17,18,17,15,12,10,9,7,7,6,5,5,4,4,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,1,1,1,1,0,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,4,4,3,3,2,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,4,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,2,3,3,2,2,3,2,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,4,4,4,4,4,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,4,4,4,4,4,4,3,4,4,3,3,4,4,3,4,4,4,4,4,3,3,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,7,6,6,5,6,6,6,6,6,7,7,7,8,9,10,11,11,13,14,15,14,15,17,17,16,19,19,19,20,21,23,23,23,24,25,26,25,26,24,24,25,24,23,24,25,25,24,24,25,27,25,27,26,27,28,27,27,27,27,27,27,27,26,27,28,28,27,27,27,28,27,27,27,27,26,27,26,26,27,27,27,27,25,26,25,25,23,23,22,21,22,19,18,17,15,14,12,11,10,9,8,7,7,7,7,7,8,8,8,9,9,9,9,9,9,11,10,10,11,12,11,12,12,13,12,12,11,12,10,10,11,10,11,11,12,13,13,14,13,11,12,12,11,10,10,10,10,9,9,9,9,8,8,8,7,7,6,6,7,7,6,7,7,7,7,7,7,7,7,8,8,8,9,9,8,8,8,7,7,6,6,5,5,5,5,5,5,4,4,5,4,5,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,6,6,6,6,4,4,3,3,3,3,3,2,2,3,3,3,3,3,4,3,3,3,2,3,3,2,2,3,3,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,3,3,3,4,4,3,4,4,5,4,4,4,4,5,5,5,5,4,4,3,3,3,3,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,6,6,6,6,6,5,6,6,6,6,6,6,5,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,7,6,6,6,7,7,7,7,7,7,7,7,6,6,7,7,6,7,7,6,6,6,7,7,8,8,8,7,7,8,7,7,8,7,7,8,8,7,7,7,8,8,7,7,7,7,6,6,7,6,6,7,6,6,6,6,6,6,6,6,6,6,6,8,8,9,10,11,12,13,12,13,15,16,17,19,19,22,23,22,20,22,22,20,23,21,22,25,22,24,25,25,25,25,25,26,26,26,27,26,26,26,24,26,27,26,25,26,25,25,26,25,24,24,26,24],[28,28,28,28,28,29,28,28,29,27,27,27,26,26,26,26,26,26,27,27,26,27,27,26,27,27,26,27,27,26,27,27,27,27,27,27,27,27,27,26,27,26,26,26,25,25,23,23,22,22,22,21,21,20,19,19,17,18,17,16,14,13,10,8,7,6,5,4,5,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,3,2,3,3,3,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,2,2,2,3,3,4,3,3,3,4,3,3,4,4,3,4,3,3,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,5,5,6,6,6,6,6,6,6,6,5,5,6,5,5,5,6,5,6,7,7,8,10,10,10,12,13,14,13,14,16,16,15,17,18,19,18,19,22,23,21,24,24,25,24,25,23,22,25,23,22,24,24,24,24,23,24,26,25,27,25,26,27,27,27,27,26,26,27,27,27,27,27,27,27,28,27,28,27,27,27,26,26,27,27,27,27,26,27,27,24,25,24,24,24,22,21,20,19,18,16,16,15,13,11,10,9,8,7,7,7,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,10,10,10,10,11,11,11,11,10,10,10,9,10,9,10,10,11,11,11,11,10,10,9,9,9,8,8,9,8,8,7,7,7,7,6,6,6,6,5,5,6,5,5,5,6,5,6,6,6,6,6,7,7,7,8,8,8,7,7,6,5,5,5,4,4,4,4,4,4,3,4,4,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,5,5,4,3,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,4,3,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,3,3,3,3,4,3,4,4,3,4,4,4,4,4,4,4,3,3,3,2,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,5,6,6,6,6,6,7,6,6,6,6,6,6,6,6,5,6,6,5,6,6,5,5,5,6,6,6,7,7,6,6,7,7,7,7,7,6,7,7,6,6,6,7,7,6,6,6,6,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,8,9,10,11,12,11,12,13,15,17,18,18,21,22,21,19,21,21,21,23,21,23,24,22,25,25,25,24,25,24,25,25,25,26,24,25,26,23,24,25,25,25,26,25,23,25,25,23,23,24,23],[28,27,27,28,27,28,28,27,27,26,26,25,26,25,25,26,26,26,26,26,26,26,27,26,26,26,26,26,26,26,25,27,27,27,26,27,26,25,26,26,26,24,24,24,24,23,21,21,22,19,20,19,19,17,16,18,15,15,16,15,13,12,10,8,7,6,6,5,5,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,2,2,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,2,2,3,3,4,3,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,3,4,4,3,4,4,4,4,4,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,7,7,7,6,6,6,6,6,6,5,5,6,5,5,6,6,6,6,7,8,9,10,10,11,13,13,12,13,15,14,14,16,17,16,18,18,20,20,20,22,23,24,23,24,22,21,23,22,22,23,23,24,24,24,24,25,26,27,25,25,26,26,26,26,25,25,26,26,26,26,26,26,26,27,26,28,26,26,26,26,26,26,26,25,27,25,25,26,26,24,24,24,22,21,21,18,17,16,15,16,14,12,12,10,8,7,7,7,7,7,7,7,8,8,8,8,8,9,9,9,10,11,10,9,11,12,11,10,12,13,12,12,12,12,10,10,10,10,10,10,12,12,11,12,12,11,11,11,10,9,9,10,9,9,9,8,8,7,7,7,7,6,6,6,7,6,6,6,7,6,7,7,7,7,7,8,8,8,9,8,8,7,7,6,6,6,5,5,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,6,5,4,4,3,3,3,3,3,2,2,2,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,5,6,6,5,5,6,6,5,5,5,5,5,4,5,5,5,4,5,5,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,7,6,6,6,7,7,7,7,7,6,6,7,6,5,6,6,5,6,7,6,5,6,6,7,7,7,8,7,7,7,7,8,7,7,7,7,8,7,7,6,8,7,7,7,7,7,6,6,7,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,7,9,9,10,11,12,12,13,14,15,16,17,18,21,20,20,20,21,19,20,22,21,21,22,22,23,23,24,22,25,22,24,24,24,24,23,23,24,22,22,24,24,23,24,23,24,24,24,23,22,23,24],[28,28,27,28,28,29,28,28,28,26,27,26,26,26,25,26,26,26,27,27,26,25,26,26,25,26,26,26,27,26,25,26,27,27,26,26,26,25,26,25,27,25,25,24,24,24,21,21,21,19,19,20,19,17,16,18,16,16,15,16,13,12,10,8,7,7,6,5,5,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,4,3,3,3,3,3,3,4,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,3,3,3,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,7,7,7,6,7,6,6,6,6,5,6,6,6,6,6,6,6,7,7,8,9,10,10,11,13,13,11,14,15,14,15,17,17,17,18,18,20,22,22,23,23,23,23,24,22,22,23,22,22,23,24,24,23,23,24,26,25,27,25,26,26,25,26,26,26,25,26,26,25,26,26,27,26,27,26,27,27,26,26,26,25,26,26,26,27,26,26,27,25,25,24,24,23,23,22,19,20,18,17,16,14,13,12,10,9,8,7,7,7,7,7,7,7,8,8,8,8,9,10,9,10,11,10,10,11,12,11,11,13,13,12,12,11,12,11,10,11,11,11,11,12,12,13,12,12,11,11,12,10,10,10,10,10,9,9,9,8,7,7,7,7,6,6,6,7,6,6,6,7,6,6,7,7,7,7,8,8,8,9,8,8,7,7,6,6,5,5,5,5,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,4,4,5,6,6,6,5,5,4,3,3,3,3,2,2,3,2,3,3,3,3,4,3,3,3,3,3,3,2,2,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,4,4,4,4,5,4,4,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,3,3,3,3,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,6,6,6,6,5,6,6,6,6,6,6,5,5,6,6,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,7,6,6,7,8,7,6,7,7,7,6,7,6,6,7,7,6,7,7,6,6,6,6,7,7,8,8,7,7,7,7,8,7,7,7,7,8,7,7,6,7,7,6,6,7,6,6,6,7,6,6,6,6,6,5,6,6,6,5,6,5,5,6,7,7,8,9,10,11,12,11,12,13,15,16,19,19,21,22,20,20,22,20,21,22,21,22,24,21,24,25,25,24,25,24,26,25,24,26,25,25,26,24,24,25,25,25,25,26,25,26,25,24,23,25,24],[28,29,28,29,28,29,29,28,28,28,27,27,27,27,28,27,27,27,27,27,26,26,27,26,26,28,27,27,28,26,26,28,27,28,27,27,26,27,27,27,27,27,26,26,26,26,24,24,24,23,23,22,22,20,19,20,17,18,17,17,14,12,10,8,7,6,5,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,1,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,3,4,4,4,3,4,3,4,3,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,6,5,5,5,5,5,5,5,5,5,6,6,7,7,9,10,10,13,14,15,13,15,17,17,17,19,20,20,20,21,24,24,23,25,26,26,25,26,23,24,26,24,23,25,25,25,25,24,25,26,26,27,26,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,27,27,27,26,27,27,27,28,27,27,27,25,26,25,24,24,23,22,20,20,19,17,16,14,13,12,10,9,8,6,6,6,6,6,6,6,6,7,7,7,7,8,8,8,9,8,9,9,10,9,10,11,11,10,11,10,10,10,9,9,8,9,10,10,11,11,10,10,9,9,9,9,8,8,8,8,7,7,7,7,6,6,6,6,5,5,5,6,5,5,5,6,5,5,6,6,5,6,7,7,7,8,7,7,7,6,5,5,5,5,4,4,3,4,4,3,3,4,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,5,5,4,3,3,2,3,3,2,2,2,2,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,5,5,5,5,5,4,5,5,5,5,5,5,4,5,5,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,5,5,6,7,6,6,6,6,6,5,6,5,5,6,6,5,5,6,5,5,5,5,6,6,6,7,6,6,7,6,7,7,7,7,7,7,6,6,6,7,7,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,8,9,10,11,11,11,11,13,14,16,18,18,21,22,20,19,20,21,20,24,20,22,23,21,25,26,26,24,25,25,26,26,25,26,24,25,26,23,24,26,26,24,25,24,24,25,25,23,22,24,24],[28,28,28,28,28,29,29,28,28,27,26,26,27,26,26,26,27,26,27,27,26,26,27,26,26,27,27,27,28,27,26,28,28,28,27,28,26,27,27,27,27,25,25,26,26,24,22,22,23,20,21,21,21,19,19,19,16,18,16,16,13,12,10,8,7,6,5,5,5,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,3,3,4,3,3,3,4,4,3,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,5,6,6,5,6,6,5,5,5,5,5,5,5,6,5,6,6,7,8,9,9,10,11,12,13,13,13,15,15,15,17,17,17,18,19,20,21,21,22,23,24,23,24,22,22,23,22,20,23,24,23,23,23,23,24,25,26,25,25,26,26,26,26,26,26,26,26,26,27,26,26,26,27,26,27,27,27,27,26,26,27,26,26,26,26,26,26,24,25,25,24,23,22,20,19,19,17,16,15,14,12,12,10,9,8,6,6,6,6,6,6,7,6,7,7,7,7,8,8,8,9,9,9,10,9,9,10,11,11,10,11,10,10,10,9,9,9,10,10,10,10,10,10,10,9,9,9,9,8,8,8,8,8,7,7,7,6,6,6,6,5,5,5,6,5,5,6,6,5,5,6,6,6,6,7,7,7,7,8,7,6,6,5,5,5,4,4,4,3,4,4,3,3,4,4,3,3,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,6,4,4,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,3,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,6,5,6,6,6,6,6,6,6,7,7,6,6,6,6,6,5,6,6,5,6,6,6,5,5,5,6,6,7,7,6,7,7,6,7,7,7,7,7,8,6,6,6,7,7,6,6,6,6,5,6,6,5,5,6,5,5,5,5,5,4,5,5,5,4,5,6,7,8,8,10,11,11,10,11,12,13,16,16,18,19,20,19,17,19,20,20,22,21,22,22,22,23,23,24,22,24,22,24,24,23,26,23,23,24,23,23,24,24,23,24,24,23,24,24,23,22,24,24],[27,27,27,27,27,28,27,27,27,26,24,24,25,24,24,25,25,25,25,26,25,24,25,25,24,25,25,24,25,24,24,25,26,26,24,26,25,25,25,24,26,23,23,23,24,23,19,20,21,18,18,19,18,16,16,17,15,14,15,15,13,12,10,9,7,7,6,5,5,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,3,3,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,2,3,3,2,3,3,2,2,3,3,3,3,3,3,4,3,3,4,4,3,4,4,4,3,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,3,4,4,4,3,3,3,3,3,3,3,3,3,4,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,7,6,6,7,6,6,6,5,5,6,6,5,5,6,6,6,7,8,9,10,10,11,12,12,11,13,14,13,14,16,16,16,17,17,18,20,19,20,21,22,22,22,22,21,21,21,21,21,21,22,22,22,21,23,24,25,24,24,24,24,25,25,24,24,25,25,25,25,25,26,25,26,25,26,26,26,25,25,24,25,25,24,25,25,24,25,24,23,23,22,21,20,19,18,17,16,15,14,13,12,12,10,9,8,7,7,7,7,7,7,7,7,8,8,8,8,9,9,9,10,9,9,10,10,10,10,11,11,11,11,11,11,10,10,10,9,10,10,11,11,12,11,11,11,10,10,9,9,9,9,9,8,8,8,8,7,7,7,7,6,6,6,7,6,6,6,7,6,6,7,7,6,7,7,7,8,8,8,7,7,7,6,6,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,4,4,5,6,6,6,5,4,4,4,3,3,3,3,2,2,3,3,3,3,3,3,3,4,3,3,3,3,2,2,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,6,5,6,6,5,6,6,5,5,6,6,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,6,7,6,6,7,6,5,6,7,6,5,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,6,7,7,6,7,7,7,6,6,7,6,6,6,6,5,5,6,6,5,5,6,5,5,5,6,7,8,8,10,11,11,11,12,12,14,16,16,15,18,19,19,18,19,18,19,20,20,19,21,20,22,22,23,22,23,21,23,23,22,24,22,22,22,21,21,23,22,22,22,22,22,23,23,22,20,22,22],[28,28,28,28,28,28,28,28,28,26,27,26,27,25,26,26,27,26,26,27,26,26,26,26,26,27,26,26,27,26,25,27,27,27,26,27,25,26,26,25,26,25,25,25,25,24,22,22,22,21,20,20,21,18,19,19,17,17,17,17,14,12,11,9,8,7,6,5,5,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,6,6,6,5,6,6,6,6,6,6,7,7,8,8,10,11,11,12,14,14,13,16,16,17,16,19,18,18,20,20,21,22,22,24,25,25,25,25,24,23,24,23,22,24,25,25,24,24,24,26,26,27,26,26,27,26,26,27,26,26,27,27,26,27,27,28,27,28,27,28,28,27,28,27,25,28,26,26,28,27,26,27,25,26,26,25,23,24,22,21,20,19,17,17,14,13,12,12,10,9,7,7,7,7,7,7,7,7,8,8,8,8,9,9,9,11,10,10,11,11,11,11,12,12,11,12,12,11,11,9,10,10,10,11,12,12,12,12,12,11,11,11,10,9,9,10,10,9,9,9,8,7,7,7,7,6,6,6,7,6,5,6,7,6,6,7,7,6,7,8,8,8,8,8,7,7,7,6,6,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,5,5,5,6,6,6,6,5,4,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,5,4,4,5,5,4,4,4,4,4,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,5,4,4,4,5,5,4,5,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,5,6,6,5,5,6,5,5,6,6,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,6,6,7,7,8,7,7,7,7,7,7,7,6,7,7,6,7,7,6,6,6,6,6,7,7,8,7,7,7,7,8,8,7,7,8,8,7,7,7,7,7,6,6,7,6,6,6,7,6,5,6,6,5,5,6,5,5,5,5,5,5,6,7,7,8,8,10,11,12,10,12,14,15,16,18,19,21,22,20,19,21,21,20,22,21,21,23,22,24,25,24,23,25,23,25,25,24,26,24,24,25,24,24,25,25,25,25,25,22,25,24,23,23,25,24],[28,28,28,29,28,29,29,27,29,28,27,27,27,26,27,26,26,26,27,27,25,26,27,25,26,27,26,26,27,25,25,27,27,28,26,27,25,27,27,26,27,26,25,26,25,25,23,22,23,22,22,21,22,20,18,19,18,18,16,16,14,13,11,9,8,6,6,5,5,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,3,3,3,4,3,3,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,3,2,3,3,3,2,3,3,3,3,3,4,3,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,6,5,6,6,6,6,6,6,5,5,6,6,5,6,6,6,6,7,7,8,10,11,11,13,14,15,13,15,17,16,16,17,18,19,19,19,22,23,23,24,25,24,25,26,23,23,25,24,24,25,25,25,25,25,25,26,27,27,26,26,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,29,28,28,28,28,26,28,28,27,28,27,27,28,25,26,26,25,25,23,22,20,20,18,16,17,15,13,12,10,9,8,7,7,6,7,6,6,6,7,8,8,7,7,8,8,8,9,9,9,9,10,10,10,11,11,11,11,10,11,10,10,9,9,10,9,11,11,11,10,10,10,10,10,9,8,8,8,8,8,7,7,8,7,7,6,6,5,5,5,6,5,5,6,6,5,5,6,6,6,6,7,7,7,7,7,7,7,7,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,4,3,3,3,4,4,4,5,5,6,6,5,4,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,4,4,3,4,4,3,3,4,4,4,4,5,4,4,5,5,6,5,6,6,5,5,6,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,4,5,5,4,5,5,5,5,5,6,6,5,6,6,6,6,6,7,7,7,7,7,7,6,7,6,6,6,7,6,6,6,6,5,6,6,6,6,7,7,6,7,7,7,7,7,7,7,8,8,7,7,7,7,7,6,6,7,6,5,6,6,5,5,6,5,5,5,5,5,4,5,5,5,5,5,6,7,8,9,10,11,11,11,12,12,15,15,18,17,21,23,20,19,21,21,20,24,21,22,24,22,24,25,25,25,26,24,26,25,25,25,25,25,25,24,25,26,26,25,25,25,24,25,25,24,23,25,24],[28,27,27,28,27,28,27,27,28,26,25,26,26,26,26,26,25,26,26,26,26,27,26,26,26,26,26,26,26,26,25,27,27,28,26,27,26,26,27,26,27,25,25,25,25,24,22,22,23,20,20,20,21,19,18,19,17,17,16,16,14,13,11,9,8,7,6,5,5,4,5,4,4,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,3,2,2,2,2,2,2,2,2,1,1,1,2,1,1,2,2,2,2,2,2,2,2,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,3,3,2,3,3,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,5,4,5,5,5,5,5,6,6,6,6,6,6,7,6,6,7,6,6,6,5,6,6,6,6,6,6,7,7,8,9,10,11,11,13,13,13,12,14,15,14,15,17,17,17,19,18,21,22,21,23,24,24,23,25,23,22,23,22,21,22,23,23,23,23,23,25,25,25,24,25,26,26,25,26,26,26,26,27,26,26,26,27,26,27,26,27,26,27,26,26,25,26,26,26,27,26,27,26,25,25,25,25,22,21,21,18,18,18,16,15,14,13,12,10,10,9,8,7,7,7,7,7,8,8,8,8,9,9,9,9,10,10,9,10,11,11,11,11,12,13,11,11,12,12,10,10,10,10,11,11,12,13,12,13,12,11,11,11,10,10,10,10,10,9,9,9,8,8,7,7,7,6,6,6,7,7,6,7,7,7,7,7,7,7,7,8,8,8,9,8,8,7,7,6,6,5,5,5,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,5,5,5,6,6,6,5,5,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,3,3,3,3,4,4,4,5,5,4,4,5,5,5,5,5,5,4,4,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,7,6,7,6,6,6,7,6,6,6,7,6,6,6,6,6,5,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,7,6,7,7,7,7,7,8,8,8,8,8,7,7,7,7,6,8,7,6,7,7,7,6,6,6,7,8,8,8,7,8,8,8,8,7,8,8,9,9,7,8,7,8,8,7,7,8,7,6,7,7,6,6,6,6,6,6,6,6,5,6,6,5,5,5,6,7,8,9,11,12,12,10,13,13,15,16,17,17,19,20,20,19,20,19,21,22,21,21,22,21,22,22,24,21,23,22,23,24,23,24,23,24,23,24,23,24,24,23,24,23,22,24,24,22,21,23,23],[28,28,27,27,27,28,27,27,27,25,25,25,26,25,25,26,26,26,26,26,25,25,25,25,25,25,25,26,26,26,25,26,26,27,25,27,26,26,27,25,26,24,24,24,25,24,21,21,22,20,19,20,20,18,18,19,18,17,17,16,15,13,12,11,10,8,8,7,7,6,6,6,5,5,5,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,2,2,2,2,3,3,3,2,2,3,3,3,3,3,3,3,2,3,2,2,2,3,2,2,3,2,2,3,3,3,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,4,3,3,4,3,3,3,4,3,3,4,4,4,5,5,5,5,5,5,5,6,6,5,6,5,5,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,4,4,5,4,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,3,4,4,3,4,4,4,4,4,4,4,5,5,5,5,5,6,5,5,6,6,6,7,6,6,7,7,7,7,8,8,8,8,8,8,9,9,9,9,9,8,8,8,7,7,8,8,7,7,8,8,8,10,10,12,13,12,14,14,14,14,15,16,16,17,18,19,18,19,19,21,23,21,22,24,23,23,24,23,23,22,22,21,23,23,23,24,24,23,25,25,25,25,25,26,26,26,26,26,26,27,26,26,26,26,27,26,27,26,26,26,26,26,26,25,26,25,25,27,26,26,26,25,25,24,23,23,21,21,18,18,18,16,17,14,14,15,12,12,10,10,9,10,9,10,10,10,11,11,11,11,12,12,12,13,14,13,12,14,14,13,14,14,15,14,14,15,13,13,13,13,13,13,14,15,14,15,15,15,14,13,14,13,12,12,13,11,11,12,11,11,10,10,10,10,10,8,9,10,9,9,9,10,9,9,10,10,8,9,10,10,10,10,10,9,9,9,8,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,6,6,6,7,7,8,8,7,6,6,5,5,5,4,4,4,4,4,4,4,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,8,7,8,7,8,7,7,7,7,7,7,7,7,7,6,7,7,6,6,7,7,6,7,7,6,7,6,6,6,6,6,6,5,5,5,5,4,4,4,3,3,3,3,3,3,3,2,3,3,3,3,4,5,5,5,5,6,5,5,6,6,6,6,6,6,5,5,5,5,5,5,5,6,5,6,6,6,6,6,6,7,7,7,8,7,8,8,9,8,8,8,8,9,9,8,8,9,8,8,8,8,8,8,7,8,8,7,7,8,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,9,10,10,9,9,9,9,9,10,9,9,10,10,9,8,9,9,9,11,10,11,10,11,11,10,10,10,10,10,10,11,10,9,9,10,10,9,9,10,9,9,8,10,8,8,8,8,8,8,8,8,8,7,8,7,8,7,8,9,10,10,12,13,14,12,14,15,17,18,19,19,20,21,21,21,21,21,22,22,22,21,23,21,23,23,25,23,24,23,24,25,25,26,24,24,24,24,24,24,24,25,25,24,24,24,24,23,22,23,24],[28,28,28,28,28,28,28,28,28,26,26,26,27,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,25,27,27,27,25,27,26,26,26,25,27,26,24,25,25,24,23,22,23,21,21,21,21,20,19,19,19,18,17,17,16,15,13,12,10,9,9,8,8,7,7,7,6,6,6,6,5,5,5,5,5,4,5,5,4,4,4,4,3,3,3,3,3,3,2,2,2,2,1,2,1,1,1,0,1,1,1,2,2,3,3,2,2,2,3,3,3,3,3,3,2,2,3,3,2,2,3,2,2,3,2,2,2,3,3,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,4,3,3,4,4,4,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,6,5,4,4,4,4,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,5,5,4,6,6,5,6,5,6,5,5,5,4,4,5,5,5,5,5,5,5,6,5,5,5,5,6,6,5,5,6,6,5,5,5,5,5,5,5,5,6,5,5,6,6,6,6,6,6,6,6,5,5,5,4,5,4,4,4,5,5,4,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,8,7,8,8,9,8,8,9,9,9,9,9,9,10,9,9,9,8,9,9,9,9,9,9,10,10,11,11,13,14,14,15,15,16,15,17,18,17,18,19,19,20,20,20,22,23,22,23,25,25,24,25,24,23,24,23,22,23,24,25,25,25,24,26,26,27,26,26,27,26,27,26,26,26,27,27,26,26,27,27,27,27,27,28,28,27,27,27,26,27,27,27,27,26,27,27,25,26,25,24,24,24,22,20,20,18,17,17,15,15,14,14,12,12,10,10,10,10,10,10,11,12,11,12,11,12,13,13,13,14,13,12,14,15,14,13,15,15,14,14,15,14,14,13,13,13,14,13,15,15,15,16,15,14,14,15,14,13,12,13,13,11,12,12,12,11,10,11,11,10,9,9,10,9,9,10,10,10,9,10,10,10,10,10,10,10,10,10,10,10,10,8,9,8,7,7,6,7,6,7,7,6,7,7,7,6,7,7,7,7,7,6,6,7,7,7,6,6,6,6,6,7,7,6,6,6,7,7,8,7,9,8,7,7,6,6,6,5,5,4,5,5,4,4,4,5,5,5,6,6,5,5,5,6,5,5,5,5,5,5,6,6,5,5,6,6,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,8,8,8,8,7,7,8,8,7,8,8,7,7,7,8,8,7,7,7,7,7,7,7,8,7,7,7,7,7,7,7,6,6,6,6,5,5,4,4,4,4,4,4,3,3,3,4,4,4,5,5,5,6,6,7,7,6,7,7,7,7,7,7,7,7,6,6,6,6,6,7,6,7,7,7,6,7,7,7,8,8,8,8,9,9,9,9,10,9,9,9,9,9,9,9,9,9,9,8,9,9,8,9,9,8,8,8,8,7,8,8,8,7,7,8,8,8,8,9,8,9,9,9,10,9,10,10,10,9,10,10,11,10,10,10,10,10,10,10,10,11,10,10,10,11,10,9,10,10,10,12,11,12,10,10,11,11,11,11,11,11,11,12,11,10,10,10,10,9,10,10,10,9,9,10,9,9,9,9,8,9,9,9,8,9,8,8,8,9,10,10,11,11,12,13,14,13,15,15,16,18,19,18,21,21,20,20,21,21,21,22,21,22,24,21,23,24,25,24,24,23,26,25,24,26,24,25,26,24,25,25,25,25,25,25,24,25,25,23,23,24,24],[28,28,28,29,28,29,28,28,29,27,26,27,27,26,27,26,26,26,27,27,26,27,26,26,26,26,26,26,26,26,25,27,27,28,26,28,26,27,27,26,28,26,25,26,26,26,24,23,24,22,22,21,22,21,20,20,19,19,17,18,16,14,13,12,10,9,8,8,8,6,7,6,6,5,6,5,5,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,3,3,3,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,2,2,3,2,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,5,4,5,5,5,5,5,6,6,5,6,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,5,5,5,5,6,5,5,5,5,4,4,5,5,4,4,5,5,4,5,5,4,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,4,4,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,6,6,6,7,7,6,7,7,7,7,7,8,8,8,9,8,8,9,8,9,9,8,9,8,8,8,8,9,8,8,9,9,8,9,9,10,11,13,13,13,14,15,16,16,17,19,18,18,19,20,21,21,21,23,24,23,24,26,26,25,26,24,24,24,24,24,24,25,24,25,25,25,25,26,26,26,26,27,27,27,27,27,27,28,28,28,27,27,27,27,28,28,28,28,28,28,28,27,28,28,28,28,28,28,28,26,27,27,26,25,24,23,21,21,20,18,19,16,15,15,13,13,12,10,9,9,10,10,9,10,11,12,12,11,12,13,12,13,15,14,14,15,15,14,15,16,16,15,15,14,15,14,13,13,13,15,14,15,16,16,16,15,15,15,15,14,13,13,13,13,12,12,11,11,10,10,10,10,8,8,8,9,9,8,9,10,9,9,9,10,9,10,11,11,10,11,11,10,9,9,8,8,7,7,6,6,6,6,6,6,5,6,6,6,5,6,6,6,6,6,5,6,6,6,5,5,6,5,5,5,6,5,5,6,6,7,6,7,7,8,8,7,6,5,5,5,5,4,4,4,4,4,4,4,5,5,5,6,6,6,5,5,5,5,4,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,8,7,7,7,7,6,7,7,7,6,7,7,7,7,7,7,7,6,7,7,7,6,7,7,7,7,6,6,7,6,6,6,6,6,5,5,5,4,4,4,4,3,3,3,4,3,3,3,4,4,5,5,5,6,6,7,6,6,7,7,7,7,7,7,6,6,6,6,5,6,6,6,5,6,6,6,6,7,6,7,7,7,7,7,8,8,9,9,9,9,8,9,9,8,9,9,9,8,8,8,9,8,7,8,8,8,7,8,8,7,8,7,7,7,7,7,7,7,8,8,7,8,9,9,9,9,10,10,9,10,10,11,11,10,11,11,10,9,10,10,9,11,10,9,10,10,10,8,9,9,9,10,11,11,10,10,10,11,12,11,11,11,12,12,10,11,10,10,11,9,9,11,10,8,9,10,9,8,9,9,8,8,9,8,7,8,8,7,7,7,9,9,10,11,13,13,14,13,14,15,17,18,21,20,22,23,22,22,22,23,22,24,23,23,25,23,25,25,26,25,26,24,27,26,25,27,26,25,26,26,26,26,26,25,26,26,24,26,26,25,24,25,24],[28,27,27,28,27,29,28,27,28,27,25,26,27,27,26,26,27,27,26,27,27,27,26,26,26,26,26,26,26,27,25,26,27,28,26,27,27,26,27,26,27,25,25,25,25,25,23,23,25,21,20,22,23,20,19,21,18,17,19,17,16,15,13,12,11,10,10,8,9,7,8,7,7,6,6,6,5,5,5,5,5,4,5,5,4,4,5,5,5,4,4,3,3,3,3,3,2,2,2,2,2,1,1,1,1,0,1,2,2,2,3,3,3,3,3,3,3,3,4,3,3,3,3,3,2,3,3,3,2,3,3,4,3,4,4,6,4,4,3,4,3,3,3,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,4,4,4,4,4,4,4,3,4,4,4,4,4,5,4,4,4,4,5,4,4,5,5,4,5,5,5,5,5,6,6,6,7,6,6,7,7,7,7,7,7,7,6,6,6,5,5,5,4,4,4,4,4,3,4,4,4,4,4,5,4,4,5,5,4,5,5,5,6,6,6,6,5,5,6,5,5,5,6,5,5,6,6,5,5,6,6,6,6,6,6,6,6,6,7,6,6,5,5,6,6,6,6,6,6,6,6,6,6,6,7,6,6,7,5,6,5,5,5,5,5,5,5,5,5,5,6,5,6,6,6,6,6,6,6,7,7,7,7,7,8,8,8,9,9,9,9,10,10,10,10,11,11,11,10,10,11,11,9,10,9,9,10,9,9,10,10,11,10,12,12,13,14,14,15,16,17,16,16,20,17,18,19,20,20,21,21,23,24,22,25,26,24,25,27,24,24,24,24,23,24,23,25,25,24,25,25,26,27,26,26,27,27,27,27,27,27,27,27,27,28,27,27,27,28,27,28,27,27,27,27,27,27,27,27,28,27,27,28,26,26,26,25,23,22,23,20,19,18,17,18,16,15,15,14,14,13,12,11,13,12,12,12,13,14,14,13,14,15,15,14,16,17,16,15,17,16,16,15,17,18,18,18,17,16,15,16,15,16,16,17,18,18,18,17,17,17,16,17,16,15,15,16,15,14,14,13,13,13,12,13,13,11,11,11,13,11,11,12,12,11,12,12,12,11,11,12,12,12,12,12,11,11,11,10,9,9,8,7,7,7,7,8,7,7,7,7,7,7,8,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,7,8,9,9,9,9,8,7,7,6,6,6,5,5,5,6,5,6,6,7,8,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,8,7,8,8,9,8,8,10,11,10,9,9,10,9,8,9,9,8,8,9,9,8,8,8,9,9,7,8,9,8,8,8,9,8,8,8,8,8,8,7,8,7,7,6,6,6,5,5,5,5,4,4,4,4,4,4,4,5,5,6,6,7,7,7,8,8,8,8,8,8,7,8,8,7,7,7,7,6,6,7,7,7,7,7,7,8,8,8,8,9,9,9,9,10,11,12,11,11,11,10,12,11,10,11,11,11,10,10,10,11,10,9,10,10,9,9,10,9,8,9,8,9,8,8,10,9,9,10,11,10,10,11,11,12,11,12,11,11,12,11,13,12,13,13,12,12,11,12,11,11,12,12,11,12,12,11,11,11,11,11,13,13,13,13,13,14,13,14,13,13,13,14,14,12,13,11,14,12,12,11,12,12,12,11,12,11,11,11,11,11,10,11,11,9,10,10,9,9,9,9,10,11,12,14,15,15,15,17,16,18,19,21,21,21,22,23,21,22,22,23,24,24,23,24,24,24,24,26,25,26,24,26,27,26,27,25,26,25,25,25,26,26,25,26,25,25,26,26,24,23,24,25],[27,27,27,27,27,28,27,27,27,25,26,26,26,26,26,26,25,26,26,25,25,25,25,25,25,25,25,25,25,25,25,25,26,27,24,26,25,24,26,24,25,24,24,24,24,24,23,21,22,21,20,21,21,20,19,19,19,19,18,18,16,16,15,14,13,12,11,10,10,9,9,9,9,9,8,7,7,6,6,7,7,5,6,7,6,5,6,6,6,5,5,5,5,4,3,4,3,3,2,3,3,2,2,2,1,1,0,1,2,3,3,3,3,3,4,4,4,4,4,4,3,3,4,4,4,3,4,4,3,4,4,3,4,4,4,6,4,5,4,4,3,4,3,3,3,3,3,3,4,4,3,4,4,4,3,4,3,3,5,4,5,5,6,5,5,5,6,4,5,6,6,5,5,6,6,5,5,6,5,5,5,6,6,6,5,6,5,6,6,6,6,6,7,7,6,7,8,8,8,9,9,8,9,9,9,9,8,8,7,7,7,6,6,6,5,6,5,5,5,6,6,5,6,7,6,6,7,7,6,7,7,7,7,7,7,8,7,7,7,7,7,7,8,6,8,8,8,6,8,8,8,7,7,9,8,7,7,8,9,8,7,7,8,8,8,8,8,8,9,8,8,9,8,8,9,8,8,8,7,8,7,7,7,7,6,7,7,7,7,8,8,7,8,8,8,8,8,8,8,9,9,9,9,10,9,9,11,10,10,11,11,12,11,12,11,12,13,13,13,13,12,12,12,11,11,11,12,11,11,11,12,11,12,14,14,16,16,15,16,17,17,17,18,19,18,19,20,20,20,21,20,22,22,22,23,24,23,24,23,24,24,23,23,23,24,23,24,24,24,22,25,25,26,25,24,26,26,25,26,26,27,27,27,27,26,27,27,27,27,26,27,26,26,26,25,26,25,25,26,26,26,25,26,24,25,24,24,23,21,23,20,19,19,18,18,17,15,17,15,14,14,14,13,15,13,14,15,15,17,15,15,16,16,16,16,17,18,17,16,18,18,17,17,19,19,18,18,17,17,16,16,16,16,16,17,18,18,19,19,18,17,17,17,17,16,17,17,16,15,16,15,14,14,14,15,13,14,13,14,14,13,14,14,14,12,13,14,13,12,13,14,13,13,13,13,12,12,12,11,11,10,10,10,10,9,9,9,10,9,9,10,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,8,9,9,9,8,8,8,9,9,9,10,10,10,10,9,9,8,8,8,8,7,7,7,7,7,7,7,8,8,8,8,7,7,7,7,7,7,7,7,7,7,7,8,8,7,8,8,8,8,8,9,8,8,9,8,9,9,10,10,9,10,11,10,10,11,11,11,12,11,12,11,12,10,11,11,11,10,10,11,11,10,10,10,11,11,10,11,11,10,10,10,10,10,9,10,10,9,10,9,8,8,8,7,7,7,6,6,6,6,5,5,5,5,4,4,5,5,6,6,7,7,8,8,9,8,8,9,8,8,8,8,9,8,8,8,9,8,8,8,10,9,9,9,10,10,10,9,11,11,11,12,11,12,13,13,13,12,12,12,13,13,13,12,12,12,12,11,12,13,11,11,12,12,11,11,11,10,10,10,11,10,11,10,12,12,12,12,12,13,13,12,14,14,13,13,13,13,13,12,14,13,14,14,14,13,13,14,13,13,14,13,13,14,14,12,13,14,14,13,16,14,14,15,14,15,14,14,14,14,14,13,15,14,13,13,13,13,13,13,13,14,13,12,14,13,13,12,12,13,12,12,12,12,11,11,11,12,11,12,13,12,13,15,16,17,15,17,17,20,20,22,20,23,22,22,22,23,22,22,24,23,23,25,23,24,24,25,24,25,24,26,26,25,26,25,26,26,25,25,26,25,25,25,25,23,25,25,24,23,24,25],[28,28,28,28,28,29,28,28,28,27,27,27,27,27,26,27,27,26,27,26,26,27,26,26,27,26,26,27,26,26,26,27,26,27,27,27,26,26,27,25,27,26,25,25,26,25,24,23,24,23,22,22,22,22,21,21,20,21,19,20,18,18,15,15,14,12,12,12,11,11,11,10,11,10,9,9,9,8,8,8,9,8,9,8,8,8,8,8,8,7,7,6,6,5,5,5,5,5,4,4,4,3,3,2,2,2,1,0,1,2,3,3,4,4,4,4,4,4,4,4,3,4,5,4,4,4,5,3,4,5,5,4,4,6,5,7,5,5,5,4,5,4,4,4,4,4,5,4,5,5,5,6,6,5,5,5,5,5,5,7,7,8,7,6,6,7,6,5,6,7,6,5,6,6,4,5,6,7,5,6,6,6,6,6,7,7,7,7,7,8,8,7,8,8,7,8,9,9,8,9,9,9,10,10,9,10,9,9,8,8,7,7,8,6,6,8,7,6,7,8,7,7,7,9,7,7,9,10,8,8,9,10,9,9,9,9,7,7,8,7,7,8,8,7,8,8,8,7,9,9,8,9,8,9,9,7,8,9,10,9,9,9,9,10,9,10,9,10,10,9,10,9,9,9,9,9,9,9,8,9,9,9,8,8,8,9,9,9,9,9,10,9,9,9,10,9,10,10,10,10,11,11,11,11,11,11,11,12,11,12,12,13,12,13,12,13,14,13,14,13,13,13,13,13,11,12,13,13,12,12,13,13,13,14,14,17,17,16,18,18,18,19,19,19,20,19,20,20,22,22,21,23,24,23,24,25,24,25,25,25,24,25,25,25,25,24,25,25,26,24,26,27,27,26,26,27,27,27,27,28,28,28,28,28,28,28,28,28,28,27,28,28,28,28,27,27,28,27,28,28,27,28,27,27,28,27,26,26,24,24,23,22,21,19,19,18,17,18,16,15,15,14,14,16,14,14,15,15,17,17,17,17,17,17,18,17,19,17,16,18,19,17,18,19,19,18,18,19,18,17,17,17,17,18,17,19,18,19,20,20,18,18,19,19,16,18,18,16,16,17,16,15,14,15,16,16,14,13,14,15,14,14,15,15,14,14,15,14,13,14,14,14,13,14,13,13,13,14,12,13,12,11,12,11,10,10,11,11,9,10,11,9,10,10,11,10,10,10,10,9,10,11,9,10,10,11,9,11,11,10,10,10,10,10,10,10,10,11,11,10,10,9,10,9,9,9,8,9,8,8,8,8,8,9,9,9,9,9,10,9,10,10,9,9,9,9,9,9,9,9,10,10,10,9,10,10,9,10,10,10,9,11,11,9,10,11,11,11,11,12,11,11,12,14,13,12,12,14,12,10,12,13,11,11,12,13,11,12,11,13,13,10,12,12,12,11,12,11,11,11,12,11,11,11,11,11,10,10,10,9,9,8,9,9,9,8,8,8,8,7,7,8,8,9,8,9,9,9,10,10,10,9,10,10,10,10,10,10,10,10,11,11,9,10,11,11,10,11,11,10,11,12,11,12,13,13,12,12,13,14,14,15,15,14,13,15,15,14,14,14,14,14,13,13,15,14,14,14,14,13,13,13,12,12,12,12,12,12,12,13,13,13,14,14,15,14,15,16,15,14,15,15,15,14,15,16,15,16,15,15,14,15,15,15,15,16,14,14,16,16,13,14,15,15,14,17,15,17,16,15,18,16,16,16,16,16,15,17,15,15,14,16,15,14,14,15,15,14,13,15,14,14,13,14,14,13,13,13,12,12,12,12,11,12,13,13,13,14,16,16,17,16,17,18,19,20,22,20,22,22,22,22,23,22,22,23,24,23,25,25,24,25,26,25,26,25,26,26,25,27,26,26,25,26,26,26,25,26,25,25,25,26,25,25,24,25,25],[28,28,28,28,28,29,28,28,29,28,27,27,27,27,27,28,27,27,28,27,27,28,26,27,28,27,26,28,27,27,27,27,28,28,27,28,27,27,27,27,28,26,26,26,27,26,25,24,25,24,24,24,24,22,22,23,21,21,21,20,19,18,17,16,15,13,13,13,13,12,13,11,12,11,10,10,10,9,8,9,11,10,10,9,10,10,9,10,9,10,9,10,8,8,7,8,6,6,5,5,5,4,4,3,2,2,2,1,0,1,2,3,3,5,5,3,3,5,6,5,4,6,5,4,3,5,5,4,5,5,5,4,5,5,6,7,6,6,6,5,5,6,5,4,6,7,5,5,6,6,5,7,7,6,6,7,7,5,6,6,7,7,8,7,8,7,7,6,7,7,6,6,8,8,6,6,7,7,6,7,6,8,7,7,8,8,8,8,9,8,8,9,9,8,9,9,10,10,10,10,11,11,11,12,11,11,11,10,10,10,10,9,9,8,7,8,8,7,8,9,8,8,8,10,8,8,10,11,8,10,10,11,10,9,9,9,8,8,9,8,8,9,9,10,10,9,10,11,10,9,11,11,9,10,9,10,9,9,10,9,9,10,9,10,10,10,10,10,10,10,11,10,10,10,11,11,10,10,9,10,10,10,8,9,9,9,9,10,10,9,10,11,11,10,10,11,11,10,11,11,12,12,12,11,12,13,12,13,13,13,12,15,14,14,13,14,15,15,15,14,15,16,14,14,12,14,15,14,13,14,14,15,16,16,17,18,18,18,19,20,19,21,21,22,22,22,22,23,24,24,24,25,25,25,26,26,26,27,27,26,25,26,26,25,26,25,26,26,27,25,28,27,28,27,27,28,28,27,27,28,28,28,28,28,27,28,28,28,28,28,29,29,28,29,28,28,28,28,29,29,29,29,28,27,28,27,27,25,24,25,22,22,21,19,20,18,17,20,17,16,17,16,16,16,16,16,16,17,20,19,18,19,19,20,18,19,20,20,18,20,20,20,19,21,21,20,20,19,19,19,19,19,18,19,18,20,19,21,22,21,20,19,21,20,18,20,20,19,18,19,18,18,17,16,17,17,17,14,15,18,16,15,16,16,15,16,17,16,15,16,16,17,15,16,16,14,14,14,14,14,13,13,11,11,11,11,12,11,10,12,12,10,10,12,11,11,11,12,10,10,11,12,11,10,11,12,11,11,12,12,10,11,11,12,11,12,12,12,12,12,11,11,11,10,10,10,10,10,10,11,10,12,10,11,11,12,11,11,12,11,11,11,11,11,10,10,11,10,10,10,10,10,11,10,11,10,10,11,11,10,10,11,11,10,11,12,12,11,12,14,13,12,14,15,15,13,14,15,13,11,13,13,13,12,14,14,12,12,12,14,14,12,12,14,13,12,13,13,13,13,13,13,12,12,12,12,12,11,10,10,10,9,10,10,10,10,8,9,9,8,7,8,9,10,9,11,11,11,11,12,11,11,12,12,11,10,11,11,11,11,12,12,10,11,12,12,11,12,12,10,12,13,12,13,13,14,13,14,15,16,16,17,17,16,15,17,16,15,17,17,16,16,14,16,16,15,15,15,16,14,14,15,14,13,14,13,13,12,12,15,14,13,15,16,16,16,16,16,17,16,16,16,17,16,16,17,17,18,17,16,16,16,16,16,16,17,17,16,18,17,16,16,17,17,17,19,17,17,17,17,17,17,18,18,17,18,17,18,17,17,16,16,18,17,16,16,17,16,16,17,16,16,15,16,15,15,15,15,13,14,14,13,12,14,13,13,14,15,17,17,19,19,19,19,20,23,22,23,24,23,25,24,24,24,24,24,25,24,25,26,25,26,27,25,25,26,27,26,25,28,26,26,27,27,26,27,27,27,27,27,26,27,27,26,25,26,26],[29,29,28,28,29,29,29,29,29,28,28,28,28,28,28,28,28,28,28,29,28,29,29,28,28,29,28,29,28,28,28,28,29,29,27,29,28,28,28,28,28,27,27,27,27,27,26,26,27,25,24,25,26,25,24,26,24,24,23,23,22,21,20,20,18,18,17,17,17,18,17,17,16,17,16,15,15,13,12,13,13,13,14,14,13,13,13,14,15,13,13,13,13,11,11,9,9,8,8,7,8,6,7,6,4,4,3,3,1,0,1,3,4,5,6,5,5,7,8,7,6,6,7,5,5,6,6,5,6,7,7,6,8,9,9,11,11,12,11,8,9,11,9,7,10,9,7,7,10,8,8,11,12,9,8,9,8,7,8,10,12,12,12,11,11,12,12,9,10,11,11,11,10,10,8,9,10,10,8,10,10,12,11,9,11,13,12,11,13,12,13,13,13,13,14,14,14,13,13,15,16,14,16,16,16,16,15,15,15,14,14,14,14,15,12,13,15,12,11,13,13,11,13,14,12,11,14,15,13,12,13,15,13,15,12,12,12,12,11,11,11,13,12,11,14,13,13,13,14,12,13,14,14,13,12,12,12,12,13,13,14,14,14,15,14,13,16,14,15,15,16,15,15,15,16,16,15,14,15,15,13,16,13,15,14,13,14,15,15,13,15,15,15,16,15,16,14,16,16,16,17,16,15,17,18,17,19,19,18,19,20,20,18,20,19,18,21,20,20,19,19,20,20,19,18,19,20,20,17,19,19,20,19,19,20,21,22,22,23,23,24,23,23,25,24,24,25,25,26,26,25,27,27,26,28,28,27,28,28,27,27,27,27,27,28,27,28,28,27,28,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,29,29,29,29,28,29,28,28,27,26,27,22,25,24,22,24,21,20,21,21,21,20,21,20,23,21,21,23,23,24,23,24,23,24,24,24,24,25,25,25,25,26,25,24,26,27,26,26,25,24,23,24,24,24,23,25,26,26,26,26,26,26,25,25,25,24,25,25,24,23,24,24,23,22,22,24,23,23,22,22,22,21,23,21,22,22,22,22,20,21,20,22,22,20,22,20,19,19,20,18,18,19,16,16,17,14,17,17,15,14,17,17,15,16,17,17,16,17,16,17,16,17,18,16,15,17,17,15,16,17,16,15,16,17,17,16,17,16,17,17,17,16,16,15,15,15,14,14,16,14,16,15,15,16,16,16,16,17,15,16,16,16,16,16,16,16,16,15,16,17,16,16,16,16,15,17,17,15,16,17,16,14,17,17,16,17,19,18,18,19,19,19,19,20,21,20,20,21,20,19,20,21,19,19,19,19,19,20,18,20,19,19,19,20,18,19,19,20,17,20,18,19,17,18,18,18,18,17,16,16,15,15,14,14,14,14,13,11,13,13,11,12,12,13,12,14,14,16,16,15,15,15,15,16,15,14,14,15,15,17,16,18,17,16,16,16,18,17,18,19,17,18,19,19,21,19,20,22,21,21,21,22,21,21,21,21,22,21,22,21,21,21,22,20,21,20,19,21,21,20,20,20,19,18,20,17,20,18,20,20,20,19,22,21,21,21,22,20,22,22,21,22,21,22,21,22,22,22,22,22,22,21,22,21,20,21,21,22,21,23,21,20,21,23,22,21,24,22,23,23,22,22,21,22,21,22,22,22,23,22,23,21,22,21,21,20,21,22,21,22,21,22,22,20,22,23,20,21,21,21,20,19,19,21,18,18,18,19,20,21,22,22,21,23,24,24,25,26,25,26,27,27,25,27,26,26,27,26,26,28,27,27,28,28,28,29,28,28,29,29,29,28,29,29,28,28,29,29,28,29,28,28,29,29,28,26,27,28],[29,28,29,29,29,29,29,29,29,28,28,28,28,28,27,27,28,28,28,28,28,28,28,28,28,28,27,28,27,27,27,27,28,28,27,28,28,27,28,27,28,27,27,27,27,26,26,25,26,24,24,25,25,24,23,25,22,23,22,22,21,20,19,18,17,16,16,16,16,17,16,16,15,15,14,14,13,11,11,13,14,11,13,14,13,13,13,14,13,13,11,12,11,12,12,11,10,8,8,8,7,7,7,7,5,4,4,4,3,1,0,1,3,5,6,3,5,6,8,9,7,7,9,8,8,8,9,7,9,10,9,9,10,10,9,11,10,12,10,10,9,11,10,10,10,11,8,11,11,10,9,12,12,8,8,8,8,6,7,10,10,9,9,8,9,9,9,7,10,10,9,11,10,10,10,11,12,11,11,13,11,13,12,11,12,13,12,12,14,12,13,15,14,12,13,13,12,14,14,14,13,15,16,15,16,15,15,15,14,14,12,13,13,13,12,14,14,12,13,14,12,11,14,15,12,12,15,14,12,14,14,14,12,12,12,11,11,10,12,11,11,12,13,12,14,13,14,14,14,13,15,15,14,12,13,12,13,12,12,14,15,15,15,16,14,14,16,15,15,16,16,15,16,15,16,16,15,14,15,16,14,14,14,14,14,14,14,14,15,15,15,14,15,16,15,14,15,17,15,15,16,15,15,17,16,16,18,18,16,17,18,19,17,17,18,17,20,18,19,19,17,17,18,18,17,17,18,17,17,17,18,18,19,19,20,20,21,20,22,22,22,22,22,23,22,23,24,24,24,26,24,26,26,26,26,26,26,27,27,26,26,26,27,27,27,26,27,27,27,25,27,29,28,27,28,28,29,28,28,29,28,29,29,29,28,29,29,29,28,28,29,28,28,28,28,28,28,28,29,28,29,28,29,28,28,27,28,26,25,25,22,23,22,20,22,21,20,21,19,19,19,19,19,21,19,19,21,22,22,21,22,22,23,23,23,23,23,24,23,23,24,23,23,25,25,25,24,24,23,23,23,23,23,22,23,24,24,25,25,24,23,23,24,24,21,23,24,22,22,23,20,21,21,20,22,21,21,21,20,20,19,22,21,20,19,20,19,19,20,20,20,20,20,19,20,19,18,17,17,16,18,16,16,17,15,17,16,17,17,17,16,17,18,16,16,16,17,16,16,18,16,17,16,16,16,16,16,16,16,16,15,16,16,16,15,16,15,15,15,15,15,16,15,16,15,14,14,15,14,15,14,13,14,15,15,15,16,14,15,16,15,15,17,15,16,16,15,16,15,15,16,15,15,16,16,15,15,16,16,16,16,16,17,17,17,18,18,19,18,18,18,18,18,20,19,20,19,18,17,19,19,17,18,19,18,17,19,17,18,18,17,18,18,18,17,18,18,17,18,16,18,16,17,17,18,17,16,16,15,14,15,13,12,14,14,11,11,11,10,12,12,11,13,12,12,12,15,14,15,14,14,16,15,14,14,14,14,15,15,16,16,16,15,16,16,17,16,16,18,17,17,18,18,19,18,18,20,19,19,20,20,20,20,19,20,21,19,19,20,20,19,21,18,20,19,17,20,19,19,18,18,19,18,18,16,18,17,18,18,18,18,19,19,19,20,20,19,21,20,19,20,20,21,20,19,20,20,21,20,21,19,20,20,20,20,20,20,19,21,20,18,20,21,20,20,21,21,21,21,21,22,21,21,20,20,21,20,22,21,21,20,20,21,20,20,21,21,19,19,21,21,19,19,20,21,18,19,20,20,18,18,18,20,18,17,17,19,20,21,21,22,22,22,22,24,25,25,24,26,26,27,25,26,26,27,27,27,25,28,27,27,27,28,28,28,27,28,28,28,29,28,28,28,27,27,28,29,27,28,28,27,28,28,27,25,26,28],[29,29,28,29,29,29,29,28,29,28,27,28,27,28,27,28,27,27,28,27,27,28,28,27,27,27,27,27,27,27,27,28,27,28,27,28,27,27,28,27,27,27,26,26,26,25,25,24,25,22,23,23,23,21,20,22,20,19,20,18,17,16,14,14,12,10,11,10,9,9,9,8,8,7,7,7,7,6,6,6,7,5,7,7,6,6,7,7,7,7,6,7,6,5,5,5,4,4,4,4,3,3,4,4,3,3,4,4,3,2,1,0,1,1,2,3,3,3,5,5,3,3,4,5,4,3,5,5,4,5,6,6,6,7,8,8,7,7,7,7,6,6,6,6,6,5,4,4,4,4,4,4,4,3,3,3,3,3,3,5,5,5,5,4,4,4,5,3,4,5,4,4,4,6,4,4,6,7,6,7,6,6,7,8,7,7,8,8,7,7,8,9,8,8,9,9,10,9,9,9,10,9,10,10,10,10,10,9,9,8,8,8,7,7,7,7,6,7,6,6,6,6,6,7,5,6,6,6,6,6,6,7,6,7,7,8,6,7,7,7,6,6,7,6,7,7,8,8,7,7,9,8,7,8,8,8,9,8,9,8,8,8,7,8,8,7,8,8,8,8,9,9,9,9,9,9,9,9,9,9,8,8,7,7,6,7,7,7,7,7,8,7,8,7,7,8,8,8,8,8,9,9,9,9,10,10,10,11,10,11,10,12,12,12,13,13,14,12,12,12,12,12,11,12,10,11,12,11,11,11,11,12,12,13,14,14,15,15,17,18,17,18,20,20,19,20,21,21,22,24,22,24,25,24,25,26,26,26,25,26,25,25,25,25,25,25,26,25,26,26,27,28,28,27,26,27,28,28,28,28,28,28,28,28,28,28,28,28,28,27,28,28,27,28,27,28,28,27,28,29,27,28,28,27,27,26,26,24,23,23,20,20,20,17,19,16,16,17,14,15,14,13,12,14,13,14,14,15,17,16,15,18,17,18,17,18,19,19,18,20,20,19,19,20,20,20,19,19,19,17,17,18,18,18,19,19,20,20,20,19,21,17,20,18,17,18,18,17,17,17,16,15,14,14,14,15,15,12,13,15,13,13,15,15,14,15,15,15,13,14,15,16,15,15,15,14,14,14,12,12,11,10,10,9,9,9,10,9,9,10,10,9,9,10,10,9,9,10,10,8,9,10,9,8,10,10,8,8,10,9,8,9,9,10,9,10,10,11,11,10,10,9,9,8,9,9,7,8,8,9,9,10,9,9,9,10,9,9,9,9,9,8,8,9,8,8,8,8,8,7,9,8,8,8,9,7,7,8,8,7,7,9,9,8,9,10,9,9,10,11,10,10,11,13,13,11,11,13,12,10,12,12,10,10,12,13,11,11,10,12,12,10,10,12,11,10,11,11,10,10,10,10,10,9,9,9,9,9,8,7,7,6,6,7,6,6,6,5,6,5,5,5,6,7,7,8,8,9,9,9,9,9,10,9,9,9,9,9,9,9,8,8,7,8,9,8,8,10,9,8,9,11,9,10,12,11,10,12,13,12,13,13,14,14,13,15,14,13,13,14,14,14,13,13,14,12,12,13,13,12,11,12,11,10,11,10,10,9,10,12,11,11,12,13,13,13,14,15,15,14,14,15,15,14,14,15,15,16,16,15,14,15,14,14,14,15,15,13,15,15,13,12,15,14,13,16,15,15,14,15,16,15,15,15,15,16,16,16,16,16,14,16,16,15,14,15,16,14,14,16,15,15,14,15,14,14,14,13,12,13,13,12,12,12,12,12,14,15,17,18,18,18,19,19,21,22,23,23,24,24,25,24,24,24,26,25,26,24,26,26,26,27,27,26,27,26,27,27,27,28,26,27,27,27,26,26,27,26,27,27,26,27,27,26,24,26,27],[29,29,29,28,28,29,28,28,28,27,27,26,27,27,27,27,27,27,28,27,27,27,27,27,27,27,27,26,27,27,27,27,28,28,27,28,27,27,28,27,28,27,26,27,26,25,24,23,24,22,22,22,22,21,20,22,19,19,19,17,16,15,13,12,11,10,10,8,8,7,7,6,6,6,5,5,5,4,5,5,5,4,5,5,4,5,5,5,5,5,4,5,4,4,3,4,3,3,3,3,2,2,3,3,2,2,3,3,3,3,1,1,0,1,2,1,1,2,2,3,2,2,2,3,3,2,3,3,3,3,4,4,4,4,5,6,5,5,5,5,4,4,4,4,4,4,3,3,3,3,2,3,3,3,2,3,2,2,3,3,4,4,4,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,5,5,5,5,6,5,5,6,6,7,7,7,7,7,8,7,8,8,7,8,7,6,7,6,6,6,6,5,5,5,4,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,6,5,6,6,6,6,5,5,5,6,6,5,5,6,6,6,6,6,6,6,7,7,7,6,6,6,5,5,5,5,4,5,5,5,4,5,5,4,5,5,5,5,5,6,5,5,6,7,6,7,7,7,7,8,7,8,8,9,9,8,9,10,10,10,9,10,10,10,9,9,8,8,9,9,8,8,10,10,10,10,12,13,13,14,16,16,16,16,18,19,17,18,20,21,20,21,22,24,24,24,26,25,26,26,26,24,25,25,25,25,25,25,25,25,26,25,27,27,28,26,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,27,26,27,26,24,23,22,19,20,18,17,17,15,15,15,13,13,12,11,10,10,10,11,10,11,12,13,13,14,14,15,14,16,17,16,15,17,18,16,17,18,17,17,16,16,16,15,15,15,15,16,15,18,17,17,18,17,17,15,17,15,15,15,16,14,14,14,13,14,12,11,12,11,11,9,10,12,10,10,11,12,10,11,12,12,11,11,12,12,12,12,12,11,10,10,10,9,8,7,7,6,6,6,7,6,6,7,7,6,6,7,7,7,6,7,7,6,6,7,7,7,7,7,6,7,8,7,7,7,7,8,8,8,9,9,9,9,8,7,7,6,6,7,5,6,6,6,7,7,6,7,7,8,8,8,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,7,7,6,6,7,6,6,7,7,8,7,8,8,9,7,7,9,9,7,8,9,7,7,8,9,8,8,8,8,9,8,8,8,8,8,8,9,9,9,7,8,9,8,7,7,7,7,6,5,5,5,5,5,5,4,4,4,4,4,3,4,5,5,6,7,7,8,7,8,7,8,8,7,8,7,7,7,7,7,6,6,6,6,7,7,6,7,7,7,7,8,7,7,8,8,7,8,9,8,9,9,10,11,9,10,11,10,10,10,11,10,10,9,10,10,8,9,9,9,8,9,9,8,9,8,8,7,8,8,8,8,9,10,9,9,10,10,10,10,11,11,11,11,11,12,12,11,11,11,11,11,12,11,10,11,12,10,11,12,10,9,10,10,10,12,12,12,12,13,12,12,12,11,12,13,13,14,12,12,10,12,12,11,11,12,12,10,11,12,11,10,11,10,10,10,10,9,9,10,10,8,8,9,9,10,11,12,15,16,17,15,17,16,18,21,21,22,21,23,24,23,22,22,25,24,24,24,25,25,25,26,26,25,26,25,27,27,26,28,26,27,26,26,26,27,27,26,27,26,25,27,27,26,24,26,26],[28,28,28,28,28,28,28,28,28,26,27,27,27,26,27,26,26,27,27,27,26,26,26,26,26,26,26,26,27,26,26,27,27,28,26,27,26,27,27,26,27,27,25,26,26,26,24,23,24,23,23,23,23,22,20,21,19,20,18,19,16,14,12,11,9,8,7,6,6,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,4,3,4,3,3,3,3,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,1,1,0,1,1,1,1,1,2,1,1,1,2,1,1,2,2,2,2,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,2,2,2,3,2,2,2,2,2,1,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,6,5,6,6,6,6,6,6,6,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,4,4,4,4,4,3,3,4,4,3,3,4,4,3,4,4,4,3,4,4,4,4,4,5,4,5,5,5,5,5,5,6,6,6,7,7,6,7,7,7,7,7,8,7,7,7,7,6,7,6,6,7,7,8,9,9,10,13,14,13,15,16,16,16,18,18,18,18,20,20,21,22,22,25,26,22,25,26,26,26,27,24,25,25,26,24,25,26,25,26,26,25,26,27,27,26,26,27,27,27,27,27,28,28,27,28,28,28,27,28,28,27,28,28,28,28,27,27,28,27,27,28,27,27,28,25,26,27,25,24,23,22,21,20,18,17,17,16,15,14,12,11,10,9,8,8,8,8,7,8,9,10,10,10,11,12,12,12,13,12,13,14,15,12,14,15,15,14,15,14,15,14,13,13,12,13,13,14,14,15,15,15,14,14,13,13,12,12,12,11,11,10,10,10,9,9,8,8,7,7,7,8,7,7,7,8,7,8,8,8,8,9,10,10,9,10,10,9,8,8,7,7,6,6,5,5,5,5,5,5,5,5,5,5,5,5,6,6,5,5,5,5,5,5,5,5,5,5,4,5,6,5,5,5,5,7,7,7,8,8,8,7,7,5,5,4,5,5,4,4,4,4,5,4,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,5,6,6,5,5,6,6,6,6,6,5,5,5,5,4,4,5,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,8,8,6,8,8,7,8,8,8,7,7,8,7,8,7,7,7,7,7,7,6,6,6,6,6,5,6,6,6,6,6,7,6,7,7,7,7,7,8,8,8,8,9,10,10,9,9,9,9,9,9,8,8,9,9,8,8,9,8,7,7,7,8,9,10,10,9,9,9,9,10,10,10,9,11,10,9,10,9,9,10,8,9,9,8,8,9,9,8,7,8,8,7,7,8,7,7,7,7,6,6,7,9,10,11,11,13,14,14,14,14,16,16,18,22,20,23,23,23,22,23,23,22,23,23,23,26,22,25,24,27,25,26,25,27,26,26,27,27,25,25,25,26,27,26,26,26,27,23,26,26,24,25,25,23],[28,28,28,29,28,29,28,29,29,27,27,27,27,26,27,27,28,27,27,28,27,27,27,28,27,27,27,27,28,28,26,28,28,28,26,28,27,28,28,27,28,27,27,27,26,26,25,24,25,23,23,22,23,21,22,22,21,22,19,19,17,16,13,12,11,9,8,8,8,7,7,6,6,6,5,5,4,4,4,5,4,4,4,5,4,5,5,4,5,4,4,4,4,3,3,3,3,2,3,3,2,2,3,2,2,2,3,3,3,3,3,2,1,1,0,1,1,2,2,3,2,2,2,3,2,2,3,3,3,3,4,3,4,4,4,5,5,4,4,4,3,4,3,3,4,3,3,3,3,2,2,3,3,2,2,2,2,2,2,2,3,3,3,2,3,3,2,2,3,3,2,2,3,3,3,3,3,3,3,4,3,4,4,4,4,5,4,4,4,5,5,5,5,5,6,6,6,7,7,7,7,7,8,8,6,8,7,6,6,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,3,4,4,3,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,5,5,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,4,5,5,4,4,5,5,4,5,5,5,5,6,6,6,5,6,6,6,6,6,7,7,8,7,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,8,8,8,9,9,10,10,12,13,14,13,17,17,17,17,18,19,18,18,20,21,20,23,22,23,24,23,25,25,26,25,26,25,25,25,25,24,25,24,25,26,26,26,27,27,28,27,28,28,28,28,29,28,28,28,28,28,28,28,29,28,28,28,28,28,28,28,28,27,28,28,27,28,28,27,27,26,26,25,25,24,22,22,20,20,20,18,18,17,15,15,13,12,11,11,10,11,10,10,10,10,11,11,11,12,12,12,12,12,14,13,13,14,15,13,14,15,15,14,14,15,14,13,13,13,13,14,13,15,14,15,15,16,15,14,14,13,12,13,12,12,12,11,11,11,10,10,10,10,10,9,9,10,9,9,9,9,9,9,10,9,9,10,10,10,10,11,10,10,9,9,8,8,8,7,6,6,6,7,7,7,6,7,6,6,7,7,7,6,7,7,7,6,7,7,6,6,7,6,6,6,7,6,6,7,6,8,7,8,8,9,9,8,8,7,6,6,6,6,6,5,6,5,6,6,6,6,6,7,7,6,6,6,6,5,5,6,6,5,6,6,5,5,6,6,5,6,6,6,5,6,6,6,6,6,6,6,6,7,7,7,7,8,7,7,8,8,8,8,8,8,8,7,7,8,7,7,8,8,7,8,7,8,8,7,7,8,8,7,8,8,8,8,8,8,8,7,7,7,7,6,6,5,5,4,4,4,4,4,3,4,4,3,3,4,4,4,4,5,6,7,7,7,6,7,7,7,7,6,7,7,7,7,7,6,6,6,6,7,6,7,7,7,7,8,7,7,8,8,8,8,8,8,9,9,10,10,9,9,10,9,9,9,9,9,9,9,9,9,8,9,8,9,8,9,9,8,8,8,7,7,7,8,8,8,9,9,9,9,9,9,10,9,9,10,10,10,10,11,11,10,10,10,10,11,10,9,10,10,10,10,9,10,9,9,9,9,9,10,10,11,10,10,11,10,11,11,11,11,12,12,12,11,11,11,11,10,10,11,10,10,10,10,10,8,10,9,9,9,8,9,8,8,8,8,8,8,9,10,11,11,14,14,14,14,15,16,17,19,20,19,22,23,23,21,22,21,23,23,22,22,25,24,24,24,25,23,25,24,26,25,25,26,26,25,26,25,25,26,26,25,26,26,24,25,25,25,24,25,25],[27,28,27,27,27,28,27,27,28,26,25,25,25,25,25,25,26,26,26,26,26,27,26,26,27,26,26,26,26,26,27,26,26,27,26,26,26,26,27,25,27,25,25,25,25,23,23,24,24,21,21,22,21,20,20,21,17,19,19,17,15,15,12,12,10,9,9,8,8,7,7,6,6,6,6,5,4,4,4,5,5,4,4,5,4,4,5,5,5,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,2,1,1,1,0,1,1,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,2,3,3,2,2,2,2,2,2,3,3,3,3,2,2,3,3,2,3,3,3,2,3,3,3,3,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,6,6,5,6,6,6,7,6,7,7,7,7,7,7,7,7,6,6,5,5,5,5,4,5,4,4,4,4,4,4,4,5,5,4,4,5,4,4,4,5,4,5,4,5,4,4,4,4,4,4,4,4,4,5,5,5,4,6,6,6,5,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,6,6,5,5,5,4,5,5,5,4,5,6,5,5,6,6,5,6,6,6,6,6,7,7,7,7,7,7,9,8,8,8,9,9,9,9,9,10,9,9,9,9,9,9,8,8,8,8,8,8,8,8,9,9,11,12,12,14,13,15,17,15,15,17,18,16,17,19,19,18,22,20,21,23,23,24,24,25,23,25,24,23,25,24,23,24,24,25,24,25,24,26,26,27,25,26,27,27,26,27,27,27,27,27,27,27,27,27,26,27,26,27,26,27,27,26,26,26,26,27,27,26,27,25,25,25,24,25,22,20,21,18,18,17,16,16,14,13,14,12,11,11,10,9,11,10,11,11,11,12,12,12,13,13,14,12,14,15,14,14,16,15,15,16,17,17,15,15,16,15,13,13,14,13,14,15,16,16,16,16,16,15,15,15,14,13,14,14,12,13,13,11,11,11,10,11,10,11,10,10,11,9,10,11,11,9,10,11,11,10,11,11,11,11,12,11,10,9,9,9,8,8,8,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,7,7,7,6,7,7,6,6,7,7,8,7,8,8,9,9,8,8,7,6,6,5,6,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,6,5,5,6,5,5,6,5,5,5,6,6,6,6,6,6,6,7,6,7,7,7,7,8,7,8,8,8,8,9,9,8,9,9,8,8,9,9,8,8,9,9,8,8,8,9,8,7,8,9,8,7,8,8,7,7,7,7,7,7,7,7,6,6,5,5,5,4,4,4,4,4,3,3,3,3,3,3,4,4,5,6,6,6,7,7,6,6,7,7,7,6,6,7,6,6,6,6,6,6,6,6,6,7,7,6,7,8,7,8,8,8,9,9,9,10,10,10,10,10,9,10,11,10,11,11,11,10,10,10,11,9,9,10,10,8,8,9,8,8,8,7,7,7,7,8,8,8,9,9,10,10,10,10,11,10,10,11,10,11,10,12,11,12,12,11,10,11,11,10,10,11,10,9,10,11,9,9,10,10,10,12,11,11,11,12,12,11,11,11,11,12,12,13,12,12,11,12,12,11,11,12,12,11,11,11,11,10,11,10,10,10,10,10,9,9,9,8,8,8,9,9,11,11,14,15,16,14,16,16,20,20,21,20,22,22,23,22,22,21,23,23,23,21,24,23,23,24,25,24,24,23,25,25,24,26,24,25,24,24,24,25,24,25,25,25,23,25,25,24,22,24,23],[28,28,28,28,28,29,28,28,28,27,27,27,27,27,27,27,27,27,27,27,27,27,26,26,27,27,26,27,27,26,26,27,27,28,27,28,27,27,27,26,27,26,26,26,26,25,24,23,24,23,23,22,23,21,20,21,19,20,18,18,16,14,13,12,10,9,9,8,8,7,7,6,6,6,6,5,5,5,4,5,5,4,5,5,5,4,5,5,5,5,4,4,4,4,3,4,3,3,3,3,2,3,3,3,2,3,4,3,2,3,3,2,2,1,1,1,0,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,6,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,2,3,3,3,3,3,2,3,3,3,4,3,3,3,3,3,2,3,3,2,2,3,2,2,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,6,6,5,6,7,7,7,7,6,7,7,7,7,8,7,8,7,6,6,6,6,5,6,5,5,5,5,4,4,4,4,4,4,4,4,4,4,5,5,4,4,5,5,5,5,5,4,4,4,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,5,5,5,5,5,6,6,6,6,6,6,6,7,6,6,6,6,7,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,6,6,6,6,6,6,6,7,7,6,7,7,7,7,8,8,7,8,8,8,8,9,9,8,9,8,8,7,8,8,8,9,8,9,9,10,10,12,13,14,14,15,17,17,17,18,19,18,19,20,20,21,22,21,23,24,24,25,26,25,26,26,25,25,25,25,24,25,25,26,24,26,25,26,27,27,26,26,28,27,27,27,27,28,28,28,28,27,27,28,28,28,27,28,28,28,28,28,27,28,27,28,28,28,28,27,25,26,25,25,24,22,23,20,20,19,17,17,14,14,14,12,12,11,10,9,10,9,10,10,10,12,11,11,12,12,13,12,13,14,14,14,15,15,14,15,16,16,15,16,15,15,14,13,14,13,14,14,15,15,15,15,15,14,14,15,13,13,13,13,12,12,12,11,11,10,10,10,9,9,8,9,10,8,8,9,9,8,9,10,9,9,10,10,11,10,11,11,9,9,9,8,8,7,7,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,6,6,6,6,6,6,7,6,6,6,7,7,7,7,7,7,8,7,8,8,9,9,8,8,7,6,6,6,6,6,6,6,6,6,7,6,6,7,7,7,7,6,6,6,6,6,6,6,6,6,5,7,6,5,6,6,5,6,6,6,5,6,6,5,6,6,6,6,7,7,7,7,7,8,7,7,8,7,7,8,8,7,7,7,7,7,7,8,8,7,7,8,8,8,7,8,8,7,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,5,5,4,5,5,4,3,4,4,3,3,4,4,5,5,6,6,7,7,7,7,7,7,7,7,7,7,7,6,6,6,7,6,6,6,7,6,7,7,6,7,7,7,7,7,7,8,8,8,9,9,9,9,9,9,9,9,9,10,10,10,9,9,9,9,9,8,9,9,8,8,8,8,8,7,8,7,7,7,8,8,8,8,8,8,9,9,9,10,9,10,11,10,10,10,11,12,11,12,11,11,11,10,10,10,10,10,10,10,10,9,9,10,10,9,11,11,11,10,11,11,11,11,11,11,12,12,13,11,11,10,11,11,10,10,11,10,10,10,10,9,9,9,9,9,9,9,8,8,8,8,8,8,8,9,10,10,11,13,14,15,14,15,16,18,20,22,20,22,22,22,22,22,22,22,23,23,23,24,23,25,25,26,25,25,25,26,26,25,27,25,26,26,26,26,26,25,26,25,26,24,26,26,24,24,25,24],[28,28,27,27,28,28,28,27,28,27,26,26,26,27,26,26,25,27,26,26,27,27,27,26,27,26,26,27,26,26,26,26,26,27,26,27,26,26,27,25,27,25,25,26,25,25,24,23,23,22,22,23,22,21,20,20,19,20,18,18,17,16,13,12,11,10,9,9,8,7,8,7,7,7,6,7,6,5,5,6,6,5,6,6,5,5,6,6,6,5,5,6,5,5,4,5,4,4,4,4,4,3,4,3,3,3,4,3,3,4,3,2,2,2,2,1,1,0,1,2,1,2,1,2,2,2,3,3,3,3,4,4,4,5,5,6,6,5,5,5,4,5,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,4,5,5,5,4,4,4,4,3,3,3,3,3,3,3,2,3,3,2,3,3,3,4,4,4,4,5,5,5,5,5,5,6,6,6,6,7,6,7,7,7,7,8,8,8,8,8,8,8,7,6,6,6,6,6,5,5,5,5,4,5,5,4,4,5,4,4,4,5,4,4,4,5,5,5,5,5,4,3,4,3,3,4,4,3,4,4,4,4,5,5,4,5,5,5,5,5,6,6,6,6,5,5,6,6,5,6,6,6,6,7,7,6,7,7,7,7,7,7,7,6,6,7,6,6,5,5,6,6,5,6,6,5,5,6,6,5,5,6,6,6,7,7,6,7,7,7,7,8,7,7,7,8,8,8,8,9,9,9,9,9,9,9,10,9,8,8,9,9,9,9,9,10,10,11,12,13,15,14,16,17,17,17,18,19,18,17,19,20,20,21,22,23,23,23,24,24,24,25,26,24,24,25,25,24,25,23,25,26,25,24,26,26,27,25,27,27,28,26,27,27,27,28,27,27,28,28,28,28,28,27,28,28,27,27,27,27,27,27,28,28,27,27,27,26,26,26,26,24,22,22,18,19,18,16,17,15,15,15,12,12,10,10,10,10,9,10,10,11,12,11,12,13,12,13,12,13,15,14,14,15,16,15,16,17,18,17,17,16,16,14,15,13,13,14,14,14,17,17,17,16,16,14,16,13,13,14,13,12,12,13,11,11,10,10,10,10,9,9,9,11,8,9,10,10,9,9,10,10,9,10,11,11,11,11,10,9,9,9,8,8,7,7,7,6,6,6,6,6,6,7,6,6,7,7,7,7,7,7,7,7,7,8,7,7,7,7,7,7,8,8,7,8,8,9,8,9,9,10,10,9,8,7,7,7,7,7,6,6,7,7,7,7,7,8,7,7,8,7,7,8,7,7,7,7,7,7,7,8,7,6,7,7,7,7,7,7,6,7,7,6,6,7,7,6,7,8,7,7,7,8,8,8,7,8,9,7,8,9,8,8,8,8,8,8,9,9,8,9,8,9,9,8,9,9,9,9,9,9,9,9,8,8,8,8,8,8,8,7,7,7,7,6,6,6,6,5,5,5,6,4,4,5,5,6,6,7,7,8,8,8,7,8,8,8,8,9,8,8,7,7,7,7,6,7,7,7,7,8,7,7,8,9,8,8,9,8,8,9,9,9,10,9,10,10,9,10,11,10,11,11,10,10,10,10,10,10,9,10,10,10,9,9,9,9,8,9,8,8,8,9,9,9,9,10,9,10,10,10,10,10,11,11,11,11,11,12,12,12,11,12,12,12,12,11,11,11,11,10,11,11,10,10,10,9,10,11,11,12,12,12,12,11,12,11,12,13,12,14,12,12,11,12,12,11,11,12,11,10,11,11,10,10,10,10,9,9,9,9,8,9,8,8,8,8,9,9,10,12,14,14,16,14,15,16,19,20,23,20,23,22,23,22,24,22,23,23,23,23,25,24,26,26,26,26,26,25,26,27,26,26,26,26,26,26,26,26,27,26,26,26,25,26,26,25,23,25,24],[30,29,29,29,29,30,29,29,29,29,28,28,28,27,28,28,28,28,28,28,28,28,29,28,28,28,28,28,28,28,28,29,29,29,28,29,28,28,28,28,28,28,27,28,27,27,25,24,26,24,24,24,25,24,22,23,21,21,19,19,17,16,14,12,11,9,8,8,8,7,7,6,6,6,5,5,5,4,4,5,5,4,5,5,4,4,5,5,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,2,2,2,1,1,0,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,4,4,4,4,4,4,3,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,3,2,2,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,6,6,6,7,6,7,7,7,7,8,8,8,7,6,6,6,5,5,5,5,4,5,5,4,4,5,4,3,4,4,4,3,4,4,4,3,4,4,4,5,5,4,3,3,4,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,4,5,6,6,5,5,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,6,6,5,5,6,5,5,4,5,5,5,5,5,6,5,5,5,6,5,5,6,5,6,6,6,5,6,7,8,7,7,8,8,7,8,9,9,8,9,9,9,10,9,9,9,10,8,8,9,9,9,9,9,10,10,11,10,11,13,13,14,17,17,18,18,19,20,19,19,21,22,22,23,23,26,26,25,26,28,27,27,28,25,27,26,26,25,26,26,26,27,26,26,28,28,29,27,28,28,28,28,28,28,27,28,27,28,28,28,29,28,28,28,29,28,28,28,28,28,28,28,27,28,28,28,28,27,27,27,26,26,24,24,20,21,20,18,19,17,15,16,13,12,11,10,10,11,10,9,11,9,11,11,11,11,11,12,11,12,13,13,12,13,15,14,15,17,17,15,16,15,15,13,13,12,13,13,14,13,14,15,15,15,15,13,13,12,12,11,11,12,11,10,10,11,11,9,10,10,9,9,9,9,8,9,9,9,9,9,9,9,9,9,10,10,10,10,10,9,9,9,8,8,7,7,6,6,5,6,6,5,6,6,6,6,6,6,6,6,7,6,6,6,7,6,6,6,6,6,6,6,7,6,6,6,7,7,7,8,8,9,9,8,7,6,6,6,6,6,5,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,6,6,7,7,7,6,7,7,7,7,8,7,7,8,7,7,7,7,7,7,7,7,8,7,7,7,7,8,7,8,7,7,7,7,8,8,8,8,8,7,7,7,7,7,7,6,6,6,5,5,5,5,5,4,5,5,4,4,5,5,6,6,6,7,7,8,8,7,7,8,8,8,7,7,8,7,7,6,7,6,6,6,7,6,7,7,7,7,7,7,7,7,7,8,8,8,8,9,8,9,8,8,9,9,8,9,9,9,9,9,8,9,9,8,8,8,9,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,8,9,9,9,9,9,10,9,10,9,11,11,11,10,11,10,10,10,10,10,10,9,9,10,10,9,9,10,10,9,11,10,10,10,10,11,10,10,10,11,11,12,12,11,11,10,11,10,10,10,10,10,8,9,9,9,8,9,8,9,8,8,9,8,8,8,8,7,7,9,10,11,11,13,14,14,14,15,16,17,19,21,20,24,25,23,23,24,23,25,25,25,25,26,25,27,27,28,26,27,27,27,27,27,29,26,27,28,27,26,27,27,28,27,28,27,28,27,26,26,28,27],[28,29,27,28,27,28,28,28,28,27,26,27,26,26,26,26,26,26,27,26,26,26,26,25,27,26,25,26,26,25,26,27,26,27,26,27,25,26,26,25,26,26,25,25,26,25,24,23,23,22,22,21,21,22,19,20,19,19,18,18,17,15,14,12,10,9,8,8,7,7,6,6,5,5,5,5,4,4,4,5,5,4,5,5,4,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,2,2,2,2,2,1,1,0,1,1,1,1,1,2,1,2,2,2,2,2,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,3,3,3,3,3,3,3,3,2,3,2,3,2,2,2,2,2,2,2,3,3,3,3,4,4,3,4,4,4,5,5,5,5,6,6,6,6,7,6,7,7,7,7,7,7,6,6,5,5,5,5,5,4,5,4,4,3,4,4,3,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,3,4,3,3,3,4,3,3,4,4,4,4,4,4,4,5,5,5,4,5,6,6,5,5,4,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,4,5,5,5,4,5,5,4,4,5,5,4,5,5,5,5,5,5,5,6,6,6,6,7,6,6,7,7,7,8,7,8,8,8,8,8,8,8,8,8,7,7,8,8,7,8,8,9,9,10,11,13,14,14,16,17,16,16,18,18,17,18,19,20,21,21,20,22,23,23,23,24,23,25,25,23,24,24,25,24,24,23,25,25,24,23,25,26,26,25,26,27,27,26,27,26,27,27,27,27,27,27,27,27,27,27,27,27,26,27,26,27,27,27,27,28,27,27,26,26,27,26,25,25,23,23,20,19,18,16,17,14,14,14,12,11,10,10,9,10,9,10,10,9,10,10,11,11,11,12,12,12,13,12,13,14,14,14,15,16,16,15,15,14,14,12,12,12,11,12,12,14,14,15,15,15,15,14,14,12,12,12,12,11,11,11,9,9,9,9,9,9,8,8,9,9,8,8,9,9,8,8,9,9,8,9,10,9,10,10,9,9,9,9,7,8,7,6,6,5,5,6,6,6,6,6,6,6,6,7,6,6,7,6,6,7,6,7,6,7,6,7,6,7,7,7,7,7,7,8,7,8,8,9,9,8,7,6,6,6,6,6,5,6,6,6,6,6,7,7,7,7,7,7,6,7,7,6,6,6,6,6,6,7,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,6,7,7,6,6,7,7,7,7,7,8,8,7,7,8,7,8,7,7,7,7,8,8,7,8,8,8,8,8,8,8,8,8,8,9,8,8,8,8,7,8,7,7,7,6,6,6,5,5,5,5,4,5,4,4,5,4,4,4,5,5,6,6,7,7,8,7,7,7,8,7,7,7,7,7,6,6,6,6,5,6,6,6,6,7,7,6,7,7,7,7,8,7,7,8,8,8,9,8,9,9,8,9,9,9,9,10,9,10,9,9,9,10,9,9,9,9,8,9,8,8,7,7,7,7,7,8,8,8,8,9,8,9,9,9,9,9,9,10,10,10,10,11,11,11,10,11,11,10,10,10,10,10,9,9,10,10,8,9,9,9,9,10,10,11,9,10,11,10,10,10,11,10,11,12,10,11,10,11,10,10,10,10,10,9,9,9,9,9,9,9,8,8,8,8,8,7,7,7,8,7,8,9,10,10,12,13,14,13,13,14,16,17,19,18,22,22,21,20,22,20,22,23,23,23,24,23,23,26,25,24,25,24,25,25,25,26,24,25,26,25,23,26,25,26,25,25,25,25,26,25,24,25,26],[28,28,27,28,27,28,27,26,29,26,25,26,25,26,25,26,25,26,26,25,26,26,26,25,27,26,25,27,26,26,26,26,26,27,26,26,26,26,27,26,27,26,25,25,25,25,24,23,24,22,22,20,21,20,19,20,18,18,18,17,15,14,12,11,9,8,7,6,6,5,5,5,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,4,4,4,5,5,5,5,5,5,5,6,6,5,6,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,5,5,4,4,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,4,4,4,4,4,4,4,3,3,3,4,3,3,3,4,3,3,4,4,3,4,4,4,4,4,5,5,5,5,5,5,6,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,6,6,6,6,6,6,6,7,7,8,9,10,12,13,12,14,15,15,15,16,16,16,17,18,18,20,21,18,21,23,22,23,25,24,25,24,25,23,24,24,24,23,24,24,24,24,24,25,26,26,25,25,27,26,27,26,27,27,28,27,27,26,27,27,27,27,27,28,28,27,28,27,27,27,27,27,28,27,27,27,26,26,26,26,25,22,22,21,19,19,16,16,14,13,13,11,10,9,9,8,8,8,8,8,8,8,9,9,9,10,11,10,11,12,11,12,14,13,12,14,14,15,14,13,13,13,11,11,11,11,11,12,13,13,14,14,14,13,12,13,12,11,11,11,10,10,10,9,9,8,8,8,7,7,7,7,8,7,7,7,8,6,7,8,8,7,8,8,8,8,8,8,8,7,7,6,6,5,5,5,5,4,4,4,5,4,5,5,4,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,5,5,5,5,6,6,6,6,7,7,6,6,5,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,5,5,5,6,6,5,5,6,6,5,6,6,5,5,6,6,5,6,5,6,7,5,6,6,6,5,6,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,4,4,5,5,5,6,6,6,5,5,6,6,6,6,5,6,5,5,5,5,4,4,5,5,4,5,5,5,5,6,5,5,6,6,6,6,6,7,7,7,7,7,7,7,8,7,7,8,8,7,8,7,8,8,7,7,8,7,6,7,7,5,6,6,6,6,6,6,6,6,6,7,7,7,7,8,8,7,8,8,8,8,8,10,10,9,9,10,9,9,10,9,8,9,9,8,9,9,8,7,8,7,8,9,9,9,8,9,9,9,9,9,9,9,10,10,9,9,8,9,9,8,8,9,8,7,7,8,7,7,8,7,6,6,7,6,6,6,6,5,6,6,7,7,8,9,11,11,13,11,12,13,15,15,18,17,20,19,18,20,21,19,19,20,21,19,24,22,22,23,24,23,24,23,24,24,24,26,23,24,24,24,24,24,24,23,23,24,23,25,24,23,22,23,24],[29,29,29,29,29,29,29,28,29,28,27,27,27,26,27,27,27,27,27,27,26,27,26,26,27,27,26,26,27,26,26,28,27,28,27,28,27,28,28,27,27,28,27,27,26,26,25,23,25,23,23,22,23,22,20,21,21,19,18,18,16,14,12,10,9,8,7,6,6,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,1,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,2,2,2,2,2,2,2,2,1,2,2,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,5,4,5,5,5,5,5,5,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,3,3,3,2,2,3,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,4,3,3,3,3,3,2,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,7,7,8,8,9,10,11,12,13,13,14,15,16,18,17,17,19,19,21,22,20,23,25,23,24,26,25,26,26,24,25,25,24,24,25,24,26,25,26,26,25,27,27,26,27,28,27,27,28,27,27,28,28,28,28,28,28,28,28,28,28,29,28,28,28,28,28,28,27,29,28,27,29,26,27,27,25,26,24,22,22,21,19,17,17,16,14,13,11,10,9,7,7,7,7,7,7,7,8,8,8,8,8,9,9,10,11,10,10,11,12,11,12,14,14,12,13,12,12,11,11,10,9,10,11,11,12,13,13,12,12,11,11,10,10,9,9,9,9,8,8,8,7,7,7,6,6,5,6,6,6,5,6,7,6,6,7,6,6,7,7,7,7,8,8,7,6,6,5,5,5,4,3,3,3,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,5,5,5,6,6,7,7,6,6,4,4,4,4,4,3,4,4,4,4,4,4,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,3,3,4,4,3,4,4,3,3,4,4,3,3,4,4,3,3,4,4,4,4,5,4,4,5,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,6,5,5,5,5,5,5,5,4,4,4,4,3,3,3,3,3,2,3,3,3,3,3,3,4,4,5,5,5,6,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,5,4,4,4,5,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,8,7,8,8,7,8,7,6,7,8,7,6,6,6,7,7,8,8,7,8,8,7,8,8,9,8,9,9,8,8,7,8,8,7,7,7,7,6,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,6,7,9,9,11,12,12,12,13,14,14,17,19,19,21,22,22,20,22,21,23,24,22,23,24,22,25,24,27,25,26,25,27,26,26,27,26,26,26,24,25,26,25,25,25,26,25,26,26,24,24,25,25],[29,29,29,29,29,29,29,28,28,28,27,27,27,27,28,27,27,27,27,27,27,27,27,27,27,27,27,27,28,26,26,28,27,28,27,28,26,28,27,27,28,27,25,27,26,26,25,24,24,23,23,23,23,22,20,21,19,19,18,17,15,14,12,10,9,7,6,6,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,1,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,6,5,5,4,4,4,3,3,3,3,3,3,3,2,3,2,2,2,3,2,2,2,3,2,2,3,3,3,3,4,3,3,3,3,2,2,3,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,4,3,3,4,4,3,3,4,3,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,7,7,8,9,10,11,12,13,14,15,14,16,18,16,17,19,19,20,21,20,22,24,23,25,25,25,25,26,24,24,25,24,22,25,23,24,25,25,24,26,25,26,25,26,26,27,27,27,27,27,27,27,27,27,27,28,28,28,27,28,28,28,27,27,27,27,28,27,28,27,27,28,26,27,26,25,24,23,24,19,20,19,16,17,15,13,14,10,10,8,7,7,7,7,7,7,7,7,8,8,8,8,9,8,9,9,9,9,10,10,10,10,12,11,11,12,10,11,10,9,9,9,10,10,10,11,12,10,11,11,10,9,9,9,9,9,9,8,8,7,7,7,6,7,6,6,6,6,6,6,6,6,7,6,6,6,6,6,7,7,7,7,8,8,7,7,7,6,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,4,4,5,5,4,4,5,5,5,5,5,6,5,6,7,7,7,6,6,5,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,6,5,5,5,6,5,5,6,5,6,5,5,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,6,6,5,5,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,6,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,6,7,7,7,7,7,8,8,8,8,8,8,7,8,7,7,8,7,6,7,7,6,6,6,6,6,7,7,8,7,7,8,7,8,8,8,8,8,9,7,8,7,8,8,7,7,7,7,6,7,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,6,7,9,8,10,11,11,11,12,13,14,16,17,19,20,21,19,18,21,20,21,22,22,22,22,23,24,24,25,24,25,25,24,25,24,26,24,25,25,24,23,25,25,26,24,24,24,24,25,24,22,25,25],[28,27,27,27,27,28,27,26,27,26,25,24,24,25,24,25,25,25,25,25,25,26,25,24,26,24,23,25,24,23,25,25,25,25,25,25,24,25,25,24,25,24,23,25,24,24,23,21,22,20,20,19,19,20,18,17,18,17,16,16,14,13,12,10,9,8,7,7,6,5,5,5,4,4,4,4,3,3,3,4,3,3,4,4,3,3,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,6,5,5,4,4,4,3,3,3,2,3,3,2,2,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,4,3,3,3,3,2,2,2,3,2,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,4,4,4,4,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,5,4,5,5,5,5,5,6,6,6,6,6,7,7,6,7,7,7,6,6,6,6,6,6,6,6,7,7,8,9,10,11,12,12,13,15,15,14,16,15,15,16,16,17,18,18,17,20,20,20,21,22,23,22,22,22,21,23,23,22,22,22,23,23,22,22,26,25,25,24,24,26,25,26,25,25,25,25,25,26,26,26,27,26,27,27,26,25,26,25,27,25,27,26,26,26,26,26,26,25,26,25,24,23,22,22,20,18,17,16,15,13,12,12,10,9,8,8,7,7,7,8,7,8,8,8,9,9,9,9,10,10,11,10,11,12,11,11,12,13,13,12,12,11,11,10,10,9,9,10,10,11,12,13,13,13,12,11,12,10,10,10,10,9,9,9,8,8,8,7,7,7,7,6,7,7,6,6,7,7,6,6,7,7,6,7,8,7,7,7,7,7,7,7,6,5,5,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,7,6,6,5,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,5,6,5,5,5,6,6,5,6,6,6,6,6,6,5,5,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,4,5,4,4,4,4,4,3,3,3,3,3,3,3,3,4,4,4,5,5,5,6,6,5,6,6,6,6,6,6,6,5,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,6,7,7,7,7,7,8,7,7,7,7,7,7,7,7,7,6,7,7,6,6,6,5,5,6,6,6,6,7,7,6,7,7,7,7,7,8,7,8,8,8,9,9,9,8,9,9,8,8,8,8,8,8,8,8,8,7,7,7,7,7,8,8,8,8,8,8,8,9,8,9,8,9,9,8,8,8,8,8,7,7,8,7,7,7,7,7,6,7,6,6,6,6,6,6,6,6,5,6,6,7,7,8,9,10,11,12,10,11,12,14,15,17,16,20,19,17,18,19,18,18,21,20,20,22,20,23,22,24,23,24,22,24,24,23,25,23,24,24,24,23,24,24,24,24,23,23,23,24,22,22,24,24],[28,28,28,29,28,29,28,27,28,27,26,27,26,26,26,26,26,26,27,26,26,27,26,26,26,26,25,26,26,26,25,27,27,28,26,27,26,27,27,27,27,27,26,26,26,26,25,23,24,23,22,22,23,22,19,21,19,18,17,18,15,14,12,10,9,7,6,6,6,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,1,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,3,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,4,4,4,5,5,5,5,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,3,3,3,2,2,3,3,2,3,3,3,2,3,3,3,3,3,3,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,5,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,7,6,6,6,5,6,6,6,6,6,6,7,7,8,9,11,12,12,13,14,16,14,16,17,17,16,17,18,20,21,19,23,25,23,24,26,25,25,26,24,24,25,25,23,24,24,26,26,26,26,26,27,28,26,26,28,28,28,28,28,28,29,29,28,28,28,28,28,28,28,28,29,28,29,28,27,28,28,28,29,28,28,28,26,27,27,25,25,24,22,21,20,19,18,17,14,13,13,11,10,9,8,8,7,7,7,7,8,8,8,8,8,9,10,9,10,12,10,10,12,12,12,12,13,14,13,13,13,12,11,11,10,10,11,11,12,12,13,13,12,12,11,12,11,10,10,11,10,9,9,8,8,7,7,7,6,6,6,6,6,6,6,6,7,6,6,7,7,7,7,7,7,8,8,8,8,7,7,6,6,5,5,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,5,5,5,6,6,7,7,6,5,4,4,4,4,4,3,4,4,4,4,4,4,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,6,6,5,5,5,5,5,5,6,5,6,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,4,4,4,5,5,5,5,6,6,5,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,6,6,6,6,6,6,6,6,7,6,6,7,7,6,7,6,6,7,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,6,6,6,6,6,7,7,6,7,7,7,7,8,9,9,8,8,8,8,8,9,8,7,8,7,7,7,8,7,6,7,6,7,7,8,8,8,8,8,8,8,8,9,8,9,9,8,8,8,8,8,7,7,8,7,6,6,7,6,6,6,6,5,6,6,6,5,5,5,5,5,5,6,7,8,8,10,11,12,11,12,13,15,17,18,18,21,22,20,20,20,21,21,23,22,23,24,22,25,24,26,25,25,24,26,26,24,27,25,25,26,25,25,26,25,25,25,26,25,26,25,23,23,25,24],[29,29,29,29,29,29,29,28,29,28,28,27,27,27,27,27,27,27,27,27,26,27,27,27,27,27,27,27,28,26,26,28,28,28,27,28,27,28,28,27,28,27,26,27,26,26,25,24,25,24,22,23,23,22,21,21,20,19,19,18,16,15,12,10,9,8,7,6,6,5,5,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,3,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,4,4,4,4,4,4,5,4,5,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,3,3,3,3,2,3,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,4,5,5,5,5,6,6,5,6,6,6,6,6,6,7,7,6,6,6,6,6,6,6,7,7,7,8,8,9,11,12,12,13,14,15,14,17,18,16,17,19,19,20,21,21,23,23,23,24,25,26,26,26,24,25,25,24,25,25,25,26,25,25,25,26,27,28,26,27,28,27,27,27,27,28,28,28,28,28,28,28,28,28,28,29,28,28,28,28,27,28,29,27,28,28,27,28,26,26,27,25,25,23,22,20,20,18,17,17,15,13,12,11,10,9,8,8,8,8,7,7,8,7,8,9,8,8,9,9,9,10,10,10,11,11,11,11,13,12,12,12,11,11,10,10,10,10,10,10,11,11,13,12,12,11,11,10,10,9,9,9,9,8,8,8,8,8,7,8,7,6,6,6,7,6,6,6,7,6,6,7,7,6,7,7,7,8,8,8,8,7,6,6,5,4,4,3,4,3,4,4,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,5,4,4,5,5,6,5,6,6,7,7,6,5,4,4,4,4,4,3,4,4,4,4,4,4,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,5,5,4,5,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,5,5,6,5,5,6,6,5,6,6,5,6,6,6,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,6,6,5,5,6,6,6,6,6,5,5,5,5,4,4,5,5,4,4,5,5,5,5,5,5,5,5,6,5,6,6,6,6,6,7,6,6,7,7,6,6,7,7,6,7,6,7,7,6,6,7,7,6,6,6,6,6,6,6,5,6,6,6,6,6,6,6,6,7,7,7,6,7,8,7,7,8,8,8,8,8,8,8,8,8,8,7,8,7,7,7,8,7,7,7,7,7,8,8,8,7,8,8,8,8,8,8,8,9,9,8,8,7,8,8,7,7,7,7,6,7,7,6,6,6,6,6,6,6,6,5,6,5,5,5,5,6,7,8,8,10,11,11,11,12,13,14,17,17,18,21,21,20,19,21,21,20,24,21,23,24,23,25,25,25,25,26,25,26,26,26,27,25,26,26,24,25,27,26,26,26,25,25,26,26,24,23,26,24],[29,29,28,28,28,28,29,28,28,27,27,26,27,25,25,26,26,27,27,27,27,26,27,26,26,26,26,26,26,25,25,27,26,27,25,26,25,26,26,25,26,25,25,25,24,24,23,22,23,21,21,19,21,19,18,19,18,17,17,17,14,13,11,10,9,7,6,6,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,2,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,3,3,3,2,2,3,3,2,2,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,7,7,8,9,11,12,12,13,14,14,13,15,15,15,16,17,17,18,19,18,21,21,21,23,23,23,23,24,22,21,23,23,22,22,23,22,23,23,23,25,25,24,23,25,26,26,26,26,26,26,26,26,26,26,27,27,26,26,26,27,27,27,26,26,26,27,26,26,27,27,27,27,26,26,26,24,24,23,23,19,19,17,15,16,14,12,12,10,9,8,7,6,6,6,7,6,7,7,7,8,7,8,8,8,9,9,9,9,10,10,10,10,12,12,12,11,10,10,9,9,9,9,9,10,10,10,12,12,11,11,10,10,9,9,9,9,9,8,8,7,7,7,6,6,6,6,5,6,6,5,6,6,6,6,6,6,6,6,6,7,7,7,8,7,7,6,7,5,5,5,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,6,6,7,7,7,6,5,4,4,4,4,4,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,4,4,4,4,3,4,4,4,4,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,5,5,5,5,5,5,5,5,4,4,4,4,3,4,3,3,3,2,3,3,3,3,3,4,4,4,5,5,5,6,6,5,5,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,5,4,4,5,5,4,5,5,5,5,5,5,6,6,6,6,6,5,6,7,6,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,7,7,7,7,7,8,8,7,7,8,8,7,8,7,7,7,7,7,6,7,6,6,6,6,7,7,7,7,7,7,7,7,8,7,8,7,8,8,7,8,7,7,7,7,6,7,6,6,6,6,6,6,6,5,6,5,5,6,5,5,5,5,5,5,6,7,8,8,10,11,11,10,12,13,14,15,16,17,20,20,19,18,19,19,19,21,21,21,23,21,23,24,24,22,26,23,25,25,25,25,24,25,25,24,23,25,25,25,24,24,24,24,25,24,23,24,23],[28,28,28,28,27,28,27,27,28,26,25,25,25,26,25,26,25,25,26,25,25,26,25,25,26,25,24,26,25,25,25,25,25,26,26,26,26,26,26,25,26,25,24,24,24,24,23,21,22,21,20,20,20,20,18,19,18,17,17,16,14,13,12,11,9,8,7,7,6,6,5,5,5,4,4,4,4,3,3,4,3,3,4,3,3,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,4,4,4,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,4,4,4,3,3,3,4,3,3,4,4,3,3,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,6,6,6,6,6,6,6,6,7,7,8,9,10,12,12,12,13,14,15,14,15,16,15,15,17,17,18,18,18,19,20,20,21,23,22,21,24,22,22,22,23,21,22,22,23,23,23,23,25,25,26,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,27,26,26,27,27,27,27,26,26,26,27,27,27,27,26,26,26,25,24,24,23,22,20,19,18,16,16,14,13,13,11,10,9,8,8,8,8,8,7,8,8,8,8,8,9,9,10,10,11,10,10,12,11,11,11,12,12,12,12,12,10,10,10,10,10,11,10,12,12,12,12,12,11,11,11,10,10,10,10,10,9,9,9,8,8,7,8,7,7,7,7,7,6,7,7,7,6,7,7,7,7,7,7,7,7,8,8,7,7,7,6,6,5,5,5,4,4,4,4,4,4,4,5,4,4,5,5,4,4,5,4,4,5,5,4,4,4,4,4,4,5,5,5,5,5,6,5,6,6,7,7,6,5,5,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,6,5,5,5,6,5,6,5,6,6,5,5,5,6,6,5,5,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,6,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,6,7,7,6,7,7,7,7,7,7,7,7,7,7,7,6,7,7,7,6,7,6,6,6,6,6,6,6,6,6,6,7,7,6,7,7,7,7,7,8,8,7,8,7,8,8,8,8,8,9,8,9,8,8,8,8,7,8,8,8,7,7,7,7,8,8,8,8,8,9,8,9,8,8,8,9,9,8,8,8,8,8,7,7,8,7,7,7,7,6,6,7,6,6,6,6,6,6,6,5,6,6,6,6,7,8,8,10,11,11,10,11,12,14,15,16,16,20,19,18,18,20,19,19,20,20,20,23,20,22,22,24,24,24,22,25,24,23,25,24,24,24,23,23,24,25,24,24,24,23,23,24,22,21,23,23],[29,29,29,29,28,29,29,28,29,28,27,27,27,26,27,27,27,26,26,27,26,26,27,26,26,27,27,27,27,26,25,27,27,28,27,28,27,27,28,27,28,27,26,26,26,26,24,23,25,23,22,22,23,21,20,21,20,19,18,18,16,14,12,10,9,8,7,6,6,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,2,2,2,2,2,2,2,1,1,1,1,1,2,2,1,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,3,4,4,4,4,4,4,4,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,4,4,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,6,6,6,6,7,7,6,7,7,8,9,9,10,12,12,12,14,15,16,15,17,18,16,17,19,20,20,21,21,22,24,24,24,26,26,26,27,25,25,26,26,24,25,25,26,26,26,26,27,27,28,27,27,28,27,28,27,28,28,28,28,28,28,28,28,28,28,28,29,29,28,28,28,27,28,28,28,28,28,28,28,25,27,27,25,24,24,22,21,21,19,18,17,16,14,13,12,11,10,8,8,7,8,8,7,8,8,8,9,9,9,10,10,10,12,10,10,12,13,11,12,14,13,12,13,12,12,11,11,11,11,12,12,13,13,14,13,12,12,13,12,11,10,10,10,10,9,9,9,9,8,8,7,7,6,6,6,7,6,6,6,7,6,6,7,7,7,7,7,8,8,8,8,8,7,7,6,6,5,4,4,4,4,4,4,4,3,4,4,3,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,5,4,4,5,5,6,5,6,7,7,7,6,5,4,4,4,4,3,3,3,3,4,4,4,4,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,4,4,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,5,5,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,6,6,6,5,6,6,6,6,6,6,5,5,5,4,4,4,5,4,4,5,5,4,4,5,5,4,5,5,5,5,6,6,6,6,7,6,5,6,7,6,6,7,7,6,7,6,7,7,6,6,7,6,6,6,6,6,6,6,6,5,5,6,6,5,6,6,6,6,7,7,7,7,7,8,7,8,8,8,9,8,8,8,8,8,8,8,8,8,7,7,7,8,8,7,7,7,8,8,8,9,8,8,8,8,9,8,9,8,9,9,8,8,8,8,8,7,7,7,7,6,7,7,6,6,6,6,6,6,6,6,5,6,5,5,5,6,6,8,9,9,11,12,12,12,13,15,16,19,20,19,22,22,22,21,21,22,22,25,22,24,25,23,26,24,26,26,26,25,27,26,26,26,26,26,26,24,26,27,26,26,27,27,25,27,26,24,24,25,25],[29,29,29,29,29,29,29,28,29,28,27,27,27,26,27,27,27,27,26,27,26,27,27,27,27,27,26,27,28,26,26,27,27,28,27,28,26,27,28,27,28,27,26,26,26,26,25,24,25,23,23,23,23,22,20,21,20,20,19,18,16,15,12,11,10,9,8,7,7,6,6,5,5,4,4,5,4,4,4,4,4,3,4,4,3,3,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,4,5,5,5,5,5,6,5,5,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,4,4,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,4,3,3,3,4,4,3,4,4,4,3,4,4,4,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,7,7,6,8,8,7,7,7,8,8,9,9,10,12,12,13,14,16,16,15,17,18,17,18,20,20,21,20,21,24,24,24,25,27,26,26,27,25,25,26,24,24,25,26,25,25,25,26,26,27,27,26,27,27,28,28,27,28,27,28,28,28,28,28,28,28,28,28,29,28,28,28,28,26,29,28,27,28,28,28,28,25,27,27,26,25,25,24,22,21,20,19,18,16,15,13,12,11,10,9,9,9,8,8,8,9,9,9,10,9,9,10,10,10,11,10,10,11,13,12,12,14,13,13,14,12,11,11,11,11,10,11,11,12,13,14,14,13,12,12,12,11,10,10,10,10,10,9,9,9,8,8,8,8,7,7,8,8,7,7,8,8,7,7,8,8,8,8,8,8,9,9,9,9,8,8,6,6,6,5,4,4,4,5,5,4,4,5,5,4,4,5,5,4,5,5,4,4,5,5,4,4,5,5,5,5,5,5,5,5,5,6,6,7,7,7,7,6,6,5,5,5,5,4,4,4,4,4,4,5,5,5,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,4,4,5,4,4,5,5,4,4,5,4,4,5,5,5,4,5,5,5,6,6,6,5,6,7,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,6,6,6,6,5,5,5,5,4,4,4,4,4,3,4,4,3,3,4,4,4,5,5,5,6,7,7,6,6,7,7,6,6,6,6,6,6,5,5,5,5,5,5,5,6,6,5,5,6,6,6,6,6,7,7,7,7,8,7,7,7,7,7,7,7,7,8,8,7,7,8,8,8,7,7,7,8,7,7,7,6,7,7,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,10,9,9,9,9,8,9,9,8,9,9,8,9,9,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,10,10,9,9,8,9,9,8,8,8,7,7,7,8,7,7,7,7,7,6,7,7,6,6,6,6,6,6,7,8,9,9,11,12,12,11,12,14,15,18,17,19,20,21,20,19,20,22,20,23,21,22,23,22,25,24,25,25,25,23,26,25,25,25,25,26,25,23,25,26,25,26,26,26,25,25,26,24,24,25,25],[28,28,27,28,28,28,28,27,27,26,26,25,25,26,25,26,25,26,25,25,26,26,25,25,26,25,24,25,25,24,25,26,25,26,25,25,25,25,25,25,26,25,24,24,24,23,24,22,21,21,21,20,20,20,19,18,18,17,17,16,15,15,12,11,10,9,8,8,6,7,6,6,5,5,5,4,4,4,4,4,4,3,4,4,3,4,5,5,4,4,4,4,3,3,3,3,2,3,3,2,2,2,2,2,2,3,3,3,3,3,4,3,3,2,3,3,2,3,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,4,4,4,5,5,5,6,5,6,6,6,6,5,5,4,4,4,3,3,3,3,3,2,2,3,3,2,2,3,2,3,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,4,4,4,4,4,4,4,5,4,4,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,4,5,5,5,5,6,6,5,6,6,6,6,7,7,6,6,7,7,7,8,7,8,8,7,7,7,7,7,7,7,7,7,8,8,9,10,11,12,13,13,14,16,15,14,16,17,15,16,17,18,18,18,19,20,21,20,22,23,24,22,24,23,23,23,23,20,22,23,23,23,22,22,25,25,25,25,25,26,26,26,25,26,26,26,26,26,26,27,27,26,27,27,26,26,27,26,26,26,26,26,26,27,27,27,26,25,26,25,25,24,22,22,19,19,18,15,16,14,14,14,12,11,10,9,8,8,8,8,8,8,9,9,9,9,10,10,11,11,11,11,12,12,13,13,12,14,13,14,12,12,11,11,12,11,11,12,11,12,13,13,13,13,13,12,12,11,11,11,11,11,10,10,10,9,9,8,9,8,7,7,7,7,7,8,8,8,7,7,8,7,8,8,8,8,8,8,8,8,8,8,6,6,6,5,5,4,4,5,5,4,4,5,5,5,5,5,5,5,6,6,5,5,6,6,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,6,6,5,5,5,4,4,5,5,5,4,5,5,6,6,5,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,6,5,5,6,6,6,6,6,7,6,7,6,6,7,7,6,6,6,6,6,6,7,6,7,7,7,6,7,6,6,7,7,7,7,6,7,7,7,6,6,6,6,5,5,5,5,5,5,5,4,4,3,4,4,4,4,4,5,5,5,6,6,6,7,6,6,6,7,7,7,6,6,6,6,6,6,5,5,5,5,6,6,6,5,6,6,6,6,7,7,6,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,7,8,8,8,7,8,7,7,7,7,6,6,7,7,7,7,7,8,7,8,8,8,9,9,9,8,9,8,8,10,9,9,9,10,10,9,10,9,9,9,9,8,9,9,8,8,8,8,8,9,9,9,9,9,9,9,10,9,9,9,10,10,9,9,8,9,8,8,8,8,8,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,7,8,8,9,11,12,11,11,12,13,14,16,16,17,20,20,19,18,19,19,19,20,21,20,21,21,22,22,23,23,24,24,23,24,24,25,23,25,25,22,22,24,25,25,25,24,24,24,24,23,21,23,25],[28,28,28,28,28,28,28,27,28,27,26,26,27,26,26,27,26,27,26,26,27,27,26,27,27,26,27,27,26,26,26,26,27,28,26,27,27,26,27,26,27,26,26,26,26,26,24,24,25,22,21,22,23,20,20,22,20,19,19,19,16,15,13,12,11,9,8,8,8,7,7,6,6,5,5,5,5,5,5,5,5,5,5,5,4,4,4,5,4,4,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,3,3,3,3,4,4,3,3,3,4,3,3,3,3,2,3,3,2,2,2,2,1,1,1,1,1,0,1,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,3,2,3,3,4,3,4,4,4,4,5,5,5,5,5,4,5,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,3,2,2,2,2,2,2,3,3,2,3,3,3,4,4,4,4,5,5,5,5,5,5,6,5,4,4,4,4,3,3,3,2,3,3,3,2,3,3,3,3,3,4,4,4,5,5,4,5,5,5,6,5,6,5,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,5,5,4,5,5,5,4,4,4,4,4,4,4,5,5,4,4,4,4,4,4,5,4,4,4,4,4,3,3,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,8,8,7,8,8,8,8,8,8,9,8,8,8,8,7,8,8,8,8,8,8,10,10,11,12,13,14,14,16,16,17,16,17,18,18,19,20,20,21,21,20,23,24,23,24,24,24,24,25,24,24,24,25,25,24,23,25,26,26,24,26,26,26,25,26,27,27,27,26,26,27,27,27,27,27,27,28,27,28,27,27,28,27,28,27,27,27,27,27,28,28,28,27,26,27,26,26,25,24,23,21,21,19,18,19,15,15,15,14,12,11,10,10,10,10,9,10,10,11,10,10,11,11,12,12,12,14,12,12,14,13,13,14,15,15,14,13,15,13,12,12,12,12,13,12,14,14,14,15,14,14,13,14,13,12,12,13,12,11,12,11,11,10,9,10,9,9,8,9,9,8,9,9,9,8,9,9,8,8,9,9,9,9,9,9,9,8,9,7,7,7,6,6,5,5,5,6,5,5,6,6,5,5,6,6,5,6,5,5,5,6,5,5,5,6,5,5,5,6,5,5,6,6,6,6,7,7,8,8,7,6,5,5,5,5,4,4,5,5,5,5,5,5,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,7,7,7,8,7,7,7,7,7,7,6,7,6,6,6,7,7,6,6,7,7,7,6,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,6,5,5,5,5,6,5,5,5,5,5,5,4,5,5,5,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,5,6,6,6,6,6,6,6,6,6,6,7,7,7,8,7,7,8,8,8,9,8,8,8,8,8,8,8,9,8,8,8,9,8,7,8,8,8,8,8,8,7,7,7,7,7,7,7,8,7,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,11,10,10,10,10,10,10,10,10,9,10,10,9,9,9,10,9,11,10,10,10,10,10,10,10,10,10,10,10,11,10,10,9,10,10,9,9,9,9,8,8,8,8,8,8,7,8,7,7,8,7,7,7,7,6,7,8,9,9,10,12,12,13,12,13,14,16,17,18,18,21,20,21,20,20,21,22,23,22,23,24,23,24,23,26,26,24,23,25,25,25,26,25,25,26,24,25,25,25,25,25,25,24,25,25,24,23,25,26],[29,29,28,29,28,29,29,28,28,28,27,27,27,26,27,26,27,27,26,27,26,26,27,27,26,27,27,27,27,26,26,28,28,28,27,28,27,27,28,27,28,27,26,27,27,27,25,24,25,24,23,23,24,22,21,22,22,21,20,19,17,16,14,13,11,11,9,9,8,8,7,7,7,6,6,6,6,5,5,6,5,5,5,5,4,4,4,5,4,4,4,4,3,4,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,4,4,4,3,3,4,4,4,3,3,3,3,3,3,2,2,2,2,1,1,1,1,1,0,1,2,2,2,2,2,2,1,2,2,2,2,2,2,3,2,3,3,3,3,4,4,4,4,4,5,5,5,5,5,4,5,4,4,4,4,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,4,4,5,5,5,5,6,5,5,6,6,5,5,5,4,4,3,3,3,2,3,3,2,2,3,3,2,2,3,3,3,3,4,4,4,4,5,5,6,6,6,6,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,4,4,3,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,7,6,7,7,7,7,7,8,7,8,9,9,9,9,8,9,9,10,10,10,10,9,9,8,9,9,9,9,9,9,10,11,11,12,14,14,14,15,16,17,17,18,20,19,20,21,22,22,23,24,25,25,26,26,26,27,26,27,26,26,27,25,24,26,26,26,26,27,27,27,27,28,28,28,28,28,29,28,29,29,29,29,29,28,29,29,29,28,28,29,29,29,29,29,28,28,28,28,29,28,28,28,26,27,28,26,25,26,23,22,23,21,19,20,17,17,16,15,14,12,10,11,10,11,10,10,10,11,11,12,11,12,12,12,12,14,13,13,14,16,13,15,16,15,14,16,14,14,13,13,13,13,13,14,15,15,16,16,15,14,14,14,14,12,13,13,13,12,12,12,11,10,11,10,10,9,9,9,10,10,9,9,10,9,9,9,9,9,10,10,10,10,10,10,10,10,10,8,8,7,7,6,6,5,6,6,5,5,6,6,5,5,6,5,5,6,6,5,5,6,6,5,6,6,6,6,6,7,7,7,6,7,8,8,8,8,8,8,8,7,5,6,6,6,5,4,5,5,5,5,6,5,6,6,7,7,6,6,6,7,6,6,6,6,6,6,6,6,5,5,6,6,5,6,6,5,6,6,6,5,6,6,6,6,6,7,7,7,7,7,7,7,8,8,7,7,8,7,7,7,7,7,7,8,8,8,7,7,8,8,7,8,8,8,8,8,8,8,8,8,8,8,7,7,8,7,7,7,6,6,6,6,6,6,5,5,5,5,5,5,5,5,6,6,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7,7,7,7,8,7,7,8,8,8,8,9,8,9,9,9,9,9,9,9,9,9,9,9,10,9,9,9,9,9,8,9,9,10,9,9,9,9,8,8,8,8,9,9,8,9,9,8,10,9,10,10,10,10,10,10,10,10,11,11,11,10,11,11,10,10,11,10,10,10,10,10,10,10,9,9,10,10,11,10,11,10,10,11,10,10,11,11,10,11,11,11,10,10,10,10,10,9,10,9,9,9,9,9,9,9,8,9,8,9,8,7,8,8,7,7,7,9,9,10,11,12,13,14,13,14,16,17,19,19,19,22,22,22,20,21,22,21,24,22,23,24,23,25,25,26,25,26,24,26,27,25,26,26,27,26,23,26,27,27,26,27,26,25,26,27,25,23,25,26],[28,28,28,28,28,28,28,29,28,27,27,26,27,26,26,26,27,27,27,28,28,27,28,28,27,27,27,27,27,27,27,28,28,28,27,28,27,27,27,27,28,26,26,27,27,27,25,25,26,25,24,23,24,23,22,23,21,21,20,19,17,16,15,14,12,12,12,11,10,10,9,9,9,8,7,8,7,6,7,7,7,6,7,6,6,6,7,7,7,6,6,6,5,5,5,5,4,5,5,4,3,5,4,5,4,5,5,5,5,6,6,6,5,5,6,6,6,5,5,5,5,5,4,5,4,4,3,3,2,2,2,2,1,0,1,2,2,3,5,3,2,4,3,2,3,4,3,3,4,4,4,4,5,5,5,6,6,6,6,6,6,7,7,6,6,6,5,5,5,6,5,5,5,5,5,4,5,5,3,4,3,4,4,3,4,4,3,3,4,4,3,4,5,5,5,6,7,7,6,7,8,8,8,8,8,9,8,7,7,6,7,7,5,6,5,5,5,5,4,6,5,4,4,5,5,6,6,6,6,6,6,7,7,7,7,7,7,6,7,7,6,7,6,6,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,7,7,7,7,7,6,7,7,5,7,7,6,6,6,7,6,8,8,7,7,7,8,8,8,8,9,8,9,10,9,9,11,10,10,10,12,11,11,10,11,11,11,11,11,11,12,11,11,10,11,12,11,10,11,12,12,14,14,14,16,17,17,18,20,19,19,20,21,20,20,22,21,22,23,23,25,25,25,26,26,28,26,27,25,25,26,25,25,26,26,25,26,26,26,28,28,28,27,28,28,29,28,28,28,28,28,28,28,28,29,29,29,28,28,28,28,28,28,28,27,28,28,27,28,28,28,28,26,28,28,27,26,25,24,24,23,22,20,20,18,17,18,16,14,13,12,12,14,13,12,13,13,14,13,13,13,13,14,13,14,15,15,14,15,18,16,16,17,18,17,17,15,15,14,14,14,14,15,15,17,17,18,18,19,17,17,18,16,14,14,15,15,14,14,13,13,13,12,13,12,12,11,12,12,12,12,12,12,12,12,12,12,12,11,12,12,12,12,12,11,10,12,10,11,10,9,9,8,8,9,8,8,7,8,8,7,8,9,8,7,8,9,8,8,9,9,8,8,9,8,9,9,9,9,9,9,8,9,9,10,10,10,10,10,9,8,8,8,8,7,6,7,8,7,7,8,9,8,9,9,9,9,9,9,9,8,9,8,9,8,8,8,8,7,8,8,8,8,8,8,8,9,8,8,8,8,8,8,9,9,9,9,10,10,9,9,10,11,11,9,10,10,10,9,10,10,9,10,10,11,10,9,9,10,10,10,10,10,10,10,10,9,10,10,10,10,9,9,9,9,10,8,9,7,8,7,7,8,7,7,6,7,7,6,6,7,8,8,8,9,9,9,10,9,9,9,9,9,9,10,9,9,9,10,9,9,8,8,9,9,9,9,10,9,10,10,9,10,10,10,11,11,11,11,11,11,11,11,12,12,11,11,11,12,12,12,11,11,12,12,11,11,11,12,11,11,11,10,10,10,10,10,10,11,10,10,11,11,11,11,11,11,12,12,12,12,12,12,11,13,13,14,13,13,13,13,12,13,13,13,12,13,14,13,12,12,12,13,11,14,13,13,13,11,14,12,12,13,12,13,13,13,13,12,12,14,12,11,12,12,12,11,11,12,11,11,11,11,10,11,11,10,10,10,11,10,10,10,11,11,11,12,13,14,14,14,15,17,17,19,20,20,22,23,21,21,22,23,22,24,23,23,23,24,26,25,26,25,27,25,26,27,27,28,26,27,27,26,25,27,27,26,27,25,26,26,27,26,24,26,26],[27,27,27,27,27,28,28,27,27,26,25,24,26,25,25,25,26,26,25,26,27,26,26,26,26,26,26,26,26,26,25,27,27,27,26,27,26,26,27,26,27,25,26,25,26,25,24,24,25,23,22,22,22,21,20,22,20,19,20,20,18,17,16,16,15,14,13,12,12,13,12,11,11,10,10,10,9,9,9,9,11,9,10,10,9,9,11,10,9,9,9,8,8,7,7,7,7,7,7,6,6,7,8,5,6,6,7,6,6,7,7,7,7,6,8,8,7,7,6,6,6,6,5,5,5,4,4,4,3,4,3,2,2,1,0,1,3,3,6,5,3,6,7,3,6,6,5,4,6,8,6,6,7,8,6,9,9,9,8,9,9,9,9,9,9,8,8,8,8,8,7,6,5,6,5,4,5,5,4,4,3,4,5,4,4,4,4,4,4,5,4,5,5,6,5,7,7,6,6,7,7,8,9,9,9,9,9,9,8,7,7,6,6,7,5,5,6,6,5,6,7,5,5,8,7,5,8,9,8,7,8,8,9,9,9,9,8,8,8,8,7,7,7,7,7,8,7,6,7,8,8,6,8,8,8,6,6,7,7,7,7,6,8,10,8,7,10,8,8,10,10,8,10,9,11,9,8,7,8,7,6,7,9,8,7,7,10,8,9,9,9,7,9,9,8,9,10,10,9,10,10,10,11,11,11,10,11,12,11,12,12,13,12,13,13,13,14,14,14,14,14,14,13,13,12,13,14,13,12,13,14,14,15,16,17,18,18,18,18,19,20,19,20,21,20,19,21,22,22,23,23,24,24,24,24,25,26,24,25,24,23,25,25,23,25,25,26,25,26,25,27,26,27,26,27,28,27,28,27,27,28,27,27,27,27,28,28,27,28,27,28,28,27,27,27,28,28,27,27,28,27,27,28,26,27,27,26,25,25,25,22,23,21,20,19,18,17,17,16,16,16,14,14,15,15,14,14,15,16,15,15,16,15,17,17,16,17,17,16,18,18,18,17,19,18,18,19,18,17,17,17,16,16,18,18,18,18,19,19,19,18,17,18,17,16,18,17,17,16,16,15,16,15,14,15,16,15,13,13,15,14,13,13,14,13,13,14,14,13,12,14,13,13,13,14,11,12,13,11,12,10,10,11,9,8,9,9,9,8,9,10,9,9,10,11,10,10,9,10,10,10,10,10,10,10,10,10,10,10,11,10,11,10,10,11,11,11,12,11,11,10,10,9,10,9,9,9,11,10,10,9,11,10,10,12,11,11,11,12,11,10,10,11,11,10,10,11,10,11,10,10,10,11,10,11,9,10,11,10,10,11,10,10,10,12,11,10,11,11,11,11,11,12,13,12,11,12,13,12,10,12,11,12,11,12,11,11,10,12,13,12,11,12,12,11,12,11,11,12,11,12,12,12,12,12,12,13,11,10,10,10,10,10,10,10,10,8,9,11,9,9,9,12,11,9,12,10,11,11,12,11,10,11,11,11,11,11,11,12,12,12,11,10,10,11,11,11,11,12,10,11,12,11,12,12,12,13,13,13,13,13,14,13,14,13,14,14,13,13,14,14,14,12,13,15,13,13,13,13,13,13,13,13,13,12,13,13,12,12,13,13,12,14,14,13,14,13,14,15,13,15,14,14,14,14,14,15,15,15,14,15,14,15,15,14,15,14,15,15,15,13,14,16,16,14,17,14,14,15,15,16,14,15,15,14,15,15,16,14,15,13,15,14,13,13,14,15,13,13,14,12,12,12,12,12,12,12,12,11,12,11,10,11,11,12,12,12,12,13,15,15,13,16,15,18,17,18,19,21,21,21,20,22,22,20,24,22,23,24,23,25,25,25,25,26,23,26,27,25,27,25,26,26,25,25,26,25,25,26,25,25,26,26,24,23,24,25],[28,28,28,28,28,28,28,28,27,26,27,25,27,26,26,26,27,27,26,27,27,26,26,27,27,26,27,27,27,27,26,27,27,28,26,28,27,27,27,26,27,26,26,26,26,26,25,24,25,24,24,25,24,23,23,23,22,22,21,21,19,19,17,16,15,14,14,14,12,13,11,12,11,11,11,10,9,10,9,10,9,9,10,9,10,10,10,9,8,8,9,7,10,9,8,7,10,8,8,7,12,8,8,6,8,8,7,6,8,8,8,8,8,9,9,8,8,8,8,7,6,7,7,7,7,6,4,4,6,4,3,4,5,2,1,0,1,2,3,3,2,4,4,4,4,6,4,5,9,8,6,9,9,9,9,11,10,9,9,9,9,10,9,9,11,9,8,10,10,9,9,9,8,8,8,7,7,7,5,5,5,6,6,5,5,6,5,4,6,7,5,5,6,7,6,8,6,6,7,8,7,7,7,8,9,8,8,8,7,6,6,6,5,5,5,6,6,6,6,6,7,8,7,9,9,9,9,10,10,9,9,10,10,10,10,10,10,9,9,9,9,9,9,8,9,9,9,9,9,9,10,9,8,8,9,7,8,8,8,8,7,9,10,9,8,8,11,9,9,10,8,9,9,8,8,8,8,8,7,7,6,7,8,8,7,8,10,11,9,9,10,10,10,11,10,11,10,11,10,11,11,11,11,13,12,11,12,13,12,12,14,14,13,13,14,13,15,14,14,15,14,14,15,14,12,13,14,13,12,14,15,14,14,15,16,17,18,19,21,21,20,20,21,22,20,21,23,23,23,24,24,25,25,24,26,26,26,25,26,26,24,25,25,25,26,26,26,27,26,26,27,28,28,27,27,28,28,28,28,28,28,28,28,27,28,29,28,28,28,28,28,27,28,28,27,28,28,28,28,28,28,28,29,27,28,27,27,27,26,25,24,23,22,22,22,20,18,20,18,16,16,15,14,17,15,16,17,16,18,16,16,17,16,18,17,17,18,18,17,19,19,19,18,20,18,18,19,19,18,16,17,17,19,18,19,20,20,19,20,19,18,18,20,18,16,17,18,17,17,17,17,16,17,15,16,16,13,14,13,14,15,15,14,14,14,14,14,13,15,15,14,15,14,14,13,13,12,14,12,12,12,11,12,10,10,11,11,10,10,11,11,10,9,11,11,9,11,10,9,11,10,10,9,12,10,8,11,10,10,9,10,10,10,11,10,11,11,11,12,10,10,8,8,9,9,8,8,10,9,8,8,9,9,10,10,10,11,10,10,10,11,10,11,9,10,10,9,10,11,10,9,10,10,10,10,9,12,11,10,12,12,11,11,12,12,12,11,12,13,12,13,13,13,14,14,12,13,13,13,12,12,13,13,12,12,13,11,12,13,11,12,12,12,11,11,12,12,11,12,12,12,11,12,12,12,12,12,11,12,11,10,10,9,12,10,12,10,9,12,10,10,9,10,10,10,10,11,11,11,11,11,11,10,11,11,12,12,12,11,12,11,11,11,10,11,12,12,12,11,12,12,12,12,13,12,13,13,13,13,13,12,14,14,13,14,14,13,13,14,14,14,14,13,13,14,13,12,13,13,13,12,13,13,13,13,13,12,12,12,13,13,13,13,13,14,14,13,14,15,14,15,14,15,14,13,14,15,14,15,15,16,17,15,15,15,14,14,15,15,15,14,15,15,16,14,18,14,16,15,14,17,14,15,15,15,16,15,16,16,15,14,15,14,14,14,13,13,12,14,13,14,14,13,13,13,14,13,14,13,13,14,13,14,14,13,13,14,14,16,15,16,17,18,18,20,20,22,22,24,23,24,22,22,23,24,25,25,25,25,25,27,26,26,26,26,27,26,27,26,28,26,26,27,27,26,27,27,27,27,26,26,26,27,26,25,26,26],[28,28,28,28,28,28,28,28,28,27,26,26,26,27,26,27,26,27,27,27,27,27,27,27,27,26,26,27,27,27,27,27,27,28,26,27,27,25,27,26,27,25,26,25,26,26,25,23,24,23,22,22,23,21,20,21,21,19,19,20,18,16,15,15,12,12,12,10,10,9,9,9,8,7,6,7,7,6,6,6,6,5,6,5,5,5,5,5,5,4,4,5,3,4,4,4,4,4,4,4,5,4,4,4,5,4,5,5,5,5,6,6,5,6,6,6,6,6,7,6,6,6,5,5,5,5,4,4,4,4,3,4,3,2,2,1,0,1,2,2,2,2,2,4,2,3,4,4,4,5,4,5,5,5,5,6,5,6,6,7,7,6,7,7,6,6,7,7,5,7,7,6,5,7,6,5,5,6,5,4,4,5,4,5,4,5,4,3,4,5,3,3,4,5,4,6,5,4,6,6,6,6,6,6,6,7,6,5,5,4,4,4,3,3,3,3,3,3,3,4,4,4,5,5,5,6,6,6,6,7,6,7,7,8,8,8,6,7,7,7,7,7,7,6,7,7,6,7,7,7,7,6,7,7,7,6,5,6,6,6,7,6,7,7,7,6,7,6,6,6,6,6,6,6,6,5,6,5,5,4,5,4,5,6,5,5,6,5,6,6,7,6,7,7,7,7,8,8,7,7,8,9,9,9,10,9,10,10,10,10,10,12,11,10,11,12,13,13,12,12,13,13,11,11,10,11,12,11,10,11,12,12,12,13,14,15,15,16,17,18,18,18,19,20,19,20,22,22,22,23,22,24,24,25,25,26,25,26,25,25,25,25,25,25,25,25,25,25,26,25,27,27,28,27,26,28,28,27,27,27,28,28,28,28,27,28,28,28,28,28,28,28,28,28,28,28,28,27,28,28,28,27,28,28,28,27,27,26,25,26,26,23,22,21,21,19,18,19,16,15,15,14,13,13,13,14,12,14,14,14,14,15,15,16,14,16,17,16,15,18,18,17,17,19,19,18,18,18,16,15,16,16,16,16,17,18,18,18,20,19,18,17,18,17,16,16,16,16,16,16,15,15,14,13,14,13,13,11,11,13,12,12,12,12,11,11,13,13,11,11,13,12,11,13,12,11,10,12,10,10,9,9,9,8,7,8,8,8,7,8,8,7,7,8,8,8,8,7,7,7,8,7,6,7,8,7,6,7,7,6,7,7,7,8,7,8,9,9,9,8,7,6,6,6,6,5,4,6,5,6,5,6,7,7,8,8,7,7,7,6,7,7,6,6,7,6,6,7,6,5,6,7,6,6,7,7,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,10,12,10,10,10,11,10,9,10,9,9,9,10,10,9,9,9,10,8,8,9,9,8,8,9,9,8,9,9,9,9,8,9,9,8,7,6,7,6,6,7,6,6,6,6,6,6,5,6,6,7,7,7,8,8,8,8,10,8,7,9,9,8,8,9,9,9,9,8,8,6,7,8,8,7,9,9,8,8,9,9,10,9,10,10,10,10,11,11,10,12,10,10,11,12,10,11,12,11,11,11,10,12,11,9,11,11,11,10,11,10,9,11,10,11,10,9,11,11,10,11,13,12,11,11,13,12,11,12,12,12,12,11,13,14,13,13,13,13,13,13,14,13,13,13,13,13,14,12,13,13,13,12,14,13,13,13,13,14,13,13,13,13,14,13,14,13,13,11,12,13,12,11,12,12,11,11,12,11,10,10,11,10,10,11,10,10,9,9,9,9,9,9,10,11,11,13,14,15,13,16,16,19,17,20,20,23,23,23,22,22,23,22,23,23,23,26,24,25,25,26,26,26,25,26,27,26,26,26,26,27,25,26,26,27,26,27,25,25,27,27,26,24,26,26],[29,29,29,29,29,29,29,29,29,28,28,27,28,27,28,27,28,28,27,28,27,27,28,28,26,27,28,27,28,28,26,28,28,29,27,28,27,27,28,27,28,27,27,27,27,26,25,24,25,23,22,23,23,22,20,22,20,19,19,19,17,16,13,12,10,10,9,8,8,7,7,6,6,5,5,5,5,4,4,5,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,2,3,2,2,2,3,3,3,3,4,4,4,4,5,5,4,4,4,4,4,5,4,5,5,4,4,4,4,4,4,4,3,3,3,3,2,2,2,2,1,1,0,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,4,3,3,4,4,4,4,5,4,5,4,4,4,4,4,3,4,4,4,3,4,4,3,4,4,3,3,3,3,4,3,3,3,3,2,3,3,2,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,4,4,3,3,3,3,3,2,2,2,2,2,2,3,3,3,3,3,3,4,5,4,5,5,5,5,5,5,6,6,5,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,4,4,5,4,4,4,4,4,3,4,4,4,3,4,4,4,4,4,5,4,5,5,5,5,5,6,5,6,6,6,6,6,7,7,7,7,8,7,8,8,9,8,8,9,9,10,9,9,10,9,9,8,8,8,9,8,8,9,9,10,10,10,12,12,13,13,15,15,17,16,18,20,20,18,21,22,22,22,24,25,25,26,27,27,27,26,27,24,26,27,25,25,26,26,26,26,26,26,28,28,28,27,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,28,29,28,28,29,29,29,29,28,28,28,27,27,26,25,24,23,22,21,21,18,17,17,14,13,12,10,9,10,10,10,9,10,10,11,11,11,11,12,12,12,13,13,13,14,15,14,14,16,15,15,15,14,14,13,12,13,13,14,14,15,15,16,15,15,15,14,15,14,13,13,13,13,13,12,11,11,10,10,9,10,9,8,9,9,9,8,8,9,8,9,9,10,9,9,10,10,10,10,10,9,9,9,8,8,7,7,6,6,6,6,6,6,5,6,6,5,5,6,6,5,6,6,5,5,6,6,5,5,5,5,5,5,6,5,5,5,6,6,6,7,7,7,7,7,6,5,4,4,5,4,4,4,4,4,4,5,5,5,6,5,6,6,5,5,5,5,5,5,5,4,4,5,4,4,4,5,4,4,5,5,4,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,7,7,7,6,6,7,7,6,7,6,6,7,7,7,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,5,5,5,6,6,6,6,8,6,6,7,7,7,7,7,7,7,6,6,6,5,5,6,6,6,6,6,6,6,7,6,7,7,7,7,8,7,7,7,8,8,8,8,8,8,8,8,8,8,9,7,8,8,7,7,8,7,8,8,7,7,7,7,7,7,7,7,7,7,7,8,8,7,8,8,8,8,8,9,9,8,9,9,10,10,10,10,9,10,9,10,9,9,10,10,9,9,10,9,8,9,9,9,9,10,10,9,10,10,10,10,10,10,10,11,10,10,9,9,9,10,8,9,9,8,8,9,9,8,9,8,8,8,8,8,8,7,8,8,7,7,7,9,9,10,10,11,13,13,13,14,15,17,18,20,19,22,22,21,20,22,23,22,24,23,23,26,24,25,25,26,26,25,24,26,26,25,27,25,26,26,24,25,27,26,27,26,27,26,27,27,26,25,27,26],[29,29,28,28,28,29,28,28,28,27,27,26,27,26,26,27,27,28,27,27,27,26,27,27,26,26,27,26,27,27,26,27,28,28,26,27,27,26,28,26,27,26,27,25,26,25,23,24,24,22,21,22,23,20,19,21,19,17,18,19,16,14,13,11,10,9,9,8,7,7,7,7,6,6,5,5,5,5,5,5,5,4,4,4,4,3,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,1,1,0,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,5,4,5,4,4,4,4,3,4,4,4,3,3,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,3,3,5,5,4,5,5,5,4,5,4,4,4,3,3,3,3,2,2,3,3,2,3,3,3,3,3,4,4,4,5,5,4,5,5,5,5,6,6,6,5,5,6,5,4,5,5,4,5,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,4,4,5,5,5,4,5,5,5,5,5,4,4,5,4,4,4,4,4,3,4,4,4,4,4,4,5,4,4,4,5,4,5,5,6,5,5,6,5,6,6,7,6,7,7,7,7,7,7,7,8,8,8,8,8,9,10,10,9,9,9,9,9,8,8,8,9,8,9,9,9,10,10,10,11,13,14,13,15,15,17,15,17,18,18,18,21,21,21,21,21,22,23,24,24,25,25,25,25,24,24,24,24,24,24,24,24,25,25,25,26,26,27,26,26,27,27,27,27,28,27,27,27,27,27,28,28,27,27,27,28,27,27,27,28,26,28,27,27,27,27,27,28,27,26,26,26,25,24,24,23,22,20,19,19,17,16,16,13,12,11,11,10,11,10,11,10,11,11,11,11,12,12,12,13,12,14,13,13,14,15,14,15,16,17,15,16,15,14,13,14,14,13,14,14,16,16,15,16,16,15,15,16,13,13,13,13,13,13,13,11,11,11,10,10,10,9,9,9,9,9,9,9,9,8,9,10,9,9,9,10,10,10,10,10,10,9,9,8,7,7,7,6,6,5,6,6,5,5,6,6,5,5,6,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,6,6,6,7,7,8,7,7,6,5,5,5,5,4,4,4,4,4,4,5,5,5,6,6,6,5,5,5,5,5,5,5,5,5,4,5,5,4,5,5,5,5,5,5,5,5,6,6,5,6,6,6,6,7,6,7,7,7,7,7,7,8,7,7,7,7,7,7,7,7,6,7,7,6,6,7,7,7,7,6,7,7,6,6,7,7,7,7,7,7,7,7,7,7,6,6,5,5,5,5,5,4,5,4,4,5,4,4,4,4,5,5,5,6,6,6,7,7,6,6,7,7,8,7,7,7,7,7,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,8,7,8,8,8,8,8,8,8,8,8,7,8,9,8,8,8,8,8,8,7,8,7,8,8,8,8,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,8,9,9,9,9,9,11,10,10,10,10,10,10,10,10,9,10,9,9,10,10,9,9,10,10,9,10,10,10,10,10,11,10,10,10,10,10,11,11,9,10,9,10,10,9,9,9,9,8,8,9,9,7,8,8,8,7,8,8,7,7,8,7,7,7,8,8,10,10,12,13,13,12,14,15,16,17,20,18,22,22,22,22,22,22,21,23,23,23,26,24,26,24,26,25,26,24,27,26,25,27,26,25,26,25,25,25,26,26,26,26,25,26,26,25,25,26,26],[28,29,28,28,28,28,28,27,28,26,26,25,25,26,25,25,25,26,25,26,25,26,26,25,26,25,25,26,25,25,25,25,26,26,25,26,25,25,26,25,26,25,24,24,25,24,22,22,22,21,20,20,20,20,18,19,18,17,17,17,15,14,12,11,9,8,8,7,7,6,6,6,5,5,4,4,4,4,4,4,4,3,4,3,3,3,3,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,2,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,2,2,3,2,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,4,4,4,4,4,4,5,4,4,4,5,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,5,5,5,4,4,4,4,3,4,4,3,4,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,4,4,3,3,4,3,3,4,4,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,7,8,7,7,8,7,7,8,8,8,9,9,11,12,13,12,13,15,15,14,15,17,16,16,18,18,19,20,19,21,21,21,22,23,23,23,24,23,22,23,25,23,22,23,23,25,24,23,25,25,27,26,25,26,26,26,27,26,26,26,26,26,27,28,28,28,27,27,27,27,26,27,26,26,27,25,27,27,26,26,27,27,26,25,25,25,24,22,21,20,19,18,18,16,14,14,12,11,10,9,9,9,9,9,9,9,9,10,10,10,10,11,11,11,12,11,11,13,13,12,13,14,14,13,13,13,13,12,12,11,12,12,12,14,14,15,14,14,13,12,14,12,12,12,12,12,11,11,10,10,9,9,9,8,8,7,7,8,7,7,8,8,7,7,8,8,7,8,9,9,8,9,9,8,8,8,7,6,6,5,5,5,5,5,5,5,4,5,5,5,4,5,5,5,5,5,5,4,5,5,5,5,5,4,5,5,5,5,5,5,5,6,6,6,7,7,7,6,5,5,5,5,4,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,4,4,5,5,4,4,5,4,4,4,5,4,4,5,4,4,4,5,4,4,5,5,5,5,5,5,5,6,6,6,6,6,7,6,6,6,6,6,6,6,6,6,6,6,5,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,4,4,4,4,4,4,4,3,4,3,3,4,4,4,4,5,5,6,6,6,7,6,6,7,6,7,6,6,6,6,6,6,5,5,5,5,5,5,6,5,5,6,6,5,6,6,6,6,7,7,7,7,7,7,7,7,7,8,7,7,8,7,7,7,7,7,7,7,7,7,7,7,7,7,6,7,7,7,6,7,7,7,7,7,8,7,7,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,8,9,9,8,9,9,8,8,8,8,8,9,9,10,9,9,10,9,9,9,9,9,9,10,9,9,8,9,9,8,8,8,8,7,7,8,7,7,7,7,7,6,6,6,6,6,6,6,6,6,7,8,9,9,11,12,12,11,13,13,16,16,18,18,21,21,21,20,20,21,20,24,22,22,25,24,25,24,26,26,25,23,26,25,25,27,25,25,26,25,25,25,24,24,24,25,24,26,26,23,24,24,25],[29,29,29,29,29,29,29,28,29,28,27,27,27,27,27,27,27,27,27,28,26,27,27,26,27,27,26,27,27,27,27,28,27,28,27,28,26,27,27,27,27,27,26,26,26,26,24,23,24,23,22,21,22,22,19,20,20,19,17,18,15,13,12,10,9,8,7,6,6,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,3,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,3,3,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,4,3,4,4,5,4,4,4,4,4,4,4,3,3,2,3,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,3,3,2,3,3,3,3,3,3,3,4,4,3,4,4,4,4,5,5,5,5,5,6,5,6,6,6,6,6,7,7,7,6,7,8,7,6,7,6,7,7,7,6,7,7,7,8,8,9,11,12,12,13,13,15,14,17,18,17,17,20,20,21,21,21,22,23,23,24,25,26,25,26,25,22,25,23,23,25,24,24,25,25,26,26,26,26,26,27,27,27,27,27,27,27,28,27,27,28,28,28,28,28,27,28,28,28,28,28,26,28,27,27,28,28,27,28,27,27,27,26,25,24,24,22,21,20,18,19,16,14,13,12,11,10,8,8,8,8,8,7,8,8,8,9,8,9,9,10,10,11,10,11,11,12,11,11,12,12,12,12,11,11,11,11,11,10,11,11,11,11,12,12,11,11,10,11,11,10,10,10,10,9,9,9,9,8,8,7,7,6,7,6,7,7,6,6,7,6,6,7,7,7,7,8,8,8,8,8,8,7,7,6,6,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,6,6,6,5,5,4,4,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,4,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,6,5,5,5,6,5,5,6,5,5,5,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,6,6,6,6,6,6,7,6,6,7,6,6,7,7,6,6,6,6,6,6,6,6,6,6,6,6,5,6,5,6,5,5,6,6,6,6,6,6,6,6,7,7,6,7,8,7,7,7,7,8,8,8,8,8,7,8,8,7,8,7,7,8,8,7,7,7,7,7,8,8,8,7,8,8,7,8,8,8,8,8,8,8,8,7,8,8,7,7,7,7,6,6,7,6,6,6,6,6,6,6,6,6,6,6,5,5,6,7,7,9,9,10,11,12,11,13,13,15,18,17,17,20,19,20,19,20,22,20,23,22,23,24,21,25,24,25,24,25,23,26,25,24,26,25,25,24,23,24,25,25,24,25,24,25,24,25,24,23,25,24],[29,29,29,29,29,29,29,28,29,28,28,28,28,27,28,28,27,28,27,28,27,27,28,27,27,27,27,27,28,27,26,28,28,28,27,28,27,28,27,27,28,27,26,26,26,25,24,23,24,22,21,21,23,20,18,20,18,18,18,17,15,13,11,9,8,7,6,5,5,5,4,4,4,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,4,3,4,4,4,3,3,3,2,2,2,2,1,1,2,1,1,2,2,1,1,2,2,2,2,2,2,2,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,9,11,11,11,13,13,15,13,16,16,16,16,18,19,19,19,19,22,23,22,24,25,26,25,25,24,23,24,24,24,24,25,24,25,24,25,26,27,27,26,27,27,27,28,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,27,28,27,28,27,27,28,27,28,28,26,27,26,25,25,24,23,22,21,20,18,18,16,14,13,11,10,8,8,7,7,7,7,7,7,7,8,8,8,8,8,9,9,10,9,9,10,12,10,11,12,12,12,12,11,11,10,10,10,10,10,11,12,12,12,12,12,10,10,11,10,9,9,9,9,8,8,8,8,7,7,7,6,6,6,6,6,6,5,6,6,6,6,6,6,6,7,7,7,7,8,8,7,7,7,5,5,5,4,4,4,4,4,4,4,3,4,4,4,3,4,4,3,4,4,3,3,4,4,3,3,4,3,3,4,4,3,3,4,4,5,5,5,6,6,6,5,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,5,4,4,5,5,5,4,4,5,4,4,5,4,4,4,5,4,5,4,4,5,4,4,4,5,5,4,5,5,5,4,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,5,4,4,5,5,5,5,5,5,4,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,5,5,6,6,6,6,6,6,6,6,6,5,5,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,6,6,6,8,7,7,7,7,7,6,7,6,6,7,7,6,6,7,6,6,6,6,6,7,7,7,7,7,7,7,8,7,7,7,8,8,7,7,7,7,7,6,6,6,6,6,6,6,6,5,5,5,5,5,5,6,5,5,5,5,4,5,6,7,8,9,10,11,12,11,13,13,15,17,19,19,21,21,22,20,21,22,21,24,22,23,24,23,26,24,26,25,27,24,26,26,26,27,25,26,26,24,25,26,26,26,26,26,25,26,26,25,25,25,25],[29,28,28,28,28,28,28,27,28,27,26,25,26,25,26,26,26,26,26,26,25,26,26,25,25,26,26,26,26,25,25,26,26,27,25,27,26,26,26,26,27,25,25,25,24,24,22,22,22,20,20,20,21,19,17,19,17,16,17,16,13,12,11,9,8,7,6,5,5,5,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,3,3,3,2,2,2,2,1,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,8,10,10,10,12,13,13,12,14,15,14,14,16,17,17,19,18,20,21,20,22,23,23,23,23,23,20,22,22,22,22,22,23,23,23,23,24,25,27,24,25,26,25,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,26,26,26,25,26,25,25,27,26,26,27,26,26,25,24,23,22,21,20,19,17,15,17,14,13,12,10,9,8,7,7,7,7,7,6,7,7,7,8,8,8,8,9,9,10,9,9,10,10,10,10,11,12,11,11,11,10,9,9,9,9,10,10,11,11,11,11,11,10,10,10,9,9,9,9,9,8,8,8,7,7,7,7,6,6,5,6,6,6,6,6,6,5,6,6,6,6,6,7,7,7,7,7,7,6,6,5,5,5,4,4,4,4,4,4,4,3,4,4,4,3,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,4,3,3,4,4,4,4,5,5,6,6,5,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,4,5,4,4,4,5,4,4,4,5,5,5,4,5,5,4,4,5,5,4,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,3,3,3,4,4,4,4,5,5,4,4,5,5,5,5,5,5,5,4,4,4,3,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,6,5,6,5,5,6,6,5,6,6,6,5,5,5,5,6,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,6,7,7,6,7,7,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,8,6,7,6,7,7,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,6,7,8,9,10,11,10,11,12,14,15,17,17,20,20,20,19,20,19,20,21,21,21,23,22,24,23,24,24,24,23,25,25,24,27,24,24,25,23,23,24,24,24,23,24,23,25,24,23,22,24,24],[29,28,28,29,28,29,28,27,28,27,26,27,26,26,26,26,26,25,27,26,25,27,26,25,26,27,25,26,26,25,25,26,26,27,25,26,25,26,26,25,26,26,25,25,25,25,24,22,23,22,22,20,21,20,19,19,18,18,17,16,14,13,11,9,8,7,6,5,5,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,3,3,2,2,2,2,2,1,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,6,5,5,6,6,5,5,5,5,5,5,5,6,6,6,7,8,9,10,12,11,13,14,14,13,15,16,15,15,17,17,19,20,18,22,23,21,23,25,24,24,25,23,23,23,23,24,23,24,24,23,24,23,25,25,26,24,26,26,26,26,26,26,26,27,26,27,26,27,27,27,27,26,27,27,27,27,27,26,27,26,26,27,26,27,27,25,26,25,24,24,23,23,20,19,19,16,17,15,13,12,10,9,8,7,6,6,6,6,6,7,6,7,7,7,7,8,8,8,9,8,9,10,10,10,10,11,11,10,11,10,10,9,9,9,8,9,10,10,11,11,11,10,10,10,10,9,9,8,8,8,7,7,7,7,6,6,6,6,5,5,5,6,5,4,5,6,5,5,6,6,5,6,6,7,7,8,7,7,6,6,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,6,6,6,5,4,3,3,3,3,3,2,2,3,3,3,3,3,3,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,5,5,4,4,5,5,5,5,5,4,4,4,3,3,3,3,4,3,3,4,4,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,4,5,6,5,5,6,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,4,4,5,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,7,7,7,7,7,7,6,7,7,6,7,6,6,6,6,6,6,6,5,6,6,7,7,6,7,7,7,7,7,7,7,7,7,6,7,6,7,7,6,6,6,6,5,5,6,5,5,5,5,5,5,5,5,4,5,4,4,4,4,5,6,7,8,9,11,11,10,12,13,15,17,18,18,20,21,21,19,19,20,21,23,21,22,23,22,24,23,25,24,25,23,26,25,24,26,25,24,25,24,25,25,24,24,24,25,24,25,24,23,23,23,23],[29,28,28,29,28,29,28,28,28,28,27,27,27,26,27,26,26,26,26,27,26,27,27,26,26,27,26,27,27,25,26,27,26,28,26,27,26,27,27,26,26,26,25,26,25,25,23,22,23,22,21,21,22,19,19,20,19,17,17,17,14,13,11,9,7,6,5,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,1,1,2,1,1,2,2,2,1,2,2,2,2,2,2,3,3,3,3,3,3,4,3,3,3,3,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,6,5,5,5,4,5,5,5,4,5,5,6,6,7,7,9,10,10,12,13,14,13,14,15,16,15,17,18,19,19,19,22,23,22,23,24,24,24,25,23,22,24,23,23,23,23,24,23,24,24,25,25,27,25,26,26,26,26,26,26,26,27,26,26,26,27,27,27,27,27,28,27,27,27,28,27,27,27,26,27,27,27,27,25,26,25,24,23,22,21,20,19,18,16,17,14,12,11,10,8,7,6,6,5,6,6,5,6,5,6,7,6,6,7,7,7,8,8,8,8,8,9,9,10,10,9,10,9,9,9,8,8,8,9,9,9,9,10,9,9,9,8,8,8,8,7,7,7,7,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,7,7,6,6,6,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,4,4,4,5,5,5,5,4,3,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,4,4,3,4,3,3,3,4,4,3,3,3,4,4,3,3,4,4,3,4,4,3,4,3,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,5,5,5,5,4,4,5,5,4,5,5,4,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,4,5,6,5,5,6,6,6,6,6,6,6,5,6,6,5,6,6,5,5,6,5,5,5,5,6,5,6,7,6,6,6,6,7,6,6,6,7,7,6,6,5,6,6,5,5,6,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,5,6,7,7,9,10,10,10,11,12,13,15,16,16,19,19,19,17,18,19,19,23,19,22,21,20,24,23,23,24,25,22,24,24,24,24,23,24,24,22,23,25,24,23,25,24,22,24,25,21,21,24,23],[29,29,28,29,29,29,29,28,29,28,27,27,27,27,27,28,27,28,28,28,27,28,28,27,28,28,28,28,29,27,27,28,28,28,28,28,28,28,28,28,28,26,26,27,26,26,23,23,24,21,21,21,22,19,19,19,17,17,18,17,13,12,10,8,6,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,1,2,1,1,2,2,2,2,1,1,2,1,1,2,2,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,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5,5,4,5,5,5,5,6,5,5,5,5,6,5,6,5,6,6,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,5,5,6,7,8,9,10,9,11,11,13,14,16,17,19,20,19,18,19,18,19,21,20,21,22,20,24,23,26,24,25,24,25,25,25,27,24,25,25,23,24,26,25,24,24,24,23,25,25,22,21,24,25],[28,27,27,28,27,28,28,27,28,27,25,26,26,25,25,26,25,25,26,26,25,26,26,25,26,26,25,26,26,24,25,26,26,27,26,27,26,26,26,26,26,26,25,25,25,25,24,22,23,22,22,20,21,19,18,18,17,17,16,16,13,12,10,8,7,6,5,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,3,3,2,2,1,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,1,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,1,1,2,1,1,2,2,1,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,4,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,6,6,6,7,9,10,10,11,13,13,12,14,14,14,14,16,16,18,18,17,20,22,21,21,23,22,23,24,22,21,23,22,22,22,22,23,23,23,22,24,24,25,24,25,26,26,26,25,26,26,26,26,26,26,26,27,26,26,26,27,27,27,26,27,25,26,26,26,27,26,26,27,24,25,25,24,23,21,21,19,18,17,15,15,13,11,11,9,8,7,6,6,5,6,5,5,6,6,6,6,6,6,7,7,7,8,7,8,8,8,8,9,9,9,9,9,9,8,8,8,8,7,8,8,9,9,9,9,9,9,8,8,8,8,7,7,7,6,6,6,6,5,5,5,5,5,4,4,5,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,4,4,3,3,2,3,2,2,2,2,2,2,3,3,3,3,3,4,3,3,3,3,2,2,3,3,2,2,3,2,2,2,3,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,3,3,4,4,4,3,3,4,4,3,3,4,3,3,4,4,3,4,4,4,4,3,3,4,4,3,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,4,4,4,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,4,5,5,4,5,5,5,5,5,5,4,5,4,5,5,4,4,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,6,5,5,5,6,6,5,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,5,6,6,6,5,6,6,6,6,6,6,6,6,6,5,6,6,6,6,5,5,5,5,5,5,5,4,5,5,5,4,4,4,4,4,4,4,4,4,4,5,6,7,7,8,10,10,9,11,12,13,15,16,16,19,20,18,18,18,19,18,22,20,21,21,19,22,22,23,22,23,21,24,23,22,25,23,23,22,23,24,24,23,23,23,23,21,22,23,21,21,22,23],[28,28,28,29,28,28,28,27,28,27,26,27,26,26,26,26,25,25,26,26,25,27,26,24,26,26,25,26,26,24,25,26,25,27,25,26,25,26,26,25,26,26,25,25,24,25,23,22,22,21,21,20,21,19,18,19,18,17,16,16,13,12,10,7,6,5,5,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,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3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,3,3,3,3,4,4,3,3,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,5,5,5,5,5,5,5,4,5,5,4,4,5,5,4,4,4,5,5,5,6,5,5,5,5,6,5,6,5,6,6,5,5,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,3,4,4,3,3,4,5,5,7,7,9,9,10,9,11,11,13,14,16,16,18,19,18,17,19,19,19,22,19,21,22,21,24,23,24,23,24,23,24,24,23,25,23,23,23,23,23,24,24,24,24,23,22,24,23,22,21,23,23],[28,28,28,29,28,29,28,28,29,28,27,27,27,27,26,27,26,26,27,27,26,26,27,26,26,27,27,27,27,25,26,27,27,27,27,27,26,27,27,27,26,27,25,26,25,25,24,22,22,21,21,20,20,19,17,18,18,17,16,16,13,12,10,8,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,3,3,2,2,1,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,1,1,1,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,1,2,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,1,1,1,1,1,1,1,2,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2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,8,10,10,9,10,11,13,15,17,17,19,21,18,17,18,19,18,22,20,22,21,20,25,25,23,23,25,23,24,25,24,25,23,24,24,22,24,25,25,23,25,24,22,24,25,22,21,24,23],[28,28,28,28,28,28,28,27,28,27,26,26,26,26,26,26,26,26,27,26,25,26,26,25,26,27,26,27,27,25,26,27,27,28,26,27,27,27,27,27,27,27,26,26,26,26,24,23,23,23,22,21,22,20,18,19,17,18,16,16,12,11,9,7,6,5,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,2,1,1,2,2,1,1,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,4,4,4,3,4,4,4,4,4,4,5,5,5,7,8,9,9,11,12,13,11,13,14,14,14,15,16,17,18,17,20,22,20,21,23,24,23,24,22,21,23,23,22,22,23,24,23,23,23,24,25,27,24,25,26,25,26,26,26,26,26,27,26,26,26,26,26,26,26,27,27,26,26,26,25,27,26,26,27,26,26,27,24,24,24,23,23,22,20,18,18,17,15,14,12,10,10,8,7,6,5,5,5,5,5,4,5,5,5,6,5,6,6,6,6,7,6,7,8,7,8,8,9,8,9,9,9,8,8,7,7,7,7,7,8,8,9,8,8,8,8,7,7,7,6,6,6,6,6,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,6,6,6,5,5,4,4,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,2,3,3,3,2,2,2,2,2,2,3,2,2,3,3,3,3,4,4,5,5,4,3,3,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,5,4,4,5,4,4,4,4,4,5,5,5,5,5,5,5,6,5,6,5,5,6,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,5,5,6,7,8,9,10,9,10,11,13,13,15,15,18,19,17,17,18,18,18,21,18,20,21,20,22,22,23,22,23,21,23,23,23,25,22,22,23,21,22,23,22,22,22,22,21,23,23,22,20,21,22],[28,27,27,28,27,28,27,26,28,26,25,26,25,25,24,26,24,25,26,24,25,26,25,25,26,26,24,25,26,24,25,26,25,26,24,26,25,26,25,25,25,25,24,25,25,24,23,22,22,21,21,19,20,19,18,18,17,17,15,15,13,11,10,8,6,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,3,3,2,2,1,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,2,2,2,2,2,3,2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,4,4,3,4,4,4,4,4,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,5,5,4,4,5,4,4,5,5,4,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,4,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,6,5,5,6,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,5,6,7,7,8,9,10,9,11,12,13,15,17,17,19,21,18,18,19,19,18,21,20,20,22,21,23,22,24,23,23,23,24,25,24,25,24,23,24,23,23,24,23,24,23,24,21,25,24,22,22,24,22],[28,28,28,28,27,28,28,27,28,27,26,27,27,26,26,26,25,26,26,26,26,26,26,26,26,27,26,27,27,25,26,27,27,28,26,27,26,27,27,27,27,26,25,26,26,25,24,23,23,23,21,21,22,20,19,20,19,18,17,18,15,13,10,8,7,6,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,2,2,3,3,2,2,1,2,2,2,2,2,2,2,1,2,2,1,1,1,1,1,1,2,2,2,2,2,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,3,4,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,5,5,5,6,6,7,10,10,11,13,14,15,15,15,16,18,16,17,19,19,20,20,22,23,22,23,24,24,24,24,24,22,23,23,22,23,24,24,23,24,23,24,24,26,24,25,25,25,25,25,25,26,26,25,25,25,26,26,26,26,25,27,27,27,27,26,25,26,26,26,26,26,26,26,24,24,24,23,23,21,20,19,18,17,15,16,14,12,11,9,8,7,6,6,5,6,6,6,6,6,6,7,7,6,7,7,7,8,8,8,8,8,8,9,10,9,9,9,9,9,8,8,8,8,8,8,9,9,10,9,9,9,9,8,8,8,7,7,7,6,6,6,6,6,5,6,5,5,4,5,5,5,4,5,5,5,5,5,5,5,6,6,6,6,7,7,7,6,6,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,4,4,4,5,6,6,5,4,3,3,2,3,3,2,2,2,3,3,3,3,3,3,3,4,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,3,3,4,4,4,3,3,4,4,3,4,4,4,3,4,4,4,4,3,4,4,3,3,4,4,3,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,1,1,2,2,1,2,2,3,2,3,3,3,3,4,4,3,3,4,4,4,4,4,3,3,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,3,4,4,4,5,5,5,5,4,5,5,5,4,5,5,4,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,3,3,4,4,3,4,4,4,4,5,5,5,5,5,6,5,5,6,7,7,6,6,6,6,5,6,6,5,6,5,5,5,6,5,5,5,5,6,6,6,7,6,6,6,6,6,7,6,6,7,7,6,6,6,7,6,6,6,6,5,5,5,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,5,6,7,8,9,10,10,10,11,12,13,15,15,16,18,19,17,17,18,18,18,21,18,20,21,20,23,23,22,22,23,22,23,24,23,23,22,23,24,21,22,24,24,22,23,23,21,23,24,21,21,23,21],[28,27,28,28,27,28,28,27,28,27,26,26,26,26,26,26,26,26,27,26,26,27,27,26,27,27,26,26,27,26,26,28,27,27,27,27,26,27,27,26,27,27,25,26,25,24,23,22,23,22,22,21,21,19,20,19,18,19,18,18,14,13,11,8,7,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,4,4,4,3,4,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,4,4,4,5,5,4,4,5,5,6,6,7,7,10,10,10,12,13,14,13,14,16,15,16,18,17,17,19,19,21,22,21,22,23,24,23,24,22,23,24,23,22,24,23,23,23,23,23,25,24,26,25,25,27,26,26,26,26,26,26,26,26,26,27,27,27,27,26,27,27,26,26,25,25,26,26,26,26,26,25,26,25,24,24,24,22,21,20,20,18,18,16,15,14,12,11,9,8,7,6,6,6,6,6,5,6,6,6,7,7,7,7,7,7,8,8,8,9,9,9,9,10,10,10,10,10,9,9,8,8,8,8,9,10,10,10,10,9,9,9,8,8,8,7,7,7,7,7,6,6,6,6,6,5,5,5,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,7,7,6,6,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,4,3,3,3,3,3,2,2,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,3,3,4,4,3,4,4,3,3,4,4,4,4,3,4,4,3,3,4,4,3,3,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,1,1,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,5,4,5,5,4,5,5,5,4,5,5,4,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,6,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,4,5,5,4,4,5,5,4,4,5,5,6,8,8,9,10,11,10,11,12,14,16,17,17,20,21,20,18,19,20,20,22,20,22,22,21,24,25,24,24,25,24,24,25,25,24,24,25,25,23,23,25,25,23,24,24,22,24,25,23,21,24,24],[28,28,27,28,28,28,28,28,28,27,26,26,26,26,26,27,26,27,27,27,26,27,26,27,26,26,27,27,27,27,25,28,27,28,27,28,27,27,28,27,28,27,26,26,27,26,23,23,24,21,22,23,22,19,20,21,19,19,19,19,16,14,12,10,8,7,6,5,5,5,5,4,4,3,3,3,3,2,2,3,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,3,3,2,3,3,3,3,4,4,3,2,2,2,2,3,3,3,3,2,2,2,3,2,2,2,2,2,2,3,3,2,3,3,4,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,3,3,3,2,2,3,2,2,2,3,2,2,3,3,3,3,3,4,4,5,4,4,5,5,5,5,5,5,5,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,3,3,3,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,3,3,3,2,3,3,2,2,3,2,2,3,3,2,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,7,6,6,7,7,7,7,6,7,6,6,6,6,6,6,6,6,7,7,7,8,7,9,11,11,12,14,15,16,16,16,19,18,17,20,20,19,22,22,23,23,24,25,24,26,24,26,24,23,25,24,22,24,24,25,25,24,25,25,25,27,25,26,26,27,27,27,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,26,27,25,24,25,24,24,23,20,19,20,18,17,16,15,13,12,11,10,9,8,7,7,8,7,7,8,8,8,8,8,9,8,9,9,9,9,10,10,11,10,11,12,12,11,12,10,11,10,10,9,10,10,10,10,11,12,11,11,11,10,10,10,9,9,9,9,9,8,8,8,8,8,8,7,6,6,6,7,7,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,7,7,6,5,5,5,4,4,4,5,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,6,6,7,7,6,5,4,4,4,4,3,3,3,3,3,4,4,4,5,5,5,5,4,4,4,4,3,3,4,3,3,3,4,3,3,3,3,3,3,4,3,3,3,4,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,5,5,6,5,5,5,5,5,4,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,4,4,4,5,5,6,4,4,5,5,5,5,5,5,5,4,4,4,3,4,4,4,4,4,5,4,4,5,5,4,5,5,5,5,6,6,7,6,7,6,6,7,6,6,6,7,7,6,6,6,7,6,5,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,7,7,7,9,8,8,8,8,8,7,8,7,7,8,7,7,7,8,7,6,7,7,7,8,7,8,8,8,8,8,8,8,8,8,8,9,8,8,8,8,8,8,8,8,7,7,7,7,7,6,7,7,6,6,6,7,5,6,6,6,5,6,7,8,9,9,11,12,12,11,12,13,15,16,17,17,20,22,20,19,20,20,20,22,21,22,22,21,24,24,24,23,25,23,24,25,24,25,24,25,25,23,23,25,25,24,24,24,23,23,25,23,21,24,23],[28,28,28,28,28,29,28,28,28,27,26,26,26,26,26,27,26,26,27,26,26,27,26,26,26,26,26,27,27,26,26,27,27,28,26,27,26,27,27,27,27,27,27,26,26,26,25,23,23,23,23,22,22,21,20,20,19,20,18,18,15,14,12,10,9,8,7,6,5,5,5,4,4,3,4,3,3,2,2,3,3,2,3,3,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,3,2,2,2,2,3,3,3,3,3,2,2,3,2,2,2,3,2,2,3,3,3,3,3,5,4,3,3,3,3,3,2,2,2,2,2,2,2,1,1,1,2,1,0,1,1,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,2,2,3,3,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,5,5,5,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,4,4,3,3,4,4,3,4,4,4,4,4,4,5,5,5,5,5,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,7,7,6,6,5,6,6,6,6,7,7,8,9,8,10,12,12,12,14,15,15,15,16,17,17,17,18,19,20,20,20,22,23,22,24,25,25,24,25,24,24,24,23,23,24,24,25,24,25,24,26,26,27,26,26,27,27,27,27,27,27,27,27,27,26,27,27,26,27,27,28,27,26,27,27,26,27,27,26,27,26,27,27,24,25,24,24,23,21,21,18,18,17,16,17,15,13,13,11,9,9,8,8,8,8,8,8,8,9,9,9,9,9,10,9,11,12,10,11,12,13,12,13,14,15,13,13,12,13,12,10,11,11,11,12,13,14,14,14,13,12,12,12,12,11,11,10,10,10,9,9,9,8,8,8,7,7,7,7,7,7,7,7,8,6,7,8,8,7,8,9,9,9,9,9,8,8,8,7,7,6,5,5,5,4,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,5,5,4,4,5,5,5,5,6,6,6,7,7,8,8,7,6,5,5,4,5,4,4,4,4,4,4,5,5,5,5,5,6,5,4,5,5,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,6,6,5,6,6,6,5,6,6,5,5,6,6,6,6,5,6,6,5,5,5,6,5,6,5,6,6,5,5,6,5,5,5,5,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,3,3,4,4,4,5,6,6,5,5,6,6,6,6,5,5,5,5,4,4,4,4,4,4,4,5,4,4,5,5,5,5,6,5,6,6,6,6,7,7,7,7,6,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,5,5,6,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,9,9,9,9,9,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7,8,8,8,8,8,9,9,10,9,9,9,9,10,8,9,9,10,9,8,8,8,8,8,7,8,7,7,7,7,7,7,7,7,6,6,6,6,6,7,8,9,10,10,11,13,13,12,13,15,16,18,18,19,21,22,21,21,21,21,21,23,22,22,23,22,24,24,25,24,25,23,25,25,25,26,24,24,26,24,25,25,25,25,25,25,24,26,24,24,23,25,24],[28,28,28,28,28,29,28,28,29,27,27,28,27,27,27,27,27,27,28,27,27,27,27,27,27,28,27,27,28,27,27,28,28,28,28,28,27,28,28,28,28,27,27,27,27,26,23,24,24,22,22,23,22,20,20,21,19,20,19,19,16,14,12,9,9,7,6,5,5,5,5,4,4,3,4,3,3,3,2,3,2,2,2,2,2,2,2,2,3,2,2,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,3,3,3,3,2,2,3,2,2,2,3,2,2,3,3,3,3,3,4,4,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,2,2,2,1,1,2,2,1,1,2,2,2,2,2,2,2,2,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,6,6,5,6,6,6,6,6,7,7,9,8,9,11,11,12,14,15,17,15,16,18,18,16,18,19,20,20,21,24,23,23,24,25,25,25,26,23,23,25,24,23,25,25,25,24,24,25,26,26,27,26,26,27,27,27,28,27,27,27,27,28,27,28,28,28,28,28,28,28,28,28,27,27,28,27,27,28,27,27,27,25,25,25,25,24,22,20,20,19,19,17,17,15,14,13,11,10,9,8,8,8,8,7,7,8,8,8,9,9,9,9,9,10,10,10,10,10,12,11,12,13,12,12,12,12,12,11,11,11,10,11,11,12,12,13,12,12,11,11,11,10,9,9,9,9,9,8,8,8,8,7,8,7,7,6,7,7,6,6,7,7,6,6,7,8,7,7,8,9,8,9,9,9,8,7,6,6,6,5,5,5,4,4,4,4,4,4,4,4,4,5,4,5,5,5,4,4,4,4,4,4,4,4,4,4,5,5,4,4,5,5,5,6,6,7,7,7,5,5,4,4,4,4,3,3,3,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,3,4,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,3,3,3,3,2,2,2,2,2,2,2,1,2,2,2,3,3,3,4,4,5,5,4,5,5,5,6,5,5,5,5,4,4,4,3,4,4,4,4,5,5,4,5,5,5,5,5,5,5,6,6,6,7,6,7,7,6,7,7,6,6,6,7,6,6,7,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,6,6,5,6,6,6,6,7,6,7,6,7,7,7,7,7,8,8,8,8,8,8,7,8,7,7,7,7,7,7,8,7,7,7,7,7,7,8,8,7,8,8,8,9,8,8,8,9,9,8,8,8,8,8,7,7,8,7,7,7,7,7,6,7,7,6,6,6,6,6,6,6,6,6,6,7,8,9,10,11,13,13,12,13,15,16,18,18,19,21,21,21,20,21,21,21,24,22,23,24,22,25,24,25,24,25,23,25,25,25,26,24,25,25,23,24,25,25,24,25,25,23,25,24,24,23,23,23],[28,28,28,28,28,28,28,27,28,26,26,25,26,26,26,27,26,27,26,27,27,26,26,27,26,26,27,26,26,26,26,27,28,28,26,28,26,26,27,26,28,26,25,25,26,25,23,23,24,21,21,21,21,20,18,21,17,18,18,17,15,14,12,10,9,8,7,7,6,6,6,5,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,4,3,3,3,3,2,2,3,2,2,2,3,2,2,3,3,3,3,4,4,4,4,4,3,2,2,2,3,4,4,4,4,4,3,4,4,3,3,4,3,3,4,4,4,4,4,4,5,5,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,1,2,1,1,0,1,2,2,2,2,3,2,2,2,2,2,2,2,3,2,2,3,3,3,4,4,4,4,3,4,4,4,3,4,4,4,4,4,5,4,4,5,5,6,6,6,6,6,6,6,7,7,6,6,6,6,5,4,4,5,4,4,4,4,3,3,4,4,3,3,4,3,3,3,4,3,3,4,4,4,4,5,5,5,4,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,4,4,5,5,5,4,5,5,4,5,5,5,5,5,5,6,5,5,5,5,4,4,5,4,3,4,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,7,8,8,7,8,8,9,9,8,8,8,7,7,7,6,7,7,7,7,7,8,8,9,9,10,11,12,12,13,15,15,14,16,17,16,17,18,18,18,20,20,21,21,21,23,24,25,24,24,24,22,23,24,23,23,25,24,25,24,23,25,26,27,25,26,26,26,27,27,26,26,27,27,26,27,27,27,26,27,27,28,27,27,27,26,26,27,27,26,27,26,26,27,25,24,24,24,22,22,21,18,19,17,16,16,14,13,13,11,10,9,9,8,9,8,8,9,10,11,11,10,11,12,12,12,12,13,13,12,13,15,14,14,15,15,15,15,15,14,13,13,13,13,14,13,15,14,15,15,15,14,13,14,13,12,11,12,12,11,11,11,10,9,9,9,9,9,7,8,9,9,8,9,10,8,8,10,10,9,9,10,11,11,11,11,10,10,9,8,7,7,6,6,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,5,5,5,6,5,5,5,5,5,5,6,5,5,5,6,6,6,7,7,8,8,7,6,6,6,5,5,5,4,4,4,5,5,5,5,5,6,5,5,5,5,5,5,5,4,5,5,4,4,5,4,4,5,5,4,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,8,7,6,6,7,6,6,7,7,6,6,7,7,6,6,6,7,7,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,4,4,4,4,3,3,3,2,3,3,2,2,2,3,3,3,4,4,4,5,6,6,5,5,6,6,6,6,6,6,6,6,5,4,4,5,5,5,5,5,5,5,5,6,6,5,6,6,6,7,7,7,8,8,9,8,8,8,8,7,7,8,8,7,8,7,8,7,7,7,7,7,6,7,7,6,6,6,7,6,6,6,6,6,7,7,7,7,7,8,9,8,9,9,9,9,9,10,10,10,10,9,9,9,9,8,8,9,8,8,9,9,8,7,8,8,8,10,10,10,9,10,10,9,10,10,10,10,10,11,10,10,9,10,10,9,9,10,9,8,9,10,8,8,9,8,8,8,9,8,7,8,8,7,7,7,8,9,10,10,13,14,14,13,14,16,17,18,20,20,21,22,22,21,21,22,21,23,22,21,23,23,23,24,25,23,24,23,25,26,24,26,24,24,24,25,24,25,25,24,25,25,23,24,25,23,22,23,25],[27,27,27,27,27,28,27,27,28,26,26,26,26,26,25,26,26,26,26,26,26,27,26,26,27,26,26,26,26,26,26,26,27,27,25,27,26,26,27,26,27,25,25,26,25,25,23,23,23,21,22,21,22,20,19,21,18,20,18,17,16,14,12,11,10,10,9,8,9,8,8,7,7,7,6,6,5,5,4,5,5,4,4,5,4,3,4,4,4,3,3,3,3,3,3,3,3,2,3,3,5,3,3,4,4,3,4,4,4,5,4,4,3,2,3,3,4,5,5,5,5,4,4,5,4,4,4,4,4,5,5,4,5,5,5,6,6,5,4,4,4,4,3,4,4,3,3,3,3,3,3,4,3,2,3,2,1,0,1,2,2,3,3,2,3,4,3,3,3,4,3,4,4,5,5,4,5,5,5,5,5,5,6,5,5,6,6,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,8,7,7,7,7,6,6,5,5,5,5,4,4,5,4,4,4,4,4,5,4,5,5,6,5,6,6,5,5,6,6,5,6,6,5,5,6,6,5,5,6,6,6,6,6,6,7,6,7,7,6,7,7,7,7,7,7,7,7,7,7,6,7,6,7,6,7,7,6,7,7,7,7,7,6,7,6,6,6,4,5,5,4,5,6,5,5,6,7,5,6,7,7,7,7,7,8,8,7,8,8,8,8,9,8,9,8,9,9,9,9,9,9,9,10,10,10,10,9,9,9,8,8,9,9,9,9,9,9,9,11,10,11,12,13,13,15,15,16,15,17,18,17,18,19,20,19,21,20,23,23,22,24,25,25,25,25,25,23,24,24,23,24,24,25,25,25,24,27,27,27,26,26,27,27,27,27,27,27,27,28,27,27,27,27,27,27,27,27,27,27,27,27,27,27,26,27,27,26,27,27,26,25,24,24,23,22,22,19,20,19,18,18,16,14,15,13,12,11,10,10,11,10,11,11,11,12,12,12,13,13,13,12,13,15,14,13,14,16,14,15,15,16,15,15,15,15,14,14,14,13,14,14,16,16,15,16,15,15,14,15,14,13,14,14,13,13,13,13,12,11,11,12,10,11,10,10,11,11,11,11,11,10,10,11,11,10,11,11,11,11,12,12,11,11,11,10,10,9,9,8,8,9,8,7,8,7,7,7,8,8,8,7,7,8,7,7,7,8,7,7,7,7,7,7,8,7,7,7,7,7,7,7,8,8,9,9,8,8,7,7,7,6,6,5,5,5,5,5,5,6,6,6,6,6,6,5,6,6,5,5,6,6,5,5,6,5,5,6,7,5,6,7,7,6,7,7,7,7,7,8,7,8,7,8,8,8,9,9,9,9,10,9,9,9,9,8,8,9,8,8,9,9,8,8,8,8,9,8,8,9,8,8,8,9,8,8,7,8,7,7,7,7,7,7,7,6,5,5,5,5,4,4,3,3,3,3,2,2,3,4,3,5,5,5,6,7,8,7,7,8,8,8,7,7,7,7,8,6,6,6,7,7,7,7,7,8,7,8,8,8,8,8,8,9,9,9,10,10,10,10,10,9,10,10,10,10,11,10,10,9,9,10,9,9,10,9,9,9,9,8,8,8,8,8,8,8,8,8,9,9,9,10,9,9,10,10,10,11,11,11,10,10,11,11,11,12,11,10,10,10,10,10,11,10,9,11,10,10,10,10,10,10,11,11,11,11,11,12,11,11,11,11,12,12,13,11,11,11,12,12,11,11,12,11,10,11,12,10,10,11,10,10,10,10,10,9,9,9,9,9,9,10,11,12,12,14,15,15,15,16,17,19,20,21,20,22,21,24,22,23,22,23,24,24,22,25,23,23,23,25,24,24,23,25,26,24,27,26,25,24,25,26,25,24,24,26,26,24,26,25,24,23,25,24],[28,29,29,29,29,29,29,29,29,28,27,27,28,27,27,27,28,28,28,28,27,28,28,27,27,28,27,27,28,28,26,28,28,29,27,29,27,28,28,27,28,27,26,27,27,26,24,24,25,22,22,22,22,21,21,21,19,20,19,19,17,15,12,10,9,8,7,7,6,6,6,5,6,5,5,4,4,3,3,3,3,3,3,4,3,3,4,4,4,4,3,3,3,3,2,3,2,2,2,3,2,2,3,3,3,3,3,3,3,4,4,4,2,3,2,3,3,3,3,4,3,3,3,4,3,3,4,4,3,4,4,4,4,5,5,6,5,5,4,4,4,3,3,3,4,3,2,3,2,2,2,2,2,2,1,1,1,1,0,1,1,3,3,2,2,2,2,2,2,3,2,2,3,3,3,3,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,7,6,6,5,5,5,5,4,4,4,4,3,3,4,3,3,4,4,3,3,4,4,3,4,4,4,4,5,5,5,4,4,5,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,7,7,6,6,6,6,6,6,6,6,6,7,6,6,6,7,6,6,6,6,7,6,5,6,5,5,4,4,5,5,4,5,5,5,4,5,5,5,5,6,5,6,5,6,6,6,6,7,7,7,7,7,8,7,8,9,9,8,9,8,9,9,8,9,8,8,8,7,8,8,8,7,8,9,8,10,9,10,12,13,13,14,16,16,16,17,20,19,18,21,22,21,22,24,24,25,24,25,26,27,25,26,25,24,25,24,22,25,25,25,26,25,26,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,27,28,28,28,28,27,27,28,27,27,28,27,26,27,24,25,25,24,24,22,21,20,19,19,17,17,15,15,13,12,11,11,9,9,9,10,10,9,10,10,11,11,11,11,12,12,12,13,13,13,14,15,13,15,16,16,14,15,14,15,14,12,13,13,13,14,14,14,15,14,15,13,14,13,12,12,12,12,11,12,11,11,10,9,10,10,10,9,9,8,10,9,8,9,10,9,10,11,11,10,10,11,12,11,12,12,11,10,10,9,9,8,8,7,7,7,6,7,7,6,6,7,6,6,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,6,7,7,7,8,8,8,9,9,7,7,7,7,6,7,6,5,6,6,5,6,6,6,7,6,7,6,5,6,6,5,5,6,5,5,5,5,4,5,5,5,5,5,6,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,8,8,8,8,7,8,8,8,7,7,7,7,7,8,7,8,7,7,7,8,7,7,7,7,7,7,7,8,7,7,6,7,6,6,6,6,5,5,4,4,3,3,4,3,3,2,2,3,2,2,2,3,4,4,5,5,6,7,7,6,6,7,7,6,6,6,6,6,6,5,5,5,6,5,6,6,6,6,6,6,6,6,7,7,7,7,7,8,8,9,8,9,10,8,9,9,8,8,9,10,8,8,8,9,8,8,8,8,8,8,7,8,7,7,6,7,6,6,7,7,7,8,8,8,8,8,9,9,8,10,10,9,9,9,10,10,10,10,10,9,10,9,9,9,9,9,8,8,9,8,8,8,9,9,10,10,10,9,10,11,10,10,10,10,10,11,12,10,11,10,11,11,10,10,11,10,10,10,11,8,9,10,9,8,9,10,8,8,9,9,8,8,9,10,11,11,12,14,15,15,14,15,18,19,20,21,20,23,23,24,23,23,22,24,24,24,23,25,23,25,25,26,25,25,24,27,26,25,27,25,26,25,26,26,26,26,25,27,26,24,26,26,25,24,25,25],[27,27,26,27,27,27,27,27,27,26,26,26,25,26,26,26,26,26,26,26,26,27,26,27,26,26,27,27,26,27,26,26,28,27,25,27,26,26,27,26,27,25,25,25,26,24,22,23,23,20,21,22,21,19,20,21,18,19,19,17,15,15,12,11,10,9,9,8,6,7,6,8,7,7,6,5,5,4,4,4,5,4,4,5,5,5,6,6,6,5,5,4,5,4,4,5,4,3,4,4,3,3,4,4,3,4,4,4,4,5,4,3,3,3,3,3,3,4,5,5,5,4,4,4,4,4,5,4,4,5,5,5,6,6,6,7,6,7,6,5,5,6,5,4,5,4,4,4,4,3,3,4,3,2,2,4,2,1,1,0,1,5,2,2,2,3,3,3,3,4,4,3,5,5,5,4,5,5,5,6,5,6,6,6,6,7,6,6,6,7,7,7,8,7,7,8,8,8,8,9,8,8,9,9,8,9,9,8,7,6,6,7,6,6,6,6,6,5,6,7,5,5,6,6,6,5,6,5,5,5,5,5,6,6,6,7,5,5,6,5,5,6,6,5,6,6,6,6,7,6,6,7,7,7,7,7,8,8,8,8,7,8,8,7,8,8,8,7,8,9,8,7,9,8,8,9,8,8,8,8,7,6,7,6,5,6,7,6,6,7,8,5,7,8,7,6,7,8,8,7,8,8,8,9,9,9,9,10,9,9,10,11,10,10,11,11,11,11,10,11,10,10,10,10,9,8,9,10,8,9,9,9,10,10,11,12,12,13,15,15,15,15,16,19,16,16,19,19,18,21,21,22,22,21,24,23,24,25,26,25,23,23,23,23,25,24,25,25,25,24,26,26,28,26,27,26,27,27,27,27,27,27,27,26,27,27,27,26,27,26,28,26,27,27,26,26,26,27,26,27,26,25,26,25,23,24,23,21,20,20,18,18,17,16,16,14,15,14,12,12,11,10,10,12,10,11,12,11,12,13,13,13,13,14,13,14,16,15,15,15,16,15,16,17,17,17,17,17,16,15,16,15,16,16,15,17,16,16,17,15,15,14,16,14,13,13,15,14,13,14,13,12,12,11,13,11,11,12,11,12,11,12,12,12,11,12,12,12,12,13,13,12,13,13,13,12,12,12,11,10,11,9,9,8,8,9,9,8,9,9,9,9,9,9,9,9,9,8,8,9,9,9,8,9,9,8,8,9,9,9,8,8,8,9,8,9,9,9,10,10,9,8,8,9,8,7,7,6,7,6,7,7,8,6,7,6,7,6,6,7,6,6,6,7,6,6,7,7,6,6,8,7,6,8,9,7,7,8,8,7,8,9,9,8,9,9,9,9,9,10,10,10,10,11,10,10,11,10,9,10,10,10,9,10,10,10,10,9,10,10,9,10,10,10,9,9,10,9,9,9,9,8,8,8,8,7,7,5,6,5,5,4,4,4,3,4,3,2,4,3,2,2,4,4,5,5,6,6,7,7,6,6,7,6,8,6,6,6,6,7,5,6,6,7,7,7,8,9,9,8,10,10,9,10,10,9,10,11,10,11,11,10,10,10,10,10,11,11,11,10,11,11,10,10,11,10,10,11,9,10,10,10,9,8,8,8,9,9,9,9,10,10,10,10,10,12,10,10,11,11,10,10,11,11,10,11,10,11,11,10,11,11,10,10,11,11,10,10,11,10,10,11,11,11,10,12,11,11,12,11,12,11,11,11,11,12,12,13,12,12,11,14,12,12,12,12,12,11,11,12,12,11,12,11,12,11,11,12,11,10,11,10,12,10,11,11,13,13,15,16,17,17,16,18,19,20,22,20,23,22,22,22,23,22,23,23,24,23,25,23,24,24,25,25,26,24,25,27,25,26,25,26,25,24,24,27,26,25,26,26,25,26,26,25,23,24,25],[28,28,28,28,28,28,28,28,28,27,26,26,26,27,26,26,26,27,26,27,27,27,27,27,27,27,27,26,27,26,26,27,28,28,26,28,27,27,27,26,27,26,26,26,26,25,23,22,24,21,21,21,22,21,20,20,17,19,19,17,15,14,13,9,8,7,6,5,5,5,5,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,3,3,4,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,4,3,3,3,3,3,3,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,5,5,6,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,1,1,0,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,3,4,4,4,4,5,4,4,4,5,5,5,5,5,7,6,6,6,7,6,6,7,7,7,7,6,5,5,4,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,4,4,4,4,4,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,5,6,5,5,6,6,5,4,4,4,4,5,4,4,5,5,4,5,5,5,5,6,6,6,5,5,5,4,4,4,3,3,4,3,3,3,4,3,3,4,4,3,3,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,7,7,7,7,7,6,5,6,7,6,5,6,7,7,7,8,9,11,11,12,14,15,16,15,16,18,17,17,19,19,19,21,21,22,22,23,25,23,24,23,25,24,22,24,24,22,24,23,24,24,24,24,26,26,27,26,27,27,27,27,27,27,27,27,26,27,27,27,27,27,27,26,26,26,26,26,26,26,27,26,26,27,26,25,26,24,25,25,24,23,22,20,19,19,16,16,16,14,14,12,11,10,9,8,8,7,8,8,8,9,9,10,10,10,10,11,11,12,12,12,11,13,13,13,14,15,15,15,15,14,14,13,12,12,12,12,13,13,14,15,14,14,13,11,12,12,11,11,11,11,10,10,10,9,8,8,8,8,7,7,7,8,7,7,8,8,8,8,9,9,8,9,10,10,11,11,11,10,10,9,8,7,7,6,6,5,5,5,5,5,5,5,6,6,5,6,6,6,5,6,6,5,5,5,5,5,5,5,4,4,5,5,4,4,5,6,6,6,7,7,8,7,6,5,5,4,5,5,4,4,4,5,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,3,3,4,4,3,4,4,4,3,4,4,3,4,4,4,4,5,5,4,5,5,6,5,6,6,6,6,6,6,6,6,6,6,7,6,6,6,7,6,6,5,6,6,5,5,6,6,5,5,6,5,6,5,5,5,5,4,4,4,4,3,3,3,3,2,3,2,2,2,2,2,2,1,2,3,3,4,4,4,5,5,6,4,5,5,5,6,5,5,4,5,4,4,4,3,4,4,4,4,5,4,4,5,5,5,5,6,6,6,6,6,6,7,7,8,8,6,7,8,7,7,8,8,7,7,7,7,7,6,6,7,6,6,6,6,5,6,5,5,5,5,5,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8,9,9,9,9,8,8,8,8,7,7,8,8,7,7,8,7,7,7,7,7,8,8,9,8,9,9,8,9,8,9,9,9,10,9,10,9,10,10,9,9,10,9,8,9,9,7,8,9,8,7,8,8,8,7,8,8,7,7,8,9,9,11,12,14,15,15,14,16,17,19,19,20,20,22,22,24,22,23,21,24,24,23,24,24,24,26,25,25,25,26,24,25,26,25,25,25,25,25,25,26,26,26,25,26,25,24,25,25,25,23,24,25],[29,28,28,29,29,29,29,29,29,27,28,27,28,27,27,27,28,28,27,28,28,27,28,28,27,27,28,27,28,28,27,28,29,29,28,28,28,28,28,28,29,27,27,26,27,26,24,25,25,22,23,22,23,21,21,21,20,20,19,20,17,15,12,10,8,6,6,5,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,3,3,2,2,3,2,2,3,3,2,3,3,3,3,3,4,4,4,4,4,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,1,2,1,2,2,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,5,5,5,5,5,6,6,5,6,6,6,6,5,5,4,4,4,4,4,3,4,3,3,3,3,3,2,2,3,2,2,2,3,2,2,2,3,2,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,4,4,4,3,4,4,3,4,4,4,4,4,4,4,5,5,5,5,4,4,4,4,3,4,3,3,3,3,3,3,4,3,3,3,4,3,3,4,4,3,4,4,4,4,4,5,5,5,5,6,5,5,6,6,6,6,7,7,7,6,7,7,6,6,6,5,6,7,6,5,6,7,6,7,8,9,12,12,12,16,15,17,15,17,19,18,18,20,21,21,22,23,24,25,23,26,26,26,26,26,24,25,26,24,24,25,24,25,24,25,24,27,27,27,26,27,27,27,27,28,27,26,27,27,27,27,28,27,27,27,27,28,27,27,27,27,26,27,27,26,27,26,26,27,25,26,26,24,23,22,19,21,20,17,17,16,15,14,13,12,10,9,8,7,7,7,8,7,8,8,8,9,9,9,9,10,10,11,10,11,11,12,11,12,13,13,13,13,12,12,11,11,11,11,11,12,12,12,13,13,13,12,11,11,10,10,9,9,10,10,9,8,8,8,7,7,7,6,6,6,7,7,6,6,7,7,7,7,8,7,8,8,9,9,9,9,9,8,8,7,6,6,5,5,4,4,4,5,4,4,5,5,4,5,5,5,5,5,5,5,5,5,5,4,4,4,5,4,4,5,5,4,4,5,6,5,6,7,7,7,7,6,5,5,4,4,4,4,3,4,4,4,5,5,4,5,4,4,4,4,4,4,3,4,4,4,3,4,4,3,3,4,3,3,3,4,3,3,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,6,6,5,5,5,5,5,5,5,5,5,5,6,5,5,6,5,5,5,5,5,5,5,5,5,6,5,5,5,5,4,4,4,4,3,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,4,5,5,4,4,5,5,6,5,5,5,4,4,3,3,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,6,6,6,6,6,7,6,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,4,5,4,5,5,6,5,6,6,6,6,6,6,7,6,7,7,7,7,7,8,8,8,7,7,7,7,7,7,7,7,7,6,7,7,7,6,6,7,7,7,8,8,8,8,8,7,8,8,8,8,8,9,8,8,8,8,8,7,7,8,7,6,7,7,7,6,7,6,6,6,6,6,6,6,6,6,6,6,8,9,10,10,12,13,13,12,14,15,16,19,21,20,23,23,23,21,23,22,24,25,24,24,26,24,25,26,26,25,26,25,26,26,26,28,25,26,27,24,25,26,26,26,26,27,26,26,26,25,25,26,25],[28,28,28,28,28,28,28,28,28,27,26,25,27,27,26,26,26,26,26,27,27,26,26,27,26,27,27,26,27,26,25,27,27,28,26,27,26,26,27,26,27,25,25,26,26,25,23,23,23,20,22,22,20,21,21,20,18,20,18,18,16,14,12,9,8,6,5,5,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,3,2,2,3,3,3,3,2,3,3,2,2,3,3,2,3,3,2,3,3,3,3,3,3,3,3,4,4,3,3,2,2,2,2,3,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,4,4,5,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,6,6,5,5,6,6,5,6,6,6,6,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,2,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,4,4,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,5,6,6,6,6,6,6,7,6,6,6,5,6,6,5,5,6,6,6,7,8,10,13,12,13,16,17,16,15,17,18,17,17,19,19,18,20,21,21,21,21,22,23,24,23,24,23,22,22,22,22,23,22,24,23,21,23,25,25,26,24,26,26,26,26,27,26,25,26,26,25,26,26,26,26,27,26,27,26,27,26,26,26,26,26,25,26,25,24,26,24,24,24,24,22,21,20,18,19,18,16,17,14,13,13,11,10,9,7,6,7,8,7,8,8,8,8,8,8,9,9,9,10,10,10,10,10,11,11,12,13,13,13,13,11,12,11,11,10,10,11,11,11,12,13,11,13,12,10,10,9,10,9,9,9,9,8,8,8,8,7,7,7,6,6,7,7,6,6,6,7,6,6,7,7,7,7,7,8,8,9,8,8,8,7,6,6,5,5,4,4,4,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,5,5,4,4,4,5,5,6,7,7,7,6,6,5,5,4,4,4,4,3,4,4,4,4,5,4,5,4,4,4,3,4,4,3,3,4,3,3,4,3,3,3,4,3,4,4,4,3,3,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,6,5,6,5,6,5,6,5,5,5,5,5,6,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,1,2,2,2,2,2,3,3,3,3,4,4,4,4,4,5,4,5,4,4,4,4,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,6,6,7,6,6,6,6,6,6,6,5,5,5,5,5,4,5,4,5,5,5,5,5,6,5,6,6,6,6,6,7,6,6,7,7,7,7,8,8,7,7,7,7,7,7,6,7,7,7,6,7,7,6,6,6,6,7,7,8,8,8,8,8,7,8,8,8,8,8,8,8,8,7,8,8,7,7,8,7,6,7,7,7,6,7,6,6,6,6,6,6,6,6,5,6,6,7,8,10,10,12,13,13,12,13,15,16,17,19,18,22,22,22,20,22,21,21,22,22,23,24,23,24,24,25,24,24,23,26,26,24,26,25,25,25,25,24,25,24,24,24,24,23,25,25,24,23,24,24],[28,28,28,28,27,28,28,27,28,26,26,26,26,26,26,26,26,26,27,26,26,27,26,26,26,27,27,27,27,26,26,27,27,28,27,28,27,28,28,27,28,26,26,26,26,26,24,23,24,21,21,21,22,20,20,21,18,19,18,18,15,13,11,8,7,6,5,5,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,2,2,2,2,2,3,2,3,2,2,2,2,2,2,2,3,2,3,3,3,3,3,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,5,5,5,5,5,6,5,5,6,5,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,7,6,6,6,6,6,6,6,5,5,6,5,5,5,6,6,7,7,8,10,10,11,13,14,15,14,15,18,16,16,18,18,18,18,20,21,21,21,22,23,24,23,24,23,21,23,22,22,22,23,24,24,23,23,26,25,26,25,26,26,27,26,27,27,26,26,26,26,26,26,26,26,26,26,27,26,26,26,26,25,26,25,25,26,24,24,25,22,24,24,22,22,20,19,17,18,16,15,14,13,12,11,10,8,7,7,7,7,7,7,7,7,8,8,8,8,8,9,9,9,10,10,10,11,11,11,12,12,13,12,12,12,11,10,10,10,9,10,11,11,12,12,12,12,11,10,11,10,9,9,9,9,8,8,8,7,7,7,7,7,7,6,7,7,6,7,7,7,6,7,7,7,7,7,7,8,8,8,8,8,7,7,6,6,6,5,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,5,5,5,6,6,7,7,6,6,5,4,4,4,4,3,3,4,4,4,4,4,5,5,5,5,4,4,4,4,3,4,4,3,3,4,4,3,3,4,3,3,3,4,4,3,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,6,6,5,6,6,6,5,6,6,5,6,6,6,5,5,6,6,6,5,5,5,5,5,5,5,5,5,5,4,5,4,4,4,4,3,3,3,3,2,2,2,2,2,1,2,2,2,2,2,2,3,3,3,4,4,5,5,4,4,5,5,5,4,4,4,4,4,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,6,6,7,6,6,6,6,6,6,6,5,5,5,5,4,5,4,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,7,7,7,7,6,7,7,6,6,7,7,6,6,6,6,6,7,7,7,7,7,8,7,7,7,8,8,8,8,8,8,8,9,8,7,7,8,7,7,7,7,7,7,7,6,7,6,6,6,6,6,6,5,6,6,7,7,9,9,10,12,12,11,12,13,16,17,17,17,20,21,20,20,20,21,21,22,22,21,23,21,23,23,24,23,24,22,24,25,24,26,24,24,23,23,24,24,23,23,24,24,23,24,24,22,22,23,24],[28,28,28,28,28,29,28,28,28,27,27,27,27,26,26,27,27,27,26,27,26,26,27,27,27,27,27,27,27,26,26,28,27,28,27,28,27,27,27,27,27,27,26,26,26,26,24,23,25,23,22,21,22,20,20,21,19,19,18,18,15,14,11,8,7,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,4,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,4,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,5,5,5,5,5,5,5,5,4,5,4,5,5,4,4,5,5,6,7,7,8,11,11,11,15,14,16,17,16,18,18,17,19,19,20,21,22,23,24,22,24,25,24,25,25,23,23,24,23,23,23,24,24,24,24,24,26,26,27,26,26,27,27,27,27,26,27,27,27,27,26,27,27,27,27,27,27,27,27,26,27,25,26,27,25,27,26,26,27,24,25,25,23,24,22,21,19,19,18,16,16,14,13,11,10,8,7,6,6,5,6,6,6,6,6,6,7,7,7,7,8,8,9,8,9,10,10,10,11,11,12,11,11,10,11,10,9,9,8,9,10,10,11,11,11,11,10,10,9,9,8,8,8,8,7,7,7,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,6,6,5,6,6,7,7,8,7,7,6,6,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,6,6,5,5,4,4,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,2,2,1,2,2,3,3,3,3,4,4,5,4,4,4,5,5,5,4,4,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,4,4,4,4,4,4,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,7,7,6,6,6,6,6,6,5,6,6,5,6,6,5,5,5,5,5,6,6,6,6,6,7,6,7,7,7,7,7,7,6,7,6,7,7,6,6,6,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,4,4,5,6,7,8,9,10,12,12,11,12,13,14,17,18,18,21,20,21,20,20,21,21,23,22,22,23,22,24,25,26,24,25,25,26,25,25,26,24,24,25,23,24,25,25,24,24,25,24,25,25,23,22,24,24],[29,29,29,29,29,29,29,29,29,28,28,27,28,28,28,27,28,28,28,28,28,28,28,28,28,28,29,28,29,28,28,29,29,29,28,29,28,28,28,28,28,27,27,27,27,27,25,24,25,22,24,23,23,22,21,22,19,20,19,19,16,15,11,9,7,6,5,4,4,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,4,5,5,5,5,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,3,3,3,3,3,3,2,3,3,3,2,3,3,2,3,3,3,2,3,3,3,3,3,3,3,4,4,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,5,5,5,4,5,5,5,5,5,5,5,6,7,8,11,11,12,14,14,16,15,16,19,18,17,19,20,20,21,22,23,24,22,25,25,25,25,26,24,25,25,24,24,24,24,25,24,25,25,26,26,27,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,27,27,27,26,27,27,26,28,27,26,28,26,26,26,25,25,22,22,20,21,18,16,16,14,13,12,10,8,7,6,6,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,8,9,10,9,10,11,11,10,11,10,10,9,9,9,9,9,9,9,10,10,10,10,10,9,9,8,8,8,8,8,8,7,7,7,6,6,6,5,5,5,5,6,5,5,6,6,5,6,6,6,6,6,6,7,7,7,7,7,7,6,5,5,5,4,4,3,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,3,4,4,5,5,5,5,6,7,6,5,4,4,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,4,4,4,4,4,4,4,5,4,4,4,5,4,4,4,4,4,4,5,5,5,4,5,5,5,4,4,5,4,4,5,5,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,4,4,4,5,5,4,4,4,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,5,5,4,5,5,5,5,5,6,5,5,5,5,5,5,5,6,5,5,6,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,5,5,5,5,5,6,5,6,6,5,6,6,6,6,6,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,7,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,7,7,9,9,11,12,11,11,12,13,14,16,18,19,22,22,20,19,21,21,20,24,21,23,24,23,26,25,26,25,27,25,26,26,26,26,25,26,26,24,24,26,26,25,26,25,24,25,26,24,23,26,24],[27,28,27,28,27,28,28,27,28,26,25,25,25,26,25,26,25,26,26,26,26,26,26,26,26,26,26,27,27,26,25,26,26,28,26,27,26,26,26,26,27,26,24,25,26,25,23,22,23,20,21,21,20,20,19,20,18,19,18,16,14,13,10,8,7,6,5,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,1,1,1,1,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,5,5,4,4,5,5,4,5,6,5,5,5,4,4,3,3,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,3,2,2,3,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,4,3,4,4,4,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,5,5,6,6,7,8,11,11,11,14,14,17,14,15,18,17,15,17,19,17,18,20,21,20,20,22,22,23,23,23,22,21,23,22,21,22,22,24,22,22,23,24,24,26,24,26,26,25,26,26,25,25,25,25,26,25,25,26,26,25,25,26,25,25,25,25,25,25,25,25,26,24,24,25,23,23,24,23,22,21,20,17,18,16,14,15,12,12,11,9,8,7,7,6,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,8,9,9,9,10,11,11,11,11,9,10,9,9,8,8,9,9,9,10,11,10,10,9,9,8,8,8,8,7,8,7,7,7,7,6,6,6,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,6,6,5,5,5,4,4,4,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,5,5,5,6,6,7,6,5,4,4,3,3,4,3,3,3,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,4,4,5,4,4,4,5,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,1,2,2,2,2,2,2,3,3,4,3,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,5,6,6,5,5,6,6,5,6,6,6,6,5,5,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,6,7,6,6,6,6,6,6,6,5,6,6,5,5,5,6,6,6,6,6,6,7,7,6,7,7,7,7,7,8,7,7,7,8,7,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,7,7,9,9,10,11,11,10,11,12,14,16,16,16,20,21,19,18,20,20,20,23,20,22,23,21,23,24,25,23,25,22,25,24,24,25,23,24,25,24,23,24,24,23,23,24,22,24,24,23,22,24,23],[28,28,28,28,28,28,28,28,28,27,26,27,27,26,26,27,27,27,27,27,27,27,27,27,27,27,26,27,27,27,26,28,27,28,28,28,27,28,28,27,28,27,27,27,27,26,24,23,24,22,22,22,22,20,19,20,19,18,16,18,14,13,10,8,7,6,5,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,2,1,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,3,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,3,3,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6,6,6,6,6,6,6,6,6,7,7,6,6,6,6,6,5,6,6,5,5,5,6,5,5,5,5,4,5,5,4,4,5,4,4,4,5,6,7,7,7,9,11,11,10,11,12,13,14,16,16,19,20,18,18,19,19,19,20,20,20,22,21,23,23,25,23,23,23,24,23,23,25,23,22,22,22,24,24,23,23,23,23,22,24,23,22,22,24,22],[28,28,28,28,28,29,28,28,28,27,27,27,27,26,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,27,27,28,28,28,28,28,27,28,28,28,28,27,27,27,27,27,25,24,25,24,23,22,23,21,20,22,20,20,19,19,16,14,11,8,7,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,2,2,1,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,1,2,2,2,2,2,2,2,2,3,2,2,3,3,4,4,4,4,4,4,4,4,4,5,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,2,2,1,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,4,5,5,5,4,4,4,4,5,4,4,4,5,5,6,6,8,11,12,12,15,15,16,16,17,19,18,18,20,20,21,21,21,24,24,22,24,25,24,25,26,24,24,23,22,22,23,23,25,24,23,24,25,26,27,25,26,26,26,27,26,26,26,26,26,26,26,26,27,26,26,26,27,26,27,27,27,26,27,26,26,27,26,26,27,24,26,26,25,25,23,21,20,20,17,16,15,14,12,10,10,8,7,6,6,5,6,6,5,6,6,6,7,7,7,7,8,8,9,8,9,8,9,9,10,11,10,10,11,9,10,9,9,8,9,9,9,9,9,10,10,10,9,9,8,8,8,7,7,7,7,7,6,6,6,5,5,5,5,4,5,5,4,4,5,5,5,5,5,6,5,6,6,6,7,7,7,7,6,6,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,5,5,6,6,6,5,5,4,4,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,2,3,3,3,2,2,3,2,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,4,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,7,6,6,6,6,6,6,6,5,6,6,5,5,6,5,5,5,5,5,6,6,6,6,6,7,6,7,7,6,7,7,7,7,7,6,7,7,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,4,5,4,4,4,5,6,7,8,8,10,12,11,10,12,14,14,16,18,19,22,22,21,19,21,21,20,24,21,22,24,22,25,25,25,25,26,25,26,25,26,26,25,25,27,24,24,26,26,25,26,25,24,25,26,24,22,26,25],[29,28,28,29,28,29,28,28,29,27,27,27,27,27,28,27,27,28,28,28,28,28,27,28,28,27,27,28,28,27,27,28,28,29,28,28,26,28,28,27,28,27,26,27,26,26,25,24,25,22,23,23,23,21,21,21,19,21,19,19,15,13,11,8,7,6,5,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,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4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,3,4,4,4,4,4,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,4,4,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,3,4,3,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,5,6,7,8,9,10,10,10,11,12,13,15,16,17,19,20,19,17,19,19,20,21,20,20,22,21,24,23,25,24,25,24,25,25,25,27,24,25,25,24,24,25,25,24,25,24,22,24,24,23,21,24,23],[27,27,27,27,26,28,27,26,28,25,26,25,25,25,24,27,25,25,26,25,25,26,25,25,26,26,25,26,26,24,25,26,25,27,26,26,25,26,27,26,26,25,24,25,25,24,24,22,22,21,21,20,20,19,18,19,17,17,16,15,13,12,9,7,7,5,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,2,2,1,2,2,2,2,1,2,2,1,1,1,1,1,1,2,1,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,2,2,2,2,3,3,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3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,13,14,15,17,20,18,17,18,18,18,20,19,19,21,19,22,21,23,21,22,22,23,22,22,25,22,22,23,22,22,23,22,23,21,22,20,23,22,21,20,22,22],[29,28,28,29,28,29,28,27,28,27,27,27,26,26,26,27,26,26,27,26,26,26,26,26,26,27,26,27,27,26,25,27,27,28,26,27,26,27,27,27,27,26,25,26,26,26,24,23,23,23,23,22,22,20,19,19,18,18,17,17,14,12,10,7,6,5,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,2,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,3,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,2,1,1,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,4,4,4,3,4,4,4,4,4,5,5,5,6,7,8,10,11,12,13,14,13,15,15,15,15,17,17,17,19,18,20,22,21,22,23,24,24,24,22,23,23,24,22,23,23,25,24,24,23,24,25,26,25,26,26,25,26,25,25,25,25,25,26,26,26,26,26,27,26,27,27,27,26,27,24,26,26,25,26,26,26,27,23,24,24,24,24,22,19,19,18,16,15,13,12,11,10,8,7,6,5,5,5,5,5,5,5,5,5,6,6,5,6,6,7,7,7,7,8,7,8,9,9,9,9,9,8,8,8,7,7,7,7,8,8,8,9,8,8,7,7,7,7,7,7,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,6,6,6,6,5,5,4,4,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,4,4,4,5,6,5,5,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,2,2,2,2,2,2,2,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,3,3,4,3,3,4,4,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,4,3,4,4,4,4,4,5,5,4,5,5,5,5,5,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,5,6,6,6,6,5,5,5,5,4,5,5,4,4,5,4,4,4,4,4,4,4,4,4,3,4,5,6,7,7,8,10,10,9,10,11,12,15,17,17,18,21,18,16,18,19,19,21,20,20,21,21,24,23,23,23,24,23,24,24,23,26,22,23,23,23,23,24,23,24,23,23,22,23,23,22,21,24,24],[28,29,29,29,29,29,28,28,28,27,27,28,27,27,27,27,27,27,27,27,26,27,27,27,26,27,27,27,28,26,26,27,27,28,27,28,27,28,27,27,28,27,26,27,26,26,26,24,25,24,24,22,23,21,21,21,20,20,18,19,16,14,11,9,7,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,1,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2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,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,5,5,5,5,5,5,6,5,6,6,7,7,6,6,6,6,6,6,6,5,6,6,5,5,6,5,5,5,5,5,6,6,6,6,6,6,6,7,6,6,6,7,7,6,6,6,7,6,5,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,3,4,5,6,7,7,9,10,10,10,11,12,13,15,16,18,19,20,18,16,18,20,18,23,19,21,22,21,24,24,23,24,25,23,25,24,24,25,24,24,25,22,23,25,25,24,25,24,22,24,25,22,20,25,25],[29,29,28,29,28,29,28,28,28,27,27,27,26,26,26,27,26,26,27,26,27,27,26,26,27,27,26,26,27,25,26,27,27,28,26,27,25,27,27,26,26,26,25,26,26,25,24,22,23,22,22,21,21,20,19,19,19,18,17,16,14,12,10,7,6,5,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,1,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,3,3,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,6,7,9,10,9,12,13,14,13,14,16,15,15,17,17,18,18,19,21,22,21,22,23,23,24,25,22,22,22,22,22,22,23,24,22,23,23,25,25,27,24,25,26,25,26,25,25,26,26,25,26,26,26,26,26,26,26,27,26,26,25,26,25,27,27,25,26,25,24,27,23,24,24,23,23,21,20,19,18,17,15,15,14,11,10,8,7,6,5,5,5,5,5,5,5,5,6,5,5,6,6,6,6,7,6,7,7,7,7,8,8,8,8,8,7,8,7,7,7,7,7,8,8,8,8,7,7,8,7,7,6,6,6,6,6,6,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,5,5,4,4,3,3,3,3,2,2,2,2,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,4,4,5,5,6,6,5,4,3,3,3,3,3,3,2,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,4,3,3,3,4,3,3,4,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,3,3,4,4,4,4,4,3,3,3,3,2,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,5,5,5,5,5,5,5,4,5,5,5,4,5,4,4,4,4,5,5,5,5,5,5,6,5,6,5,5,5,6,6,5,5,6,6,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,5,6,7,7,8,9,9,10,11,12,12,15,15,17,18,21,18,17,18,19,18,22,18,21,21,21,24,23,24,23,24,23,24,24,24,25,23,23,24,22,22,24,24,24,24,23,22,23,24,22,21,24,24],[28,28,28,28,27,28,28,27,28,26,25,27,25,26,25,26,24,25,26,25,25,26,25,25,26,26,25,26,26,24,25,26,26,27,25,26,25,26,26,26,26,26,24,25,25,25,24,22,22,22,22,21,22,19,19,18,18,18,16,16,13,11,10,8,7,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,3,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,2,2,2,2,3,2,2,2,2,2,1,2,2,1,2,2,2,1,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,4,4,3,4,4,4,4,4,5,5,6,6,8,9,10,10,12,14,14,12,14,16,14,14,16,16,18,18,17,19,21,20,21,23,23,23,24,22,22,23,23,22,23,23,24,24,23,23,25,25,26,24,25,26,26,26,26,26,26,26,26,27,26,26,26,27,27,26,27,27,26,26,26,24,26,26,25,26,26,25,26,23,24,23,23,22,21,19,17,17,16,15,14,12,11,10,8,7,6,6,5,5,5,5,5,5,5,5,6,6,6,6,7,7,7,7,7,8,8,8,9,10,9,9,9,9,8,8,7,7,7,7,8,8,9,9,8,9,8,8,8,7,7,7,7,6,6,6,5,5,5,5,5,4,4,4,4,5,4,4,5,5,4,5,5,5,5,5,5,5,6,6,6,6,6,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,6,6,5,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,4,4,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,4,5,5,5,4,5,5,5,5,4,5,5,4,4,5,5,4,4,4,4,4,4,4,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,5,6,7,7,8,9,10,9,10,11,12,15,16,17,18,21,18,18,18,18,18,21,20,20,21,20,23,23,24,23,24,23,24,24,23,25,23,23,25,24,24,24,23,24,23,24,22,23,23,21,21,23,22],[28,28,28,28,28,28,27,28,28,27,27,26,27,26,26,26,25,26,25,26,26,26,26,26,26,26,26,26,26,25,25,26,26,27,26,27,26,26,27,26,27,26,26,26,25,25,24,22,24,23,22,22,22,20,18,20,18,18,18,17,14,12,10,8,7,6,5,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,2,2,2,2,2,3,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,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4,4,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,6,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,3,4,4,4,3,4,5,5,7,7,9,10,10,10,11,12,14,16,17,17,19,21,18,18,19,20,19,22,20,21,22,21,25,24,24,24,25,24,25,25,24,25,24,24,24,23,25,26,25,24,25,25,23,24,25,22,21,24,24],[28,29,28,29,28,29,28,28,28,28,27,27,27,26,27,27,26,27,26,27,26,26,27,26,26,27,27,27,27,25,26,27,27,28,27,27,27,28,27,27,27,27,26,27,26,26,24,23,24,24,23,22,23,22,21,22,21,19,19,19,16,14,12,9,8,7,6,5,5,4,4,4,3,3,3,3,3,2,2,3,2,2,3,3,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,2,2,2,2,2,2,2,2,2,1,1,2,2,2,1,2,2,2,2,2,2,2,3,3,3,2,3,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,4,5,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,3,2,2,2,2,2,2,3,2,3,3,3,3,3,4,3,3,4,4,4,4,5,5,5,5,5,5,6,5,5,6,5,5,5,5,5,5,5,5,5,6,6,7,7,8,10,11,11,13,14,15,15,15,18,17,17,18,19,20,21,21,23,24,24,25,25,26,24,26,24,24,26,23,23,24,25,25,24,25,25,26,26,27,26,26,27,26,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,26,28,27,27,28,27,27,27,24,25,25,24,24,22,21,20,19,19,17,16,15,13,12,10,9,8,7,7,7,7,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,8,9,9,10,10,10,10,9,9,9,9,9,9,9,9,9,10,10,9,9,9,9,8,8,8,8,8,8,7,7,7,7,6,6,6,6,5,5,5,5,5,5,5,5,5,5,6,6,5,6,6,6,7,7,7,7,6,6,5,5,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,4,5,5,5,6,6,7,6,5,4,4,3,4,3,3,3,3,4,4,4,4,4,4,4,5,4,4,4,4,3,4,4,4,3,3,4,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,3,4,5,4,4,4,5,4,4,5,4,4,4,5,5,5,5,4,5,5,4,5,5,5,4,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,3,2,2,2,3,3,3,4,4,4,4,5,5,4,4,5,5,5,5,5,4,4,4,4,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,4,5,5,5,6,6,6,6,5,6,5,5,6,6,6,6,6,6,6,6,5,6,6,5,6,5,5,5,5,5,5,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,6,6,6,6,6,6,6,7,6,6,6,6,6,6,7,7,7,6,7,7,7,7,7,7,7,7,8,7,7,6,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,4,5,5,4,4,4,6,6,8,8,9,10,10,11,11,13,13,17,16,18,19,20,19,17,19,20,19,22,19,21,22,20,25,23,25,23,25,23,26,25,24,25,24,25,24,22,23,25,25,23,25,24,22,24,25,22,22,23,24],[28,28,27,28,27,27,28,27,27,26,25,25,26,25,25,26,26,26,26,26,25,26,26,25,26,26,25,26,26,25,25,26,26,26,26,26,24,26,26,26,26,25,24,25,25,25,24,22,23,23,21,21,21,20,20,20,19,18,17,17,14,13,11,9,8,7,6,5,5,4,4,4,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,2,3,2,2,3,3,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,5,4,5,5,5,5,5,5,4,4,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,3,3,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,6,6,7,7,8,10,11,11,12,14,15,13,14,16,15,16,18,18,18,18,18,20,21,21,23,23,23,23,24,23,22,23,22,21,22,23,23,22,22,22,25,25,25,23,24,25,26,25,25,25,25,25,25,25,26,26,26,26,26,25,26,26,25,26,25,25,26,25,25,26,25,24,26,24,25,24,23,22,21,20,18,18,16,15,15,13,12,11,9,8,7,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,9,9,9,10,11,11,10,10,9,9,8,8,8,8,9,9,9,10,11,10,10,10,9,9,8,8,7,7,7,7,7,7,7,6,6,6,6,5,5,5,5,5,5,6,6,5,6,6,6,6,6,6,7,7,7,7,7,7,6,5,5,4,4,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,5,5,6,6,7,7,6,5,4,4,4,4,4,3,3,4,4,4,4,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,5,5,4,4,5,5,4,4,5,4,4,5,5,5,5,5,5,5,4,5,5,5,4,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,2,3,3,3,3,3,3,4,4,5,5,5,5,6,5,5,5,5,5,5,5,4,4,4,4,4,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,6,5,5,6,5,6,6,6,5,6,6,6,6,6,6,6,5,5,6,6,5,5,5,5,5,5,5,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,8,8,8,7,7,7,7,7,6,6,7,6,6,6,7,6,5,6,6,6,6,6,7,7,7,7,7,7,7,7,7,8,8,7,7,7,8,7,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,6,7,8,8,10,11,10,10,11,13,13,15,16,16,19,18,18,17,18,18,18,20,18,20,20,21,23,22,24,22,25,23,24,25,24,26,23,24,25,23,22,24,24,23,24,23,22,23,24,22,21,23,24],[28,27,27,27,27,27,27,27,27,25,25,25,25,24,24,25,25,25,25,25,25,25,25,25,25,25,24,25,25,24,24,26,25,26,25,25,24,25,25,25,25,24,24,24,24,24,24,22,22,21,21,20,21,19,19,19,18,18,17,17,14,13,11,9,9,7,6,6,5,5,5,4,4,4,4,4,3,3,3,3,3,3,4,3,3,3,4,4,4,4,4,4,3,3,3,3,3,2,3,2,2,3,3,3,3,3,3,3,3,4,4,3,3,2,2,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,2,1,1,1,2,2,2,2,2,2,2,3,3,3,3,4,4,5,4,5,5,5,5,6,6,6,6,5,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,4,3,3,4,4,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,4,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,7,7,8,8,10,12,12,12,14,15,15,14,15,16,15,16,17,18,18,18,18,20,20,21,22,22,24,23,24,22,22,23,22,21,22,22,23,22,23,23,24,24,25,23,24,25,25,26,25,25,26,26,26,26,25,26,26,26,26,25,26,26,26,26,26,24,26,25,25,25,25,25,25,23,24,24,23,22,21,20,19,18,16,15,14,13,12,11,10,9,8,7,7,7,7,7,7,7,7,7,7,8,8,8,8,9,10,9,9,11,10,11,11,12,12,11,12,10,10,9,9,9,9,9,10,10,11,12,12,11,10,10,10,9,9,9,9,8,8,8,7,7,7,6,7,6,6,7,7,6,6,7,6,6,6,7,6,6,7,6,6,7,7,8,8,7,7,7,6,6,5,5,4,4,3,4,4,4,3,4,4,4,4,5,5,4,5,5,5,4,5,5,4,4,5,5,4,5,5,5,5,5,5,6,6,6,7,7,7,6,6,5,5,4,4,5,4,4,4,5,5,5,5,6,6,6,6,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,5,5,5,5,5,6,5,5,5,6,5,6,5,6,5,6,6,6,6,6,5,6,5,6,6,6,6,6,5,5,6,5,5,5,5,4,4,4,4,4,4,4,3,3,3,4,3,3,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,5,5,5,5,4,4,4,4,5,5,5,5,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,6,7,6,6,6,6,6,6,6,6,5,5,5,6,6,6,6,6,6,7,6,6,7,7,7,7,7,8,8,8,9,8,8,8,8,8,8,7,7,8,7,7,7,7,7,6,7,6,7,7,7,7,7,7,8,8,8,8,8,8,9,8,8,8,8,8,8,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,7,7,8,8,9,10,11,10,12,12,13,15,15,16,18,18,17,17,19,18,19,20,19,20,20,20,23,21,24,23,24,22,24,25,23,25,23,24,23,23,23,24,23,22,23,23,23,24,23,22,21,23,23],[28,27,27,27,27,27,28,27,26,26,26,25,26,25,25,26,26,26,25,26,26,25,26,25,25,25,26,26,26,24,25,26,26,27,26,27,26,26,26,26,26,25,24,25,25,25,24,22,23,22,22,22,22,21,20,20,19,18,18,17,15,14,12,10,9,8,7,6,6,6,5,5,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,5,5,6,5,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,3,3,4,4,4,3,3,3,2,2,3,2,2,2,2,2,2,3,3,2,2,3,3,3,3,3,4,4,3,2,2,2,3,2,2,3,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,5,6,6,6,5,6,6,6,6,6,5,6,6,6,6,6,7,7,7,8,9,11,11,12,14,14,15,14,15,17,16,16,17,18,20,20,19,21,22,22,23,23,24,24,24,24,22,24,24,22,23,23,23,24,23,24,25,25,26,25,25,26,26,27,27,26,27,26,26,27,27,27,27,27,27,26,27,27,26,26,27,26,27,26,26,26,26,26,26,24,25,24,24,23,22,21,20,19,18,16,16,13,12,12,10,9,8,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,9,9,9,9,10,10,10,11,11,10,11,10,10,9,9,9,9,9,9,10,11,11,11,10,10,9,10,9,9,9,8,8,8,8,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,7,6,6,7,7,7,7,7,8,7,7,7,6,5,5,4,4,4,3,4,4,3,3,4,4,4,3,4,4,3,4,4,3,3,4,4,3,3,4,4,3,4,4,4,4,4,5,5,5,6,6,7,7,6,5,4,4,4,4,4,3,4,4,4,4,4,5,5,6,5,6,5,5,5,5,5,5,5,5,4,4,4,4,3,4,4,4,3,4,4,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,4,5,5,5,4,5,5,4,4,5,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,3,3,3,4,3,4,4,4,4,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,4,4,4,5,4,4,4,5,4,4,5,4,5,5,5,5,5,5,5,6,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,8,8,7,7,8,8,7,7,7,7,8,7,6,7,7,7,6,6,7,7,8,7,7,7,7,7,7,8,7,8,8,8,8,7,7,7,8,7,7,7,7,6,6,6,6,6,6,6,6,5,5,5,6,5,5,5,5,4,5,6,6,8,8,10,11,10,11,11,13,13,15,16,16,18,17,17,17,18,20,17,20,19,19,21,21,23,22,24,22,24,23,24,24,23,24,23,23,22,22,22,24,24,22,23,22,22,21,22,22,21,22,22],[28,28,28,29,28,28,28,27,28,27,27,26,26,26,25,27,25,26,26,26,26,26,26,26,26,26,26,26,26,25,25,26,26,27,26,27,26,26,27,27,27,26,26,26,26,26,24,23,24,23,21,21,22,21,19,21,20,19,17,18,15,13,11,9,8,7,6,5,5,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,2,2,2,2,2,3,2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,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,3,4,4,4,3,4,4,3,3,4,4,3,4,4,4,4,4,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,4,4,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,7,6,7,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,6,7,7,7,6,7,6,7,7,6,6,6,7,6,5,6,6,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,4,4,4,5,6,7,7,9,10,10,10,11,13,14,16,16,16,19,19,18,17,18,19,19,22,20,22,22,21,23,23,24,24,24,22,24,25,24,25,24,25,25,23,23,25,24,24,24,24,22,24,24,23,21,24,24],[28,28,28,29,28,28,28,27,28,27,27,27,27,26,26,26,26,26,26,26,25,26,26,25,25,26,25,26,26,25,26,26,26,27,26,26,25,26,26,26,26,25,25,25,25,25,23,22,23,22,21,21,22,21,18,21,19,18,17,17,15,14,11,9,8,6,6,5,5,4,4,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,2,2,2,2,2,2,2,1,1,2,1,1,1,2,1,1,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,3,2,3,3,2,2,1,2,2,1,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,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20,22,19,18,20,20,19,23,21,23,24,22,25,25,25,24,25,25,26,26,25,26,25,25,25,23,25,26,25,25,25,25,22,25,24,23,22,24,23],[28,27,27,28,28,28,28,27,27,26,26,25,26,25,25,26,26,27,26,26,26,26,26,26,26,26,25,25,26,25,24,26,25,26,25,25,25,25,25,24,25,25,25,25,23,24,24,22,22,21,21,21,21,20,20,20,19,18,17,16,14,13,11,9,8,7,6,6,5,5,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,5,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,6,6,7,7,8,10,10,10,12,12,13,12,14,14,16,15,17,17,18,18,19,21,22,20,22,22,24,24,24,22,21,23,21,21,22,22,24,23,23,23,25,25,26,24,25,24,25,26,25,25,25,25,25,25,25,25,25,25,25,25,26,26,25,26,25,25,25,26,26,26,25,25,27,24,25,25,24,23,23,21,19,20,17,16,16,14,12,11,9,8,7,6,6,6,6,6,6,6,6,6,6,7,6,7,7,7,7,7,7,8,9,8,8,10,9,9,9,8,8,7,7,8,7,7,8,8,9,10,9,10,9,8,8,7,7,7,7,7,7,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,6,6,7,7,6,6,6,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,5,5,5,6,6,6,5,4,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,6,6,5,5,6,6,5,5,5,5,5,5,4,4,3,4,4,4,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,5,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,7,7,7,6,7,7,6,6,6,6,6,6,6,6,6,6,5,5,5,6,6,6,6,6,6,7,6,7,6,6,6,7,7,6,6,6,7,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,5,4,4,4,4,4,4,5,6,7,7,9,10,11,10,10,12,13,15,16,16,18,20,16,17,18,19,18,22,20,21,21,21,24,24,23,23,25,22,23,23,24,23,21,24,24,22,22,23,23,23,23,23,22,21,24,23,22,22,23],[28,27,27,27,27,27,27,27,27,25,25,24,25,24,24,25,24,25,24,25,25,25,24,25,26,24,25,25,25,24,24,25,25,26,24,25,24,25,25,25,25,25,24,25,24,24,23,22,22,22,20,21,21,20,18,19,19,17,17,16,13,12,10,8,8,7,6,5,5,4,4,4,3,3,3,3,3,3,3,3,3,2,3,2,2,2,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,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4,4,3,3,3,4,3,3,4,4,3,3,4,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,5,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,6,7,6,6,6,6,6,6,6,6,5,5,5,6,6,6,6,6,6,6,6,7,6,6,6,7,6,6,6,6,6,6,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,3,4,5,6,7,7,9,10,10,9,11,11,12,15,14,15,17,17,17,16,18,18,18,21,18,20,20,20,23,21,22,23,23,20,23,23,23,23,22,23,23,22,22,23,23,22,23,22,22,23,23,22,20,22,22],[29,28,29,29,28,29,28,28,28,28,27,27,27,26,26,27,26,27,26,26,26,26,26,26,26,26,26,26,27,25,25,26,26,26,26,26,26,26,26,26,26,25,25,25,25,25,23,23,23,23,21,21,23,20,19,21,19,18,18,18,15,13,11,9,7,6,5,5,5,4,4,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,2,1,1,2,2,2,2,2,3,3,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,5,5,5,5,4,4,4,5,5,4,5,5,5,6,7,7,8,10,10,11,12,13,14,13,15,16,15,15,17,17,18,19,19,21,22,22,23,24,24,24,25,24,23,25,23,23,24,24,24,24,24,24,25,25,27,25,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,26,28,27,27,27,27,26,27,27,26,27,27,26,27,24,25,25,25,24,23,21,20,19,18,17,16,15,13,11,10,8,7,6,6,6,6,6,5,6,5,6,6,6,6,7,7,7,8,7,8,8,8,9,9,9,9,9,9,8,8,8,7,8,7,8,8,9,9,9,9,9,8,9,8,8,7,7,7,7,6,6,6,6,6,5,5,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,5,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,5,5,5,4,4,3,3,2,3,3,2,3,3,3,3,3,3,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,2,2,2,3,3,3,3,3,3,3,4,4,4,5,5,5,5,4,5,5,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,4,5,5,4,4,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,5,5,6,5,5,6,5,5,5,5,5,6,6,6,5,6,6,6,6,6,6,6,6,6,5,6,5,6,6,5,5,5,5,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,5,5,6,6,9,11,11,10,12,15,15,18,18,18,20,21,20,19,20,20,20,23,21,23,24,22,25,25,25,25,25,23,25,25,25,25,25,24,25,23,25,25,25,24,25,25,24,25,26,24,23,26,25],[28,28,28,28,28,28,28,27,28,27,26,26,26,25,25,25,25,26,25,26,25,25,26,26,25,26,25,26,26,25,25,26,26,27,25,26,25,26,26,26,26,25,25,25,25,25,23,22,23,22,21,21,21,20,19,19,19,18,17,16,14,13,11,8,7,6,5,5,4,4,4,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,3,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,2,3,2,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,3,3,3,3,3,3,3,3,4,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,5,4,4,5,5,4,4,4,5,5,5,4,5,5,6,6,7,8,10,10,10,12,13,14,12,14,16,15,15,17,18,18,17,19,21,21,21,22,23,24,24,24,22,22,24,22,22,22,23,23,23,23,23,24,24,26,24,24,25,25,26,25,25,25,25,25,25,25,26,26,26,26,26,27,26,26,26,26,25,26,26,25,25,26,25,26,23,25,25,24,23,22,21,20,19,18,17,15,15,12,11,9,8,7,6,6,6,6,6,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,9,8,8,8,7,7,7,7,8,8,8,9,8,9,8,8,7,7,7,7,6,6,6,6,6,6,5,5,5,5,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,6,6,6,5,5,4,4,3,3,3,3,3,3,2,2,2,3,2,2,2,2,2,2,2,3,2,2,3,2,2,2,3,2,2,3,3,3,3,3,4,4,4,5,5,5,5,4,4,3,3,2,3,2,2,2,3,3,3,3,3,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,4,3,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,3,3,2,3,3,3,3,4,4,4,4,5,5,4,4,5,5,5,4,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,6,6,6,6,6,6,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,6,6,5,6,6,6,6,6,6,5,6,6,5,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,3,3,4,4,3,3,4,3,3,3,4,5,6,6,8,9,10,10,10,12,13,16,15,17,19,20,18,18,19,21,17,22,19,22,21,21,24,23,23,23,24,22,25,24,23,23,23,23,23,20,23,23,23,22,23,23,22,22,24,21,22,23,23],[27,27,27,27,27,27,27,27,27,25,25,24,25,24,24,25,25,26,25,26,26,26,26,26,26,25,25,25,25,25,25,26,25,26,26,26,25,25,26,25,25,25,24,24,24,24,24,22,22,22,20,20,21,19,18,19,18,17,17,16,14,13,11,9,8,7,6,6,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,4,4,4,3,3,3,4,3,3,3,3,3,2,2,2,3,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,2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,4,4,5,5,4,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,6,7,6,6,6,7,6,6,7,6,5,6,5,6,6,6,6,6,6,7,6,7,6,7,6,7,7,6,6,6,7,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,3,4,5,6,7,7,9,10,10,10,10,13,13,16,16,17,19,19,18,17,19,19,19,21,20,22,21,21,23,22,23,23,24,22,23,24,24,25,23,24,24,23,22,23,24,24,24,23,22,22,23,22,20,22,23],[28,28,28,28,28,28,28,27,27,26,26,25,26,25,25,25,25,26,25,26,26,25,26,26,26,26,26,26,26,25,25,26,26,27,26,27,26,26,27,26,27,26,25,26,26,25,25,23,24,23,21,21,22,19,19,20,19,17,17,17,14,13,10,9,7,7,6,5,5,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,3,2,2,2,3,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,4,4,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,6,6,6,7,7,9,10,10,11,12,12,14,13,14,16,16,16,17,19,19,19,20,22,22,22,23,24,25,24,25,24,22,25,23,22,23,23,24,24,24,24,26,25,27,26,26,27,27,27,27,26,27,27,27,27,27,27,27,27,27,27,28,27,27,27,27,26,27,27,27,27,27,27,27,25,26,26,24,24,23,21,20,20,18,17,17,14,13,11,10,9,7,7,6,6,6,6,6,6,6,6,6,6,7,6,7,8,8,7,8,9,9,9,10,10,10,9,10,9,9,8,8,8,8,8,9,10,10,10,10,10,9,9,9,8,8,8,8,8,7,7,7,7,6,6,6,5,5,4,4,5,5,4,5,5,5,5,5,5,5,6,5,6,6,6,6,6,6,6,5,4,4,4,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,3,4,4,4,5,5,5,4,3,3,3,2,3,3,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,3,3,2,2,3,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,4,4,3,3,3,3,3,4,3,3,3,3,4,4,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,4,4,3,3,3,4,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,5,5,5,4,5,5,4,5,5,5,4,5,5,5,5,4,4,5,5,4,5,5,4,5,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,5,6,6,7,7,6,6,7,7,6,6,6,5,6,6,6,6,6,6,5,5,5,5,6,6,6,6,6,6,6,7,6,6,6,7,6,6,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,3,4,5,6,7,7,9,11,10,9,11,12,13,17,16,17,20,19,18,18,18,20,19,22,21,21,22,21,24,24,25,24,25,23,25,26,25,25,24,25,25,23,24,25,25,25,25,23,24,23,25,24,22,24,25],[29,28,29,29,28,29,28,28,28,27,27,27,27,26,26,26,26,27,25,27,26,25,26,26,25,26,26,26,27,25,25,26,26,27,26,27,26,26,26,26,26,26,25,25,25,25,23,22,23,22,21,21,21,19,18,20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,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,4,3,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,5,4,4,5,5,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,5,6,6,6,5,5,5,5,5,6,5,5,6,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,5,6,6,7,9,11,11,11,11,14,15,18,18,18,21,23,20,19,20,22,20,24,22,22,22,22,25,24,25,24,26,24,26,26,25,25,25,25,26,23,24,26,25,24,25,25,23,25,26,23,23,25,24],[29,28,28,28,28,28,28,28,27,27,27,26,27,26,26,26,27,28,26,28,27,26,27,27,26,27,27,27,27,27,26,27,27,27,26,27,27,27,27,27,27,27,26,26,25,26,25,24,24,24,22,22,22,21,20,21,19,18,17,16,15,13,11,9,8,7,6,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,3,4,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,0,1,1,1,1,2,2,2,3,3,3,3,4,3,3,3,4,4,3,3,3,3,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,3,4,3,3,3,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6,6,7,7,6,6,6,7,6,6,6,6,5,5,5,5,5,5,5,5,4,4,5,5,4,4,5,4,4,4,5,6,7,8,9,10,12,11,10,14,15,17,17,18,19,22,19,18,20,22,18,23,21,21,23,22,25,25,24,24,26,24,25,25,24,25,24,24,26,23,23,24,24,24,24,24,22,24,25,24,23,24,24],[27,27,27,27,27,27,27,26,27,25,25,24,25,24,24,24,24,25,24,25,25,24,25,25,25,25,25,25,25,25,24,25,26,27,24,26,25,25,25,24,26,26,25,24,24,24,23,22,23,20,20,20,20,18,17,19,18,16,17,16,14,13,11,9,9,8,7,7,6,6,5,5,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,3,2,2,2,2,2,2,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,4,4,4,4,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,2,3,2,3,3,3,3,3,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,5,5,4,4,4,4,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,3,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,6,6,6,7,7,7,6,6,6,6,6,6,6,6,7,7,8,8,10,12,12,12,13,12,14,12,15,15,15,17,18,18,17,18,19,21,21,21,23,22,24,22,23,22,21,22,22,22,22,22,22,22,22,22,24,24,25,24,25,26,26,26,25,25,25,25,25,25,25,26,26,26,26,26,27,24,26,26,26,25,25,25,25,26,26,26,26,25,25,24,24,24,23,22,20,20,17,17,16,14,13,12,11,10,9,8,8,7,7,7,6,7,7,7,8,7,7,8,8,8,9,8,9,10,10,10,11,12,11,11,11,10,10,8,8,9,9,9,11,11,10,11,11,11,10,10,10,9,9,9,8,8,8,8,7,8,7,6,6,6,6,5,5,6,5,5,6,6,5,6,6,6,6,6,6,7,8,7,7,7,6,6,5,5,5,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,5,4,3,3,3,3,3,3,3,3,4,3,4,4,5,5,6,5,5,5,5,5,4,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,3,4,3,3,4,4,3,3,4,4,4,4,4,4,4,4,5,5,4,4,5,4,4,4,4,4,4,5,4,4,4,4,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,5,5,5,6,5,6,6,6,6,5,6,7,6,6,6,6,5,5,4,4,4,4,5,4,4,5,4,4,4,5,4,4,5,5,4,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,5,6,6,6,6,6,6,6,6,7,7,7,7,7,8,8,7,8,8,8,7,8,7,7,7,7,7,7,7,7,6,6,6,7,7,7,7,7,7,8,7,8,7,7,7,8,7,7,7,7,7,7,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,4,5,5,4,4,5,6,7,8,8,10,11,10,9,11,12,13,16,17,17,20,19,18,16,18,18,19,19,19,19,20,21,22,23,23,22,23,22,23,23,23,24,22,23,24,22,21,23,23,23,24,24,22,22,24,23,20,23,23],[29,28,28,28,28,28,28,28,27,27,26,26,27,26,26,26,26,27,25,27,27,26,27,27,26,27,27,27,27,27,25,27,28,28,27,28,27,27,28,27,27,27,26,26,26,26,24,24,24,22,22,22,22,19,19,20,19,18,18,18,15,14,11,9,8,8,6,6,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,3,3,3,2,2,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,2,2,3,3,3,3,3,3,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,5,6,6,6,6,6,7,7,8,8,10,11,12,12,13,14,15,13,15,18,16,17,20,21,19,20,22,23,23,24,24,25,27,25,26,24,23,25,24,22,24,23,24,24,23,24,26,25,26,25,27,26,27,27,27,27,26,27,27,27,27,27,27,27,28,27,28,27,28,27,27,26,27,27,26,27,27,27,27,26,26,26,26,23,24,22,22,21,19,18,18,15,14,13,11,10,9,7,7,7,7,7,6,7,6,7,7,7,7,8,8,9,9,8,9,10,10,10,11,12,12,11,11,10,10,9,9,9,9,10,10,11,12,12,12,11,10,10,11,10,9,9,9,9,8,8,8,7,7,7,6,6,6,5,5,6,5,5,6,6,5,5,6,6,6,6,6,7,7,8,7,7,7,6,5,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,6,6,6,5,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,3,4,3,4,4,4,4,4,4,4,4,4,4,4,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,4,3,4,4,4,5,5,5,5,5,5,6,5,6,6,6,6,6,6,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,5,5,5,5,6,5,6,5,6,6,6,6,6,7,8,7,7,7,7,6,7,6,6,7,7,6,6,7,6,6,6,6,6,7,7,7,6,6,7,7,7,7,7,7,7,7,6,6,6,7,6,6,6,6,5,5,5,5,5,5,5,5,4,4,5,4,4,5,5,4,4,5,6,7,8,8,10,12,12,11,12,14,15,18,17,19,21,21,21,19,19,22,21,23,21,22,22,24,25,25,26,25,25,24,26,25,25,27,25,25,26,25,25,26,24,25,26,25,24,24,25,25,22,24,26],[29,29,28,28,28,28,28,28,27,27,27,26,27,26,27,26,26,27,25,27,26,25,26,26,26,26,27,26,27,26,25,26,27,27,26,27,27,26,27,27,27,26,26,26,26,26,24,23,24,23,22,21,22,21,20,20,19,18,18,18,16,14,12,10,9,8,7,6,6,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,5,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,2,3,3,3,2,3,3,3,3,3,4,3,3,3,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,5,4,4,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,7,7,7,6,6,6,6,7,7,6,7,7,7,8,8,9,11,12,11,13,14,15,14,15,18,17,17,19,20,19,20,21,23,22,23,24,24,25,25,25,24,22,24,22,22,23,23,24,24,24,24,25,25,27,25,26,25,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,26,27,27,27,27,27,27,27,26,26,26,25,24,24,23,23,22,19,19,18,16,14,13,12,10,8,7,8,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,10,10,10,10,11,11,10,11,10,10,10,10,9,9,9,10,10,11,11,10,11,10,10,10,9,9,9,9,8,8,8,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,8,8,7,7,7,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,6,6,7,5,4,3,3,2,3,3,3,3,3,4,3,4,4,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,5,5,4,4,5,4,4,4,4,4,4,4,4,3,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,5,5,4,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,6,5,6,5,5,5,5,5,5,5,5,5,5,6,6,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,5,6,7,6,6,7,8,8,7,7,7,7,6,7,7,6,7,7,6,7,7,6,6,6,6,6,7,7,7,7,7,7,7,8,7,7,7,7,8,7,7,7,7,7,7,6,6,6,5,5,5,5,5,5,5,5,4,5,5,4,4,5,4,4,4,6,7,8,8,9,11,11,11,11,15,16,18,16,18,21,22,20,20,21,22,20,24,21,22,24,22,24,25,25,25,26,24,26,26,25,26,26,26,26,24,25,26,25,25,25,25,23,26,26,24,24,26,24],[27,28,27,27,28,27,28,28,26,26,26,24,27,25,25,26,27,27,25,27,27,25,26,27,26,26,27,27,27,27,26,27,27,28,26,27,26,27,28,27,27,26,26,26,26,26,24,24,24,23,20,21,22,20,19,21,20,18,18,18,17,15,13,12,10,9,9,9,8,7,7,7,6,5,5,5,5,5,5,5,5,4,5,4,4,4,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,6,6,6,6,6,7,7,6,6,6,6,7,6,6,6,6,6,6,5,5,5,4,4,5,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,6,6,6,6,7,6,6,6,6,6,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,3,2,3,2,2,1,1,1,1,0,1,2,2,4,4,4,4,5,4,5,5,6,5,5,4,4,4,4,3,3,3,2,3,3,3,3,4,3,3,3,4,4,4,4,4,5,4,5,5,6,7,7,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,5,4,3,3,3,3,2,3,3,2,2,3,3,3,3,4,4,4,3,4,3,3,2,3,3,4,3,4,4,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,7,7,6,7,7,7,8,7,8,8,9,8,8,8,8,8,8,7,8,9,8,8,8,9,9,10,10,11,12,13,13,14,15,16,15,16,18,17,17,19,20,19,21,22,23,23,22,24,24,25,24,25,24,23,24,23,22,23,24,24,24,25,24,26,25,27,26,26,26,26,26,27,27,26,27,26,26,26,26,27,27,27,27,27,27,27,26,27,26,26,26,27,27,26,26,28,26,26,26,25,24,23,24,22,21,20,19,19,17,15,15,13,12,10,9,9,9,9,9,9,9,9,9,10,9,10,10,10,10,11,11,11,12,13,12,12,13,13,13,12,11,11,11,11,10,10,11,11,12,14,14,13,14,13,13,13,12,11,11,11,11,11,10,10,9,10,9,9,9,8,7,7,8,8,7,8,8,8,8,9,8,8,9,10,9,9,10,9,9,8,9,7,7,6,6,6,5,5,5,5,5,4,5,5,4,4,5,4,4,4,5,4,4,4,5,5,4,5,5,5,5,5,6,5,5,6,6,6,7,8,8,8,7,6,5,5,4,5,5,4,5,6,5,5,6,6,7,7,7,7,7,6,7,7,6,6,6,6,6,5,5,6,5,5,5,4,5,5,5,4,4,5,4,4,5,5,5,5,5,5,5,5,6,6,6,6,7,7,6,6,6,5,5,6,6,5,5,6,5,5,6,6,6,6,5,6,6,6,6,6,6,7,7,7,7,7,7,6,7,7,6,6,6,6,6,6,6,5,5,5,6,6,6,6,6,7,7,7,8,7,8,9,8,8,8,8,8,8,8,8,7,7,7,6,6,5,6,6,6,5,6,6,5,6,6,6,6,7,6,6,6,7,7,8,7,8,7,7,8,8,7,7,7,8,7,7,7,8,8,7,7,8,8,7,8,8,7,7,7,7,6,7,7,7,6,7,8,7,7,8,8,8,8,8,8,8,8,8,9,10,9,9,10,9,9,9,9,8,9,9,8,9,9,9,8,8,8,8,9,9,9,8,9,10,9,9,8,8,9,10,10,9,9,8,10,9,8,9,8,8,8,7,8,7,7,7,7,7,7,7,7,6,7,7,6,6,6,7,8,9,10,11,13,14,13,14,15,17,18,17,18,21,20,20,20,22,23,19,23,21,21,23,22,25,26,25,24,24,24,25,26,25,26,25,26,26,25,24,25,26,26,26,24,25,26,26,25,23,25,25],[28,28,28,28,28,28,28,27,28,27,26,26,27,26,26,27,27,27,27,27,27,26,26,27,26,26,28,27,27,27,26,26,28,29,27,27,27,28,28,27,28,27,26,26,27,27,25,25,25,24,23,24,23,21,20,22,21,20,19,19,18,15,14,13,12,11,10,10,9,9,8,8,7,7,7,7,7,7,7,7,7,7,7,6,5,5,5,6,5,5,6,6,5,6,6,5,6,6,6,5,7,7,6,6,8,7,6,7,7,8,8,9,8,8,8,8,8,8,8,7,7,7,6,6,6,6,6,5,5,5,5,4,4,4,4,5,4,3,4,4,4,4,4,5,6,4,5,5,5,6,6,5,6,8,6,8,7,7,8,8,9,8,8,8,8,8,8,7,7,7,7,6,6,6,6,5,5,6,5,5,5,6,4,4,5,3,3,3,3,2,2,2,2,1,0,1,2,3,4,3,5,5,4,4,4,5,4,4,4,4,4,4,4,4,3,3,4,4,4,4,4,4,4,5,5,6,5,6,6,6,6,7,7,7,8,9,7,7,8,7,7,7,7,6,7,6,6,5,6,5,5,4,4,5,5,5,4,5,5,4,4,3,4,3,4,3,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,4,4,4,4,5,5,4,4,5,5,5,5,5,6,5,5,6,7,6,7,7,7,8,8,8,8,8,8,8,10,9,9,9,9,10,10,9,9,10,11,9,10,9,10,10,10,10,10,10,11,11,12,12,13,13,14,15,15,16,17,17,19,19,19,21,22,22,22,23,24,25,25,26,26,27,25,27,26,24,26,24,24,25,25,25,25,27,26,28,26,28,27,27,27,27,27,27,27,27,28,28,27,27,28,28,28,28,27,28,28,28,28,28,28,27,28,28,28,28,28,28,27,26,26,26,25,26,25,22,23,21,21,21,18,17,17,15,14,12,11,10,11,11,10,10,11,10,11,12,11,11,12,12,13,13,12,13,14,14,14,15,16,16,15,15,13,14,12,12,13,13,14,14,14,16,16,15,16,15,15,15,13,14,14,13,13,13,12,12,12,11,10,11,11,10,9,9,10,9,9,9,10,9,9,10,9,9,9,10,10,10,10,10,10,10,10,8,8,7,6,6,6,5,6,6,5,4,6,5,5,4,5,5,5,5,5,6,4,5,6,6,5,6,6,5,6,7,7,6,6,6,7,7,8,8,8,8,7,6,5,4,5,5,4,4,5,5,5,6,6,7,6,7,8,8,8,7,8,8,7,7,7,7,6,6,7,7,5,6,7,6,5,7,7,5,5,6,6,5,6,6,6,5,6,6,6,6,8,7,7,7,8,7,7,7,7,7,6,7,7,6,6,7,7,6,7,7,7,7,6,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,7,8,8,8,7,8,7,8,7,8,7,8,7,7,8,8,8,8,9,8,9,9,10,9,8,9,10,9,9,9,9,9,8,7,8,7,8,7,8,7,7,7,7,7,7,7,7,8,7,8,8,8,8,9,9,9,9,9,9,9,8,9,9,9,9,9,9,9,8,8,9,9,9,8,9,9,9,9,8,9,8,8,9,8,8,9,9,9,9,9,9,10,9,10,10,10,9,10,10,11,11,10,11,11,10,11,11,10,11,10,10,10,11,10,10,11,10,10,11,11,10,10,10,11,10,11,10,10,10,11,11,10,10,9,10,9,9,9,10,10,9,9,9,8,8,8,8,7,7,8,8,6,8,7,6,6,7,8,9,10,10,12,14,13,13,14,14,16,18,18,19,22,22,20,19,21,21,21,24,21,22,23,22,25,25,26,25,26,24,26,26,25,26,25,25,27,25,25,26,26,26,26,25,25,26,26,26,23,26,26],[29,28,28,28,29,28,28,29,28,27,28,26,28,28,27,27,28,28,26,28,27,26,27,28,26,27,28,27,27,28,26,27,29,29,28,29,28,28,29,28,29,28,28,27,28,28,26,26,27,26,24,26,25,24,22,24,24,22,21,21,19,17,17,16,13,14,13,12,11,13,11,11,10,10,10,10,9,9,9,10,10,9,10,9,8,8,9,9,9,10,9,9,10,9,9,11,10,9,9,10,10,10,8,8,10,9,9,9,10,9,11,11,10,10,11,11,10,11,10,10,9,9,8,9,8,8,7,7,8,7,7,7,5,5,6,7,6,5,6,6,5,6,7,7,7,9,8,9,10,10,9,8,10,9,9,10,10,9,10,10,10,11,10,10,11,10,10,10,10,9,9,10,9,8,8,8,7,7,7,8,8,7,7,6,6,6,3,4,4,3,2,3,3,2,1,0,1,2,3,3,4,6,5,4,5,5,5,6,5,6,4,4,5,5,5,5,7,7,4,7,8,8,9,8,8,9,10,9,9,9,8,10,10,10,10,11,10,10,10,9,10,10,9,9,10,9,8,8,9,8,7,8,8,7,7,7,5,6,7,6,7,7,7,7,6,8,7,6,8,6,6,5,6,5,7,5,5,5,4,4,5,6,7,8,8,6,8,8,8,9,9,9,10,10,9,10,8,10,10,10,11,10,11,11,11,11,12,12,12,11,13,13,12,12,13,13,14,14,13,14,14,13,12,13,12,13,14,14,12,13,14,14,12,13,15,15,16,17,16,17,18,19,20,22,22,21,23,24,25,24,25,27,26,27,28,27,27,27,27,27,26,27,26,25,26,26,27,26,26,27,28,28,29,28,28,28,28,28,28,28,28,28,28,28,27,28,29,29,28,28,29,29,29,28,28,28,28,28,28,29,29,28,28,28,28,27,27,27,26,26,26,24,23,23,22,21,19,20,17,17,15,14,14,14,13,14,15,14,17,14,16,15,14,15,15,15,16,16,16,17,16,18,18,19,18,19,18,17,15,16,17,15,16,17,16,16,18,19,18,19,18,18,17,16,16,17,16,16,15,15,14,15,15,14,15,14,13,14,13,14,13,14,13,13,13,13,13,13,13,13,13,13,14,13,12,12,12,13,11,11,11,9,10,9,9,11,10,8,8,11,8,10,8,9,9,9,10,9,9,8,10,9,7,9,11,8,11,10,9,10,9,9,9,9,8,10,10,9,10,9,8,7,6,7,9,6,7,9,8,8,7,7,8,9,9,10,10,11,10,9,11,11,9,10,10,9,9,9,10,10,9,10,10,12,10,10,11,10,12,11,11,11,11,11,11,11,10,11,10,11,11,11,12,12,11,10,12,10,11,13,11,10,10,11,10,9,10,10,11,10,10,11,12,10,11,12,11,10,12,10,11,11,11,11,11,11,12,10,10,10,11,10,10,11,9,11,10,10,12,11,10,11,11,11,11,11,11,12,11,12,12,11,11,11,11,12,12,12,11,12,12,11,11,11,11,13,11,12,11,11,11,12,11,12,11,11,13,11,11,11,11,12,12,13,12,12,12,12,12,12,12,13,11,12,12,12,12,12,11,12,12,11,11,12,11,12,11,12,12,12,12,13,13,12,12,12,12,12,14,13,12,12,13,12,13,14,13,13,13,13,14,13,14,14,13,14,13,13,13,14,12,14,15,15,12,15,13,14,13,13,14,12,13,13,13,13,14,15,12,14,12,14,13,12,13,13,12,13,12,11,11,12,11,11,12,12,12,12,11,12,11,11,10,9,11,11,12,14,15,16,15,15,17,16,18,19,19,21,22,23,23,21,22,23,23,25,24,23,25,24,26,27,27,27,28,27,27,27,27,27,27,26,28,27,26,25,27,27,27,27,27,27,28,27,26,27,27],[28,27,28,28,28,28,28,27,27,27,26,25,26,26,26,26,26,26,25,27,26,25,26,27,26,27,27,26,27,27,26,27,28,28,27,28,27,27,28,27,28,27,27,26,27,27,25,24,26,25,22,23,24,22,21,23,22,20,21,20,19,17,16,15,12,13,13,11,11,11,10,10,9,9,8,9,8,8,9,8,9,9,8,7,7,7,7,8,7,7,8,7,7,8,7,8,8,8,8,8,9,8,8,8,10,9,8,9,10,11,10,10,10,9,10,11,11,10,10,10,10,10,9,9,9,10,8,7,8,8,7,7,6,5,5,5,6,5,6,6,6,6,7,7,8,8,7,8,7,9,9,9,10,10,9,10,10,10,10,10,10,9,10,10,9,9,9,9,9,9,9,9,8,8,9,8,7,7,7,8,7,7,6,6,5,5,4,4,4,3,3,4,3,2,2,1,0,1,2,1,2,2,3,3,3,4,4,4,4,5,4,3,3,5,5,4,5,6,6,6,7,7,7,7,9,10,9,8,9,9,8,9,9,9,10,11,10,10,10,10,9,9,9,9,10,9,9,7,9,8,7,7,7,7,7,7,5,6,6,6,6,6,7,6,6,6,6,5,5,6,7,5,4,6,6,4,4,3,3,3,4,5,6,7,7,8,7,7,7,8,8,8,8,8,9,9,9,9,8,9,10,10,10,11,10,10,11,11,11,11,13,14,12,11,12,12,13,13,14,13,13,13,12,12,11,11,13,12,11,13,14,14,13,14,15,15,16,17,16,16,17,19,20,20,20,20,21,21,23,23,24,25,26,25,26,26,27,26,26,26,24,25,25,25,25,25,25,26,26,25,28,26,28,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,27,29,28,28,28,27,28,27,28,28,28,28,28,28,28,27,27,27,26,24,25,24,23,23,22,22,19,18,19,17,16,15,15,14,14,14,14,13,14,14,14,13,15,15,14,14,16,16,14,14,17,16,16,16,19,18,18,18,16,17,15,15,15,16,16,17,17,18,18,18,19,18,18,17,15,16,16,16,16,16,15,15,15,15,14,15,12,13,12,12,12,12,12,12,12,12,12,12,12,11,11,12,11,11,12,12,12,11,11,10,10,9,9,9,8,8,9,8,7,7,8,8,7,7,8,7,7,8,7,8,7,8,7,8,7,8,8,8,8,7,7,7,8,7,8,7,8,9,8,9,8,6,6,5,5,6,5,5,7,6,6,6,6,7,7,7,8,8,9,7,7,8,8,7,8,8,7,7,8,9,8,7,8,8,7,8,8,8,8,8,8,9,9,9,9,9,10,8,10,11,10,10,11,10,11,10,9,11,9,10,9,10,8,8,9,9,8,7,8,9,10,9,7,10,9,8,8,10,8,8,9,9,10,9,9,9,9,9,8,7,8,8,8,9,8,9,10,9,9,10,9,10,9,10,10,9,10,9,10,9,11,9,8,10,11,10,11,10,10,10,10,10,9,9,8,8,10,8,9,9,9,9,9,9,10,10,10,11,10,10,10,10,11,11,10,11,11,10,10,11,11,10,10,10,11,12,10,10,11,11,10,11,11,10,10,11,11,11,11,11,11,11,12,11,12,11,11,12,12,11,11,12,12,12,11,12,13,13,12,13,13,13,12,14,13,12,13,13,13,13,14,12,13,13,14,13,14,14,13,13,12,13,13,14,13,13,12,13,13,12,11,10,11,11,12,11,11,11,10,9,11,10,9,9,10,10,9,9,10,9,9,9,9,9,9,9,10,11,11,14,13,14,15,15,17,17,18,20,20,23,21,22,21,22,22,21,23,22,22,25,22,25,24,26,25,26,24,26,26,26,27,25,25,27,26,25,26,26,26,26,26,25,26,27,26,24,26,27],[28,28,28,28,28,29,29,27,28,27,27,27,27,26,27,26,27,26,26,27,26,26,27,27,26,27,27,26,28,26,25,27,28,28,27,28,27,27,28,27,28,27,27,27,27,27,25,25,26,25,24,23,24,22,20,22,21,21,20,20,18,17,15,13,11,12,11,10,10,9,9,8,7,7,7,8,7,8,8,7,7,8,7,6,6,6,5,6,6,6,6,6,6,7,6,7,7,7,7,8,8,7,7,7,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,8,8,8,9,7,6,7,6,6,6,6,5,5,6,6,5,5,5,5,5,6,7,8,6,7,7,6,8,8,8,8,9,8,9,9,9,10,9,9,9,10,9,9,8,9,8,8,9,9,8,7,8,8,7,8,7,8,7,6,6,6,7,6,7,4,5,5,4,4,3,3,3,1,1,1,0,1,1,1,2,2,3,3,4,4,4,5,4,4,4,4,5,4,5,5,5,5,6,7,7,9,8,7,7,7,7,8,8,7,8,8,9,9,10,9,9,9,9,8,8,8,8,8,7,7,8,7,7,8,7,7,7,7,7,7,7,6,6,6,6,5,6,5,6,6,5,5,3,4,4,4,5,5,3,4,3,3,3,4,5,4,5,5,6,6,5,6,8,6,6,7,6,6,8,7,7,7,8,7,8,8,8,8,9,8,8,10,10,10,10,11,11,11,11,11,12,11,11,11,11,10,10,9,10,11,10,10,11,11,12,12,12,12,14,14,14,15,16,17,18,19,20,19,19,21,22,23,23,24,25,25,26,27,27,28,26,27,26,25,27,24,25,26,26,25,26,26,27,28,27,28,27,28,29,29,28,28,28,28,29,28,28,28,29,29,29,28,28,29,29,29,29,29,28,28,29,29,29,29,28,29,27,27,28,27,25,26,25,24,23,22,22,21,19,17,17,15,15,13,12,12,11,12,11,11,12,11,12,12,13,13,14,13,14,15,14,15,15,16,16,16,18,17,16,17,14,16,14,13,15,14,15,16,17,17,18,17,17,16,17,16,15,15,15,15,15,14,13,14,13,13,12,12,12,10,10,10,10,10,10,11,11,11,10,11,11,11,11,11,12,11,11,11,11,12,11,10,10,9,8,8,7,8,7,7,7,6,7,7,7,6,7,8,7,6,5,7,6,6,6,8,5,6,6,6,5,5,7,7,5,6,6,6,7,8,8,9,6,5,5,4,4,5,4,4,5,5,6,6,6,6,7,6,7,6,7,7,6,6,7,7,6,6,7,6,5,7,6,5,6,6,5,6,6,7,6,6,7,6,6,6,6,7,6,6,7,8,8,8,8,9,9,8,8,8,7,8,8,7,6,7,6,6,6,6,5,6,6,6,6,6,6,6,6,6,6,7,7,7,8,7,7,7,8,7,7,6,7,7,7,7,7,7,9,9,7,8,8,8,8,8,8,8,9,8,9,8,9,9,8,9,9,10,10,9,10,9,8,8,7,7,6,6,7,6,6,7,7,6,6,7,7,7,7,7,7,7,8,8,9,9,9,8,9,9,8,8,9,8,7,8,8,9,8,7,8,9,9,8,8,9,8,9,9,9,8,8,9,8,8,8,9,9,8,9,9,10,9,10,11,10,10,11,11,11,9,11,11,11,10,11,11,10,11,11,11,11,12,11,10,10,11,11,11,11,11,11,11,11,11,12,12,11,11,11,12,10,10,8,11,11,10,9,10,10,8,9,10,9,8,9,9,8,9,9,9,8,9,8,8,8,8,9,10,11,11,14,14,14,15,16,16,17,20,19,20,22,22,22,21,22,22,21,24,22,23,24,23,24,25,26,26,25,24,27,26,26,27,27,27,27,26,27,27,27,27,26,26,26,27,27,26,25,26,26],[29,29,29,28,29,29,29,29,28,28,28,26,28,27,28,27,28,28,27,28,27,26,28,27,26,27,28,27,28,27,25,27,28,29,27,28,27,28,28,28,29,28,28,28,28,28,26,25,27,25,23,23,25,23,22,24,23,21,21,21,20,18,15,15,13,13,12,11,12,10,10,9,10,9,9,10,8,9,9,9,9,9,11,9,8,8,7,8,6,6,8,7,7,8,7,7,8,8,7,8,8,8,8,7,9,8,8,8,9,9,10,10,9,8,10,10,9,10,9,9,9,9,8,8,8,8,8,7,7,7,7,6,6,6,5,6,5,5,5,5,5,6,5,7,7,6,7,8,8,8,8,9,9,8,8,8,8,9,9,10,9,10,10,10,9,9,10,9,9,9,8,9,8,8,8,7,8,8,8,9,7,8,8,6,7,8,6,5,5,4,4,4,5,4,1,2,2,1,0,1,1,2,3,2,3,4,4,4,4,4,4,4,3,4,4,4,5,5,5,6,7,6,9,8,8,9,10,9,9,9,9,9,10,10,11,11,9,9,11,9,8,10,10,9,9,9,8,8,9,8,9,8,9,7,8,7,7,8,7,7,7,7,6,7,6,7,8,5,6,5,6,4,5,6,6,5,5,3,3,2,3,6,6,6,6,7,6,7,8,8,9,8,8,9,9,8,9,9,9,10,9,10,10,10,12,11,10,11,11,11,11,12,12,12,12,12,12,13,13,12,13,12,12,11,11,11,13,12,12,12,13,14,13,13,13,15,16,15,16,17,17,18,19,21,20,21,24,23,23,24,25,26,26,26,27,27,28,27,27,27,26,28,24,23,26,26,26,26,26,27,28,27,28,28,29,28,28,28,28,28,28,28,29,28,28,29,29,29,29,28,29,29,29,29,29,28,29,29,29,28,29,28,29,27,28,28,27,26,26,26,26,24,24,23,22,20,20,19,17,16,16,13,13,14,13,13,12,13,14,13,13,14,13,14,14,14,16,15,15,15,17,15,16,17,17,18,18,16,16,16,15,15,15,15,16,16,18,18,17,18,17,17,16,15,15,15,16,15,15,14,15,14,13,13,13,13,12,12,12,13,12,12,12,12,13,12,12,12,12,12,12,13,12,13,13,13,12,12,11,11,11,10,10,10,9,9,9,8,8,10,9,8,8,8,7,8,7,7,7,6,7,7,8,8,8,6,7,7,7,8,7,8,8,8,7,8,9,9,9,8,6,5,5,5,5,5,5,5,6,6,5,6,7,8,7,8,9,9,8,8,9,8,8,8,8,8,7,7,8,7,7,8,8,7,8,8,8,8,8,9,9,8,8,9,10,9,9,10,9,10,10,10,12,10,10,9,10,10,9,9,9,10,7,8,9,7,9,8,8,9,8,8,10,8,8,8,9,8,9,9,9,10,10,9,9,10,9,8,9,9,9,10,9,9,9,10,9,9,10,9,9,9,8,9,10,9,10,9,11,11,10,10,10,11,10,11,10,10,10,10,10,9,9,8,8,9,8,9,9,9,8,8,9,9,9,9,10,10,9,10,11,11,11,11,9,11,11,10,9,10,10,9,9,10,10,9,9,10,10,10,10,10,10,10,10,10,11,10,9,11,10,10,10,10,10,10,11,11,12,11,11,11,11,11,11,13,12,12,12,12,11,11,12,12,11,12,12,12,11,12,12,11,11,13,11,13,12,13,11,12,13,12,12,12,11,12,12,13,11,12,10,13,11,11,11,11,11,10,10,11,10,9,10,10,11,9,10,11,9,10,10,10,10,8,10,12,12,12,14,15,15,15,16,17,19,21,20,22,24,24,23,22,24,24,22,26,23,24,25,24,26,27,27,26,27,26,26,27,26,27,26,27,27,26,26,28,27,27,27,27,27,27,29,26,26,27,27],[29,29,28,28,29,29,28,28,28,27,28,27,28,27,27,28,28,28,27,28,26,25,27,27,26,27,27,27,27,27,26,27,28,29,27,28,28,28,28,28,28,27,27,27,27,27,25,24,26,24,24,23,24,24,20,23,22,20,20,19,19,16,15,14,12,12,12,12,10,11,9,10,8,8,8,9,8,8,8,9,8,8,10,7,7,8,8,9,8,8,8,8,8,8,8,9,9,9,8,8,9,9,8,8,9,8,9,9,9,9,11,10,9,9,10,10,9,10,10,9,9,9,8,8,7,8,7,7,7,6,7,6,6,6,6,7,6,6,6,6,6,6,7,7,7,8,8,7,10,9,8,7,9,9,8,9,10,8,8,9,9,10,9,9,10,8,8,8,9,8,8,8,8,8,8,7,7,7,7,7,6,6,6,6,6,6,5,5,4,4,3,3,3,3,2,2,2,1,1,0,1,2,2,2,3,3,3,4,4,5,5,4,4,5,5,4,6,7,5,7,7,8,8,7,8,8,8,7,8,8,8,8,9,9,10,10,10,9,10,8,9,10,9,9,9,8,8,7,8,7,6,6,7,7,6,7,7,6,6,6,6,6,6,6,6,6,6,5,5,6,4,4,4,4,5,5,4,3,4,4,4,4,5,7,7,7,8,6,7,7,8,8,7,8,8,8,8,8,8,9,9,9,8,9,10,9,9,11,10,10,11,13,11,11,12,12,13,13,13,13,13,12,12,11,11,12,12,12,11,12,12,13,13,12,14,15,15,15,14,15,16,18,18,19,18,20,19,20,22,23,23,25,25,25,27,26,27,26,27,27,24,26,26,24,25,26,26,25,26,27,27,27,28,27,28,28,28,28,28,28,28,27,27,28,28,28,29,29,28,28,29,28,29,28,28,28,28,28,28,28,28,27,28,28,27,27,27,27,26,26,25,24,24,22,22,20,18,19,17,16,14,13,12,13,12,13,13,13,14,14,14,13,14,14,13,15,16,14,14,15,17,16,17,18,18,18,17,15,16,14,14,14,15,16,17,17,19,19,18,18,17,16,17,17,15,15,16,16,15,15,14,14,14,13,14,13,12,11,11,12,11,11,11,12,12,11,11,11,12,11,12,11,11,12,12,11,12,11,10,10,9,9,9,8,8,9,7,7,7,8,7,7,6,8,8,7,8,8,7,6,8,7,6,7,9,7,7,8,7,7,7,7,8,8,7,8,9,8,9,8,6,6,5,5,7,5,5,7,6,6,6,6,6,8,7,8,8,8,8,7,8,8,8,8,9,8,8,8,9,9,8,8,7,8,8,8,7,7,9,8,7,8,9,8,8,9,8,8,9,9,9,10,10,10,10,9,11,9,9,9,9,8,7,8,8,8,7,8,8,9,8,7,9,9,8,8,9,8,9,8,9,9,9,10,9,9,10,8,9,9,9,9,9,10,9,10,9,8,9,9,8,9,9,10,10,10,9,9,10,10,10,9,10,11,10,10,10,10,10,10,9,9,9,9,9,10,9,10,8,8,9,9,9,10,10,9,10,9,9,10,10,10,10,10,10,11,11,10,10,10,11,10,10,11,10,10,10,11,10,10,11,11,10,11,10,10,10,10,11,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,12,12,12,11,13,12,11,12,12,12,12,13,11,11,12,13,12,14,13,13,12,12,12,12,13,11,11,12,12,13,11,12,11,12,11,11,11,10,10,10,10,10,10,10,10,10,10,10,9,10,9,10,9,8,8,9,11,11,11,13,13,14,14,14,15,15,16,18,19,20,22,23,22,20,22,22,22,25,23,23,25,24,25,26,26,25,27,25,25,27,26,27,25,26,26,26,25,26,27,27,27,26,26,26,27,27,25,27,28],[28,28,28,28,28,28,28,27,28,27,26,26,27,26,27,26,27,26,26,28,26,25,27,27,25,27,27,26,27,26,25,27,28,28,26,27,27,27,28,27,28,26,26,26,27,26,25,24,25,23,23,23,23,22,20,22,21,20,20,20,18,17,15,14,12,12,12,10,10,10,9,9,9,9,8,9,8,8,8,8,9,9,9,7,7,7,7,6,7,7,7,7,8,7,7,8,8,8,8,8,9,9,8,8,10,10,10,10,10,11,10,10,10,10,10,11,11,10,10,10,10,10,9,9,9,9,8,8,7,8,8,7,6,6,6,7,6,6,6,7,6,8,8,7,7,9,7,7,8,7,9,8,8,10,9,10,10,10,10,11,9,9,10,10,9,9,9,10,9,9,9,9,9,9,9,8,8,8,8,8,7,7,7,7,6,6,6,6,6,5,5,3,4,3,3,3,2,2,1,1,0,1,1,2,2,3,4,4,4,5,5,4,5,6,5,6,6,6,7,7,8,7,7,7,8,9,9,9,9,9,8,9,9,9,10,11,10,10,10,10,9,9,9,10,11,9,9,9,9,8,8,7,8,7,8,8,7,7,7,7,6,6,6,6,7,5,7,6,7,6,7,5,4,5,5,5,4,3,4,3,5,6,6,7,6,8,6,6,7,8,8,8,8,8,8,8,9,9,8,8,9,10,9,10,10,10,11,11,11,10,12,14,12,11,12,12,13,14,13,13,14,13,12,12,11,12,12,12,12,12,13,13,12,13,14,14,14,15,15,14,16,17,18,19,19,20,20,21,22,22,23,24,25,25,26,26,27,25,26,26,25,26,25,24,26,26,26,25,26,26,28,27,28,27,28,28,28,28,28,28,28,28,28,28,28,28,29,29,28,28,29,28,29,28,28,28,27,28,28,28,28,28,28,27,27,26,27,26,25,25,23,23,23,22,22,19,18,18,16,16,15,14,13,13,13,14,13,14,15,15,14,13,15,15,14,16,16,15,15,16,17,16,17,18,17,17,17,16,17,15,15,15,16,17,17,18,19,19,18,19,17,17,18,17,16,16,16,17,16,15,16,15,14,14,14,13,13,12,12,13,13,13,12,12,13,13,13,13,12,11,13,12,12,12,13,12,12,12,11,10,10,10,10,9,8,8,8,8,7,8,8,7,7,7,7,7,7,7,8,6,8,7,7,6,8,8,8,7,7,7,6,7,7,7,7,8,7,8,10,7,6,5,5,4,5,4,5,5,5,6,5,5,6,6,7,7,7,8,7,7,7,7,7,7,8,6,7,7,7,7,6,7,6,8,8,8,7,7,8,8,7,8,9,8,9,9,8,9,10,10,9,10,10,10,10,9,11,9,9,9,9,8,8,7,8,8,8,8,7,9,8,7,8,8,7,8,9,8,8,8,8,9,8,8,8,8,8,8,7,8,8,8,8,8,9,9,9,8,8,8,9,9,9,9,9,10,9,9,9,10,10,8,9,11,10,11,10,10,10,9,8,8,9,8,8,10,8,9,8,8,9,9,9,9,10,9,10,9,10,10,10,11,10,10,10,11,10,10,11,10,10,9,10,10,11,10,8,10,10,10,9,10,10,9,10,9,10,10,10,10,10,10,11,11,11,11,11,11,11,11,12,11,11,10,11,13,12,10,12,13,11,10,13,12,11,13,13,12,12,13,12,11,12,13,12,14,13,13,13,12,12,12,13,12,12,12,12,13,11,11,10,11,11,12,10,11,11,10,10,10,11,10,10,10,10,10,9,11,9,9,9,9,9,9,11,11,11,12,14,14,14,16,16,16,17,18,20,20,23,23,22,20,22,23,21,25,22,23,26,22,25,25,26,26,26,25,27,27,26,27,26,26,27,26,26,27,27,27,27,26,26,27,27,27,25,26,27],[29,29,28,29,29,29,29,28,28,28,28,27,28,27,27,27,27,27,26,28,26,26,27,27,26,27,27,27,27,27,26,27,28,29,27,28,28,28,28,28,29,28,27,28,28,27,26,25,26,25,24,24,25,23,21,23,22,21,20,21,19,17,15,14,12,12,11,12,11,12,10,9,9,9,8,10,9,9,9,9,8,9,8,7,6,7,7,7,7,7,6,7,8,7,7,7,8,8,7,7,9,8,8,8,10,8,8,8,9,9,10,10,10,10,10,10,10,10,11,10,9,10,9,9,9,10,8,7,8,8,7,6,6,6,6,6,5,5,5,5,6,6,6,7,9,7,7,8,8,8,9,10,9,10,8,10,9,9,11,9,11,10,11,10,10,10,11,9,10,10,10,9,10,10,9,8,10,9,8,8,8,8,7,7,9,6,6,6,6,6,5,3,4,3,2,3,2,2,1,1,1,0,1,1,2,2,4,3,6,5,5,4,6,5,4,5,5,7,8,8,9,8,11,9,8,10,9,9,10,10,9,10,10,11,11,12,10,10,11,10,10,11,10,10,10,10,9,10,10,9,8,9,8,8,9,9,8,8,7,7,7,8,6,6,9,8,10,7,7,5,6,5,5,5,5,4,5,3,2,2,4,6,6,7,7,8,9,8,9,10,7,8,8,8,8,9,8,8,9,9,9,10,10,9,10,11,10,10,11,11,11,11,12,12,11,12,13,12,12,12,12,12,12,11,11,12,12,12,12,12,12,13,13,12,13,14,15,14,16,16,17,18,18,19,20,20,20,21,22,23,23,25,26,26,26,26,28,25,28,26,24,27,25,25,27,26,26,26,26,27,28,27,28,27,28,29,28,28,28,29,29,29,29,29,28,29,29,29,29,28,30,29,29,29,29,28,29,29,29,29,29,28,29,27,27,28,27,25,26,25,23,23,22,22,21,19,17,18,16,15,14,12,13,12,13,12,11,13,13,13,13,14,13,15,14,15,16,15,15,15,18,15,16,18,17,17,17,15,16,14,14,16,15,16,17,17,18,19,18,18,17,17,17,16,15,15,15,16,14,14,14,14,13,13,13,12,11,11,11,11,12,11,11,12,12,11,12,12,12,11,12,12,12,13,12,13,13,12,12,11,10,10,10,9,10,8,8,9,8,8,8,8,7,7,8,8,7,5,8,7,6,6,9,6,5,7,7,5,5,7,7,6,6,6,6,7,9,8,8,7,6,5,5,5,6,5,5,6,6,6,5,6,6,6,7,7,7,7,7,6,7,7,6,6,6,7,6,6,6,8,6,6,7,8,6,7,7,6,7,8,7,6,7,8,8,7,8,9,10,9,9,9,10,9,9,9,9,8,9,9,7,7,7,6,6,6,8,6,7,7,6,7,7,7,6,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,10,9,9,9,8,9,9,9,9,9,9,10,9,9,9,9,9,9,10,11,11,10,11,9,9,9,8,8,7,8,9,7,8,8,8,7,7,8,8,7,8,8,8,8,9,9,9,10,9,8,9,10,8,8,9,9,8,8,9,10,9,8,8,9,9,9,9,10,10,10,10,10,9,9,9,9,9,10,9,9,9,10,10,10,9,11,11,10,10,11,11,11,10,11,11,11,11,11,11,11,13,11,11,11,12,11,11,11,12,11,12,12,12,12,12,12,12,12,12,11,12,12,12,11,11,9,11,11,10,9,11,11,9,9,11,9,9,9,10,9,10,10,10,10,10,10,9,10,10,10,11,12,12,14,15,15,15,16,17,18,21,21,21,24,23,23,22,24,23,22,26,23,25,26,24,25,26,27,27,27,25,27,27,27,28,27,27,27,26,27,28,28,27,28,28,27,28,28,26,26,28,27],[29,29,29,28,29,29,29,28,28,27,28,26,28,26,27,27,27,28,25,28,27,25,27,27,25,26,28,26,26,28,25,27,28,28,27,28,27,27,28,27,28,27,27,27,27,26,26,24,25,24,22,23,23,22,20,22,21,20,20,19,17,16,15,13,12,12,12,11,11,10,10,9,9,8,8,9,8,7,8,8,8,7,8,6,6,6,6,7,7,6,7,7,6,7,7,8,6,8,7,8,7,8,8,8,9,8,8,9,9,10,11,10,10,9,10,10,10,10,10,10,10,9,8,9,9,8,7,7,7,7,7,7,6,7,7,7,6,5,6,6,5,6,6,6,6,7,7,7,7,8,8,7,7,8,8,8,9,9,9,10,10,9,9,10,9,8,9,8,8,9,9,9,8,9,9,7,7,8,7,7,6,6,7,6,6,7,7,6,6,6,6,4,4,4,3,4,4,3,2,3,1,1,0,1,2,2,3,3,4,4,4,4,4,4,5,5,5,6,6,8,6,6,7,6,7,7,7,7,8,8,8,8,9,10,10,11,9,10,10,9,9,10,10,9,10,10,8,8,9,9,8,7,8,8,8,8,7,8,8,7,8,7,7,8,6,7,7,6,7,6,6,4,5,5,5,4,4,3,3,3,4,6,6,7,7,8,7,6,6,7,7,7,8,8,9,8,8,9,9,9,9,10,9,9,10,10,10,10,11,11,11,12,11,12,12,12,13,13,12,13,13,13,12,11,11,12,13,12,11,12,12,13,13,12,14,15,16,15,16,17,17,17,18,19,19,18,20,21,21,21,22,23,24,24,25,24,26,25,26,25,23,26,25,24,26,25,24,26,25,26,27,26,28,26,27,28,28,28,28,28,28,28,28,28,28,28,29,28,28,28,29,28,28,27,27,27,27,28,27,28,28,27,28,26,26,27,26,25,24,25,23,23,22,21,21,18,17,18,16,15,14,13,12,13,12,12,12,13,14,13,14,13,13,14,14,13,15,15,14,14,16,16,16,17,16,17,17,15,15,15,15,15,15,15,17,15,18,18,17,17,17,17,16,15,15,15,15,15,15,14,13,13,13,12,13,12,13,11,12,13,12,11,12,12,12,11,12,12,11,12,12,13,12,14,13,12,13,12,11,11,10,10,10,9,9,9,9,8,8,9,9,8,8,9,8,7,8,7,7,6,7,9,8,6,7,7,8,7,7,8,6,7,7,7,7,7,9,8,8,7,6,5,5,5,6,5,4,5,6,6,5,6,6,7,7,7,8,8,8,7,8,7,8,7,8,7,6,7,8,7,6,8,7,6,7,8,8,7,8,9,8,7,9,9,9,9,8,9,9,9,9,9,11,11,10,9,9,9,9,9,10,9,7,7,8,8,9,7,8,9,8,8,9,9,7,8,9,9,9,9,9,9,10,9,9,9,9,8,8,8,8,8,8,8,8,8,8,8,9,8,8,9,9,9,10,9,9,9,10,10,9,9,10,10,10,11,10,10,9,10,10,9,9,8,8,9,8,9,9,8,9,9,9,9,10,9,9,9,9,10,11,11,11,11,9,11,11,11,10,10,12,10,10,10,11,10,10,10,11,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,10,11,11,11,12,11,11,11,12,12,11,13,12,12,12,11,12,11,12,12,11,12,12,12,11,12,12,11,11,12,11,13,12,12,11,12,13,12,12,11,11,12,12,14,12,13,11,14,12,11,12,13,12,11,12,11,10,11,11,11,11,11,11,10,10,11,11,9,10,10,11,12,12,13,14,15,16,15,16,17,19,21,19,21,23,23,23,22,23,23,22,25,23,23,25,23,26,26,27,26,27,25,27,27,27,28,27,27,27,26,26,27,27,27,27,27,27,27,28,27,25,27,27],[28,28,28,27,28,28,28,28,28,26,27,24,27,25,26,26,26,27,24,27,26,24,26,26,24,25,27,26,25,27,26,26,28,28,26,27,27,27,28,27,28,27,27,25,26,26,24,22,25,24,20,21,23,21,19,22,21,19,19,19,18,16,15,14,13,13,13,12,12,13,11,11,10,10,10,11,9,9,10,11,9,9,10,8,8,8,8,10,8,7,9,8,7,9,9,9,9,10,9,8,10,9,9,9,10,9,10,9,10,10,11,11,10,11,12,11,11,11,12,11,11,11,11,10,9,9,9,9,9,8,9,8,7,7,7,7,7,7,7,7,6,7,8,8,7,9,9,9,10,10,9,10,11,9,9,10,11,10,10,11,10,11,10,10,11,10,10,10,10,9,10,10,10,9,9,9,8,9,9,8,8,7,8,8,6,6,7,6,5,5,6,4,4,4,5,3,3,3,4,3,2,2,1,0,1,2,3,4,5,5,5,5,4,5,5,6,7,6,6,6,7,8,7,8,8,9,8,9,9,9,10,10,11,11,11,11,11,11,11,10,11,11,11,11,12,11,10,9,10,9,9,8,9,9,8,8,8,8,8,7,7,7,8,7,6,6,6,5,6,6,6,4,5,5,5,4,4,3,4,4,4,4,6,6,6,8,7,8,7,7,9,8,8,9,9,9,10,10,9,10,11,12,11,11,12,11,12,13,12,12,13,15,14,14,14,14,15,15,14,15,15,14,13,14,13,13,13,13,13,13,13,13,13,14,14,15,14,16,15,16,17,17,17,18,19,20,19,20,21,23,21,24,25,25,26,26,26,25,26,25,25,25,25,25,25,26,26,25,26,26,27,27,28,27,28,29,28,28,28,29,29,29,28,29,28,28,29,29,29,28,28,29,28,28,28,28,28,28,29,29,28,29,28,27,27,27,27,27,26,26,26,24,24,23,23,20,19,20,17,16,15,15,13,14,15,14,14,15,15,16,14,15,16,16,15,15,17,15,15,16,17,16,18,18,19,18,18,16,17,15,16,16,18,18,19,18,20,19,19,19,18,17,18,17,15,16,18,17,17,16,16,15,15,15,15,16,13,14,13,14,14,13,14,15,14,12,13,14,14,13,14,14,12,13,14,13,14,12,13,13,12,11,11,11,10,10,9,10,9,9,9,8,8,8,8,7,8,7,7,6,8,8,6,7,9,7,7,8,9,8,7,9,9,9,8,8,9,9,9,9,7,6,5,6,6,5,5,6,6,6,6,5,6,6,7,8,8,9,8,8,9,9,8,8,10,9,8,9,10,8,8,10,9,8,9,9,8,8,10,10,8,9,10,10,10,10,10,10,11,11,11,11,12,13,11,11,12,10,10,10,10,9,8,9,9,8,8,8,9,10,9,8,10,10,8,9,10,10,9,10,11,10,11,10,10,10,10,9,9,10,11,10,10,10,10,11,9,10,10,10,10,9,10,10,10,10,10,10,10,11,10,9,10,11,10,11,11,12,11,11,10,10,10,10,10,11,10,11,10,10,10,11,10,11,11,11,10,10,12,11,12,11,12,11,11,12,12,11,11,11,12,10,11,12,12,11,11,12,11,11,12,12,11,12,11,12,11,11,12,12,12,12,13,12,11,12,13,12,13,13,14,12,12,11,11,13,12,12,13,13,12,12,14,13,12,13,14,13,14,14,13,13,13,13,14,15,14,14,13,13,14,14,14,13,12,13,13,13,12,12,11,12,12,12,12,12,12,11,10,12,11,11,11,12,11,11,11,11,11,11,11,10,11,10,11,11,12,13,14,14,15,15,17,18,18,18,21,21,23,23,22,21,22,21,22,24,24,23,25,24,26,25,27,26,25,24,27,26,25,26,26,26,25,26,26,27,26,26,27,26,26,26,28,26,24,27,27],[28,28,28,28,28,28,28,27,27,27,27,26,27,26,26,27,27,27,26,27,26,25,26,27,25,26,27,26,26,27,25,26,28,28,26,27,27,27,27,27,27,26,26,25,26,26,25,23,25,22,21,23,23,20,20,22,21,20,21,20,18,17,16,14,14,14,15,13,14,13,14,13,14,13,12,13,12,11,11,11,11,12,11,9,9,8,8,7,7,8,8,8,9,9,9,8,9,11,11,10,12,13,11,12,13,12,12,11,12,12,12,12,12,13,13,14,13,13,13,13,13,13,13,13,13,13,12,12,12,12,11,10,9,9,8,8,8,8,7,9,9,9,9,10,9,9,11,11,11,12,12,12,13,13,13,13,13,13,13,13,14,11,13,14,13,12,13,13,13,13,14,13,12,13,13,12,11,13,11,12,12,11,10,11,9,10,9,8,8,7,8,8,7,7,6,5,5,5,4,4,3,3,2,1,0,1,2,4,5,6,6,3,5,7,7,8,8,10,9,11,8,10,11,11,12,12,13,12,13,13,11,13,13,13,13,13,12,13,13,13,12,14,13,13,14,13,14,13,12,13,12,11,12,12,11,10,11,10,10,11,9,11,11,10,10,9,10,8,9,8,8,7,6,6,6,5,5,6,5,4,6,7,8,7,8,9,9,10,10,11,12,11,13,13,12,12,13,13,13,12,13,14,14,13,15,14,14,15,15,15,15,18,16,16,16,17,17,16,16,15,16,16,15,14,13,15,16,15,14,15,15,15,15,16,15,15,17,16,16,17,17,17,18,20,19,20,20,21,22,23,23,24,25,25,26,26,27,27,27,26,24,26,26,26,26,26,27,26,26,26,27,27,28,27,28,28,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28,28,28,28,29,28,28,27,27,27,27,27,26,25,26,25,25,24,22,24,21,19,21,19,17,17,16,16,16,16,17,16,17,16,18,16,17,19,19,17,19,20,18,16,18,20,18,18,20,19,19,19,18,19,18,19,19,20,20,20,21,21,20,20,21,19,19,19,19,18,18,20,19,19,18,18,17,18,16,18,19,15,16,15,16,17,17,17,17,17,17,16,16,16,15,16,16,15,16,17,17,16,15,16,15,15,14,14,14,13,13,14,14,12,13,13,11,11,12,12,11,11,10,10,9,11,11,8,9,11,9,9,10,10,9,7,9,8,8,7,9,9,9,9,8,7,6,5,6,6,6,5,5,5,6,4,5,5,7,8,8,8,8,7,6,7,8,7,6,8,7,7,8,8,8,7,9,9,8,10,10,10,11,12,13,11,12,12,12,13,13,13,12,14,14,14,14,14,16,15,15,14,14,13,12,13,12,11,11,12,12,11,9,11,12,11,10,11,12,10,11,11,10,10,10,11,11,11,11,11,11,10,10,9,10,9,10,10,9,11,12,12,11,10,10,12,12,12,10,11,10,10,10,9,10,10,9,10,11,11,12,12,12,12,11,11,11,11,11,11,12,12,12,12,10,14,13,12,13,14,12,13,12,14,14,14,15,14,14,14,14,14,12,13,13,13,11,12,12,13,11,11,13,13,11,12,13,12,12,13,13,14,13,13,14,14,13,14,15,14,13,14,15,15,14,15,14,14,13,13,15,13,13,16,13,12,12,16,14,13,16,15,14,16,17,14,14,16,16,15,17,16,15,16,16,16,16,16,15,14,15,14,15,15,13,12,14,15,14,14,14,16,14,14,15,15,14,14,14,14,14,14,15,13,14,15,14,14,14,14,13,14,16,17,16,17,18,19,19,21,20,21,22,24,23,24,23,25,23,23,26,24,25,27,25,27,26,28,28,27,26,28,27,26,28,27,27,27,26,27,28,28,27,28,28,28,28,28,27,26,28,28],[29,29,28,28,29,29,28,28,27,27,27,25,27,26,27,26,26,27,24,27,26,24,27,27,24,26,28,26,26,28,25,27,28,29,27,28,28,28,28,28,29,28,28,27,27,26,25,23,26,24,21,23,24,22,21,23,22,20,21,20,18,16,16,16,14,15,15,13,13,13,13,12,13,13,11,12,11,11,11,11,11,12,10,8,8,9,7,7,6,6,9,8,8,11,10,11,11,12,11,11,12,11,11,11,13,12,12,13,14,14,14,14,13,13,15,15,15,14,15,14,14,14,15,14,12,13,12,11,12,11,10,9,10,10,9,10,8,8,9,9,9,9,10,9,10,12,11,11,11,12,12,12,13,12,11,13,12,12,12,13,14,12,13,13,12,12,12,13,12,13,13,13,12,14,13,11,12,13,12,12,11,12,11,10,10,10,9,9,9,9,10,7,8,8,6,5,4,5,4,4,3,4,3,2,1,0,1,2,3,5,4,4,5,6,6,7,8,9,9,9,10,10,11,10,11,12,12,12,12,13,13,13,13,15,14,15,15,14,14,13,15,15,14,15,15,14,14,14,14,14,12,12,14,13,12,11,11,11,12,11,11,12,12,11,10,9,10,10,9,8,9,7,6,7,7,6,6,5,4,4,5,5,6,7,7,8,9,9,9,10,11,12,13,13,12,14,14,14,14,13,14,14,15,14,15,15,17,16,17,16,16,19,17,17,17,17,19,18,17,17,17,16,17,15,15,16,17,15,15,16,16,16,15,16,16,15,17,17,16,18,17,18,19,19,19,21,22,22,23,24,23,24,26,25,26,26,27,26,27,26,25,26,26,26,26,26,26,27,26,27,28,28,29,27,28,29,29,29,29,29,29,29,29,28,29,29,29,29,29,28,29,28,29,28,28,28,28,29,28,29,28,28,29,28,28,28,28,26,26,26,26,24,24,23,22,22,20,21,19,18,18,17,16,17,18,18,16,18,18,18,17,17,19,18,19,19,19,18,19,20,21,20,19,21,20,20,21,19,20,18,18,19,19,19,21,22,22,21,20,22,21,20,20,20,18,19,20,20,20,19,19,18,18,17,19,19,19,18,15,17,18,17,17,17,19,16,17,17,18,17,17,17,15,17,17,17,16,16,16,14,16,14,15,15,15,14,14,14,12,13,13,13,11,12,12,10,11,10,10,9,11,10,9,8,9,8,8,8,9,9,7,8,9,9,8,9,9,9,11,10,8,7,5,5,5,4,5,4,4,5,5,5,6,7,8,8,7,9,8,7,8,7,7,7,8,6,6,7,8,7,7,8,8,8,9,11,9,10,11,13,11,11,12,13,13,12,13,14,14,15,15,16,16,16,15,15,14,13,14,14,13,12,11,11,11,12,11,9,11,12,10,9,11,12,10,9,11,9,10,11,11,11,10,8,11,10,9,10,8,9,9,10,11,10,11,12,12,11,11,12,12,12,11,11,11,10,10,11,9,11,11,9,9,11,10,12,12,13,11,11,10,12,10,10,11,12,10,11,12,12,11,12,12,13,12,13,14,12,13,14,14,15,15,14,13,15,15,13,13,14,14,12,14,12,13,13,12,12,13,13,11,13,13,11,13,13,14,14,11,14,14,14,12,14,15,13,14,15,15,14,15,16,16,14,14,16,16,14,15,16,14,14,17,16,14,16,16,15,15,16,15,15,15,16,15,16,16,17,16,15,16,15,17,14,15,15,16,17,14,16,13,15,15,14,16,15,14,13,15,16,14,14,15,16,15,15,15,16,14,15,17,16,15,15,15,15,15,16,17,17,16,18,18,20,21,21,22,21,25,24,24,23,24,24,23,25,24,23,27,23,26,25,28,26,27,25,28,27,26,27,27,27,26,25,27,28,27,26,28,27,27,28,28,26,26,27,27],[28,28,28,28,29,29,28,28,28,27,27,27,28,27,27,27,27,28,26,28,27,25,28,28,26,27,28,26,27,28,26,27,28,28,27,28,28,27,28,27,28,27,27,26,27,27,24,24,26,24,21,24,24,22,21,24,22,20,22,21,19,17,16,15,15,13,14,13,13,12,12,11,11,11,9,10,9,9,8,9,9,8,8,7,7,7,5,6,5,6,6,6,6,7,7,8,7,8,8,8,9,8,9,9,10,10,11,12,12,11,12,13,11,10,11,13,12,14,12,14,13,10,12,13,11,10,11,10,9,9,10,9,7,8,8,9,9,7,9,7,8,7,8,7,8,8,9,8,8,9,9,10,8,9,9,9,10,10,10,11,11,9,12,11,10,9,11,10,9,10,11,9,9,12,11,9,10,12,10,10,8,9,9,8,8,9,8,8,8,7,9,9,7,7,6,6,5,5,6,5,4,4,3,3,2,1,0,1,2,4,4,2,4,4,5,5,4,6,6,8,7,7,9,7,8,10,10,8,9,10,10,10,12,12,12,12,11,12,12,13,10,12,12,12,11,12,12,11,10,12,11,9,10,11,10,10,10,11,10,11,9,9,10,10,8,9,8,9,9,7,8,7,6,7,7,6,6,5,4,3,5,4,5,5,6,8,7,8,7,8,8,9,10,11,10,10,11,11,11,11,11,13,13,11,13,14,13,13,14,14,15,15,15,15,15,16,16,16,15,15,15,14,13,14,12,14,15,13,13,14,14,15,15,14,15,16,15,16,17,18,18,18,18,19,19,20,20,21,20,23,23,23,25,24,25,25,27,26,27,26,24,27,25,25,26,26,26,27,25,26,28,27,28,28,28,28,29,28,28,28,29,29,28,28,29,29,29,29,29,29,29,29,29,29,28,28,28,29,28,29,28,28,28,27,27,28,28,26,26,26,24,24,24,22,22,21,20,20,18,17,16,15,15,15,15,16,14,16,17,16,17,17,17,18,17,18,19,18,18,19,21,19,19,22,20,20,21,20,20,18,18,19,19,19,20,21,22,22,22,22,20,21,20,19,18,19,20,19,19,18,17,18,17,16,16,16,15,15,15,16,16,15,15,16,16,15,16,16,16,15,16,16,15,17,16,16,16,15,14,14,15,14,13,13,12,12,13,12,11,11,12,12,11,10,10,10,11,9,9,9,10,10,9,9,10,9,8,8,8,8,8,8,8,8,9,9,10,9,10,9,7,7,5,6,5,4,5,4,4,5,5,6,4,6,7,7,7,7,6,6,8,6,5,6,8,6,6,8,7,6,6,8,7,8,9,9,9,10,9,10,9,11,10,11,13,12,11,12,13,13,14,14,15,15,15,12,12,13,13,13,11,10,11,10,10,11,11,9,11,10,9,11,10,10,10,10,10,10,10,11,10,10,10,10,10,10,10,9,8,8,8,8,8,7,8,9,8,8,8,8,8,9,9,9,10,8,9,9,8,10,9,8,9,10,10,11,10,11,11,11,9,10,10,9,10,11,9,11,11,10,11,12,11,12,12,11,12,12,13,13,12,13,15,13,13,14,14,13,12,14,13,12,13,12,13,13,12,12,13,14,12,12,14,13,13,12,13,12,12,13,13,12,14,14,13,12,14,14,14,14,14,14,15,14,13,14,15,15,14,14,13,13,14,14,14,15,15,15,14,16,14,14,15,15,15,16,15,16,15,15,15,15,16,14,14,15,15,15,14,14,12,14,14,13,13,14,14,13,14,15,13,14,14,14,13,14,15,16,13,14,15,14,14,14,14,14,14,15,17,17,17,18,19,20,21,20,23,23,26,23,24,24,25,24,24,27,24,26,28,24,27,27,28,27,28,27,29,28,28,28,29,28,27,26,28,28,28,28,29,28,28,29,29,28,27,28,28],[29,29,29,29,29,30,30,28,29,28,28,28,28,27,28,28,28,28,28,28,27,27,28,27,27,27,27,27,27,27,26,28,27,28,27,28,27,28,28,27,28,27,26,27,27,26,25,24,25,23,22,23,23,22,21,22,22,21,20,20,18,16,15,13,12,11,11,10,9,10,9,9,8,9,8,10,6,7,6,7,8,6,6,6,5,4,4,5,4,4,4,4,4,5,5,5,5,6,6,6,7,6,7,7,7,7,7,7,8,8,8,8,7,7,8,8,8,9,8,8,8,7,8,7,7,7,7,7,6,7,7,6,6,6,6,7,6,5,6,6,5,5,5,6,6,6,6,7,6,6,6,7,6,6,6,7,6,7,8,7,7,6,7,7,7,7,7,7,7,7,7,7,7,7,7,6,8,8,7,7,6,7,7,7,6,7,7,7,7,6,6,5,6,6,6,6,6,4,5,5,4,4,3,4,3,2,1,0,1,1,2,2,3,3,4,4,3,4,7,6,6,5,6,7,7,7,8,8,7,8,8,8,8,9,9,9,9,8,8,9,8,9,9,8,8,9,9,8,8,8,8,7,8,8,8,8,8,8,7,8,7,7,7,7,7,8,8,7,7,6,6,6,5,5,5,4,5,5,2,3,3,3,4,4,4,5,6,6,7,7,8,8,9,8,9,8,8,9,8,9,9,9,9,10,10,10,11,10,10,10,11,11,11,11,12,11,12,11,10,12,11,11,11,11,10,10,11,11,11,10,11,11,12,12,12,14,14,13,16,16,17,17,17,19,19,18,20,19,21,22,22,23,24,24,25,26,27,24,27,25,24,26,24,22,25,26,25,25,25,26,27,26,28,27,28,27,27,28,27,28,28,28,28,28,28,28,28,28,28,28,28,28,29,27,28,28,28,28,27,28,28,27,28,26,26,27,26,25,26,24,24,22,22,21,21,19,17,19,14,14,13,11,11,12,11,10,12,12,13,13,14,13,12,14,13,13,14,14,13,14,16,15,15,17,17,16,16,15,16,14,14,14,14,13,16,16,16,18,17,16,16,14,16,15,14,14,13,14,13,13,13,12,11,11,11,11,12,11,11,11,11,11,12,11,11,12,12,11,11,12,11,12,11,13,13,12,12,13,12,11,10,10,10,9,9,9,9,9,9,9,9,9,7,9,9,8,9,7,7,7,7,7,7,7,7,5,7,6,6,6,5,7,7,7,7,8,9,9,8,8,5,5,3,4,4,4,3,3,3,3,3,4,4,4,5,5,6,6,4,4,5,5,5,4,6,5,4,5,5,5,5,8,6,6,7,7,7,6,9,9,8,8,9,9,9,10,8,9,10,10,10,10,10,10,10,10,10,10,10,9,9,8,8,8,9,8,8,7,8,9,8,8,8,9,8,8,8,7,9,8,8,8,8,9,8,8,9,6,7,7,7,6,6,5,7,6,6,6,7,6,6,7,6,7,7,7,8,7,7,7,7,8,8,7,9,9,8,9,8,9,9,8,7,8,8,8,9,9,9,8,9,9,8,10,9,8,8,10,10,9,9,10,10,11,9,10,10,10,10,10,10,10,9,10,10,9,9,10,9,10,10,9,9,10,9,9,9,8,10,9,9,9,10,9,9,11,10,10,11,9,11,10,10,11,10,11,11,12,10,10,10,10,10,10,11,10,10,11,11,10,9,10,11,11,10,12,11,11,11,10,12,10,11,11,10,11,11,11,11,11,10,12,10,10,11,11,11,12,11,11,11,11,11,10,12,14,11,11,11,12,11,10,11,11,11,12,13,13,14,15,16,16,17,17,19,20,20,21,24,24,24,23,24,24,23,27,25,25,27,24,27,27,28,27,26,24,27,27,26,28,27,26,27,26,26,28,27,27,28,28,27,28,28,26,25,28,27],[28,28,28,28,28,29,29,28,29,27,27,27,27,27,27,27,27,28,26,28,27,26,28,28,27,27,28,27,28,27,27,28,29,29,28,29,28,28,28,28,29,27,27,27,28,27,24,24,26,23,22,23,24,22,21,22,22,20,19,19,17,15,13,11,11,10,9,9,8,8,7,7,7,7,6,6,6,6,5,5,5,4,5,4,4,3,3,4,3,3,4,3,3,5,4,5,5,5,5,5,6,5,5,6,6,6,7,6,7,7,7,6,6,6,6,7,7,7,7,7,7,6,6,6,6,5,6,6,5,5,6,6,5,5,5,6,5,5,5,4,5,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,5,6,6,6,6,5,6,6,6,5,6,5,6,6,6,5,5,5,6,5,5,6,5,6,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,5,5,4,4,4,4,3,4,2,3,2,1,0,1,1,1,2,2,3,4,2,2,3,4,3,5,5,6,5,5,5,5,5,6,6,6,7,7,8,9,7,7,8,7,6,7,7,6,6,7,7,6,6,6,5,6,6,7,7,6,7,7,7,6,6,6,6,6,6,5,6,5,6,7,5,4,5,4,4,3,3,4,3,2,3,3,3,3,3,4,4,5,5,5,6,5,6,6,6,6,7,7,6,7,7,7,7,8,8,9,8,8,9,9,9,10,9,10,9,9,10,10,10,10,10,10,9,10,9,9,10,10,9,10,10,10,10,11,12,14,13,13,14,15,16,15,16,18,17,18,18,19,20,21,21,23,24,24,25,25,27,25,26,25,23,26,25,22,25,26,25,25,25,26,27,27,28,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,27,27,29,28,27,28,27,27,27,27,24,25,25,24,22,22,21,20,18,17,16,14,13,12,10,10,11,10,10,10,11,11,12,11,11,12,12,12,13,14,13,13,15,14,14,14,16,16,15,15,14,14,13,13,14,14,14,15,15,16,16,16,16,15,14,15,14,13,13,13,14,13,12,12,12,11,11,11,11,10,10,10,10,10,11,10,10,10,10,10,10,10,10,11,11,11,12,12,11,11,11,10,9,9,8,8,8,7,8,7,8,7,7,8,7,7,7,7,6,7,6,6,6,7,6,6,6,6,6,5,5,5,5,4,5,5,6,6,6,7,7,8,6,5,4,3,4,3,2,3,3,3,3,2,3,3,4,5,6,6,7,6,5,6,5,3,5,6,5,4,5,5,4,4,6,5,5,5,5,6,6,6,7,7,7,7,6,7,8,6,7,8,8,8,9,9,9,9,9,9,8,9,8,9,8,7,7,7,7,6,6,6,7,6,7,6,7,6,6,6,7,8,7,6,7,7,7,6,6,7,6,6,5,6,5,6,5,5,5,5,5,5,5,5,6,6,6,7,6,6,7,6,6,7,5,7,7,8,8,7,8,7,7,6,7,6,7,7,7,8,7,7,6,7,7,7,7,8,7,8,9,9,8,9,9,9,9,9,9,9,9,8,8,8,8,8,9,9,8,8,8,8,9,8,8,8,8,8,8,8,8,8,8,8,8,9,9,8,9,9,8,10,9,9,9,10,9,9,10,10,10,9,9,9,9,9,9,9,9,9,10,10,10,9,9,10,10,10,11,10,10,10,10,11,9,10,10,10,10,11,11,10,9,9,10,9,9,10,9,9,9,9,9,9,9,9,9,9,9,9,10,9,9,9,8,9,10,10,10,12,13,14,15,15,14,16,17,17,20,20,20,22,22,23,21,22,23,22,25,23,24,25,24,26,25,26,25,26,24,27,27,25,27,26,26,26,25,25,27,27,26,27,26,26,26,27,26,24,25,26],[29,28,28,29,28,29,29,28,29,28,28,28,28,27,27,27,28,28,27,28,28,26,28,28,27,27,28,27,27,28,27,27,28,29,28,28,28,28,28,28,29,28,28,27,28,27,25,25,26,24,22,23,25,22,22,24,22,21,21,21,19,16,15,12,11,11,9,10,9,9,9,7,9,7,7,7,6,6,5,6,7,5,4,4,4,4,3,4,2,4,4,3,4,4,4,4,5,5,4,4,6,5,5,5,6,6,6,6,7,8,8,7,7,7,6,7,8,7,8,7,7,7,6,6,6,6,5,5,6,6,5,5,5,5,5,5,4,3,3,4,4,3,3,5,4,4,4,6,4,5,6,7,5,6,5,5,5,6,6,6,7,6,8,6,6,7,7,7,6,7,7,6,6,7,7,7,7,6,6,6,6,6,5,5,5,4,4,4,4,4,4,4,3,4,3,4,4,4,5,4,4,5,4,4,4,3,2,2,1,0,1,1,2,2,2,3,2,3,3,4,3,4,6,5,7,8,8,8,6,7,6,7,8,8,9,8,8,8,9,8,8,8,8,7,8,8,7,7,8,7,7,8,7,7,7,7,6,7,6,7,7,7,6,6,6,6,5,6,4,5,5,5,5,5,5,4,5,4,3,2,3,3,4,4,4,4,4,4,5,7,7,7,7,7,8,8,8,9,8,9,8,9,9,8,9,10,10,9,10,10,10,10,11,11,10,11,11,11,11,11,11,11,11,10,10,10,11,10,10,11,12,11,12,11,12,13,13,13,16,16,17,17,17,20,20,19,21,21,21,22,23,24,25,25,26,26,27,26,27,26,26,27,25,25,27,26,25,26,26,27,28,27,28,27,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,28,28,28,28,28,29,28,28,28,28,27,27,26,26,26,25,23,24,23,21,22,19,19,17,15,14,13,11,11,11,11,10,11,11,11,12,12,12,12,13,13,13,13,14,14,14,15,14,16,17,16,15,16,14,15,14,13,14,14,14,16,15,17,17,17,16,15,15,15,14,13,13,14,14,14,12,12,13,11,10,11,12,10,10,10,10,11,10,10,11,11,11,11,11,10,10,11,12,11,12,12,11,11,11,10,10,10,9,9,8,9,8,8,8,8,8,8,8,9,8,7,7,8,7,6,7,7,6,6,5,6,6,5,5,5,5,5,5,5,6,6,6,7,7,8,6,5,4,3,4,3,2,3,6,2,3,2,3,3,4,4,4,4,4,4,3,5,4,3,4,4,4,3,4,4,4,4,5,5,6,6,6,7,6,6,7,7,7,7,8,9,8,8,9,9,9,9,9,9,10,9,9,8,9,8,10,8,8,8,7,7,7,7,6,7,7,6,6,7,7,6,7,7,6,6,7,7,7,6,6,7,6,6,5,5,5,4,5,6,5,5,5,6,6,5,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,8,7,8,7,7,6,6,7,7,7,7,8,7,7,8,8,9,8,8,9,9,8,9,10,9,10,9,9,9,9,8,8,9,8,7,8,8,9,8,7,8,8,8,8,8,8,9,9,9,9,9,9,9,9,8,9,10,9,9,9,10,10,9,10,10,10,10,10,11,10,10,10,10,10,10,10,10,9,10,11,10,10,11,10,10,10,11,10,11,11,10,11,10,12,10,11,10,10,10,11,10,10,10,8,10,10,10,9,10,10,10,9,10,9,10,10,10,9,9,10,10,9,9,10,9,9,9,11,11,12,12,14,15,15,13,15,16,18,19,22,23,24,25,24,22,24,24,23,26,24,25,26,24,27,26,27,26,27,26,28,27,27,28,27,27,27,25,27,28,28,27,28,27,27,28,28,26,25,26,26],[28,28,27,28,28,28,28,28,28,27,27,26,27,26,26,26,27,27,26,27,27,26,27,27,26,27,26,26,26,26,26,27,27,28,26,27,27,27,28,27,28,26,26,26,26,26,24,24,24,22,22,23,22,21,19,21,18,19,18,18,16,15,13,11,9,9,8,7,7,7,7,6,6,5,5,5,5,5,5,5,5,5,4,4,4,3,3,3,3,3,3,3,4,4,4,3,4,5,4,4,6,5,5,5,6,5,5,6,6,7,7,6,6,6,6,7,7,7,7,7,7,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,3,3,4,3,3,3,4,4,4,5,6,5,4,5,6,5,6,5,5,6,6,5,6,5,5,6,6,6,6,6,6,6,6,7,6,5,6,7,5,6,6,5,5,5,5,5,5,5,4,4,4,3,4,4,3,3,4,3,4,4,3,4,4,4,5,4,4,4,4,3,2,1,1,0,1,1,2,2,2,2,2,3,3,3,5,6,6,6,6,6,6,6,6,6,5,6,6,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,5,6,5,5,5,5,5,5,4,5,4,4,5,4,5,4,5,4,4,4,3,3,2,2,2,3,3,3,3,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,9,9,9,8,9,9,9,10,10,9,9,9,8,8,8,9,8,8,9,9,9,10,10,11,12,13,12,14,15,15,14,17,17,17,17,19,19,19,21,21,21,24,23,24,24,26,25,25,24,23,25,24,23,24,24,24,25,24,24,27,26,27,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,26,27,27,26,26,27,26,26,26,25,26,26,26,24,24,23,21,22,20,20,19,18,16,15,13,11,10,10,9,10,10,10,10,10,10,10,10,11,11,12,11,12,13,11,12,13,13,13,14,15,15,14,14,13,14,13,12,12,13,13,13,15,15,15,15,15,14,15,14,13,13,12,13,12,11,11,11,11,10,10,10,9,9,9,9,9,9,9,8,9,8,9,9,9,9,9,10,10,10,11,10,10,9,9,8,8,8,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,5,5,5,6,5,6,5,5,5,6,5,4,5,4,5,4,5,6,6,7,7,9,6,6,4,3,3,3,2,2,2,2,3,3,3,3,4,4,4,4,5,3,3,4,3,3,3,4,3,3,4,4,3,4,4,4,6,4,5,5,5,5,6,6,6,6,6,7,6,6,7,8,7,7,8,7,8,7,8,8,7,7,7,7,6,7,6,6,6,7,6,7,6,5,6,6,6,5,5,5,5,5,5,5,6,5,5,5,5,5,4,4,4,5,4,5,4,5,5,5,5,5,5,5,5,6,5,5,6,5,6,6,6,5,5,5,6,6,7,7,6,6,6,5,5,5,5,5,6,5,6,6,6,6,6,6,7,7,6,7,7,7,7,8,7,8,7,8,8,8,8,8,7,7,7,6,7,7,7,6,7,7,6,6,7,6,6,7,6,7,7,6,7,7,7,7,8,7,8,8,8,8,8,8,8,8,8,8,10,9,9,9,9,9,8,9,8,8,9,9,8,9,10,8,8,8,9,9,10,10,9,9,9,10,9,10,9,9,9,10,9,8,8,8,9,9,8,8,8,8,8,7,8,8,8,8,8,9,8,8,8,8,8,8,8,8,8,9,9,11,11,13,12,13,13,14,15,16,17,19,19,22,21,20,20,21,20,19,24,21,22,23,22,25,24,25,24,25,23,26,25,24,27,25,24,25,26,25,26,25,25,25,25,24,26,25,26,23,24,25],[29,29,28,28,28,29,29,28,28,27,28,27,28,26,27,27,28,28,26,28,27,26,28,27,26,27,28,27,28,27,27,28,28,29,28,28,27,28,28,27,28,27,27,27,27,27,24,24,25,24,22,22,23,21,20,21,20,19,19,19,16,15,13,11,10,9,8,8,7,7,6,6,6,6,5,6,5,6,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,5,5,5,5,6,5,6,6,6,6,6,6,5,6,6,6,7,6,6,6,6,6,6,6,6,5,5,5,5,4,5,5,4,4,4,4,4,3,3,3,3,3,3,4,3,4,5,4,3,5,5,5,5,6,5,5,5,6,6,5,5,5,5,5,6,6,5,6,6,6,6,6,5,5,6,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,2,2,3,3,4,3,3,3,4,3,3,4,4,3,3,2,2,2,2,1,0,1,2,2,2,2,3,2,3,3,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,4,4,5,5,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,8,7,8,8,8,8,8,9,8,8,8,8,7,8,8,8,8,8,8,8,10,10,11,12,12,13,15,15,16,15,16,18,18,18,19,21,20,20,21,22,23,24,24,25,26,25,26,25,24,26,24,22,25,25,24,25,26,25,27,26,27,27,27,28,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,27,27,27,27,27,27,28,27,27,27,27,27,26,26,26,26,24,24,23,22,23,20,19,18,15,16,12,11,10,9,8,9,9,8,9,9,9,9,9,9,10,10,10,10,12,11,11,12,12,12,12,14,14,13,13,12,13,11,11,11,11,12,12,13,14,14,14,13,13,13,13,12,12,11,11,11,11,10,10,10,9,9,9,8,8,8,8,8,7,8,8,8,7,8,7,8,8,8,9,9,9,10,9,9,9,9,7,7,7,6,6,6,6,6,5,5,5,5,5,5,4,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,8,7,7,6,5,4,3,3,3,2,3,2,2,2,2,3,3,3,4,4,4,4,3,4,4,4,3,4,4,3,3,4,4,4,3,4,4,4,4,4,4,4,5,4,5,5,5,5,5,6,5,6,6,6,6,7,6,7,6,6,6,6,6,5,6,6,5,5,6,5,5,5,5,6,5,4,5,6,5,5,6,5,6,5,5,5,5,5,6,5,5,4,4,4,4,5,4,4,4,5,5,5,4,5,5,5,5,5,6,5,5,5,5,6,5,5,6,6,7,7,6,6,6,6,5,5,5,5,5,5,5,6,5,5,5,5,6,5,6,5,6,6,6,6,7,7,6,7,6,7,6,6,7,6,6,6,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,7,8,7,7,8,8,8,8,8,8,7,8,8,8,8,8,8,8,8,9,8,9,8,8,8,8,8,8,8,7,8,8,7,8,7,7,7,7,7,7,7,7,7,7,6,7,7,7,7,7,6,6,7,8,8,9,10,11,12,13,12,14,14,16,18,18,19,21,22,21,19,21,22,21,23,21,23,24,22,24,24,25,25,25,24,25,26,24,26,25,25,25,25,25,26,26,26,26,26,25,26,26,25,24,25,26],[29,28,29,29,29,29,29,29,29,29,29,28,29,28,28,28,28,28,27,28,28,27,28,28,27,28,28,27,28,27,27,28,28,28,28,28,28,28,28,28,28,28,27,27,27,27,25,24,25,24,23,23,24,22,21,22,21,20,19,20,17,15,13,11,9,9,7,7,7,7,6,5,5,4,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,4,4,4,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,2,2,3,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,5,4,4,4,4,4,4,3,3,4,4,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,4,4,4,4,4,4,4,3,3,3,3,3,2,2,1,1,1,0,1,1,1,2,1,2,2,2,2,3,3,3,3,4,3,3,3,4,4,5,5,6,6,5,5,5,5,4,5,5,4,4,5,4,4,4,4,3,4,4,4,4,4,5,4,5,4,3,4,4,4,3,4,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,3,2,2,4,3,3,4,4,3,4,4,4,4,4,5,5,4,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,8,8,8,7,8,8,8,7,8,7,7,7,8,7,7,8,9,9,8,10,12,12,12,14,15,17,16,17,19,19,18,20,20,21,21,23,24,24,25,26,26,26,25,26,25,23,26,24,24,25,26,26,25,26,26,26,27,28,26,27,27,27,28,27,27,27,27,27,27,27,28,28,28,28,28,29,28,28,28,28,27,28,28,27,28,28,28,28,26,27,26,26,25,25,24,23,23,21,21,20,18,16,15,12,11,10,8,8,8,8,8,8,9,9,9,9,8,9,10,9,10,10,10,10,11,11,11,12,13,12,12,13,11,11,11,11,10,10,11,12,12,12,14,12,12,11,12,11,11,10,10,10,10,9,9,9,9,8,8,8,8,7,7,8,7,8,7,7,8,7,8,8,8,7,8,8,8,9,9,9,9,8,8,7,7,7,6,5,5,5,5,5,4,4,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,7,8,8,6,4,4,3,3,3,2,2,3,3,3,2,3,3,4,4,4,5,5,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,7,6,5,5,6,6,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,4,5,5,5,5,4,4,4,4,4,4,4,5,5,5,6,6,5,6,6,6,6,6,6,6,7,7,7,7,6,6,5,4,4,5,5,5,4,5,5,4,5,5,5,5,6,5,5,6,6,7,7,7,7,7,7,7,7,6,6,6,6,6,6,7,7,6,6,6,6,7,6,6,6,6,7,6,7,6,6,6,6,6,7,6,6,7,7,7,8,7,7,8,7,7,7,8,8,8,8,8,8,7,7,7,7,8,7,7,8,8,7,7,8,8,7,9,8,8,8,8,9,8,8,8,8,8,9,8,8,8,8,9,8,8,7,7,7,7,6,7,7,7,7,6,7,6,7,7,6,7,7,6,6,6,8,8,10,10,11,13,13,12,13,14,15,16,18,18,21,22,20,19,21,22,21,24,21,22,23,23,25,25,25,25,25,23,26,25,25,26,24,24,25,24,24,26,25,25,26,25,24,26,26,25,23,25,25],[28,28,27,28,27,28,28,27,28,27,26,27,26,26,26,27,26,26,27,27,26,27,27,26,27,27,26,27,27,26,26,27,27,28,27,27,27,27,28,27,28,27,26,26,26,26,23,23,23,21,22,21,21,20,19,19,18,17,16,16,14,13,11,9,7,7,6,5,5,5,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,3,3,3,3,3,3,2,2,2,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,7,7,7,8,10,10,10,12,12,13,12,14,15,15,14,16,17,18,18,19,21,22,21,24,24,24,23,24,23,21,23,22,21,23,22,23,24,23,22,26,24,27,25,26,27,27,26,27,26,26,26,26,26,27,26,27,27,27,27,28,27,27,26,26,26,26,26,26,27,26,26,27,26,26,25,25,24,23,23,20,19,18,18,18,15,13,12,10,9,8,7,7,7,7,6,6,7,7,7,7,7,8,8,8,9,10,9,9,10,10,10,11,12,11,10,10,10,10,9,9,9,9,10,10,11,11,12,12,11,10,10,10,9,9,9,9,9,8,8,8,7,7,6,6,6,6,5,6,6,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,6,6,5,5,4,4,4,3,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,6,7,7,5,4,3,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,3,3,3,3,3,3,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,4,4,4,4,3,3,4,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,4,4,5,5,4,5,5,5,5,5,6,6,5,6,6,6,6,6,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,5,6,6,6,7,7,7,6,6,7,6,7,7,7,6,7,7,6,6,6,7,6,6,6,6,6,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,8,8,10,11,11,11,12,12,14,16,17,18,20,20,20,18,20,20,20,23,21,22,22,22,24,24,26,25,24,23,25,25,24,27,25,24,26,25,24,25,23,25,24,25,23,25,24,24,23,24,24],[28,28,28,29,28,29,28,28,28,28,27,27,27,26,26,27,26,27,27,27,27,27,27,27,26,27,26,27,27,26,26,26,27,27,26,27,27,27,27,26,27,27,26,26,26,25,24,23,23,22,21,21,21,20,19,20,18,18,17,16,14,13,11,9,8,7,6,5,5,5,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,3,3,3,4,3,4,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,3,3,3,3,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,2,3,2,2,3,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,3,2,2,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,2,2,3,3,3,3,3,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,5,6,6,5,5,6,6,7,8,8,9,11,12,11,12,13,14,13,14,16,16,16,18,18,19,18,19,21,22,21,24,24,25,24,25,23,22,24,22,22,22,23,23,23,22,22,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,26,26,26,26,26,26,26,26,25,25,26,26,25,26,25,25,25,25,25,23,22,21,20,19,17,17,15,13,13,11,9,8,7,7,7,7,7,6,7,7,7,7,7,8,8,7,9,9,9,9,9,10,9,10,11,11,10,11,9,10,9,9,9,9,9,10,10,11,11,11,11,10,10,10,10,9,9,9,9,8,8,7,7,7,6,6,6,5,5,5,5,5,5,5,6,5,5,6,6,5,6,6,7,7,8,7,7,7,7,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,6,6,6,5,4,3,3,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,4,5,5,5,5,5,5,4,4,4,3,3,3,4,3,3,3,4,3,4,4,4,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,4,4,5,5,4,5,5,5,5,5,6,5,5,6,6,6,6,6,7,7,7,7,7,6,6,6,6,6,7,6,6,6,7,6,6,6,6,6,6,7,7,6,7,7,7,7,7,7,6,7,7,6,6,6,7,6,6,6,6,5,5,5,5,5,5,5,5,5,5,4,5,4,5,4,4,4,5,6,7,8,8,10,11,10,10,12,13,14,17,17,17,20,21,20,18,20,21,20,22,20,22,22,21,24,23,25,24,25,24,25,25,25,26,25,24,25,23,25,25,24,25,25,25,23,25,24,23,22,25,24],[29,29,29,29,28,29,29,28,29,28,27,27,28,27,28,27,27,27,26,27,26,26,27,26,26,26,26,27,27,26,26,27,27,28,27,27,26,28,27,27,27,27,26,26,26,26,24,23,24,23,22,21,22,20,19,20,19,18,17,17,14,12,10,8,7,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,1,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,2,2,2,3,2,3,2,3,2,3,3,3,2,3,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,4,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,5,5,6,6,7,8,9,10,10,11,13,14,12,14,16,16,15,17,19,19,19,20,23,22,23,24,24,24,24,25,23,22,24,23,22,23,24,24,24,24,24,25,25,26,25,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,28,27,27,27,27,25,26,26,26,27,26,26,27,25,25,25,24,24,23,22,21,20,20,18,18,16,13,12,10,8,7,6,6,5,6,6,5,6,6,6,6,6,7,7,7,7,8,7,7,8,8,8,9,9,9,9,9,9,9,8,8,8,8,8,9,9,9,10,9,9,9,8,8,8,8,7,7,7,7,6,6,6,6,5,5,5,4,4,4,5,4,4,5,5,5,5,5,5,5,5,6,6,6,7,7,7,6,6,5,4,4,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,5,6,6,4,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,3,3,2,2,2,2,2,2,2,2,3,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,3,3,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,4,3,4,4,4,4,4,5,5,4,5,5,5,5,5,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,6,7,8,9,11,10,10,12,12,13,16,17,17,19,20,19,17,19,21,20,23,20,23,22,22,26,23,24,24,25,22,25,24,24,24,24,24,24,22,23,24,23,23,24,24,23,24,24,22,21,23,23],[28,28,28,29,28,29,29,28,29,28,27,28,27,27,27,27,27,28,27,27,27,27,27,27,27,28,27,28,28,27,26,28,27,28,28,28,28,28,28,28,28,28,27,27,27,26,25,24,25,23,22,23,22,20,19,20,19,17,18,17,14,12,10,8,7,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2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,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,6,5,6,5,6,6,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,5,6,7,7,9,10,10,10,11,12,13,15,17,18,19,20,19,18,20,19,19,22,20,23,22,21,25,23,24,24,24,23,26,24,24,25,24,24,24,23,23,25,25,23,24,24,23,24,24,24,21,24,24],[28,27,28,28,27,28,28,27,28,27,26,26,26,25,25,26,26,26,26,26,26,27,26,26,26,26,26,26,27,25,25,26,26,27,26,26,26,26,26,26,27,26,26,25,25,25,23,23,23,21,21,20,21,19,18,19,17,17,16,16,13,12,9,7,6,5,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,1,2,1,1,2,1,1,1,2,1,1,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,3,2,2,2,3,2,2,3,3,3,3,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,1,1,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,4,4,4,3,4,4,4,4,5,5,5,5,6,7,9,9,9,12,12,13,11,13,14,15,14,16,17,17,18,17,20,21,20,22,23,23,23,24,22,21,22,21,21,22,21,23,22,22,22,25,23,26,24,25,25,26,26,26,26,25,25,26,25,26,26,26,26,26,26,26,26,26,25,25,25,25,25,25,26,25,25,26,24,24,24,24,23,22,21,19,19,17,16,15,14,11,10,8,7,6,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,6,7,8,8,7,8,8,8,8,9,8,8,7,7,7,7,7,8,8,8,9,8,8,8,8,7,7,7,7,6,6,6,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,5,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,5,5,5,4,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,3,3,4,4,4,4,3,3,3,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,4,4,4,4,4,4,3,4,4,4,4,3,3,4,3,3,4,4,3,4,3,4,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,4,4,5,6,5,5,5,5,5,5,5,5,4,5,5,4,4,5,5,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,4,3,3,4,4,3,3,4,4,5,6,7,8,9,9,9,10,11,12,14,15,16,18,20,19,18,18,19,19,22,19,21,21,22,24,23,23,23,24,22,24,23,23,25,23,22,24,22,23,23,23,24,23,23,21,23,23,23,21,23,22],[29,28,28,29,28,29,28,27,28,27,27,27,26,26,26,26,25,26,26,26,26,26,26,26,26,26,26,26,27,25,25,26,26,27,25,26,26,26,26,26,27,26,25,26,25,25,24,23,24,23,22,21,22,20,19,20,19,18,18,18,14,13,10,8,6,5,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,1,2,2,1,1,2,1,1,2,2,1,1,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,1,2,1,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,3,2,2,2,3,3,3,3,3,2,3,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,2,1,1,2,1,1,1,2,1,1,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,4,3,4,4,4,4,4,4,5,4,4,4,3,4,4,4,4,5,5,5,6,6,7,9,10,10,12,13,14,13,15,16,17,15,17,18,19,19,19,21,23,21,23,24,24,24,25,23,23,25,22,23,24,23,24,24,24,24,26,26,27,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,26,26,26,26,27,26,27,26,25,26,25,24,24,23,22,21,20,19,18,17,15,12,11,9,7,6,5,5,5,5,5,4,5,5,5,5,5,6,6,6,6,7,6,6,7,7,7,8,8,8,8,8,7,8,7,7,7,6,7,8,8,8,8,8,8,7,7,7,7,7,6,6,6,6,5,5,5,5,5,4,4,3,3,3,4,4,3,4,4,4,4,4,4,4,5,5,5,5,6,6,6,5,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,5,5,5,4,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,2,2,3,3,2,2,3,2,2,3,3,2,2,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,3,3,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,4,3,4,4,3,3,4,3,3,4,4,3,4,3,4,4,3,3,4,3,3,3,4,3,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,4,5,5,4,5,5,4,4,5,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,5,5,6,7,8,10,10,9,11,12,14,16,16,17,19,19,19,18,19,20,19,22,20,22,22,22,25,24,25,23,25,23,24,24,24,25,23,23,24,23,23,24,24,23,24,23,22,24,24,23,22,23,24],[28,28,28,29,28,29,28,28,28,28,27,28,27,26,26,26,26,26,27,26,26,26,26,26,26,27,26,26,28,25,26,26,26,27,27,27,26,27,27,27,27,27,25,26,25,25,24,23,23,23,22,20,22,20,19,19,19,18,17,17,14,12,10,7,6,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,1,2,2,1,1,2,1,1,2,2,1,1,2,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,2,1,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,2,3,2,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3,4,3,4,4,4,4,4,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,4,5,6,6,8,10,10,9,11,12,13,16,17,17,19,20,18,17,19,20,19,22,19,23,22,21,26,23,23,23,24,22,24,24,23,24,23,23,23,21,22,25,23,23,24,23,22,23,24,22,21,22,23],[28,28,28,29,28,29,28,27,29,28,27,28,27,27,27,27,26,27,27,27,27,28,27,27,27,27,26,27,28,26,26,27,27,27,26,27,27,28,28,27,27,27,26,26,26,25,24,23,24,22,23,22,22,21,20,21,19,19,17,17,14,12,10,7,6,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,1,2,1,1,1,2,2,2,2,2,2,2,1,2,1,1,1,2,1,1,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,1,2,2,2,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,3,3,2,2,3,2,2,3,3,2,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,1,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,4,4,3,4,4,4,5,5,5,7,9,9,10,12,13,14,13,14,15,15,15,17,18,18,19,19,21,22,21,23,24,24,23,23,22,21,23,22,20,22,22,23,22,22,22,24,24,26,23,25,24,25,26,25,24,24,24,24,25,26,25,25,26,26,26,26,26,26,26,26,26,26,26,25,26,25,26,26,24,24,24,24,22,21,20,19,18,17,16,15,14,12,10,9,7,6,5,5,5,5,5,4,5,5,5,5,5,5,5,6,6,6,6,6,7,7,7,8,8,8,8,9,8,8,7,7,7,7,7,7,8,8,9,8,8,7,8,7,6,6,6,6,6,5,5,5,5,5,4,4,4,4,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,5,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,5,5,4,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,3,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,3,4,4,4,3,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,4,3,4,3,3,3,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,4,5,6,7,8,10,10,9,10,12,13,15,17,17,18,20,20,18,18,20,20,22,21,23,21,22,23,25,24,24,25,23,24,23,24,25,22,23,25,22,22,24,24,24,24,24,23,24,24,23,21,24,25],[28,28,28,28,28,29,28,27,28,27,26,27,26,26,26,27,25,26,27,26,26,27,26,25,26,26,26,26,26,25,25,26,26,26,25,26,26,26,26,26,26,25,25,25,25,24,23,22,22,21,21,21,21,19,19,19,18,18,17,17,13,12,10,7,6,5,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2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,3,3,2,2,2,2,2,3,3,3,3,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,3,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,3,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,4,4,5,4,5,5,5,5,4,5,4,5,5,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,4,5,6,6,8,9,9,9,10,12,13,15,16,16,18,20,18,17,18,19,19,22,20,22,22,21,25,23,24,23,25,22,24,23,23,25,22,23,24,23,22,23,24,23,23,23,22,23,23,23,21,24,24],[28,28,28,29,28,28,28,28,28,27,27,28,26,26,26,26,26,26,26,26,26,27,26,26,27,27,26,27,27,25,25,26,26,27,26,26,25,26,26,26,26,26,25,25,25,25,23,22,23,22,21,21,21,20,18,20,19,18,17,17,14,12,9,7,6,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,2,2,2,2,2,2,1,1,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,3,3,3,2,3,2,2,3,3,3,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,3,3,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,2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,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,4,5,6,6,8,9,10,9,10,12,13,15,16,17,18,20,18,16,18,19,19,21,20,22,22,21,25,23,23,22,23,22,24,24,23,24,23,23,22,23,22,23,22,23,23,22,21,22,24,22,21,23,22],[28,28,28,29,28,29,28,28,28,28,27,27,27,26,26,26,26,27,27,27,26,27,27,26,27,27,27,27,28,26,26,27,27,28,27,27,26,28,27,27,27,27,26,27,26,25,25,23,24,23,22,21,22,21,19,20,20,18,17,17,14,12,9,7,6,5,4,3,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,1,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,1,1,1,1,1,1,1,1,1,1,1,2,1,1,2,2,3,3,2,2,3,2,2,2,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,3,3,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,3,2,2,2,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,4,4,5,5,6,9,9,10,12,12,14,13,13,16,16,15,16,17,18,18,18,21,22,21,22,23,24,23,24,23,21,23,21,21,22,23,23,22,22,23,23,24,26,24,25,25,25,26,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,25,26,25,26,26,25,26,25,25,26,24,24,24,23,23,22,20,20,19,17,17,15,13,11,9,8,6,6,5,4,4,4,4,3,4,4,4,5,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,7,7,7,6,6,6,6,6,7,6,7,7,6,7,6,7,6,5,6,5,5,5,5,4,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,5,5,5,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,5,5,4,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,2,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,4,3,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,4,4,4,4,4,4,4,4,4,3,3,4,4,3,3,3,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,4,5,5,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,6,7,9,8,8,9,12,12,14,15,16,19,20,18,16,18,19,18,21,18,22,21,21,25,23,23,22,24,22,24,23,23,24,22,23,23,20,21,24,24,22,24,22,21,24,24,21,20,23,23],[28,27,28,28,27,28,28,27,28,27,27,26,26,25,25,26,25,26,26,26,26,26,26,26,26,26,26,27,27,25,25,26,26,27,26,27,27,26,26,26,27,26,25,25,25,25,23,22,22,22,21,20,21,19,19,19,18,18,17,17,14,12,10,7,6,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2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,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,4,3,3,3,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,5,5,4,5,4,5,5,5,5,5,5,4,5,5,5,4,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,4,5,6,6,8,9,9,9,10,11,12,14,16,16,17,19,18,17,17,18,19,21,19,21,20,21,24,22,22,22,23,22,22,22,22,24,21,22,23,21,22,23,22,22,22,23,21,22,23,22,20,22,23],[28,27,28,28,27,28,27,27,28,27,26,26,26,26,25,26,24,26,25,25,26,26,25,26,26,26,25,26,26,24,25,25,25,26,25,25,25,26,26,25,25,25,25,25,24,24,23,22,22,21,21,21,21,19,18,19,18,18,17,16,13,12,10,7,6,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,2,3,3,2,2,2,2,1,1,2,1,1,1,1,1,1,1,2,1,2,2,2,2,3,3,3,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,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24,22,24,22,23,24,24,25,22,23,24,23,22,24,23,23,23,22,22,23,24,23,21,23,23],[28,27,28,28,27,28,28,27,28,27,26,27,26,26,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,25,25,26,26,27,26,26,25,26,26,26,26,26,25,25,25,25,24,22,23,22,22,21,22,20,19,21,20,19,18,18,16,13,10,8,6,5,4,4,3,3,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,2,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,3,3,2,2,2,2,2,2,2,2,1,1,2,1,1,2,1,1,2,2,2,3,3,3,3,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,3,3,4,3,3,3,3,3,3,3,3,4,4,5,5,6,7,10,10,11,13,14,15,14,15,17,17,16,18,19,20,19,20,22,22,22,22,23,23,23,24,22,21,23,21,22,22,22,23,22,22,23,23,24,26,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,25,26,25,25,25,25,25,24,26,25,24,25,23,23,23,23,23,21,20,19,18,17,16,15,13,11,10,8,7,6,5,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,7,7,7,7,8,8,7,7,8,7,7,7,7,6,6,7,7,7,8,7,7,7,7,7,6,6,6,6,6,6,5,5,5,5,4,4,4,3,3,3,3,4,3,3,3,4,3,3,4,4,4,4,5,5,5,6,5,5,5,5,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,5,5,4,3,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,3,3,2,2,3,3,2,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,3,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,4,4,3,3,4,3,3,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,4,4,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,3,3,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,4,5,6,6,8,9,9,10,10,12,12,14,15,15,18,19,17,16,17,19,18,21,19,20,20,20,24,22,22,21,23,21,23,22,22,23,21,22,23,20,21,22,23,21,23,22,20,22,23,20,20,22,22],[27,27,28,28,28,28,28,28,28,27,27,26,27,26,27,26,27,27,26,27,27,27,27,27,27,27,28,27,28,27,26,27,28,28,27,28,27,28,28,28,28,27,26,27,26,26,24,24,25,23,22,21,22,20,20,21,20,19,18,20,16,14,11,8,8,6,5,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,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3,3,3,3,3,4,4,4,4,5,5,4,4,5,4,4,5,5,4,5,5,5,5,4,4,4,4,4,4,4,4,4,3,3,3,3,4,4,3,4,4,4,4,5,5,4,5,5,5,6,6,6,6,7,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,4,5,5,5,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,5,5,5,4,5,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,5,6,7,8,9,11,10,10,11,13,13,15,16,18,20,21,19,17,19,20,19,22,19,21,21,22,24,24,25,24,24,24,25,23,24,25,23,23,25,23,23,24,24,23,24,24,22,24,25,22,20,24,24],[28,28,28,28,28,28,28,28,28,27,26,26,27,26,26,27,26,27,27,27,27,27,27,27,27,27,27,28,27,26,26,27,27,28,27,28,27,27,28,27,27,27,26,26,26,26,25,23,24,23,23,22,23,21,20,21,20,20,18,19,16,14,11,9,8,6,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,2,2,3,3,2,3,3,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,4,4,4,4,4,4,4,4,5,4,3,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,2,2,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,4,3,3,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,4,5,5,4,4,4,5,5,4,4,5,5,6,7,8,9,12,13,12,14,15,17,15,16,18,17,17,19,20,18,20,20,22,22,22,23,24,25,24,25,24,23,24,22,22,22,23,24,23,24,24,25,25,28,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,26,26,26,25,26,26,26,26,26,26,27,24,25,24,25,23,23,21,19,20,17,16,16,14,12,10,10,8,7,6,6,5,6,6,6,5,5,6,6,6,7,6,6,7,8,7,7,8,9,8,9,10,10,9,10,9,9,8,8,7,8,8,8,9,10,10,9,9,8,8,8,7,7,7,7,7,7,6,6,6,6,5,5,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,7,6,7,7,6,6,5,4,4,4,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,3,3,3,3,3,3,4,4,5,5,6,6,5,4,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,3,3,4,3,3,3,3,3,3,3,4,3,3,3,3,4,3,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,3,2,3,3,3,3,4,4,4,4,5,5,4,4,5,5,5,4,4,4,4,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,5,4,4,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,6,6,8,8,10,10,10,11,11,13,14,16,17,17,20,20,19,18,19,19,20,22,20,21,21,22,24,24,24,23,24,23,25,24,23,26,22,24,25,23,22,24,23,24,24,23,22,23,25,23,21,24,26],[29,28,28,29,28,29,28,28,29,27,27,27,27,26,26,27,26,27,27,27,27,27,27,27,28,27,27,27,27,26,27,27,27,28,27,27,27,27,28,27,27,27,26,26,27,26,25,24,24,24,23,22,23,22,21,22,20,21,19,19,16,15,12,9,8,7,6,5,5,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,5,5,5,5,5,5,5,5,5,5,5,5,4,4,3,3,3,3,2,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,2,2,3,3,2,3,3,2,2,2,2,2,1,2,2,2,2,2,2,2,3,3,3,4,4,4,4,3,3,2,2,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,4,4,5,5,5,5,5,6,7,8,9,10,12,13,13,15,16,17,16,18,20,19,18,19,20,20,20,22,23,23,22,24,24,25,25,25,23,23,23,23,23,23,24,24,24,25,24,25,26,27,25,26,26,26,26,27,26,26,27,26,26,26,26,27,26,27,26,27,26,27,26,26,25,26,26,26,26,26,26,27,24,24,23,24,23,21,22,19,19,18,16,17,15,13,12,10,8,8,7,6,6,6,7,6,6,6,7,7,7,8,8,7,8,9,8,8,9,10,10,10,10,10,10,11,10,10,9,9,9,9,9,9,10,11,10,10,10,10,10,8,8,8,8,8,8,7,7,7,6,6,6,6,5,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,7,7,8,7,7,7,6,5,5,4,4,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,6,6,7,7,6,5,5,4,4,4,4,3,3,4,4,4,4,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,5,5,5,4,4,5,5,4,4,5,5,4,5,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,2,3,3,3,3,3,4,4,4,5,5,5,5,6,5,5,6,6,6,5,5,5,4,4,3,3,3,3,4,3,3,4,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,5,6,6,6,5,5,6,5,5,5,5,5,5,4,4,4,4,5,5,4,5,5,5,5,5,6,5,5,6,6,7,7,6,7,8,7,7,7,7,7,6,6,6,7,6,6,6,7,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,8,8,10,11,11,12,12,14,14,17,17,18,20,21,20,18,19,20,20,23,20,22,22,21,24,24,24,24,25,24,25,25,24,26,24,24,25,23,23,24,25,23,25,23,23,24,25,24,22,25,24],[28,29,28,29,29,29,29,29,29,28,28,28,28,27,28,27,28,28,28,29,28,28,28,28,28,28,28,28,29,28,27,28,29,29,28,29,28,28,29,28,29,28,28,28,27,27,26,25,26,26,23,23,25,22,23,24,22,22,21,22,19,16,14,12,10,8,7,6,5,5,4,4,3,3,4,3,3,4,4,4,4,4,4,4,5,5,5,5,6,5,5,5,5,4,5,5,4,4,5,4,4,5,5,5,4,5,5,5,5,6,6,5,5,5,5,5,5,5,4,4,5,4,4,4,4,3,4,4,4,4,4,4,4,4,5,6,5,5,5,5,5,4,4,4,4,4,4,3,3,4,3,4,3,3,4,4,5,5,5,5,5,4,4,4,4,4,3,3,3,2,3,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,5,5,6,6,7,6,7,7,7,7,7,8,7,9,8,7,6,6,6,6,5,5,4,5,5,4,3,4,4,3,2,3,3,1,1,3,2,1,0,1,1,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,4,4,4,4,4,4,4,5,6,5,5,5,5,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,3,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,3,4,5,5,5,5,6,6,6,6,7,7,7,6,6,7,6,5,5,5,6,6,6,6,6,7,8,9,10,12,14,14,16,16,18,18,19,19,22,22,21,23,24,22,23,24,25,24,25,26,26,27,26,26,27,26,26,22,24,26,26,25,25,26,26,27,27,27,27,27,28,28,27,28,28,28,28,29,28,28,29,28,29,28,28,28,29,28,28,28,27,28,28,28,28,27,27,27,26,26,26,25,25,24,23,22,22,20,18,18,15,14,13,11,10,10,7,6,7,7,8,7,8,9,9,9,9,10,10,10,10,11,10,11,12,12,12,12,13,13,13,13,11,12,11,10,11,11,11,12,11,13,13,11,12,12,12,11,10,10,10,10,9,10,9,8,8,7,8,6,7,6,6,6,8,7,7,8,8,7,8,8,9,8,8,9,10,9,10,10,9,9,8,8,7,6,5,5,4,4,4,5,5,5,6,5,6,6,5,5,5,5,6,6,5,5,6,5,5,5,6,6,5,7,6,6,6,6,7,7,8,8,8,9,9,8,7,6,6,6,6,5,5,6,6,6,7,8,7,8,8,9,8,8,7,7,6,6,6,6,5,6,6,5,5,5,5,5,5,5,4,4,4,4,3,4,5,4,3,4,5,4,4,5,5,5,5,5,6,7,5,5,6,6,5,5,7,6,5,7,7,7,6,6,7,7,6,6,7,6,6,6,7,7,7,6,7,7,6,5,6,6,6,5,6,6,5,5,6,5,4,4,5,5,5,5,5,6,6,6,7,7,8,8,9,7,7,8,7,7,6,6,6,6,5,5,4,4,5,5,4,5,5,5,4,5,5,5,5,6,5,5,6,7,6,7,8,8,8,8,8,8,8,8,8,8,8,7,8,8,8,7,7,7,8,7,7,7,6,6,5,5,5,5,6,5,5,6,7,6,7,8,7,7,8,8,8,8,8,9,10,9,9,9,9,9,8,8,8,8,8,8,8,8,9,7,6,7,6,7,9,9,8,9,9,9,9,9,9,9,9,10,11,9,9,8,11,10,9,9,8,9,8,8,8,8,8,8,8,8,7,8,7,7,7,7,6,6,7,8,9,10,10,12,13,14,14,13,16,16,18,19,19,22,23,21,19,22,23,21,24,22,23,24,25,26,26,27,24,26,25,26,26,25,27,25,26,27,23,24,26,26,24,26,24,24,25,26,24,23,25,26],[28,28,28,28,28,28,28,29,28,28,28,27,28,27,27,27,28,28,28,29,28,28,29,29,28,28,29,28,28,28,27,28,28,29,28,28,28,28,29,28,29,28,28,28,28,27,25,26,26,25,24,24,25,23,24,24,23,22,22,22,20,18,16,14,13,10,9,8,7,5,5,4,4,4,4,4,4,3,4,5,4,4,5,4,4,5,6,6,7,6,6,7,6,5,6,7,6,6,7,7,6,7,7,7,7,7,7,7,7,7,8,7,6,6,6,7,6,6,6,6,7,6,6,7,6,6,7,7,6,6,6,7,6,6,7,7,7,7,6,6,7,7,6,6,5,5,6,6,5,6,5,5,4,5,5,5,6,6,5,6,6,5,4,4,4,4,4,4,5,3,4,4,3,4,4,4,4,4,5,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,7,8,8,8,8,9,8,8,9,10,9,10,9,8,8,7,7,7,7,6,6,5,5,5,5,4,5,4,3,3,3,3,2,2,2,2,1,0,1,2,3,4,2,4,4,4,3,3,4,4,3,3,4,3,3,4,4,4,4,5,6,5,6,6,6,5,5,4,4,4,4,4,5,5,6,6,6,6,6,7,7,7,6,7,6,6,6,5,5,6,4,5,5,4,4,4,3,3,3,3,3,2,3,4,4,4,4,4,4,4,5,5,5,6,6,7,7,8,8,8,8,8,9,9,8,8,9,8,7,7,6,7,8,7,7,8,8,10,10,11,13,15,15,16,18,19,19,19,20,21,21,21,22,23,23,24,25,25,26,27,27,28,27,26,27,26,24,26,24,24,26,25,26,24,26,26,28,27,28,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,27,28,26,27,27,27,26,26,25,25,23,22,19,21,18,17,18,15,15,14,13,12,12,9,8,9,9,10,9,10,10,11,10,11,12,12,11,12,13,12,12,13,13,14,14,14,15,14,14,13,13,12,12,12,13,13,14,13,14,15,13,14,14,13,12,11,12,11,12,11,11,10,10,11,10,10,9,10,8,8,8,10,10,8,9,10,11,9,11,11,10,10,11,11,11,11,11,11,11,10,9,9,8,7,6,6,5,5,6,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,6,6,7,6,7,7,7,7,7,7,7,8,8,9,10,10,10,10,8,8,7,7,8,8,6,7,7,8,8,8,9,8,9,9,10,9,9,9,9,8,8,8,7,6,8,7,6,6,6,6,6,5,6,5,5,5,6,4,4,5,5,4,6,6,6,6,6,7,7,7,7,8,7,7,6,8,7,7,7,8,7,7,8,7,8,8,8,8,8,7,8,8,7,7,8,8,8,8,8,9,8,7,7,7,7,7,6,6,6,6,6,6,6,4,5,6,6,6,5,6,7,8,8,8,9,9,9,10,9,8,9,9,8,7,8,7,7,7,6,5,5,6,6,5,6,6,6,6,6,7,6,7,7,7,7,8,8,8,9,9,9,9,9,10,10,8,9,9,10,9,9,10,10,9,8,8,9,8,8,8,8,7,8,7,7,6,7,8,7,7,8,8,8,8,9,9,10,9,10,10,10,9,10,11,10,11,10,10,10,10,10,10,9,10,10,9,9,10,9,8,8,9,9,11,10,10,10,10,11,10,11,10,10,11,12,11,10,11,10,12,10,10,10,10,10,10,9,10,9,9,10,9,9,8,9,9,8,8,9,9,7,8,10,10,12,12,14,15,15,15,16,17,18,20,20,21,23,24,24,21,23,23,22,25,23,25,25,25,26,26,27,26,28,26,28,27,27,27,26,27,28,25,26,27,27,26,26,25,25,26,27,25,24,26,26],[29,29,29,29,29,29,29,29,29,28,28,28,28,28,28,28,28,28,28,29,29,28,28,29,28,28,29,28,29,28,28,29,29,29,28,29,28,28,29,29,29,28,28,28,27,27,26,26,26,25,24,24,24,23,23,24,23,22,21,22,20,18,16,14,13,12,10,9,9,7,8,7,6,5,4,5,5,5,5,5,4,4,6,5,5,8,7,8,8,9,9,8,9,8,9,8,9,9,8,9,9,9,9,10,10,9,9,10,9,10,10,9,9,9,9,9,9,8,6,8,9,7,8,9,10,8,9,9,10,9,9,9,9,8,9,10,9,9,9,9,9,9,8,10,9,9,10,10,9,9,8,6,6,6,8,8,10,10,7,8,7,7,5,6,5,5,4,5,5,4,4,5,5,4,5,5,7,5,7,6,7,5,7,8,7,7,8,9,8,8,8,8,7,8,8,10,10,10,9,11,10,10,11,12,11,12,11,9,9,8,9,8,8,8,8,7,7,8,8,7,6,7,7,5,5,4,4,3,3,2,2,1,0,1,3,4,2,4,5,5,4,3,6,5,3,5,6,5,4,6,6,6,6,7,8,7,8,8,8,7,6,6,6,7,7,6,7,7,7,7,7,7,8,7,8,9,9,8,8,8,7,7,6,6,5,7,6,5,5,6,5,4,5,5,4,3,5,5,4,5,5,6,5,5,6,7,6,7,8,8,8,9,9,9,10,11,11,10,10,10,11,10,9,8,7,10,10,9,10,11,10,11,12,13,14,16,16,17,19,19,20,20,21,23,22,22,24,24,23,24,25,26,26,25,27,27,28,26,27,26,26,27,25,25,26,26,27,26,26,27,28,28,29,27,29,28,28,28,29,28,28,28,28,28,28,28,28,28,27,27,28,28,28,28,28,27,27,28,27,28,27,27,27,26,26,26,25,25,24,23,22,23,21,17,21,17,17,16,15,13,13,12,11,11,10,11,11,11,11,12,11,13,13,12,13,14,14,13,14,14,16,15,15,16,16,16,16,14,14,13,14,13,14,15,14,15,16,16,14,16,16,15,14,13,13,13,13,13,12,12,12,13,11,11,11,11,10,9,9,10,11,10,10,11,12,10,11,11,11,11,12,12,12,12,12,12,12,10,10,10,9,8,8,7,7,7,7,7,7,7,8,8,8,8,8,7,8,8,7,8,8,8,7,8,8,7,9,8,8,9,9,8,9,10,9,10,12,12,12,11,10,9,9,9,9,8,8,9,9,10,10,10,11,10,12,11,12,11,10,10,10,10,9,9,11,8,8,8,8,8,7,7,7,7,7,6,5,7,7,5,6,7,7,5,7,7,7,6,7,7,7,8,9,10,9,8,8,9,8,8,9,8,8,8,9,9,8,8,9,9,9,8,9,9,9,9,9,9,10,9,10,10,9,9,9,10,8,9,8,9,9,9,9,8,7,6,7,8,8,9,9,9,8,9,10,10,11,11,11,11,11,10,10,11,11,9,9,9,8,8,7,7,6,7,8,6,7,8,8,7,7,8,8,8,9,9,8,9,9,9,11,10,10,10,10,11,11,10,11,10,11,10,9,10,11,10,10,10,10,10,10,10,9,9,9,9,9,9,8,9,9,9,9,10,10,9,10,11,10,11,11,11,11,10,11,13,12,13,11,11,12,11,11,11,11,11,11,11,11,11,11,10,10,12,10,12,12,12,12,12,13,11,12,12,12,13,13,14,12,12,11,13,12,11,11,11,11,11,10,11,10,10,10,9,10,9,10,11,9,9,10,10,9,9,11,12,14,13,15,16,15,16,16,18,18,19,20,20,24,25,23,22,24,24,23,26,23,24,26,25,27,27,27,27,27,26,28,28,27,28,26,27,28,26,27,27,27,27,28,26,26,27,28,26,25,27,27],[29,29,29,29,29,29,29,29,29,28,28,28,29,27,28,28,28,29,28,29,29,29,29,29,29,29,29,29,29,29,27,29,29,30,28,29,28,28,29,28,29,28,28,28,28,28,26,26,27,25,25,25,25,24,23,25,23,22,22,23,21,19,18,16,14,14,13,11,11,9,9,8,7,7,5,6,5,4,6,7,6,6,8,8,7,8,10,11,10,10,10,11,11,9,11,11,11,9,11,11,11,11,11,12,11,12,11,11,11,11,12,11,10,9,9,9,9,9,9,9,9,8,8,10,10,9,11,10,11,11,11,11,11,10,11,11,12,11,11,11,11,11,11,11,11,12,10,9,9,8,8,8,8,7,8,8,9,8,8,9,8,7,6,7,7,6,6,6,8,5,7,7,7,5,7,7,7,7,8,8,8,7,8,9,9,9,9,10,9,10,10,10,10,10,11,12,13,12,12,13,12,12,13,14,13,14,13,11,12,11,11,11,10,11,10,10,11,9,9,8,9,8,8,6,6,5,5,4,5,4,3,2,1,0,1,5,3,5,6,6,5,4,5,5,4,5,6,4,4,6,6,5,6,8,8,9,9,8,8,8,8,7,7,9,8,9,9,9,10,9,10,10,11,11,11,12,11,10,11,11,10,11,9,9,7,9,8,6,6,7,7,5,5,6,5,4,5,6,6,7,8,8,7,7,9,8,7,10,10,10,10,13,12,11,12,12,13,13,13,13,13,13,11,10,8,11,13,11,10,13,13,13,13,13,14,18,19,18,18,20,21,21,21,23,22,21,24,24,23,25,25,26,26,26,27,27,27,27,28,26,25,25,24,25,26,25,26,25,26,27,28,28,28,27,28,27,28,28,28,28,27,28,28,28,28,28,28,28,28,27,28,28,27,28,27,27,28,27,26,28,26,26,27,26,26,27,26,25,23,23,21,22,19,18,20,17,18,17,16,15,14,13,13,13,14,13,13,13,14,15,13,15,15,17,15,16,17,16,15,16,18,17,19,19,20,19,19,17,18,16,15,16,16,17,17,16,18,20,17,19,18,16,15,15,16,15,15,15,15,14,14,16,14,13,13,13,11,11,11,13,13,12,13,13,13,13,14,14,13,14,15,15,15,16,14,15,15,13,12,11,10,10,9,8,7,8,9,9,8,9,9,10,10,11,11,9,11,10,10,10,10,11,10,9,10,11,11,10,11,11,11,10,12,12,10,12,12,13,13,12,11,11,11,11,11,11,12,11,11,12,12,12,13,13,13,13,14,13,12,12,13,12,11,12,12,11,11,11,10,11,10,10,9,10,10,8,7,9,9,6,7,9,9,6,8,10,10,8,9,10,10,9,11,11,11,11,10,11,11,10,11,12,11,11,12,13,11,12,12,12,12,10,11,11,12,11,12,11,12,13,11,12,12,11,11,11,11,11,10,10,10,10,10,10,8,7,8,9,10,8,9,9,10,12,11,11,13,13,12,13,11,12,12,12,12,10,10,11,10,11,10,8,8,10,11,7,9,10,11,9,10,11,11,10,10,11,11,11,12,13,12,12,14,13,13,13,14,13,13,14,14,13,13,12,13,13,12,12,12,12,11,12,12,11,12,12,12,12,11,12,11,10,11,12,12,12,12,14,13,14,13,14,13,13,13,15,14,14,14,14,13,13,14,14,12,13,14,13,13,13,13,13,12,14,13,14,14,13,14,14,14,13,14,14,13,14,14,16,13,15,14,15,15,13,14,14,14,13,14,14,13,13,14,13,12,13,14,12,12,12,12,12,11,11,12,13,15,14,16,17,18,18,19,20,22,22,24,22,26,26,25,25,26,25,25,26,26,25,27,26,28,28,28,27,28,27,28,28,28,28,28,28,28,27,27,28,28,28,28,27,26,28,28,27,26,28,27],[29,29,29,29,29,29,29,29,29,29,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,30,29,29,29,29,29,29,29,28,28,29,28,28,27,27,27,26,26,26,26,25,26,26,24,25,23,24,21,20,18,18,16,15,14,11,11,11,9,9,8,9,7,7,6,6,8,8,7,8,9,9,9,11,11,11,12,12,12,12,13,12,13,12,13,13,13,13,13,14,14,14,13,14,13,14,13,13,13,13,14,13,10,13,13,10,9,11,13,11,12,13,13,13,13,13,14,13,13,13,15,13,13,15,14,14,14,14,13,13,13,15,13,14,14,12,12,13,12,9,10,10,11,11,14,14,9,11,10,10,9,9,10,7,7,9,8,6,7,9,7,7,9,10,9,8,12,13,12,11,11,12,11,12,12,13,13,12,13,13,13,14,13,15,15,13,15,15,16,15,16,17,17,17,16,15,14,13,13,13,12,14,12,12,12,13,12,11,12,12,11,10,8,7,8,5,7,5,5,3,2,1,0,2,2,4,5,6,4,4,7,6,5,7,9,8,8,10,11,9,11,10,12,10,11,11,12,11,12,10,11,11,11,11,12,12,13,12,13,13,13,13,14,14,14,13,14,13,13,12,10,11,11,11,10,9,9,9,10,7,9,10,7,7,9,9,9,9,9,9,9,9,10,11,11,12,13,13,13,15,14,14,14,15,15,16,14,14,15,15,11,12,9,11,13,12,12,13,14,14,15,15,18,20,20,19,22,23,23,21,24,26,24,23,26,27,24,26,26,28,27,27,28,28,28,28,29,28,27,28,26,27,27,27,27,26,28,28,29,29,29,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,28,28,29,29,29,29,29,29,28,29,28,29,28,27,28,26,27,26,26,25,24,24,22,23,21,19,22,17,18,19,16,17,16,15,14,16,15,15,15,14,15,16,15,16,17,18,17,18,19,19,19,18,20,21,21,21,21,22,22,19,19,18,18,18,18,18,19,18,21,22,19,22,21,18,18,19,19,17,18,19,16,16,17,17,16,15,14,15,13,13,13,14,14,16,15,17,16,16,18,17,16,17,18,17,17,16,16,15,16,16,14,15,13,12,13,11,11,11,12,12,11,12,13,13,13,12,13,12,12,12,12,13,12,13,12,12,12,12,12,11,13,13,12,12,13,13,12,16,14,16,16,15,13,13,13,12,13,12,12,11,14,13,15,16,16,14,17,16,17,15,15,15,15,13,13,14,14,12,13,12,11,12,12,11,11,11,11,10,10,12,11,10,10,11,10,10,11,11,10,11,12,12,11,12,13,13,13,13,12,12,13,13,12,14,13,12,13,14,13,13,12,13,13,12,12,13,13,13,13,13,13,15,12,14,14,12,11,13,12,13,12,11,12,12,12,12,11,10,9,10,12,12,11,12,13,13,14,14,14,15,15,16,13,13,14,14,13,12,11,12,11,11,10,9,9,10,11,9,10,12,11,10,12,13,11,12,12,13,13,12,13,14,15,13,15,14,14,15,16,15,14,16,17,16,17,13,16,16,13,13,15,14,13,14,14,13,15,11,12,12,12,14,12,14,12,14,14,13,14,15,14,15,16,15,15,15,16,18,17,17,16,17,17,15,16,16,15,16,16,15,15,16,15,14,14,15,15,14,15,16,16,16,17,15,17,16,17,17,18,20,17,18,16,18,16,15,16,17,18,15,16,17,15,16,16,16,14,15,17,14,14,15,15,14,14,14,16,15,17,17,19,19,19,19,20,20,22,23,22,22,25,26,25,25,26,25,26,27,27,26,27,26,28,28,28,28,28,27,29,29,28,29,28,28,28,28,28,28,28,28,28,28,27,28,28,27,26,27,27],[29,29,29,29,29,29,29,29,29,28,28,28,28,28,28,28,28,29,28,28,29,28,29,29,28,29,29,29,29,28,28,29,29,29,28,29,29,29,29,28,29,28,28,29,29,28,27,27,27,24,25,26,25,24,25,25,23,23,23,23,21,19,18,16,14,15,13,11,11,10,9,9,8,7,7,8,7,7,9,9,8,9,10,11,11,12,13,14,13,15,15,14,15,14,14,13,13,11,14,14,12,13,14,13,11,13,12,11,10,12,13,10,11,10,9,10,9,8,7,7,9,8,6,9,11,8,9,11,11,10,11,13,13,13,13,13,14,14,14,13,13,14,14,12,14,15,12,12,12,12,10,10,11,9,10,11,14,11,11,10,11,11,8,9,9,8,6,8,8,6,6,7,7,5,6,7,6,6,7,9,8,9,9,12,11,11,12,14,13,13,13,14,14,14,14,15,16,15,15,16,16,16,17,16,17,16,16,16,15,13,14,15,13,14,13,13,14,13,12,12,12,10,10,10,9,8,8,7,6,4,5,4,4,3,1,0,1,2,4,5,3,4,6,6,5,7,7,6,7,8,9,9,11,10,10,9,11,11,11,11,11,10,12,12,13,13,13,14,14,14,14,15,14,14,14,14,14,15,15,15,14,14,13,13,12,13,13,11,10,11,11,8,9,10,7,7,8,9,8,7,8,8,8,9,9,10,10,10,10,10,12,13,12,13,13,13,14,12,11,12,12,12,11,11,9,10,12,11,11,11,13,14,14,14,15,17,18,18,20,21,21,21,22,24,22,22,24,25,23,25,25,26,25,26,27,26,27,27,27,26,25,25,26,25,26,26,26,27,27,26,28,27,28,28,28,28,29,28,29,28,28,29,28,28,29,28,29,28,28,28,29,28,28,28,27,27,27,28,27,27,27,26,27,25,25,25,25,23,21,21,19,20,19,16,19,17,17,17,16,15,14,13,13,13,13,14,14,15,16,17,16,16,17,18,17,18,19,18,18,18,19,19,18,21,21,21,21,19,19,18,18,17,18,18,18,18,19,21,19,20,18,17,17,17,16,17,17,15,15,17,15,15,14,14,14,14,14,13,14,14,14,15,16,16,15,16,17,16,16,16,17,16,16,16,16,16,15,15,14,15,12,12,12,10,10,13,13,13,12,13,13,15,13,13,14,13,14,13,14,13,14,15,14,13,14,15,14,13,14,15,14,14,14,15,15,15,15,15,16,15,14,16,16,15,15,14,14,14,15,15,15,16,15,15,17,17,17,16,15,16,16,15,15,16,15,14,15,14,13,14,13,13,12,14,13,12,12,13,12,10,11,12,11,10,12,12,11,13,13,12,12,13,14,14,15,14,14,14,14,14,14,16,15,13,15,15,16,15,14,16,16,14,14,15,15,14,15,15,15,16,14,14,14,14,12,13,13,13,13,12,13,12,12,13,12,12,10,13,12,12,11,12,13,14,14,14,15,14,16,15,14,14,14,14,13,11,12,11,11,12,11,10,11,12,11,10,12,12,12,12,12,13,12,13,14,13,14,14,14,15,15,15,17,16,16,16,17,17,16,17,17,18,17,17,18,17,16,15,16,15,14,14,14,13,13,12,11,12,12,13,13,13,13,14,15,15,15,15,16,17,17,17,18,17,17,17,17,18,17,18,17,17,17,15,16,17,15,15,16,16,13,15,14,15,15,16,16,16,15,16,17,16,17,17,17,18,18,18,18,18,17,18,17,18,17,17,18,17,16,18,17,17,16,17,16,16,17,15,16,15,15,14,14,14,15,15,16,16,17,18,18,18,18,19,21,21,23,22,25,25,24,25,25,24,25,25,26,25,27,26,27,26,27,27,27,26,27,28,27,28,27,27,27,28,27,27,27,27,27,27,26,26,27,26,25,27,27],[29,30,29,29,29,30,30,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,30,29,29,29,29,29,29,29,29,28,29,29,28,28,27,27,26,26,26,26,25,25,25,24,24,22,22,21,19,17,14,13,12,11,9,10,9,7,8,6,6,5,6,5,5,6,6,5,6,7,7,7,8,10,10,9,11,10,9,11,8,9,9,9,8,8,9,9,9,8,9,8,9,8,8,8,9,9,8,8,6,7,7,6,6,6,5,6,6,5,7,7,6,6,7,8,6,8,9,9,8,9,9,9,10,9,9,10,9,8,9,9,10,8,6,7,8,6,5,6,6,6,7,9,7,6,7,7,6,5,5,5,5,4,5,5,3,4,5,5,4,4,5,5,4,5,5,5,5,6,7,7,7,8,10,9,9,9,11,11,10,11,11,11,11,11,11,12,12,12,11,12,11,12,11,11,11,10,10,11,10,9,10,10,9,9,8,8,6,7,6,6,6,5,6,4,4,5,3,3,2,2,1,0,1,2,2,2,3,4,4,3,5,5,5,5,6,7,6,7,7,7,7,8,8,8,8,7,7,7,8,9,8,10,10,11,10,10,10,11,10,11,11,11,11,10,10,11,12,9,9,8,10,9,7,7,8,6,6,6,6,6,7,5,6,6,7,6,7,7,7,8,8,7,9,9,9,8,10,11,10,10,12,12,11,11,11,11,11,10,11,8,9,11,11,9,9,10,11,12,12,13,16,17,17,20,20,21,21,22,24,22,21,23,24,25,25,26,27,27,26,28,27,28,28,28,27,26,26,26,25,27,26,27,26,27,27,28,28,29,29,29,28,29,29,29,29,28,29,28,28,28,28,28,28,28,28,29,28,28,28,28,27,28,28,28,28,27,28,28,26,26,26,26,26,24,24,21,22,20,18,20,17,17,16,15,14,13,11,11,11,12,11,13,13,13,14,13,14,14,14,13,14,16,14,14,14,16,16,16,17,18,17,17,16,16,15,15,15,16,15,16,15,16,17,16,16,15,14,15,15,13,13,14,13,13,14,13,13,12,12,13,12,11,11,11,12,11,12,12,12,12,12,12,11,12,12,12,13,13,13,13,13,13,12,11,11,10,9,8,7,7,7,9,8,8,10,10,11,11,9,10,10,10,10,10,11,9,10,10,11,9,10,11,10,10,11,11,9,10,11,11,11,12,12,12,12,11,11,11,11,10,11,10,11,11,10,11,11,10,11,11,11,12,11,10,11,11,10,10,11,10,11,10,9,9,11,9,10,9,10,10,8,8,9,9,8,8,9,8,8,9,9,8,8,10,10,9,9,10,11,10,11,12,10,10,12,10,11,10,10,11,11,11,11,10,10,11,10,10,11,10,10,10,10,12,12,10,10,11,10,10,9,10,9,9,9,10,8,8,9,8,7,7,8,8,8,7,8,9,9,10,9,10,10,11,11,11,11,11,11,11,10,9,9,9,10,9,8,8,9,9,8,9,9,9,9,9,9,10,10,9,10,11,10,11,11,12,12,11,11,11,12,11,11,12,11,11,12,11,11,12,11,12,11,11,12,11,10,11,10,10,10,9,9,10,10,10,11,11,11,11,11,11,11,12,12,12,12,12,12,11,13,12,13,13,13,12,12,12,12,12,12,11,11,12,12,11,11,11,12,11,12,12,12,13,11,13,12,12,13,12,13,13,14,12,12,12,12,12,13,12,12,12,12,11,12,12,12,11,11,12,11,12,12,11,11,11,11,11,11,12,12,14,14,16,15,16,17,17,17,19,20,22,21,25,25,24,23,24,24,24,25,25,24,26,25,26,27,27,27,27,27,28,27,27,29,27,28,28,28,27,28,28,28,28,27,26,27,28,26,25,27,26],[29,29,29,29,29,29,28,28,29,27,27,28,28,28,27,28,27,28,27,27,28,28,28,28,28,28,27,28,28,27,27,28,28,28,27,28,28,28,28,28,28,27,27,27,27,26,25,25,26,24,24,24,24,23,22,23,21,22,20,20,18,17,14,13,11,11,10,9,8,8,7,7,6,6,5,5,5,4,5,5,5,5,6,6,6,7,8,8,8,9,8,8,8,7,8,8,6,6,8,8,6,7,8,7,6,8,8,6,6,8,8,6,6,6,5,5,5,5,4,5,6,5,6,7,6,5,6,7,6,6,7,7,8,9,8,9,9,9,8,9,8,8,8,7,8,8,6,6,6,6,5,5,5,5,5,5,6,6,5,6,6,5,4,4,4,4,4,4,4,4,3,5,4,5,4,5,5,5,5,5,5,6,6,7,7,7,9,8,8,9,9,8,9,9,9,10,10,9,9,10,10,10,11,11,11,11,11,10,10,9,9,9,9,9,8,8,7,8,8,7,7,6,6,5,5,5,5,4,4,4,3,4,4,3,3,2,1,0,1,3,2,2,2,2,3,3,4,6,4,4,4,5,6,7,7,6,7,8,8,7,7,7,7,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,8,8,8,7,7,8,7,6,7,7,7,6,6,7,5,5,5,6,6,6,7,7,5,7,7,7,6,8,7,7,9,9,8,8,9,10,10,10,9,10,10,10,9,9,8,9,9,10,8,9,10,11,11,12,12,14,15,15,17,18,17,17,19,20,19,19,20,20,20,22,22,24,24,23,25,25,26,26,26,25,24,24,24,25,25,25,26,25,26,25,27,27,28,26,27,26,27,27,28,27,27,27,27,27,27,27,27,27,27,27,28,27,27,27,26,27,27,27,26,27,26,26,26,24,24,25,24,23,21,21,20,20,18,16,18,16,15,14,13,12,11,11,10,11,10,11,11,11,13,12,12,13,12,13,13,13,14,13,13,14,14,15,15,17,17,17,16,15,15,15,13,13,13,13,14,14,15,16,15,16,15,13,14,12,12,13,12,12,11,12,11,11,10,10,11,10,11,10,11,11,10,10,11,10,11,11,12,11,11,12,11,11,12,12,12,11,10,10,9,9,8,7,7,6,7,8,9,8,7,9,9,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,11,11,11,12,11,10,10,9,10,9,9,8,9,10,9,10,11,10,10,11,11,11,10,10,10,10,9,9,9,9,9,9,8,8,8,8,8,8,8,9,8,8,8,9,7,7,8,9,7,8,8,8,7,9,9,9,8,9,10,9,9,10,9,9,9,10,10,9,9,10,10,10,9,10,11,10,9,10,10,10,10,10,10,10,10,10,10,9,9,9,9,8,8,8,7,8,7,7,7,6,6,5,6,7,6,6,6,8,8,9,9,9,10,11,11,10,9,10,9,9,8,9,9,8,8,8,7,7,8,8,8,8,8,9,8,9,9,9,9,9,9,10,10,10,10,10,10,11,11,11,12,12,12,12,12,12,12,12,12,12,11,11,11,11,10,11,10,10,10,9,9,9,9,9,9,10,9,10,10,10,11,11,10,12,11,12,12,12,12,12,12,13,13,12,12,12,12,12,11,12,12,11,11,12,11,9,10,11,11,11,12,11,11,11,12,13,11,12,12,12,13,13,14,12,13,11,14,13,12,12,12,12,12,11,11,11,11,11,11,11,11,11,10,10,10,9,9,9,9,10,10,12,12,14,15,16,14,15,16,19,18,20,21,23,23,23,23,24,23,22,24,25,23,25,25,25,26,27,25,26,25,26,27,26,27,26,26,27,27,26,26,27,26,27,27,26,27,27,25,25,27,26],[28,28,28,28,28,29,28,28,28,27,26,26,26,27,26,27,26,26,27,25,27,28,27,26,28,27,26,27,27,26,26,27,27,28,27,27,26,27,27,27,27,27,26,27,27,26,26,24,25,24,24,23,23,24,23,22,21,21,20,19,17,16,14,12,11,10,8,8,7,7,6,7,6,5,5,5,5,4,5,6,5,5,6,6,5,6,7,7,7,7,7,7,7,6,6,7,6,5,6,6,6,6,6,6,6,5,6,6,5,6,5,5,5,5,5,4,5,4,4,4,5,4,4,5,5,5,5,5,5,5,5,6,6,6,6,7,7,7,7,7,6,6,6,6,6,6,6,5,6,6,4,4,5,4,5,5,6,5,5,5,5,5,4,4,5,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,5,5,6,6,6,6,7,6,7,7,9,9,8,8,9,10,9,9,10,10,10,9,9,8,7,7,8,6,7,6,6,5,6,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,1,1,0,1,1,1,1,1,2,2,2,2,3,3,3,3,3,4,4,4,5,6,5,5,4,4,5,5,5,5,6,6,6,6,7,7,7,8,8,8,8,7,7,7,6,7,6,5,5,5,5,5,4,5,5,5,4,5,4,4,4,4,5,5,5,5,5,5,6,6,5,6,7,7,7,7,7,7,7,8,9,9,8,9,8,8,7,8,7,8,8,8,8,8,9,10,11,10,12,14,14,14,18,18,18,17,18,20,18,18,20,21,20,21,22,22,23,22,24,25,25,25,25,24,23,24,24,23,24,24,24,25,23,24,26,26,27,26,27,27,27,26,28,27,27,27,27,27,27,28,28,27,28,26,28,27,27,27,26,27,27,26,27,28,27,26,26,25,26,24,24,24,21,22,20,20,19,16,18,16,15,14,12,11,10,11,9,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,14,14,15,15,15,15,12,13,12,12,12,11,12,12,13,14,15,13,15,14,12,12,11,11,11,11,11,11,10,9,10,9,9,9,9,9,7,8,9,8,8,9,9,8,8,9,9,9,9,9,10,10,10,10,9,9,8,7,7,6,5,5,5,4,5,5,5,5,7,6,6,6,7,7,7,6,7,7,7,7,8,7,7,7,8,7,7,8,8,8,8,8,8,8,9,10,10,10,10,8,8,8,8,8,8,7,7,8,8,8,8,9,9,10,10,10,9,9,9,9,8,9,8,9,8,8,9,7,7,7,7,7,7,7,7,6,6,7,6,6,6,6,5,6,7,6,6,7,7,6,6,7,7,8,7,8,8,8,8,8,8,7,8,8,8,8,8,8,8,8,8,8,8,8,8,9,8,9,9,9,9,9,9,8,9,8,8,8,7,7,6,6,7,6,6,5,6,7,6,5,6,7,7,8,9,9,9,10,10,9,9,10,9,9,8,8,8,8,8,7,7,6,7,7,7,7,8,7,7,7,8,7,8,8,8,7,8,8,9,8,8,8,8,8,9,9,9,9,9,10,10,9,9,9,10,9,9,9,9,9,9,9,8,8,8,7,7,7,8,8,8,9,9,8,9,9,9,10,9,9,10,10,10,10,11,11,11,10,10,11,11,10,10,10,10,9,10,10,10,8,9,9,9,9,10,10,10,10,10,11,10,11,10,11,11,11,12,10,11,10,12,10,10,10,10,9,9,9,9,9,9,9,9,8,8,8,8,8,8,8,7,8,7,9,10,10,11,12,14,13,13,14,14,16,17,18,19,20,20,19,21,21,20,21,23,22,23,24,24,25,25,25,24,25,24,26,26,25,26,25,25,26,26,24,25,25,24,25,24,24,25,25,23,24,24,23],[28,28,28,28,28,28,28,27,28,27,26,26,26,26,26,26,25,27,26,26,27,27,26,27,27,27,26,27,27,26,27,27,27,28,27,27,27,27,27,27,27,26,26,27,26,26,25,24,25,24,23,22,23,23,21,22,21,20,19,20,17,16,14,12,11,9,9,8,7,6,7,6,5,4,4,5,5,4,5,5,4,4,5,5,4,5,5,6,6,6,6,6,5,5,6,5,5,5,5,6,5,5,5,5,5,5,5,4,5,5,6,5,5,4,4,4,4,4,3,3,4,3,3,4,4,4,4,4,4,4,4,5,5,4,5,5,6,6,5,6,5,5,5,4,4,5,4,4,4,4,3,3,4,4,4,5,5,5,5,5,5,5,5,4,4,4,3,3,3,3,2,3,3,2,2,3,2,2,3,3,3,3,4,4,3,3,4,4,4,5,5,5,5,6,6,7,7,7,7,8,8,7,8,8,8,8,8,7,7,6,7,6,5,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,2,2,3,3,3,3,3,2,2,1,0,1,1,1,1,1,2,2,2,2,3,3,3,4,4,4,4,5,5,5,4,4,3,4,4,4,4,4,5,5,5,5,5,5,6,7,6,6,6,6,6,5,5,5,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,5,5,5,5,6,5,5,6,6,6,6,6,6,7,7,8,8,7,7,8,8,8,8,7,6,8,8,8,8,8,9,9,10,10,11,13,14,14,17,16,18,16,17,18,18,18,19,20,20,21,20,22,23,22,24,25,25,24,25,24,24,24,24,24,24,24,25,24,24,25,26,26,27,25,26,27,27,27,26,26,27,27,27,27,27,27,27,27,27,26,27,27,27,26,27,26,27,26,26,27,26,26,26,24,25,25,24,23,22,22,20,20,19,17,17,15,14,14,12,10,10,9,8,9,8,8,10,9,10,10,10,10,10,10,10,11,11,11,11,12,12,12,13,14,14,14,14,11,12,11,11,10,11,11,11,12,12,14,12,14,12,12,12,10,10,10,10,10,9,10,9,9,9,8,9,8,8,7,8,8,8,8,8,8,8,8,9,8,8,9,9,8,9,9,9,8,9,9,7,7,6,5,5,4,4,5,5,4,4,6,5,5,5,6,6,6,6,6,6,6,6,6,5,5,6,6,6,6,7,6,6,6,7,8,7,8,9,9,9,8,8,6,7,6,7,6,6,6,7,7,7,8,8,8,9,9,8,8,8,8,8,7,7,7,7,6,6,7,6,6,6,6,5,5,6,5,5,5,6,5,5,5,5,5,5,6,5,4,5,6,6,5,6,7,6,6,7,7,6,6,7,7,6,6,7,7,7,7,7,7,7,7,7,8,7,7,8,8,8,8,8,8,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,6,6,5,6,6,6,7,7,8,8,9,9,9,8,8,9,8,8,8,8,8,7,7,6,6,5,6,7,6,5,7,7,6,6,7,6,6,7,7,7,7,7,8,8,8,8,8,7,8,9,9,9,9,9,9,9,8,9,9,8,9,9,9,9,9,8,8,8,8,7,7,7,8,7,7,8,8,8,8,8,8,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,9,9,10,10,8,9,9,9,8,9,9,9,9,9,10,9,10,10,10,10,11,11,10,10,10,11,10,9,9,9,9,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7,7,6,8,9,10,10,11,12,12,12,12,14,15,15,16,17,20,19,18,19,21,18,18,20,20,20,23,21,23,23,24,22,24,23,25,25,25,26,24,25,25,24,23,25,24,23,25,24,23,25,25,22,22,24,24],[29,29,29,29,29,29,29,29,29,28,28,28,28,27,28,28,28,28,28,28,28,28,28,28,28,28,29,28,28,28,27,28,29,29,28,29,28,28,29,28,29,28,28,28,28,28,26,26,27,24,24,25,26,23,23,25,23,22,20,20,18,17,13,10,9,8,7,6,6,5,5,4,4,3,3,3,3,3,3,4,3,4,4,3,3,4,4,5,5,4,4,5,4,4,4,5,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,4,4,4,4,3,4,3,3,3,3,2,3,3,2,2,2,2,1,2,2,2,2,2,2,3,2,3,3,3,3,3,3,4,4,4,4,4,4,5,6,6,6,6,6,7,7,7,7,7,7,7,6,6,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,3,2,3,1,1,1,0,1,1,1,1,1,2,2,2,2,2,2,3,3,4,4,4,4,4,3,3,3,3,3,3,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,2,3,3,3,3,3,4,3,4,4,4,4,4,5,5,4,5,5,5,5,6,6,6,6,5,7,6,6,6,5,7,6,6,6,6,7,7,8,9,9,11,13,13,15,17,17,17,19,20,19,19,21,22,22,23,24,25,25,24,27,27,27,27,27,25,25,25,26,24,24,26,26,25,24,26,27,28,28,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,27,27,28,28,28,26,28,27,27,27,25,26,26,26,25,24,23,21,21,18,17,17,15,14,12,11,9,9,8,7,7,7,7,6,7,7,8,8,8,8,9,9,9,10,10,10,11,12,11,12,13,13,13,12,11,12,10,9,10,9,10,11,11,12,13,12,11,11,10,10,10,9,9,9,9,8,8,8,7,7,7,7,6,5,5,5,6,6,5,6,6,6,6,7,7,7,8,7,8,8,8,8,8,7,7,6,6,4,5,4,3,3,3,4,4,3,4,4,4,4,4,5,4,4,4,4,4,4,5,4,4,4,4,4,4,5,5,5,5,6,6,6,7,8,8,8,7,6,6,5,5,5,5,4,5,5,6,6,6,6,7,7,7,7,7,6,6,6,6,6,6,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,5,5,5,4,5,5,5,5,5,5,5,5,5,6,5,5,6,5,5,5,6,6,6,6,6,6,5,5,6,5,5,5,4,5,4,5,5,4,4,4,4,5,4,4,4,5,5,6,6,6,7,7,7,6,7,7,7,7,6,6,6,6,5,5,5,4,5,5,4,4,5,4,4,4,5,4,4,5,5,4,5,6,5,6,6,6,6,6,6,7,7,6,7,7,6,7,6,7,7,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,6,5,6,6,6,7,6,7,8,7,7,8,8,9,8,8,8,8,8,8,7,7,8,7,7,7,7,6,6,6,6,6,8,7,7,7,7,8,8,8,8,8,8,9,9,8,8,8,9,8,7,7,7,7,6,7,7,6,6,6,6,5,6,6,5,5,6,5,5,5,6,7,8,10,10,12,12,12,12,13,14,15,16,18,18,21,20,20,20,21,20,20,22,22,21,24,23,24,24,26,25,25,25,26,26,25,27,26,25,25,25,26,26,26,25,25,26,24,26,26,23,24,25,23],[29,29,28,29,29,29,29,29,29,28,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,27,28,28,28,29,28,28,27,28,28,28,28,28,27,28,28,27,25,25,26,25,25,25,25,25,23,24,21,22,20,20,18,16,13,10,9,8,7,6,5,5,5,4,4,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,4,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,5,5,6,6,6,6,7,6,6,7,7,7,7,6,6,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,3,3,2,2,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,3,3,4,5,4,4,4,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,4,5,5,5,6,6,5,5,7,6,5,6,5,5,7,7,6,6,7,8,8,9,10,12,13,13,16,17,18,17,18,20,19,18,20,21,21,23,22,25,25,24,26,26,26,26,27,25,24,24,24,23,24,24,25,24,24,25,26,26,27,25,27,27,27,27,28,27,27,27,27,27,27,27,27,27,27,27,28,28,28,27,28,27,27,28,27,28,27,27,28,25,26,26,26,24,23,22,20,21,19,15,18,13,13,12,11,9,8,8,7,7,7,7,7,7,7,7,7,8,8,8,8,9,10,9,9,9,10,10,10,11,11,11,12,11,11,9,9,9,9,9,10,10,11,12,10,11,10,10,9,9,9,9,9,8,8,8,7,7,7,6,6,6,5,5,6,6,5,5,6,6,5,6,6,6,6,7,7,7,7,8,7,7,6,6,5,5,4,4,3,3,3,3,3,3,3,4,4,4,5,4,4,5,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,7,8,8,8,7,6,6,5,5,5,5,5,5,5,6,6,6,6,6,7,7,7,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,4,4,5,5,4,4,5,4,4,4,5,4,4,4,5,4,4,4,5,5,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,5,6,6,6,7,7,7,6,7,7,7,7,6,6,6,6,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,6,6,7,6,6,7,6,6,6,6,6,6,6,5,6,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,7,8,7,7,7,7,7,7,8,6,7,7,7,6,8,7,7,8,8,9,7,8,8,8,8,8,9,8,8,7,8,8,8,7,7,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,7,7,9,9,10,11,11,11,11,13,14,16,16,17,20,20,19,18,20,20,19,22,20,21,22,23,24,24,25,24,26,24,25,25,25,26,24,25,26,23,24,25,25,24,26,24,24,25,26,23,23,24,24],[27,27,27,27,27,27,27,27,27,26,26,25,26,26,25,27,25,26,26,25,26,27,26,26,27,26,25,27,26,25,26,26,26,27,26,26,26,26,26,26,26,26,25,26,25,25,25,23,23,23,23,22,21,23,20,20,19,19,19,17,15,15,12,10,9,8,7,6,6,5,4,5,4,3,3,4,3,3,3,4,3,3,4,4,3,4,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,6,6,6,7,7,7,7,7,6,5,5,5,5,4,4,4,3,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,3,2,2,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,3,3,4,4,4,3,3,2,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,4,5,4,4,4,4,4,3,3,4,3,3,3,3,3,2,3,3,2,2,3,3,3,3,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,5,5,6,6,5,6,5,6,6,6,6,6,7,7,8,8,10,12,12,12,14,15,17,14,16,18,16,16,17,18,19,18,19,21,21,21,23,23,24,23,23,22,21,22,22,20,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,25,25,25,26,26,26,26,26,26,26,26,26,25,25,25,25,26,25,25,26,25,25,25,24,24,24,24,23,21,22,18,18,18,15,16,13,13,12,10,8,8,7,7,7,6,7,7,7,7,7,7,8,8,8,8,8,9,9,9,9,10,10,10,11,11,11,11,9,10,9,9,9,8,9,9,9,10,11,10,10,10,9,9,8,8,9,8,8,7,7,7,7,6,6,6,6,6,5,6,6,5,5,6,6,5,6,6,6,6,6,7,7,8,7,7,7,6,6,5,5,4,4,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,5,6,6,6,7,8,8,8,7,6,5,5,5,5,5,4,5,5,6,6,6,7,7,7,7,7,7,6,7,6,6,6,6,6,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,3,4,4,4,4,4,4,4,4,5,4,4,4,5,5,4,5,5,5,5,5,5,5,5,5,6,5,5,5,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,5,4,4,4,5,5,6,6,6,7,7,7,6,7,7,7,7,6,6,6,5,5,5,5,5,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,7,6,6,6,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,7,7,7,7,7,8,7,7,7,8,7,8,8,7,8,7,8,7,7,7,7,6,6,6,6,6,6,6,5,6,5,5,6,5,5,5,4,5,5,6,7,8,8,10,11,11,11,12,12,14,15,15,16,18,17,17,18,18,17,18,20,19,20,20,20,23,22,23,23,25,22,23,23,24,24,22,23,24,22,22,23,24,23,24,22,22,22,24,20,20,22,22],[29,29,28,28,29,29,28,28,28,27,27,26,27,27,26,27,26,27,27,26,28,27,27,28,27,27,27,28,28,27,27,27,27,28,27,28,27,28,28,28,27,27,27,27,26,26,26,24,26,24,24,23,25,23,22,23,22,21,20,21,17,15,13,10,9,8,6,6,5,4,5,4,4,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4,3,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,4,5,5,4,4,5,5,4,5,6,5,6,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,4,4,4,4,4,5,5,5,6,6,6,7,6,6,6,6,7,6,6,6,6,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,4,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,8,8,8,8,8,8,7,7,7,7,7,6,7,7,7,6,6,6,7,6,7,7,6,7,6,7,7,7,7,7,7,8,8,7,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,4,5,5,4,4,5,6,7,8,8,10,10,11,10,11,13,13,15,16,17,19,18,17,18,19,17,18,21,20,20,22,21,23,24,25,23,24,23,25,24,25,25,24,25,24,23,23,24,25,24,25,23,23,25,25,22,21,24,24],[29,29,29,29,29,29,29,28,29,28,28,27,28,28,28,27,27,28,27,28,28,27,28,28,28,28,28,28,28,27,27,28,28,29,28,28,27,28,28,28,28,28,27,27,27,27,26,25,25,25,24,24,25,23,23,24,22,22,20,21,17,16,13,10,8,7,6,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,4,4,4,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,6,5,6,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,3,4,4,3,3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,5,4,4,4,4,4,4,4,4,4,3,4,5,6,8,8,10,11,11,11,12,14,14,16,17,18,20,20,19,18,21,21,20,23,21,23,24,22,25,24,26,25,25,24,26,25,25,26,25,25,25,23,24,26,26,24,26,25,25,25,26,24,23,25,24],[29,28,28,28,28,28,29,28,28,27,27,27,27,26,26,27,27,27,27,27,28,27,27,28,28,27,27,28,27,27,26,27,27,28,27,27,27,27,27,27,27,26,26,27,26,26,26,25,25,24,24,23,23,23,22,23,21,21,19,19,17,16,12,10,9,7,6,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,4,4,4,4,5,5,5,5,6,5,5,6,6,6,6,6,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,2,2,2,2,3,4,4,3,3,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,4,4,4,4,4,4,5,4,5,5,5,5,4,6,5,5,5,5,5,5,5,5,6,6,7,7,8,9,11,12,12,15,15,17,15,17,18,18,17,19,19,20,21,21,22,23,23,24,24,25,25,26,25,22,24,23,22,23,24,24,23,24,25,26,25,27,26,27,26,27,26,27,26,26,26,26,27,26,26,27,27,27,27,27,27,27,26,26,27,27,27,26,27,26,26,27,26,25,26,24,24,22,21,19,20,18,15,17,14,12,11,10,8,8,6,6,6,6,6,5,6,6,7,7,7,7,7,7,8,9,8,8,9,10,9,9,9,10,10,11,10,9,8,8,8,9,8,9,9,10,10,9,9,9,8,8,8,8,8,8,7,7,7,6,7,6,6,5,5,5,5,4,5,5,4,5,5,4,4,5,5,5,6,6,6,6,6,6,6,6,5,4,4,3,3,3,2,2,3,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,7,7,7,6,6,5,5,4,5,5,4,4,5,5,5,6,6,6,6,6,6,6,5,6,6,5,5,5,5,4,5,5,4,4,4,4,4,4,4,3,3,4,4,3,3,4,3,3,3,4,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,4,4,4,4,4,5,5,5,6,6,6,6,7,6,6,7,6,6,6,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,4,4,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,6,6,7,7,8,7,6,7,6,7,6,6,6,6,6,6,6,6,5,6,6,5,7,7,7,7,7,7,6,7,7,7,7,7,8,7,7,7,7,7,6,6,6,6,6,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,5,6,7,7,9,10,11,10,11,12,12,15,16,17,18,19,17,17,18,19,18,20,19,20,23,22,24,24,24,23,25,23,24,25,24,25,23,24,24,22,23,24,24,24,24,23,23,23,25,22,21,23,23],[28,27,27,27,27,27,28,27,27,26,26,25,25,25,25,26,25,25,26,25,26,26,25,26,26,26,25,26,26,24,26,26,26,26,26,26,25,26,26,26,25,26,25,25,25,24,24,23,23,22,22,23,21,22,20,20,19,18,17,17,14,14,11,9,8,7,6,6,5,5,4,4,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,4,4,4,4,4,4,3,4,3,3,3,4,3,3,4,4,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3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,4,4,3,3,4,4,4,4,4,4,5,5,6,5,6,6,6,6,6,6,6,6,6,5,5,5,5,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,5,6,6,6,5,5,6,5,5,5,4,4,4,5,5,5,5,5,5,5,6,5,6,6,6,6,6,6,6,7,7,7,7,7,7,6,7,6,6,6,6,6,6,6,5,5,6,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7,6,7,6,7,6,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,4,5,6,7,7,9,10,10,10,10,12,13,14,17,14,19,17,16,17,18,16,17,19,18,19,21,20,22,21,23,21,23,22,23,23,23,24,22,22,23,20,21,23,23,22,23,22,21,21,23,21,20,22,22],[28,29,29,29,28,29,28,28,29,27,28,27,27,27,27,27,26,27,26,26,26,26,26,26,26,26,27,26,27,26,26,26,27,27,26,27,26,27,27,27,27,26,25,26,26,26,24,24,24,23,22,23,23,21,20,22,20,19,18,18,16,14,12,9,8,6,5,4,4,4,3,3,3,2,2,2,3,2,3,3,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,2,3,3,3,4,4,4,4,4,4,4,4,4,5,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,2,1,2,2,2,2,3,3,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,3,3,3,3,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,4,4,4,4,5,4,4,5,5,5,6,6,7,8,10,11,11,13,15,16,14,16,18,17,17,19,19,20,21,21,22,24,23,24,25,25,24,25,23,23,24,23,22,23,23,24,24,24,24,25,25,26,25,26,26,26,27,26,26,27,27,26,26,26,26,27,27,27,27,27,27,28,27,27,25,26,27,26,27,27,26,26,24,24,25,24,23,22,21,20,20,18,17,16,14,13,11,9,7,7,6,5,5,5,5,4,5,4,5,6,6,6,6,6,7,7,7,7,8,8,8,8,9,8,9,9,8,8,7,7,7,7,8,8,8,8,9,8,8,8,8,7,7,7,7,6,6,6,6,6,5,5,5,4,4,4,3,3,4,4,3,4,4,4,4,4,4,4,5,5,5,6,6,6,6,5,5,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,2,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,5,6,6,6,5,4,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,4,3,3,3,3,3,3,3,3,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,4,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,5,6,7,7,9,10,11,10,11,14,14,17,17,17,20,21,19,18,18,20,20,22,21,22,24,22,25,24,25,24,25,23,25,25,24,25,24,25,24,23,24,25,25,24,25,24,24,24,25,24,22,25,25],[29,29,29,29,29,29,29,29,29,28,28,27,28,27,28,27,28,28,28,28,28,27,28,28,28,28,28,28,29,28,27,28,28,29,28,28,28,28,28,28,28,28,27,27,27,27,25,25,25,25,24,24,25,23,22,23,21,21,20,21,17,15,13,10,8,7,6,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,4,4,3,3,4,3,3,3,4,4,3,4,4,4,4,5,5,4,4,3,3,4,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,4,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,6,5,5,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,2,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,3,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,4,5,4,5,5,5,5,5,6,6,7,7,8,10,11,12,14,15,16,16,16,19,17,17,20,21,20,21,22,24,24,23,25,25,26,25,25,23,24,24,23,24,24,23,25,24,24,24,26,26,28,24,26,27,27,27,27,27,27,27,27,27,27,27,27,28,27,27,28,28,28,27,27,26,27,28,26,28,27,26,28,25,26,25,25,24,24,23,22,21,18,16,16,15,13,12,10,8,7,6,6,5,5,6,5,6,5,5,6,6,7,7,7,8,8,8,8,8,9,9,9,9,9,9,10,9,9,8,7,8,8,8,9,9,9,9,9,9,9,8,8,7,7,7,7,6,6,6,6,6,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,6,6,6,5,5,5,4,4,3,3,2,2,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,5,5,5,5,7,7,7,6,5,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,5,5,5,5,5,4,5,5,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,4,4,5,5,4,4,4,4,4,4,4,4,3,3,4,4,4,4,4,4,5,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,4,4,4,4,4,3,4,4,4,3,4,4,3,4,4,4,3,4,4,4,4,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,5,5,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,7,6,7,6,6,7,6,6,6,6,6,6,6,6,6,5,5,5,5,5,6,6,6,6,6,7,6,7,7,6,6,7,7,6,6,6,7,6,6,6,5,5,4,5,5,4,4,4,4,4,4,4,4,3,4,4,3,3,4,5,6,7,7,9,10,11,10,11,14,14,16,17,18,20,21,20,18,19,20,19,22,20,22,23,22,25,24,25,25,25,24,25,24,25,25,24,24,25,21,23,24,24,23,24,22,23,24,25,22,21,24,24],[28,28,27,28,27,28,28,28,27,27,26,26,26,25,26,26,26,26,26,26,27,27,27,26,26,27,26,26,27,25,25,26,26,27,26,26,26,27,27,26,27,26,25,26,26,25,25,24,24,23,23,22,22,22,21,20,21,19,19,17,15,14,11,9,9,7,6,6,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3,2,3,3,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5,5,5,5,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,4,4,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,7,6,7,7,7,7,7,7,7,6,6,7,6,6,6,6,6,6,5,6,5,5,6,6,7,7,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,4,4,6,7,8,9,10,11,10,10,11,14,15,16,16,18,19,16,17,19,19,18,20,19,20,21,21,23,23,22,22,24,23,24,23,24,23,22,23,24,22,22,22,23,24,23,22,21,22,24,22,20,22,22],[27,27,27,27,27,27,27,27,27,26,25,25,26,25,25,25,25,26,26,26,27,26,26,27,26,26,26,26,26,25,26,26,26,27,26,27,26,27,27,27,27,26,25,26,26,26,25,24,24,24,22,22,23,22,20,21,21,19,19,18,16,14,13,10,9,8,7,6,6,6,5,5,4,3,3,4,4,3,4,4,4,3,4,3,4,4,4,5,4,4,4,5,4,5,5,4,4,5,4,4,4,5,5,4,5,5,5,4,5,5,6,5,5,4,4,5,4,4,4,4,4,3,3,3,4,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,4,4,4,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,5,5,5,5,5,5,5,6,6,6,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,2,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,4,4,4,4,5,4,4,4,5,5,5,5,5,6,6,5,5,5,5,6,6,6,6,7,7,8,8,9,11,12,12,14,15,16,15,16,18,16,17,19,20,20,20,20,22,23,22,24,24,26,25,25,23,24,25,23,22,23,24,24,23,23,23,27,26,26,25,26,26,27,27,27,26,26,26,26,26,26,27,27,26,27,27,27,26,27,26,27,25,27,26,26,27,27,26,26,24,25,25,25,23,22,22,21,20,18,17,17,15,13,12,11,8,8,8,7,7,6,7,6,6,6,7,7,7,7,8,8,8,9,8,8,9,9,9,9,10,9,10,9,9,8,8,8,8,8,8,9,9,9,10,9,10,9,9,9,8,7,8,8,7,7,8,7,7,6,6,6,5,5,5,5,5,5,5,5,5,5,5,6,5,5,6,6,6,7,7,6,6,6,5,4,4,3,3,3,2,2,2,2,2,2,3,2,2,3,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,5,4,5,4,5,5,5,6,7,7,6,6,5,4,4,4,5,4,4,5,5,5,5,5,6,6,6,7,7,6,6,6,6,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,5,4,4,4,4,4,4,4,4,4,5,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,5,5,5,5,5,6,6,6,6,7,7,7,7,6,7,7,6,6,6,6,5,6,5,5,4,5,5,4,4,5,4,4,4,5,4,4,5,5,4,5,5,5,5,6,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,6,5,6,6,6,6,6,6,6,7,6,7,6,7,8,7,8,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,7,6,7,7,6,7,7,6,7,7,7,7,7,7,7,7,7,6,7,6,6,6,5,5,6,5,5,5,5,5,4,5,4,4,4,4,3,4,4,5,7,8,8,10,11,11,11,10,13,14,16,17,17,19,18,18,18,20,19,18,20,19,20,21,20,23,23,23,22,23,23,23,24,24,26,23,24,23,22,22,23,24,24,24,22,22,22,23,22,21,22,23],[28,28,29,29,28,29,28,28,28,27,28,27,27,27,27,27,27,27,26,27,27,26,26,27,26,26,27,26,27,26,25,27,27,28,26,27,26,27,27,26,27,27,25,26,26,26,25,24,24,24,22,23,23,21,20,22,21,20,19,20,17,15,12,10,8,8,6,5,5,4,4,4,4,3,3,3,3,3,4,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,6,6,5,4,4,4,5,4,4,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,4,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,3,3,2,2,2,2,2,3,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,5,5,4,5,5,5,5,5,6,5,5,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,2,3,3,3,3,2,2,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,3,4,4,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,5,5,5,5,5,6,5,5,5,5,5,5,5,5,6,6,7,7,8,9,11,12,12,13,15,16,16,17,19,19,19,20,21,21,20,23,23,24,24,24,25,25,24,25,24,24,25,22,22,24,24,25,23,24,25,25,25,27,25,26,27,27,27,26,26,27,27,27,27,27,27,27,27,27,27,27,28,28,27,27,26,26,27,27,27,27,26,27,24,24,25,24,23,23,21,21,21,18,18,17,15,14,12,11,9,8,7,6,6,6,6,5,6,5,6,6,7,7,8,7,8,9,8,8,9,9,9,9,10,10,10,10,9,9,9,8,9,9,8,9,10,10,11,10,9,9,9,9,8,8,8,8,8,7,7,7,6,6,6,5,5,4,5,4,4,4,4,4,5,5,4,5,5,5,5,6,6,6,7,7,7,6,6,4,5,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,6,7,7,7,6,5,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,5,5,5,5,5,5,5,5,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,3,4,4,4,4,4,4,4,4,4,5,5,5,4,5,5,4,4,5,5,5,4,4,4,4,5,4,4,4,4,4,4,4,4,5,5,5,6,6,6,6,6,7,7,6,6,6,6,6,6,5,5,5,4,4,3,4,4,3,3,4,4,3,3,4,3,4,4,4,3,4,4,4,4,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,4,4,5,5,4,4,5,4,4,5,5,5,5,6,6,6,6,6,7,7,7,6,7,7,6,6,6,6,6,6,6,6,6,6,5,5,5,5,6,7,7,6,6,6,7,7,7,7,7,7,7,7,7,6,7,6,6,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,3,3,4,5,7,8,8,10,12,11,11,12,14,15,17,18,18,21,21,19,19,20,21,19,22,21,21,23,22,25,24,25,24,25,24,25,25,25,25,24,25,25,23,24,25,24,25,25,24,23,24,26,23,23,25,25],[29,28,28,29,28,28,29,28,28,28,27,28,28,27,27,27,27,28,27,28,28,27,28,28,27,28,28,27,28,27,27,28,28,28,27,28,27,27,28,27,28,27,27,27,27,27,26,25,26,25,24,25,25,23,23,24,22,22,21,21,18,16,14,12,10,10,9,8,7,7,6,6,6,5,4,5,5,4,5,6,4,4,5,5,4,5,6,6,6,6,6,6,6,5,6,6,5,6,6,6,5,6,6,6,6,7,6,6,6,7,8,6,6,6,6,6,5,5,5,5,5,5,4,5,5,4,5,5,5,4,5,6,5,5,5,6,6,6,6,5,5,5,5,5,5,5,5,4,5,5,4,4,4,5,5,5,6,6,6,6,6,6,6,5,5,4,5,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,5,5,4,5,5,6,6,7,7,7,7,7,8,8,7,8,8,7,6,6,6,6,5,5,5,5,5,4,4,4,4,3,3,3,3,3,2,3,3,3,3,3,4,4,4,5,4,4,4,3,4,4,4,3,2,3,2,1,1,1,1,1,0,1,2,3,4,4,3,2,2,3,3,2,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,5,5,5,5,5,4,4,4,4,3,3,3,3,3,2,2,2,2,3,3,4,5,5,4,4,6,5,5,6,5,6,5,6,6,6,6,7,7,7,7,6,8,7,7,7,7,7,8,8,8,8,8,10,9,10,11,12,14,14,16,17,18,17,19,20,19,19,21,22,21,22,24,25,25,24,26,25,27,26,27,25,24,26,24,22,25,24,25,24,24,24,27,26,27,26,26,26,27,27,28,27,27,27,26,27,27,27,27,27,27,27,28,28,28,27,28,27,27,28,28,28,27,27,27,25,25,26,25,23,23,22,21,21,19,18,18,15,14,13,12,10,10,9,9,9,9,9,9,9,9,9,10,9,10,10,10,11,12,11,10,11,12,12,11,12,13,13,13,11,11,11,10,10,11,10,11,11,13,13,11,13,12,12,11,11,10,11,11,10,10,9,9,9,9,8,8,7,6,6,6,7,6,5,6,7,6,6,7,7,6,6,7,7,8,8,8,8,7,6,5,5,4,5,3,3,3,3,3,2,3,3,3,3,4,3,4,4,4,5,5,4,5,5,6,5,5,5,6,6,6,7,7,6,7,7,8,8,9,9,9,8,7,7,6,7,7,6,6,6,6,7,7,7,8,7,8,9,9,9,7,8,8,7,7,8,7,7,7,7,6,6,6,6,6,6,6,5,4,5,4,5,4,4,5,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,6,7,7,7,7,7,7,7,8,7,7,8,7,7,7,8,8,7,7,7,7,6,6,7,6,5,5,6,6,6,6,6,7,7,8,8,8,9,10,10,8,8,9,9,8,8,7,8,7,7,7,7,6,7,6,6,6,7,6,6,6,7,6,6,7,7,6,7,7,7,7,7,7,8,7,8,8,8,8,8,8,8,7,8,8,8,8,8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,8,8,7,8,9,8,8,8,9,8,9,9,9,9,10,10,9,10,10,10,10,9,9,9,10,9,9,10,8,8,9,9,9,9,9,9,10,9,9,9,10,10,9,9,9,10,9,9,9,10,8,8,8,8,8,7,6,7,7,6,6,6,6,5,5,5,5,5,5,4,4,5,6,8,9,9,11,11,12,12,11,14,16,17,17,19,20,19,19,20,21,21,18,23,20,22,23,22,24,25,25,24,24,24,25,25,24,25,25,25,25,23,24,25,25,24,25,24,23,25,26,23,23,24,23],[27,27,26,27,27,27,27,27,26,26,26,26,26,25,25,26,26,26,26,27,27,27,27,27,27,26,27,27,27,26,26,27,27,28,26,27,26,26,27,26,27,27,26,26,27,26,25,24,25,24,24,23,23,23,22,22,22,21,21,20,18,17,15,13,12,11,10,10,9,9,7,7,6,5,5,6,6,5,6,7,7,6,7,7,6,7,8,8,8,8,8,8,9,8,8,8,7,8,8,8,8,8,9,8,8,8,8,8,8,9,9,8,8,8,7,8,7,7,7,7,7,7,6,6,7,6,6,7,7,6,6,7,6,6,6,6,6,7,7,7,6,8,7,7,7,8,8,7,7,7,7,6,7,7,7,8,8,8,7,8,8,7,7,7,8,6,6,7,6,5,6,6,5,5,6,5,5,5,5,5,4,5,4,4,4,5,4,5,5,4,5,6,5,5,6,7,7,8,7,8,8,8,8,9,9,9,9,8,8,7,8,8,7,8,7,6,6,6,6,5,6,6,5,5,5,4,4,4,4,3,3,4,4,5,6,6,5,4,5,5,5,4,4,4,3,3,3,3,3,2,2,2,1,0,1,2,3,4,3,3,2,2,3,3,3,4,4,5,5,5,5,5,7,7,7,7,6,7,7,7,7,7,6,6,6,5,5,5,4,4,4,4,3,3,3,3,2,4,3,4,4,5,5,5,6,5,6,7,7,7,6,6,7,7,7,8,8,8,7,7,8,8,8,8,7,8,9,9,9,9,9,10,11,11,12,13,14,14,16,15,18,16,17,19,19,19,19,20,21,20,22,23,23,23,25,24,26,25,25,25,23,25,23,23,24,24,24,23,24,24,27,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,26,27,27,27,27,26,26,27,27,26,26,27,26,26,27,25,24,25,24,23,22,22,20,20,19,17,18,15,15,13,12,11,10,10,10,10,9,9,9,10,10,10,11,10,11,11,10,11,12,12,11,12,13,13,13,13,13,14,13,11,11,11,11,11,11,11,12,12,12,14,13,14,13,12,12,11,11,11,11,11,11,10,10,10,9,9,9,9,8,7,8,9,7,8,9,9,8,8,9,8,7,9,9,8,9,8,8,9,8,7,7,6,5,5,4,4,3,5,5,3,4,5,4,3,4,5,4,4,6,6,6,5,7,7,7,6,8,8,8,8,7,9,8,8,8,8,8,9,10,10,10,9,8,8,8,8,8,8,6,7,8,9,9,9,10,10,10,10,10,10,9,10,9,9,9,9,9,8,9,9,9,9,9,8,7,7,8,6,6,7,6,5,5,6,6,5,6,6,5,5,6,6,7,6,7,7,7,7,6,7,6,6,8,8,7,8,9,8,8,8,7,9,8,9,9,9,8,9,9,8,9,8,9,9,9,9,9,9,9,8,9,8,8,8,9,9,9,8,7,8,8,9,9,9,10,9,9,10,10,10,11,10,10,10,10,10,10,10,9,9,9,9,8,8,7,8,7,7,7,7,8,6,8,7,7,7,9,8,7,9,9,9,10,9,9,9,9,10,9,9,9,9,9,10,9,9,10,9,9,9,10,9,9,9,9,9,9,9,8,8,8,8,8,8,9,8,9,9,9,9,10,9,10,10,10,10,10,11,10,11,10,11,11,10,11,10,10,10,10,10,10,10,10,9,9,10,9,10,10,10,10,10,11,10,10,10,9,11,10,10,10,10,10,11,10,9,10,10,10,10,8,9,10,9,8,8,8,7,7,7,6,6,6,6,5,6,8,8,10,10,11,12,13,12,13,14,16,16,18,17,21,19,18,20,21,20,19,21,19,20,22,21,24,25,23,23,23,25,24,25,25,25,24,24,25,23,22,24,25,24,25,23,23,24,24,23,20,24,24],[29,29,29,29,29,29,30,29,29,29,29,28,29,28,29,28,29,29,28,29,29,28,29,29,28,29,29,29,29,29,28,29,29,29,29,29,28,29,29,29,29,29,28,28,28,28,27,27,28,26,26,27,26,26,25,26,25,24,23,22,21,19,18,16,14,14,14,13,12,12,11,10,9,9,8,10,9,8,9,10,10,9,10,11,9,10,10,10,10,10,10,10,10,11,10,10,10,10,10,10,11,10,9,9,11,10,10,10,10,11,13,11,11,10,10,11,10,9,9,9,8,10,10,9,9,10,9,8,9,7,8,8,7,8,7,8,7,8,7,8,8,8,8,9,10,10,9,11,10,10,10,11,11,11,10,12,11,10,11,12,12,11,10,10,11,9,9,11,9,9,10,10,8,9,9,7,6,7,6,6,6,6,5,5,5,5,5,5,6,5,6,7,5,7,7,9,9,11,10,10,10,10,10,11,11,13,11,10,10,10,9,10,8,9,9,7,9,10,7,7,8,7,7,7,8,6,6,6,7,6,5,8,7,8,8,8,8,8,7,8,7,7,7,6,6,4,4,4,3,3,3,2,1,1,0,1,3,4,3,3,2,3,3,3,4,6,7,8,6,7,7,7,9,10,10,10,9,8,9,9,7,10,8,9,9,7,7,7,6,5,7,6,5,4,5,5,3,4,5,7,7,7,6,6,7,7,7,7,8,8,8,8,7,9,9,9,10,10,9,10,11,11,10,11,9,11,12,12,13,13,13,13,14,14,15,16,18,17,19,19,20,20,21,23,22,22,23,24,24,24,25,27,27,26,27,28,28,27,28,27,26,27,26,26,27,26,27,27,26,27,28,27,28,28,28,28,28,28,28,28,28,29,29,28,28,29,28,29,28,28,29,28,28,28,28,28,28,28,28,29,28,28,28,27,28,27,27,26,26,26,24,24,21,22,22,19,19,17,16,15,14,13,13,12,12,13,10,12,11,12,13,13,13,14,13,14,15,14,14,14,15,16,15,16,15,16,16,14,14,14,13,14,14,14,15,14,15,15,16,16,16,15,14,15,14,14,13,14,14,13,12,13,12,11,11,11,13,9,8,10,8,10,9,10,9,8,10,9,9,10,10,10,11,11,11,11,10,8,8,7,6,6,5,4,4,5,5,4,4,6,5,5,6,7,7,6,7,7,7,7,7,9,7,7,10,10,11,11,10,11,12,10,11,10,10,11,11,12,12,11,10,11,10,10,10,10,9,10,10,11,11,11,11,12,13,14,13,13,12,12,12,12,12,12,12,12,10,11,11,10,11,10,11,10,10,11,10,9,10,9,7,8,9,7,7,8,7,7,7,8,7,7,9,9,9,7,8,9,8,8,9,9,10,9,10,10,10,10,10,10,10,11,11,10,11,12,11,10,11,11,11,12,12,12,12,12,12,12,11,11,11,12,12,11,12,12,12,11,12,12,11,12,12,11,12,12,12,13,13,13,12,12,13,12,11,13,12,12,12,12,12,12,10,10,11,10,9,11,11,9,10,10,10,10,11,11,10,10,10,12,12,11,11,11,11,11,11,11,11,12,12,11,12,11,12,12,11,11,12,12,11,11,12,12,12,12,11,10,11,11,11,11,11,11,11,11,11,12,11,12,12,12,12,12,12,12,13,12,12,13,13,12,12,13,13,12,13,13,12,13,12,13,12,13,12,12,13,13,13,13,13,12,13,12,12,13,13,14,12,13,11,13,13,11,11,11,11,11,10,11,10,9,10,9,10,8,8,9,8,8,8,6,8,7,9,10,12,11,14,14,14,15,14,17,19,18,19,20,20,22,19,22,22,22,19,24,23,22,24,25,25,26,26,25,24,25,26,26,26,27,25,25,27,26,25,24,25,26,26,25,25,25,26,26,24,26,26],[28,28,28,28,29,29,29,28,28,28,28,27,28,27,28,27,28,29,28,29,29,28,29,29,29,29,29,28,29,29,28,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,28,27,29,27,26,26,27,26,26,27,26,25,25,25,23,21,20,19,18,18,17,15,16,14,15,14,13,12,12,13,13,12,13,13,12,12,13,12,11,12,14,14,14,13,14,13,12,14,13,13,12,13,13,12,12,14,13,11,13,13,13,11,15,15,16,16,15,15,15,16,15,15,12,12,13,12,9,10,11,11,9,10,11,9,9,9,10,8,10,9,10,9,10,10,10,9,10,10,11,10,10,11,11,12,11,12,12,13,13,15,15,16,16,16,16,15,15,16,14,14,14,14,11,11,12,11,11,12,13,10,9,9,11,9,11,8,7,8,11,7,5,9,10,7,8,10,9,9,10,11,11,10,12,13,14,12,14,15,15,16,14,15,13,13,13,12,12,11,11,12,11,12,11,11,10,10,9,11,11,10,10,11,11,10,9,12,11,10,12,13,12,11,10,10,12,11,10,11,9,10,8,9,8,7,4,4,4,3,1,0,2,4,4,4,3,6,7,6,7,9,8,8,9,10,10,11,12,11,12,13,12,11,12,11,12,12,11,10,11,10,10,10,9,10,10,10,9,9,10,9,7,8,10,12,10,11,11,9,11,11,9,11,12,11,11,12,12,12,11,14,13,15,14,14,15,15,14,13,14,16,16,14,16,16,16,18,15,16,18,18,20,19,20,21,23,22,23,24,24,24,25,26,26,27,27,27,28,27,28,28,28,28,28,28,27,28,27,27,28,27,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,30,29,29,30,30,30,29,29,29,29,29,29,30,29,29,29,28,28,28,28,27,27,26,24,25,23,23,23,21,21,20,19,18,18,17,16,15,16,16,14,16,15,16,16,17,18,17,15,17,18,17,16,17,19,17,18,19,19,19,18,16,17,15,15,17,16,16,17,18,19,19,19,19,19,18,17,18,17,17,18,18,16,16,16,16,16,15,14,15,14,13,12,13,13,12,12,13,13,12,13,13,13,13,14,13,13,14,13,13,13,12,12,11,8,8,8,7,6,8,6,5,6,7,6,6,7,8,8,8,9,11,10,9,10,12,11,11,14,14,14,14,14,14,14,14,13,14,14,15,15,15,15,16,15,15,14,15,15,13,13,14,15,15,18,16,16,17,18,19,19,19,17,16,18,17,16,17,16,16,16,14,15,14,14,13,13,13,13,13,11,12,11,11,9,10,10,11,9,10,9,10,8,10,11,7,10,11,11,8,10,11,10,9,12,12,12,12,12,13,12,13,14,14,15,14,15,14,15,15,14,14,17,16,14,16,17,15,14,16,16,16,14,15,16,15,17,15,15,14,16,15,16,16,17,17,17,16,17,18,17,18,18,17,17,15,18,17,15,17,17,16,17,15,16,16,14,13,13,15,13,14,14,13,13,13,13,14,14,13,13,14,14,13,14,14,15,14,14,15,16,15,14,16,15,15,15,14,17,16,15,14,17,17,14,15,16,14,17,14,15,14,13,16,14,14,15,16,14,14,16,16,15,16,16,16,17,16,16,16,16,16,17,16,16,17,16,18,17,17,16,17,16,17,16,15,15,15,16,15,16,16,15,16,16,16,16,17,15,17,16,17,16,17,14,16,16,15,15,15,15,14,14,14,14,13,13,12,12,12,12,12,10,12,12,8,8,11,11,12,13,14,15,16,15,17,16,18,20,20,21,21,24,21,21,22,24,23,22,24,23,24,26,23,26,26,26,25,25,25,26,27,27,27,26,27,28,25,25,27,27,26,27,26,26,27,27,25,24,26,26],[28,28,28,28,29,28,29,28,28,27,28,27,28,27,28,27,29,29,27,29,29,28,28,29,28,29,29,28,29,29,28,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,28,28,29,28,26,27,27,27,26,27,26,25,25,25,23,21,20,20,19,19,18,16,16,15,15,15,13,12,14,14,13,12,14,13,14,13,14,13,10,13,15,14,15,13,14,14,12,14,14,14,12,15,15,11,13,15,15,11,14,15,15,12,14,16,16,16,15,16,15,15,14,14,13,13,14,12,11,12,12,10,9,11,10,9,9,10,8,9,11,10,10,9,11,10,9,9,11,11,11,10,10,11,11,13,11,11,13,13,13,15,15,15,15,16,15,15,14,14,15,14,14,14,13,11,12,12,11,10,11,10,10,10,9,9,11,8,7,8,9,5,6,9,5,5,10,10,11,10,9,12,11,11,12,13,13,13,13,15,15,16,15,13,13,12,12,11,12,10,12,11,11,11,9,11,12,11,10,9,12,12,10,12,11,10,10,11,11,11,12,12,11,12,12,11,12,10,11,9,10,10,9,8,8,7,6,6,5,4,3,2,0,1,2,3,4,5,7,7,6,9,9,10,10,10,11,11,12,13,14,12,13,11,11,11,9,11,11,11,11,9,9,10,9,8,10,11,9,8,9,9,7,8,10,11,12,11,11,11,12,12,12,12,12,12,12,14,13,13,13,15,15,16,14,14,16,16,15,15,14,16,18,16,16,18,18,18,20,19,19,20,22,20,21,23,24,23,23,25,24,25,26,27,27,27,27,27,28,28,28,28,29,28,29,29,28,29,28,27,28,27,28,28,27,28,29,28,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,28,29,28,28,27,26,26,25,26,24,23,23,21,21,21,19,18,19,19,18,20,19,20,17,19,17,17,18,19,20,20,18,19,20,19,18,19,21,19,20,21,20,21,20,18,17,16,17,17,19,19,19,20,20,21,21,22,21,21,20,20,19,19,20,19,19,20,18,18,19,17,17,17,15,15,14,16,15,14,16,16,14,15,16,15,16,15,15,16,16,15,14,15,14,13,15,12,11,11,8,7,7,8,9,7,7,8,8,7,8,8,8,10,11,11,12,10,13,13,12,12,14,13,14,13,15,14,14,15,14,16,15,15,16,16,17,17,15,14,15,14,13,12,11,14,14,15,16,17,17,17,18,19,19,19,18,18,18,17,15,18,17,16,15,15,14,15,15,14,13,13,14,13,12,13,12,12,11,12,12,11,10,12,10,11,10,12,12,11,12,14,14,11,13,14,12,13,14,15,13,13,15,15,12,14,14,16,15,14,15,15,15,14,15,16,17,17,16,18,18,16,16,18,17,17,15,15,17,16,17,15,15,15,15,15,16,16,15,16,17,16,17,18,17,18,19,18,18,16,18,17,16,16,18,16,17,17,15,15,14,14,14,14,13,15,15,13,14,15,13,14,15,15,13,15,17,15,17,16,17,16,15,18,18,16,17,19,18,17,17,16,20,19,17,16,19,18,15,19,18,16,18,17,17,14,14,19,16,14,17,19,16,16,19,17,17,18,19,18,19,18,19,19,19,21,19,19,19,19,18,20,20,20,18,20,20,20,18,18,18,17,19,18,18,18,17,17,19,18,18,20,18,19,18,19,18,18,17,20,17,16,16,17,16,16,15,16,15,15,15,15,13,13,16,14,12,13,13,11,8,11,10,12,14,14,16,16,17,17,16,19,20,20,21,21,24,22,21,23,24,21,22,24,23,23,26,23,26,26,26,26,26,26,27,27,27,28,27,28,28,26,26,27,28,26,27,26,26,27,27,25,24,25,26],[29,29,28,28,29,28,29,29,28,28,28,28,28,27,28,28,28,29,27,29,29,28,28,29,28,29,29,29,29,29,28,29,29,29,29,29,29,29,29,29,29,29,28,28,29,28,28,27,28,27,27,27,27,27,25,27,26,25,23,24,23,21,20,19,19,18,18,17,16,16,15,15,14,15,14,14,13,13,14,14,16,14,14,14,12,13,14,14,14,13,14,14,13,14,14,13,12,12,13,12,12,13,14,11,13,14,13,12,13,15,17,15,14,15,14,15,14,13,13,12,12,12,12,11,11,12,11,10,11,8,10,10,9,11,11,11,10,8,10,10,9,9,11,10,9,11,11,9,11,12,11,10,13,13,13,14,15,14,16,17,16,14,14,14,15,14,13,14,13,13,12,13,11,12,12,10,9,11,9,9,8,9,6,7,8,5,6,7,8,5,8,8,9,8,8,11,11,10,10,11,12,11,11,14,15,16,14,11,12,12,13,11,10,10,10,9,9,9,8,9,10,11,8,10,10,10,9,11,10,10,11,11,12,12,12,13,12,11,11,10,10,10,11,10,9,11,9,7,7,7,6,5,6,4,3,2,1,0,1,3,4,5,7,6,5,8,9,10,9,8,10,9,11,11,12,11,11,10,9,10,11,9,9,11,10,9,10,10,9,8,10,9,9,9,9,9,9,9,12,12,13,12,14,13,14,13,13,14,14,14,14,15,15,14,14,16,17,17,16,15,16,16,16,15,14,16,18,16,17,18,18,17,17,18,19,20,21,21,21,22,22,22,24,24,23,25,25,25,26,26,26,27,27,26,27,27,28,28,28,28,27,27,27,27,27,27,28,28,27,28,29,28,29,29,29,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,29,29,29,28,28,29,28,28,28,27,27,26,27,25,25,24,22,23,21,21,22,20,19,19,18,17,19,18,18,17,19,16,18,18,18,19,19,19,19,20,19,19,18,20,21,21,22,20,21,20,19,19,18,18,18,18,18,19,20,19,21,21,21,21,21,19,20,19,18,19,19,19,20,18,18,18,17,17,18,16,17,14,16,17,15,16,16,15,14,16,15,14,16,16,15,14,16,15,15,14,12,12,11,9,10,9,8,8,9,9,6,7,8,8,6,8,8,8,10,9,10,11,11,11,11,10,10,13,11,11,14,14,13,14,14,13,15,14,15,15,16,16,15,13,11,14,13,13,11,11,13,14,14,15,15,15,15,18,18,18,17,16,16,17,15,16,16,16,16,15,15,15,14,15,14,14,13,14,15,11,11,14,12,10,12,15,11,9,13,13,10,10,14,13,10,13,15,13,10,15,14,12,11,14,15,11,13,14,14,12,15,15,16,16,14,16,15,16,16,16,17,17,17,15,17,18,15,16,17,17,16,15,15,16,15,17,15,15,16,15,15,16,15,14,16,16,15,16,17,16,16,18,16,16,15,16,16,15,16,17,16,17,17,16,17,15,15,16,16,15,16,16,14,15,16,16,16,15,16,16,15,16,16,17,17,18,17,16,18,18,17,16,18,17,17,18,15,19,18,16,16,20,18,16,18,19,17,18,16,17,14,15,19,17,14,17,19,17,16,19,19,17,17,19,19,18,17,19,19,18,18,19,18,19,19,18,19,19,19,18,19,19,20,19,18,18,18,19,18,18,19,17,18,18,18,18,18,18,18,18,19,17,19,16,19,18,16,18,17,17,16,18,17,17,14,15,15,13,12,13,13,10,12,13,9,10,11,11,12,13,13,17,16,18,18,17,18,20,20,23,22,25,24,21,22,25,24,22,25,22,23,26,25,26,27,27,26,27,27,27,27,27,28,27,27,28,26,26,28,28,27,28,27,27,27,27,25,24,26,26],[29,28,28,28,28,28,29,28,28,28,27,28,28,27,27,27,28,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,29,29,28,28,28,29,28,28,28,28,28,28,27,27,27,27,27,27,27,25,26,26,25,23,23,22,21,19,17,17,16,15,16,15,14,14,13,13,11,10,13,12,13,12,13,13,13,14,14,11,14,13,13,14,14,13,12,14,15,13,13,13,13,13,12,15,14,13,11,15,14,13,13,14,16,16,16,14,16,15,15,14,14,15,13,13,15,12,11,12,13,11,11,13,10,10,11,9,8,10,9,9,9,9,10,10,11,11,11,11,12,12,12,12,13,15,12,15,15,14,14,15,15,16,16,16,14,14,14,16,14,13,16,15,14,14,15,11,12,14,12,9,11,12,9,8,7,8,7,7,7,5,6,7,6,7,8,7,7,8,8,10,10,8,10,10,11,11,11,12,13,12,12,11,12,11,11,11,12,9,9,11,11,10,9,10,11,7,9,11,10,7,9,10,9,8,11,10,11,12,13,11,11,10,9,11,10,10,9,8,8,8,6,6,7,6,5,5,4,3,3,2,1,0,1,3,4,6,5,5,5,6,7,6,7,8,8,10,9,9,10,9,9,11,11,9,11,10,10,10,8,8,10,8,6,8,9,7,6,8,7,7,7,9,9,10,11,11,9,11,11,10,12,11,10,10,11,12,11,11,14,14,14,13,13,13,14,13,12,11,14,15,13,15,16,14,16,15,15,17,18,19,18,19,20,20,21,21,23,22,24,24,25,25,25,25,26,27,26,27,28,27,28,28,28,27,27,27,26,27,26,28,27,28,27,28,28,29,29,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,28,29,29,29,28,28,29,28,28,28,28,26,26,26,24,24,23,22,23,21,19,20,18,18,17,15,15,16,16,15,13,15,12,15,14,14,17,16,15,17,19,17,17,17,19,18,19,20,19,19,19,17,17,15,15,16,16,17,17,17,18,20,19,20,19,18,18,18,17,16,17,18,16,16,17,16,15,15,13,14,12,12,10,12,12,11,11,12,10,10,11,12,10,11,13,12,11,13,13,13,12,12,11,9,8,8,8,6,7,6,7,5,5,7,7,5,5,8,7,7,7,8,8,7,8,9,8,7,10,11,11,11,12,12,11,11,12,11,11,13,13,14,13,12,11,11,12,11,12,12,11,13,13,14,13,14,13,14,16,16,14,15,15,14,15,15,14,14,15,14,13,12,13,13,13,13,13,11,12,13,9,9,10,9,8,9,10,10,7,9,9,9,8,9,10,9,10,10,10,9,10,10,9,9,9,10,10,9,11,11,10,12,10,12,12,12,13,13,13,13,13,12,13,14,13,14,15,14,14,16,15,16,14,13,15,14,15,15,14,16,15,15,16,15,15,15,15,15,14,15,15,15,15,15,15,15,15,14,14,14,15,15,15,15,15,15,12,13,14,13,11,13,13,11,12,13,12,10,13,12,11,10,12,14,14,13,13,14,12,13,13,13,14,14,14,13,15,12,15,13,13,13,17,15,13,15,15,14,15,14,14,12,14,16,14,11,13,16,13,13,15,16,13,14,16,15,15,15,15,16,16,16,16,17,16,15,16,17,16,16,15,16,16,16,16,16,15,14,15,14,16,16,14,15,16,15,16,14,15,16,15,17,14,16,13,16,15,13,14,14,13,12,13,12,11,10,10,10,10,10,9,9,9,9,9,8,9,7,10,11,12,13,16,15,15,18,16,19,21,21,23,22,25,24,20,22,25,23,22,25,23,23,27,25,26,27,27,27,27,27,27,28,27,27,27,27,28,25,26,26,28,27,27,26,26,27,27,25,25,26,27],[28,28,28,28,28,28,28,28,27,27,27,25,28,26,27,26,28,28,27,28,28,27,28,28,28,28,28,28,28,28,27,28,28,28,28,29,28,28,28,27,28,28,27,27,27,27,26,26,26,25,23,24,25,23,22,24,23,21,21,21,19,17,15,13,12,11,10,9,9,9,8,8,7,7,6,7,6,6,7,7,6,7,7,7,6,8,8,8,8,8,8,9,8,9,9,9,8,9,9,9,9,9,9,9,9,10,9,9,9,10,11,10,9,9,9,10,9,9,9,9,9,8,7,8,8,7,7,8,8,7,7,8,7,8,7,8,7,8,7,8,7,8,8,8,8,8,8,7,8,8,8,7,8,8,9,9,9,9,9,10,9,8,8,9,9,8,7,9,7,7,7,7,6,6,8,6,5,6,6,6,6,5,5,5,5,5,5,5,5,5,6,6,5,5,6,6,8,7,7,8,8,8,8,9,9,10,9,8,8,8,8,8,7,7,7,6,6,7,6,5,5,6,5,4,5,5,4,5,5,4,5,6,7,6,7,8,7,7,7,7,6,6,6,5,5,5,4,4,3,4,3,2,3,3,2,3,3,3,1,0,1,1,2,2,3,3,3,4,4,5,4,5,5,5,5,6,5,5,6,6,6,5,5,5,5,4,5,5,4,4,4,4,3,4,4,4,3,4,5,5,5,6,6,6,7,7,7,8,7,7,7,8,8,8,8,9,9,9,9,9,10,9,9,9,8,9,9,9,9,10,10,11,11,11,13,13,15,14,15,16,17,17,18,20,20,19,22,22,23,23,24,25,26,25,26,26,27,26,26,26,25,26,24,24,24,24,25,25,25,25,27,27,28,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,27,28,28,28,28,27,27,27,28,27,27,28,27,27,28,26,27,26,26,24,24,23,22,22,20,19,19,17,16,14,14,12,12,10,10,10,10,10,10,10,10,11,11,10,11,11,11,11,13,12,11,12,14,13,13,14,14,14,13,12,13,11,12,12,12,12,13,13,14,14,13,15,14,13,13,13,12,11,12,12,11,11,10,11,10,10,10,10,8,9,7,8,9,9,8,9,9,8,8,9,8,9,9,9,10,10,10,10,9,9,8,7,7,6,6,5,4,5,6,4,3,4,5,4,4,5,4,4,5,6,6,4,6,6,5,6,6,6,6,7,7,7,8,7,7,8,8,9,9,10,9,9,8,7,7,7,8,7,6,8,9,9,10,9,9,10,11,11,10,11,10,10,9,9,10,9,8,9,9,7,8,8,8,7,7,6,7,6,5,5,6,5,4,6,5,5,6,7,6,6,6,6,7,6,8,7,8,7,6,6,6,6,6,7,6,7,7,7,7,7,7,8,8,7,8,8,9,8,8,8,9,9,8,9,9,9,8,9,9,9,8,8,9,9,9,9,9,9,8,9,9,10,9,10,10,9,10,11,10,11,11,11,10,10,11,10,10,10,10,10,9,9,8,9,7,7,7,8,7,7,7,6,7,7,7,7,8,7,7,7,8,9,9,9,9,9,8,9,10,8,9,9,10,9,9,10,10,9,8,9,9,9,9,9,10,9,10,8,9,8,7,9,8,9,8,9,9,9,9,10,9,9,10,10,11,9,10,11,11,10,10,10,11,9,11,11,9,10,10,10,10,11,10,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,12,10,10,10,11,9,9,10,9,9,8,8,9,8,7,8,8,7,7,7,8,6,7,8,6,6,6,8,9,10,11,12,12,13,13,13,15,17,17,20,20,22,21,19,20,23,22,19,22,20,21,24,23,24,25,25,25,25,25,26,26,26,26,26,25,26,25,26,25,25,26,26,25,24,26,26,24,23,26,26],[28,28,28,28,28,28,28,28,28,27,27,27,27,26,27,27,27,28,27,27,27,27,28,28,27,27,28,27,28,27,26,28,28,28,27,28,27,28,28,27,28,27,27,27,27,27,25,25,25,24,23,23,24,23,22,23,22,21,21,20,18,16,14,11,9,9,7,6,6,6,5,5,5,4,4,4,5,4,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,4,5,4,4,4,5,4,4,5,5,5,5,6,6,6,6,6,7,6,5,5,5,6,5,5,5,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,5,5,5,5,6,5,5,5,5,4,4,5,4,4,4,4,4,3,4,4,3,3,4,3,3,3,2,3,3,2,2,3,3,2,2,3,3,3,3,4,5,5,5,4,5,5,5,5,5,5,6,5,5,5,4,4,4,3,3,3,3,3,3,2,2,3,3,2,2,3,3,2,3,3,3,3,3,4,5,5,5,5,4,5,4,4,4,4,4,3,3,3,3,2,3,2,2,3,2,2,3,3,2,1,1,0,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,3,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,2,2,2,4,4,4,4,4,4,5,5,4,5,5,5,4,5,6,5,5,6,6,7,6,6,7,6,6,6,6,7,7,7,7,7,8,8,8,8,10,11,13,13,14,16,17,16,17,20,18,18,21,21,21,22,23,25,24,23,26,25,26,25,26,24,24,25,23,23,24,23,25,24,24,25,26,25,27,26,27,27,27,26,27,27,27,27,27,27,27,28,27,28,27,27,28,27,27,27,27,27,27,28,26,28,27,26,27,25,26,25,25,24,24,23,21,22,18,18,18,16,15,13,11,10,9,8,7,7,7,7,6,7,7,7,7,7,8,8,8,8,10,9,9,9,10,10,10,11,11,11,12,10,11,9,9,9,9,9,10,10,12,11,10,12,11,10,9,9,9,9,9,8,8,8,7,7,7,7,7,6,6,6,5,6,5,5,5,6,5,5,5,6,5,5,6,6,7,7,7,7,7,6,5,5,4,4,3,3,3,2,3,2,2,2,2,2,2,2,3,3,3,3,3,2,3,4,3,3,4,4,3,4,4,4,4,4,5,5,5,6,7,7,7,6,5,5,4,4,4,4,4,4,5,5,5,6,6,6,7,8,7,7,6,6,6,5,5,5,5,4,5,4,4,4,4,4,3,3,4,3,3,3,4,3,3,3,4,3,3,3,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,4,5,5,5,5,5,6,5,5,6,6,6,5,6,5,5,5,5,5,5,5,5,4,4,4,5,5,5,5,6,6,6,7,7,6,8,8,8,7,6,7,7,7,7,6,7,6,6,5,5,4,5,5,5,4,5,5,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,5,6,6,6,6,6,6,6,6,6,7,6,5,6,6,6,6,6,6,6,6,6,6,5,5,6,6,5,6,6,6,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,8,7,8,8,7,7,7,7,7,7,7,6,6,7,7,7,7,7,7,7,7,7,8,8,8,7,8,8,7,8,7,7,7,6,6,6,6,5,5,5,5,4,4,5,5,4,4,4,3,4,4,3,3,4,6,7,8,9,10,11,10,11,12,14,15,17,18,18,21,20,19,19,21,21,18,22,19,21,22,21,23,23,24,23,24,23,24,24,24,24,23,23,25,22,23,24,23,23,25,24,22,24,24,23,22,24,24],[28,28,28,28,28,28,28,27,28,27,27,26,26,26,26,25,26,26,26,26,26,26,26,26,26,25,26,26,26,25,25,26,26,27,25,26,25,26,26,25,26,25,25,25,25,24,23,22,23,22,22,22,22,20,19,21,19,18,17,17,15,13,11,8,7,6,5,4,4,4,3,3,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,3,3,2,2,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,2,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,1,2,2,2,2,2,3,3,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,1,2,2,2,3,3,2,2,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,6,6,7,10,10,10,12,13,14,12,14,16,16,16,18,18,18,19,19,20,22,20,22,21,23,22,23,22,21,23,22,21,22,22,23,23,22,22,25,24,26,24,25,25,25,25,25,25,25,25,25,25,26,26,25,26,26,25,26,25,26,25,26,26,26,26,25,25,25,25,26,24,23,24,23,22,22,20,19,19,17,16,16,14,12,11,9,7,6,6,5,5,5,5,4,5,4,5,5,5,5,6,6,6,6,6,6,7,7,7,7,8,8,8,8,7,7,6,6,6,6,7,7,8,8,8,8,8,8,7,7,6,6,6,6,6,6,5,5,5,5,4,4,4,4,3,3,3,3,3,3,4,3,3,4,4,4,4,4,5,5,5,5,5,5,5,4,4,3,3,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,5,5,4,3,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,4,5,5,5,5,4,4,4,3,3,3,2,2,3,2,2,2,2,2,2,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,4,3,3,4,4,3,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,4,3,4,3,4,4,4,4,4,5,5,5,5,5,5,4,5,5,4,4,5,4,4,5,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,4,6,7,7,9,10,10,11,11,13,14,17,18,17,20,19,19,19,20,20,18,21,20,21,22,21,24,24,24,23,24,23,24,24,24,25,24,23,25,24,23,24,24,25,23,24,23,23,25,23,22,24,25],[28,28,28,28,28,28,28,28,28,27,27,26,27,25,26,25,26,27,26,26,26,26,26,26,25,26,26,26,26,26,25,26,26,27,25,26,25,26,26,25,26,26,25,26,25,25,24,22,24,22,22,22,22,20,19,20,19,18,18,18,15,14,11,8,7,6,5,4,4,3,3,3,3,2,2,3,3,3,3,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,4,3,3,4,3,4,3,3,3,3,3,3,3,2,2,3,3,3,3,3,2,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,3,2,2,2,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,3,3,4,4,3,3,3,3,2,3,2,2,2,2,2,2,2,2,1,1,2,2,2,2,3,3,2,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,2,1,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,4,4,4,4,4,4,4,5,5,5,6,6,7,9,10,10,12,13,15,14,15,16,17,15,17,18,18,18,19,21,21,21,22,22,23,23,23,22,21,23,20,22,22,21,24,22,23,23,24,25,26,24,25,26,26,26,26,26,26,26,26,26,26,26,26,26,25,25,26,26,26,26,26,24,25,26,25,25,25,24,26,24,23,24,23,23,22,21,21,20,18,17,16,15,12,11,8,7,7,5,5,5,5,5,4,5,4,5,5,5,5,5,6,6,7,6,6,7,7,7,8,8,8,8,8,8,8,7,7,7,7,7,7,7,8,8,7,8,8,7,7,7,7,6,6,6,5,5,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,5,5,5,5,5,5,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,3,3,3,3,4,5,5,5,4,3,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,4,5,5,5,4,4,5,5,5,5,4,4,4,3,3,3,2,3,3,3,2,2,2,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,4,4,3,3,4,4,3,4,4,3,4,3,4,3,3,3,3,3,3,4,3,3,4,4,3,3,4,4,4,4,5,5,6,5,5,5,5,5,5,5,4,4,5,4,4,5,4,4,4,4,4,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,4,5,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,2,3,4,6,7,7,9,9,10,11,11,15,14,17,18,19,20,20,18,18,20,20,19,22,20,22,22,21,24,23,23,22,23,22,24,23,22,24,24,23,23,23,24,24,23,23,23,23,22,24,24,22,23,24,24],[29,28,28,28,29,28,28,28,27,27,27,25,27,25,26,26,27,27,26,26,27,26,26,27,26,27,27,27,27,26,26,27,27,27,26,27,26,26,26,26,26,26,25,26,25,25,24,23,24,23,21,21,21,20,18,20,19,18,17,17,14,13,10,8,7,6,4,4,4,4,3,3,2,2,2,2,3,2,3,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,2,3,3,2,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,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4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,3,3,2,3,3,2,2,3,4,6,6,7,8,9,9,10,10,13,14,16,16,17,19,21,18,18,19,21,18,23,18,22,21,22,24,23,23,22,23,22,24,23,23,24,22,23,23,22,23,22,22,23,22,24,22,23,24,23,22,23,24],[28,28,27,27,27,27,27,27,27,26,26,24,25,24,25,25,25,26,25,26,26,25,26,26,26,26,26,26,26,25,25,26,26,27,25,26,26,26,26,25,26,25,24,25,24,24,23,22,23,22,21,20,21,20,18,19,18,17,17,16,13,12,10,7,6,6,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,2,2,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,3,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,1,2,2,3,3,3,2,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,3,4,2,2,2,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,4,4,3,4,4,3,3,3,4,4,3,4,4,4,5,5,6,8,9,10,10,12,12,13,11,13,14,14,14,15,16,16,16,16,19,20,19,20,21,22,22,22,22,21,22,20,21,22,21,22,21,21,21,25,24,26,24,24,24,25,24,24,25,25,25,25,25,24,25,25,26,25,25,26,25,25,25,25,25,25,25,25,24,25,24,25,24,24,24,24,22,21,21,19,19,17,16,15,14,11,11,8,6,6,5,5,4,5,4,4,4,4,4,4,5,5,5,5,5,6,5,6,6,6,6,7,7,7,6,7,6,6,6,5,6,6,6,7,6,7,7,7,7,6,7,6,6,6,6,5,5,5,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,4,4,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,2,2,2,2,2,1,1,2,2,1,1,2,2,1,2,2,2,2,2,3,3,3,3,4,5,5,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,3,3,2,2,2,3,2,2,2,2,2,2,3,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,5,5,5,4,4,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,3,4,5,6,6,8,8,9,10,10,14,13,17,17,17,19,19,19,17,18,19,18,21,19,19,21,21,22,23,23,22,23,22,24,22,22,24,23,22,23,22,22,22,21,22,22,23,21,22,23,22,21,23,23],[28,27,28,28,27,28,27,27,27,26,26,25,25,25,25,24,25,26,25,25,26,25,25,25,25,26,25,26,26,25,24,25,25,26,25,25,25,26,25,25,26,25,24,25,24,24,22,22,22,22,20,20,20,18,18,19,18,16,17,16,13,11,9,7,6,5,4,3,3,3,3,2,2,2,2,2,2,2,2,2,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2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,3,3,3,3,4,4,3,4,4,4,4,3,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,2,2,2,3,2,2,3,3,2,3,2,3,3,2,3,3,3,2,3,3,3,3,2,3,2,2,2,2,2,2,3,2,2,3,3,3,2,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,4,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,6,6,8,9,10,10,10,13,14,16,18,18,19,20,18,18,19,19,18,21,21,21,22,21,24,24,23,23,23,24,24,23,23,24,23,23,25,24,23,24,23,24,22,23,23,22,24,24,22,24,24],[29,28,28,29,28,28,28,28,28,27,27,26,27,26,26,25,26,27,25,25,26,25,26,26,25,26,26,26,27,26,25,26,26,26,25,26,25,25,25,25,25,25,24,24,24,24,22,21,22,21,20,20,20,19,17,19,17,16,15,15,13,11,9,6,5,5,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,1,2,2,1,2,2,3,3,3,2,3,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,1,2,2,1,1,1,2,1,1,2,2,1,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,3,2,2,1,1,1,1,1,1,1,0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,2,2,2,2,3,4,5,6,6,8,9,9,10,10,13,13,16,16,17,20,21,18,18,18,20,18,21,19,22,21,21,24,24,23,22,23,22,24,23,22,24,23,23,24,21,22,24,21,23,22,24,22,23,24,22,22,23,23],[28,27,27,27,27,27,27,27,26,26,25,24,26,25,25,25,25,26,24,26,26,24,25,26,25,26,25,26,26,25,25,26,26,27,25,26,25,26,26,26,26,25,24,25,25,24,23,21,22,21,20,19,20,18,17,18,18,15,16,15,13,11,9,7,6,6,4,4,4,3,3,3,3,2,2,2,3,3,3,2,2,2,2,2,2,2,2,3,2,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,2,3,2,2,3,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,3,3,3,2,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,1,2,1,1,1,1,1,1,1,1,2,1,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,4,4,3,4,4,4,3,3,4,4,4,4,4,4,5,5,5,6,9,9,9,11,11,12,11,11,13,13,13,14,14,15,15,16,18,19,18,20,21,21,20,22,21,20,21,20,19,20,21,22,20,20,21,23,22,24,23,24,24,24,24,25,24,24,25,24,24,24,24,24,24,25,25,25,26,25,25,25,24,24,24,24,25,24,25,25,23,23,23,22,21,21,19,19,18,16,15,15,12,11,10,8,7,6,5,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,7,7,7,7,7,7,6,6,5,6,6,6,6,6,7,7,6,7,7,6,6,5,6,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,1,1,1,2,1,1,2,2,2,2,2,2,2,2,3,3,3,4,5,5,6,4,3,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,4,4,5,5,4,4,4,4,4,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,4,5,7,7,9,9,10,10,10,14,14,16,16,15,17,18,17,17,18,20,17,20,18,20,20,20,22,25,21,21,23,22,22,22,22,23,20,20,23,21,21,20,21,23,22,22,21,22,24,22,20,23,23],[28,28,28,28,28,28,27,27,27,27,26,25,26,24,25,24,25,26,25,26,26,25,26,26,25,26,26,26,26,25,25,26,27,27,26,27,26,26,26,26,26,25,26,26,25,24,24,23,23,22,21,21,21,19,17,19,18,17,16,15,13,12,9,7,6,5,4,3,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,4,3,3,3,3,3,3,2,3,3,2,2,3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,3,3,3,3,4,4,3,4,3,4,4,3,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,3,2,2,3,4,5,6,6,8,9,9,10,11,13,14,15,17,17,19,20,19,17,18,19,19,21,20,21,22,21,24,25,24,23,23,23,25,23,24,25,24,23,25,23,24,24,24,25,23,24,23,23,24,24,22,24,25],[29,28,28,28,28,28,28,28,27,27,27,26,27,25,26,25,26,27,25,26,26,24,26,26,25,26,26,25,26,26,24,26,26,26,26,26,26,26,26,26,26,26,26,25,25,24,23,22,23,22,21,20,20,19,18,18,17,16,16,16,13,11,9,7,6,5,4,4,4,3,3,3,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,1,1,2,2,3,3,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,3,3,4,4,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,2,2,3,3,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,5,5,5,6,8,9,9,11,13,12,11,12,13,14,13,15,16,15,16,17,18,20,19,20,21,22,22,22,21,21,22,20,21,21,21,22,21,22,22,24,23,26,23,24,24,25,25,24,25,25,25,25,25,24,25,25,25,25,25,26,25,26,25,25,24,24,25,24,24,25,24,25,22,22,23,23,22,21,19,19,19,17,15,15,14,11,10,8,7,6,5,4,4,4,4,4,4,4,4,4,4,5,5,5,6,6,6,6,6,6,7,7,7,7,7,8,7,7,6,6,6,6,6,7,6,7,7,7,7,7,7,6,6,6,6,5,5,5,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,5,5,4,4,3,3,3,3,2,2,2,2,2,2,1,2,2,1,1,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,3,3,4,5,5,5,4,2,2,2,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,2,2,3,2,3,2,3,3,3,3,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,3,4,4,4,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,3,3,3,3,3,3,2,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,4,3,4,4,5,5,4,4,5,4,4,4,4,3,4,4,4,3,4,4,4,3,4,4,4,4,5,4,4,4,4,5,5,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,2,2,3,4,5,7,6,8,9,10,11,11,14,15,17,17,18,20,21,19,18,20,20,20,22,20,23,22,22,25,24,24,24,24,23,26,24,24,26,24,24,25,23,25,25,24,25,25,24,23,25,25,24,23,26,25],[28,28,28,28,28,27,28,28,26,26,26,24,27,24,26,24,26,27,24,27,26,25,27,26,25,27,27,26,27,26,25,26,27,27,26,27,26,27,26,26,26,26,26,25,25,24,23,21,22,21,20,20,20,19,17,18,17,16,15,15,13,11,9,7,6,6,5,4,4,4,3,3,3,2,3,3,3,3,3,3,2,2,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,3,3,3,3,3,3,4,4,4,3,4,4,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,1,1,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,4,4,4,4,5,4,4,5,5,5,6,6,8,8,9,9,11,11,12,11,12,13,13,13,14,15,15,15,16,17,19,18,20,21,22,21,22,21,20,22,20,20,21,21,22,21,22,22,25,24,26,24,25,25,25,25,26,25,25,25,25,25,25,25,25,26,25,26,26,26,26,25,26,25,26,26,25,25,25,24,26,24,24,24,24,24,22,21,20,20,19,17,16,15,11,11,8,7,6,5,5,5,5,5,4,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,8,8,7,7,7,7,7,6,7,7,7,7,7,7,7,7,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,3,3,4,4,4,3,4,4,3,4,4,4,4,4,5,5,5,6,5,5,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,1,2,1,1,2,2,2,2,2,3,3,3,4,6,6,6,4,3,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,4,4,4,5,4,4,5,5,4,4,4,4,4,3,3,3,2,2,3,2,2,2,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,4,5,5,5,5,4,5,5,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,6,7,7,9,9,10,10,10,13,14,16,14,16,18,19,17,18,18,20,18,23,19,20,21,19,23,24,21,22,24,22,24,24,23,23,22,22,26,22,22,22,22,24,23,24,22,23,25,24,23,24,24],[27,27,27,27,27,27,27,27,26,26,25,24,26,24,25,24,25,26,24,25,25,23,25,24,24,25,25,25,26,24,24,24,25,26,25,25,25,25,25,25,25,25,23,24,24,23,22,20,22,21,19,19,19,17,15,17,17,15,16,15,12,11,9,7,6,6,5,4,4,4,4,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,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3,3,4,3,3,3,3,4,4,3,3,4,4,3,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,4,4,5,4,4,5,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,5,5,7,6,8,9,10,9,10,13,14,15,15,17,18,17,17,16,18,18,16,20,18,18,20,20,23,23,21,22,23,21,24,22,23,23,21,22,23,22,21,22,23,23,23,22,22,23,24,22,20,22,23],[28,28,27,28,27,27,28,27,27,27,26,25,26,25,26,25,26,26,24,26,25,23,25,25,24,25,26,25,26,25,23,25,26,26,25,26,25,26,26,26,26,26,25,25,25,25,24,22,23,22,21,21,20,18,17,18,17,16,16,16,13,12,9,7,6,5,5,4,4,3,3,3,3,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,4,4,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,2,3,3,3,3,2,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,3,3,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,5,5,5,5,6,7,8,9,9,12,13,13,11,13,14,14,14,16,16,16,16,18,19,20,20,21,22,24,22,23,23,21,23,21,21,22,22,22,22,23,22,25,24,26,24,24,25,25,25,24,25,25,25,25,25,25,25,25,26,26,26,27,26,26,26,26,25,25,26,25,25,26,24,26,23,23,24,23,22,22,20,20,20,18,16,16,14,12,11,8,7,6,5,5,4,5,5,4,5,4,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,7,7,8,7,7,6,6,6,6,7,7,7,8,8,7,7,7,7,6,6,6,6,5,6,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,5,6,6,5,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,2,1,1,2,2,2,3,3,4,5,5,5,4,2,1,1,1,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,4,4,5,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,5,5,5,5,4,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,7,6,8,10,10,10,10,13,14,16,17,17,20,21,19,18,19,20,19,22,19,22,21,22,24,24,23,23,24,23,24,23,24,24,23,23,25,22,23,24,25,25,24,23,23,24,25,24,22,23,24],[27,28,28,28,28,27,28,28,26,27,26,25,26,25,27,25,27,27,25,27,26,24,27,26,24,26,26,25,27,27,25,27,27,27,27,27,27,27,27,27,27,27,27,26,27,26,26,24,25,23,21,21,22,21,19,20,19,18,19,18,16,13,11,9,7,7,6,5,5,4,4,4,4,3,3,3,4,3,4,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,5,5,5,6,6,6,5,5,4,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,4,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,5,6,5,5,4,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,2,2,1,2,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,6,6,5,6,6,5,5,5,5,6,6,5,6,6,7,7,7,8,9,10,11,12,14,14,12,14,16,15,15,17,17,17,18,19,20,21,20,21,22,24,23,24,24,23,25,22,21,23,23,24,24,24,24,26,25,27,26,26,26,26,26,26,26,27,27,27,26,26,27,27,27,26,27,27,27,27,27,26,26,27,27,27,27,27,25,27,24,25,25,24,23,23,21,22,20,20,18,17,16,13,12,10,9,8,6,6,6,6,6,6,6,5,6,6,6,7,7,7,7,8,8,8,8,9,9,9,8,9,10,10,9,9,8,7,8,8,8,9,8,10,10,8,9,9,9,8,7,8,8,7,7,7,7,6,7,6,6,5,5,5,5,4,5,5,4,4,5,5,4,5,5,5,5,5,6,6,7,7,7,6,6,5,5,4,4,4,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,6,6,6,5,3,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,3,4,3,3,4,4,4,3,3,3,4,4,4,4,4,4,5,4,5,5,4,5,5,6,5,5,5,6,6,5,5,5,5,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,4,4,3,3,4,4,3,4,4,4,4,3,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,5,5,4,4,5,5,5,5,6,6,6,6,6,6,6,5,6,5,5,6,6,5,5,6,5,5,5,6,5,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,4,5,5,4,4,4,4,4,3,4,4,3,3,4,4,3,4,4,3,4,4,4,3,4,5,7,8,7,9,11,11,11,12,15,16,17,17,20,21,21,20,17,21,21,20,23,19,23,22,23,25,24,23,25,25,23,26,25,24,24,25,25,25,23,23,25,25,25,26,24,25,25,26,24,23,25,24],[28,28,28,28,28,27,28,28,26,26,26,24,27,24,26,25,26,27,25,27,26,25,26,26,25,26,27,25,27,26,25,27,27,28,27,27,26,27,27,27,27,26,26,26,26,26,24,22,23,23,20,19,21,19,17,18,18,17,18,16,15,12,11,9,8,8,7,6,6,6,5,5,4,4,4,4,4,4,4,4,4,4,4,3,3,3,4,4,4,4,4,5,4,4,5,5,4,5,5,5,6,6,6,5,6,6,6,6,7,7,8,7,6,6,6,7,7,7,7,6,7,6,5,6,5,5,5,5,5,5,5,5,4,4,4,5,4,4,4,4,4,4,5,5,4,4,5,5,4,5,5,4,5,5,5,5,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,4,4,4,3,3,4,3,3,3,4,4,3,3,3,4,4,3,3,4,3,4,3,4,4,3,3,4,3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,6,6,6,6,6,6,6,6,6,6,6,7,6,7,7,7,6,7,7,7,7,7,7,6,6,5,6,6,5,5,5,5,5,4,5,5,4,5,5,5,4,5,5,4,5,5,5,4,5,7,7,9,9,10,11,13,12,13,14,15,16,16,17,20,19,19,18,19,20,19,24,19,21,21,19,24,23,22,23,25,23,24,26,25,23,24,24,25,24,22,23,24,25,25,23,24,23,25,24,23,25,26],[27,27,27,27,27,27,28,27,26,27,25,25,26,26,26,26,26,27,25,26,26,26,26,26,25,26,26,26,26,26,25,27,28,27,26,28,27,27,28,27,28,27,26,26,26,26,24,21,24,23,20,21,21,19,18,19,18,17,17,17,15,13,11,10,9,8,8,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,5,5,5,4,5,5,5,5,5,5,6,5,5,6,6,5,5,7,6,6,7,7,7,7,7,8,8,8,8,7,7,7,8,8,7,8,7,7,7,6,7,7,7,6,6,6,6,6,6,5,5,5,5,4,4,4,5,5,5,5,5,6,5,6,6,5,7,6,6,6,7,6,7,7,6,7,7,7,7,7,6,7,7,6,7,6,7,6,7,6,6,7,6,6,6,6,7,6,5,6,5,5,5,4,4,4,4,4,3,3,3,3,4,4,3,3,4,4,3,3,4,4,4,4,3,3,4,4,4,4,4,3,4,4,4,4,6,5,5,5,5,6,6,6,5,6,6,5,6,6,7,7,8,7,7,7,7,7,7,7,7,6,6,6,6,5,6,5,5,6,6,6,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,2,2,1,1,1,0,1,2,2,2,2,3,3,3,4,3,4,4,5,5,5,5,5,5,5,5,5,5,5,6,5,6,6,6,6,6,6,6,7,6,7,7,7,7,7,8,8,8,8,8,8,8,8,8,7,8,8,7,8,8,8,9,8,8,10,10,11,11,12,13,13,13,14,14,16,16,17,18,18,17,19,21,20,20,22,21,23,22,23,22,21,23,23,21,22,22,22,22,22,23,25,24,26,24,25,26,25,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,26,27,26,26,26,26,26,27,25,27,25,24,25,24,24,23,23,22,20,19,19,18,16,14,14,12,10,10,9,8,8,8,8,8,8,7,8,8,8,9,9,9,9,10,10,10,10,11,11,11,12,12,12,12,11,11,9,9,9,10,10,11,12,12,13,12,12,12,11,10,10,10,9,10,10,9,9,8,9,8,8,8,8,6,6,6,6,7,6,6,7,6,6,6,7,7,7,7,7,8,8,9,8,8,7,6,6,6,6,6,5,6,5,5,5,5,4,4,4,4,4,4,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,4,4,4,4,5,5,6,6,7,5,4,3,3,3,4,3,4,4,4,4,4,5,5,5,6,6,6,6,5,6,5,6,5,5,5,5,4,5,5,4,4,5,5,4,4,5,5,4,4,5,4,4,5,5,4,4,5,5,5,5,5,6,5,6,5,5,5,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,6,5,6,6,6,6,5,6,6,6,6,6,6,7,7,6,7,7,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,7,7,6,7,6,6,5,5,6,6,5,5,6,5,4,5,5,5,5,5,5,4,5,5,5,5,5,5,5,6,5,4,5,5,5,5,5,5,6,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,7,8,7,7,8,7,7,7,7,7,6,7,7,7,7,8,7,7,7,8,7,7,7,7,7,8,8,8,8,7,8,7,7,7,7,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,8,9,9,10,11,12,12,13,14,15,17,18,19,21,21,21,18,20,20,20,22,20,21,22,21,24,23,24,23,23,22,25,25,23,24,24,24,23,22,23,25,24,23,25,24,23,25,26,23,23,25,25],[28,28,28,28,28,28,29,28,26,26,26,24,26,25,26,26,26,27,24,27,26,25,26,26,25,26,27,26,27,27,26,27,27,28,26,27,27,27,27,26,27,26,26,26,26,26,25,23,24,23,21,22,22,20,19,21,20,18,19,19,17,14,13,11,9,9,9,7,8,7,7,7,7,6,6,7,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,4,6,5,5,5,6,5,5,6,6,6,6,7,6,6,7,7,8,8,8,7,6,7,8,7,8,7,7,7,7,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,4,4,4,4,4,4,5,5,4,5,6,5,6,6,6,6,6,6,7,6,7,7,7,7,7,7,7,7,6,6,6,6,7,6,6,6,6,6,5,6,6,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,4,3,3,4,4,3,3,4,4,4,4,3,4,4,4,3,3,4,3,3,4,4,4,5,4,5,5,5,5,6,6,5,5,6,6,6,7,7,8,8,7,7,7,7,6,7,7,6,6,6,6,6,6,6,5,5,5,4,5,4,5,5,5,4,4,4,4,4,4,3,4,3,3,3,2,2,2,2,2,1,0,1,2,2,2,4,3,5,4,4,4,5,5,4,5,5,5,5,5,5,5,6,5,6,5,6,7,6,7,7,7,7,7,8,7,8,8,8,8,8,8,8,8,8,8,8,8,8,7,8,9,8,8,9,9,9,9,9,10,11,12,12,12,13,13,14,15,15,17,16,18,19,20,19,21,22,23,22,24,24,24,25,24,24,22,24,24,24,24,24,25,24,23,24,26,26,28,26,26,26,26,27,27,26,27,26,27,26,27,27,27,26,26,27,28,27,27,26,26,27,27,28,27,27,26,26,27,27,26,27,26,25,25,24,24,22,22,21,20,18,16,15,13,12,10,9,9,9,8,9,8,8,8,8,8,9,9,9,9,10,11,10,9,10,12,11,11,12,12,12,12,11,11,10,9,10,11,10,11,12,13,13,13,12,12,11,11,11,10,10,10,10,10,9,9,9,9,8,9,8,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,9,9,8,8,8,7,7,7,6,5,5,5,6,5,4,4,5,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,5,5,5,5,6,7,7,5,4,3,3,3,4,3,3,4,4,5,4,5,5,6,6,6,6,7,5,5,6,6,5,5,6,5,5,5,6,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,5,6,5,5,5,5,4,4,4,4,4,4,4,5,5,4,4,5,5,5,5,5,5,5,6,5,5,6,5,6,6,6,6,6,6,6,7,6,6,6,6,6,6,7,6,7,7,7,6,8,7,7,7,7,8,7,7,7,8,7,8,7,7,7,7,6,7,5,5,6,6,5,5,6,5,5,5,6,5,5,6,6,5,6,6,7,6,6,5,5,6,6,5,5,6,5,5,6,6,7,6,6,6,6,6,6,7,6,6,7,7,7,6,6,7,7,6,7,7,7,6,7,7,6,6,7,7,7,7,7,8,8,8,8,8,7,8,8,8,7,8,8,8,8,9,8,8,8,8,8,8,8,8,8,8,9,8,8,8,7,7,8,8,7,7,6,7,7,6,6,6,6,5,6,6,6,5,5,6,6,5,6,6,5,5,6,6,5,6,7,8,10,9,11,12,13,12,13,15,16,17,17,17,21,21,20,20,22,20,19,23,20,21,24,22,24,26,24,24,25,23,24,25,26,25,24,24,26,24,25,26,26,25,25,24,25,25,26,26,24,26,27],[28,28,28,28,28,28,28,28,27,27,26,26,27,25,25,26,26,26,26,26,26,25,26,26,26,27,27,26,27,26,26,27,28,28,26,27,27,28,27,27,28,27,26,27,26,26,26,24,24,23,22,22,22,20,19,21,19,19,19,18,16,14,13,10,9,8,7,6,6,6,5,6,5,5,5,5,4,5,4,4,4,4,4,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,7,6,5,5,5,6,6,6,6,6,5,6,5,5,5,5,5,5,4,4,4,4,4,4,4,5,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,6,5,6,5,6,5,5,5,5,5,4,5,5,5,4,5,5,4,5,5,4,4,4,4,4,4,4,3,3,4,3,3,3,2,2,2,3,3,3,4,4,3,3,3,3,4,3,4,3,3,3,3,3,3,2,3,3,2,2,3,4,3,3,4,3,4,4,4,5,4,4,4,4,5,6,6,7,7,6,6,7,6,5,6,5,5,5,5,5,5,5,5,4,4,4,4,5,5,5,5,4,3,3,4,4,3,3,3,3,2,2,2,2,2,1,2,2,1,1,0,1,1,1,2,2,3,2,2,3,3,3,3,4,4,4,5,4,4,4,5,5,5,5,5,6,5,6,6,6,6,7,6,6,7,7,7,7,7,7,7,7,8,7,7,7,7,7,7,8,7,7,8,8,8,9,9,10,12,13,11,13,14,14,14,15,16,17,16,17,18,19,19,20,22,23,23,24,24,25,24,25,24,22,25,24,23,25,25,25,25,25,24,26,27,28,26,27,27,27,28,27,27,27,28,27,27,27,28,28,27,27,27,29,28,28,28,27,27,28,27,27,27,27,27,27,25,26,26,25,25,24,23,22,22,21,20,19,18,14,14,12,10,9,8,8,8,8,8,7,8,8,8,8,8,9,9,9,9,10,9,9,10,11,10,11,12,12,11,11,10,11,9,9,10,10,10,10,12,12,12,12,12,12,11,11,11,10,9,10,10,9,9,9,9,8,8,8,7,7,6,7,7,7,6,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,7,6,6,6,6,5,5,5,5,4,4,4,4,4,4,3,4,3,3,3,3,3,3,4,3,4,3,3,3,3,3,4,3,3,4,4,5,5,6,7,7,7,5,4,3,2,2,3,2,2,3,3,3,3,4,4,4,5,5,5,5,4,4,4,4,4,4,4,3,3,4,3,3,4,4,3,3,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,6,6,5,6,6,6,5,5,5,5,4,5,4,4,4,4,4,4,4,5,5,5,5,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,5,5,4,4,4,5,5,4,4,5,5,5,5,6,5,5,6,6,6,5,5,6,7,6,7,6,6,6,6,5,5,4,4,5,5,4,5,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,5,6,6,5,6,6,6,5,6,6,6,6,5,6,6,6,6,6,6,6,6,6,6,5,5,6,6,6,6,6,6,7,6,6,7,6,7,6,7,7,7,7,7,8,8,7,7,7,7,7,7,8,7,7,7,8,7,7,8,7,7,8,8,7,8,7,8,8,8,8,7,7,8,7,7,7,6,7,7,6,6,6,6,5,5,6,6,5,5,5,5,5,5,6,5,5,5,5,5,5,7,8,9,8,10,12,11,11,13,13,15,17,16,18,20,20,20,18,20,20,19,23,20,21,22,21,24,24,23,24,25,23,25,24,24,25,24,25,25,24,23,26,25,24,25,23,24,24,26,24,23,25,26],[29,28,28,29,28,28,28,28,28,27,27,26,28,27,27,26,27,28,26,27,28,25,27,27,26,27,27,26,27,27,26,27,28,28,27,28,27,28,28,27,28,26,26,26,26,25,24,22,24,21,20,20,21,19,17,19,18,17,16,16,13,12,10,9,8,7,6,6,6,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,5,5,5,6,5,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,5,4,3,3,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,4,5,5,4,4,5,4,4,4,5,5,4,4,5,4,4,5,4,4,4,4,3,4,3,3,3,3,3,2,2,2,2,2,2,3,3,3,2,3,3,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,6,6,5,5,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,5,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,1,2,2,2,1,1,0,1,1,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,6,6,7,6,7,7,7,7,7,7,8,9,10,11,10,12,13,13,12,13,14,14,15,16,16,17,17,17,19,21,20,22,22,23,23,24,22,21,23,23,21,22,22,22,23,22,23,24,24,26,24,25,26,25,26,26,26,26,26,26,26,26,26,27,27,27,26,27,26,27,26,26,25,26,26,26,26,26,25,26,24,24,25,24,24,22,22,21,20,20,18,18,16,13,13,11,10,8,8,7,7,7,7,7,7,8,7,8,7,7,8,8,8,9,8,9,9,10,10,10,10,10,10,10,10,10,9,9,9,9,9,10,10,11,11,11,11,10,10,9,10,9,8,9,9,8,8,8,8,7,7,7,7,7,6,7,6,6,7,6,6,6,6,6,6,6,6,7,7,7,8,8,8,7,7,6,6,5,5,5,5,4,5,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,6,6,7,6,4,3,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,5,5,6,6,6,5,5,5,4,4,4,4,4,4,4,4,5,4,4,5,5,5,4,5,5,5,5,6,5,6,6,5,5,6,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,6,6,6,6,6,6,7,7,6,6,7,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,7,7,6,6,6,5,6,5,5,6,6,5,5,6,5,5,5,5,5,5,5,5,5,5,6,7,8,8,10,11,10,11,12,13,14,16,17,18,20,19,20,18,20,19,18,22,19,20,22,21,24,23,23,24,24,22,25,24,23,25,24,24,24,22,24,25,24,23,25,25,24,25,25,23,23,24,25],[28,27,27,28,27,27,27,27,27,27,26,26,26,25,26,25,26,26,25,27,26,25,26,26,26,27,27,26,27,26,25,27,28,28,27,28,27,27,27,27,27,26,26,26,26,25,24,22,24,22,20,21,21,19,18,19,18,16,17,17,14,13,11,8,7,7,6,5,5,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,3,3,3,3,3,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4,4,5,4,4,4,5,4,4,4,5,5,5,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,4,5,5,4,5,5,4,4,4,4,5,4,4,5,5,4,4,5,5,4,5,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,5,6,6,6,6,6,5,5,5,6,6,6,6,6,6,6,7,6,7,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,6,6,8,8,10,10,10,11,12,14,14,16,17,18,20,20,20,18,21,19,20,23,20,21,22,22,24,24,24,25,24,23,25,25,24,26,24,23,24,24,24,24,25,24,24,24,22,25,24,24,22,23,24],[29,29,29,29,29,29,29,28,28,28,27,27,27,27,27,27,27,27,26,26,26,26,26,26,26,27,26,26,27,25,25,26,26,26,26,26,26,26,26,26,26,26,25,25,25,25,23,23,23,22,21,21,21,19,18,19,18,17,16,16,14,12,10,7,6,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,4,4,4,4,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,2,2,3,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,2,3,3,3,3,4,3,3,2,2,2,2,2,1,2,2,1,1,1,1,1,1,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,4,4,5,5,4,4,5,5,5,6,6,7,9,9,10,11,13,13,12,13,15,15,14,16,18,18,17,19,20,20,21,22,22,24,23,23,23,21,25,23,22,23,24,23,23,24,23,26,25,27,25,25,26,26,26,26,26,26,26,26,27,26,26,27,27,27,27,27,27,26,27,26,25,26,25,26,26,26,25,25,23,24,23,24,23,22,20,20,19,18,17,16,15,12,11,9,8,7,6,6,5,6,5,5,5,5,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,9,8,8,8,7,7,7,8,8,8,8,9,8,8,8,8,7,8,7,7,7,7,6,6,6,6,5,5,5,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,7,7,6,6,6,4,4,4,4,3,3,3,3,3,3,2,3,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,6,6,6,4,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,2,2,2,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,3,3,3,3,2,2,2,3,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,3,4,4,3,3,4,4,4,4,4,4,4,3,3,4,3,3,4,4,3,4,3,4,3,3,3,3,3,3,4,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,5,5,4,4,5,5,5,5,5,5,5,5,5,5,6,5,5,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,4,4,3,4,4,4,3,3,4,3,3,4,5,6,7,7,9,11,10,10,12,13,14,17,16,17,20,20,20,19,19,21,20,23,20,24,23,23,25,25,25,24,24,23,25,24,23,26,24,24,24,23,23,25,25,24,25,24,23,24,25,24,23,24,25],[28,28,28,28,28,28,28,28,28,27,27,26,26,26,27,26,26,27,26,26,27,25,27,27,26,27,27,27,27,26,26,27,27,28,27,28,27,27,28,27,27,27,27,26,26,26,24,23,24,23,21,21,21,19,18,20,18,17,18,17,13,12,10,7,6,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,2,2,2,3,2,2,3,3,2,2,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,2,2,3,3,2,3,3,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,3,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,1,1,1,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,3,3,2,2,3,3,3,3,3,3,3,2,2,2,2,2,1,1,2,1,1,2,1,1,2,2,2,2,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,4,5,5,4,4,4,4,5,4,4,5,5,5,6,6,7,9,10,10,12,14,14,13,14,15,15,14,16,16,17,18,18,20,22,21,22,23,24,23,24,23,21,23,22,22,23,23,23,24,23,22,25,24,26,25,25,26,26,26,26,26,26,26,26,26,26,27,27,26,27,26,28,26,26,26,26,26,27,27,26,27,26,26,26,25,25,25,25,23,22,21,20,20,19,17,16,15,12,11,9,8,6,6,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,8,8,8,8,9,9,8,9,8,8,7,7,7,7,8,8,9,9,9,9,9,8,8,8,8,7,7,7,7,6,6,6,6,5,5,5,5,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,7,6,5,4,4,4,4,3,3,3,2,3,3,2,2,3,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,6,6,6,5,3,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,5,4,4,4,4,5,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,3,3,4,3,3,4,4,3,4,3,4,4,3,3,4,3,3,3,4,3,4,3,4,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,4,5,5,6,5,5,5,5,5,5,5,4,4,5,4,4,5,4,4,4,4,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,3,4,4,3,3,4,4,3,4,4,4,4,4,5,6,7,7,9,10,10,11,12,13,13,16,16,18,20,19,19,18,19,18,19,23,20,22,23,22,24,24,24,24,24,23,26,24,24,25,23,24,24,23,23,25,25,24,24,24,24,24,24,24,22,25,25],[29,29,29,29,29,29,29,28,28,28,28,27,28,26,27,25,27,27,26,27,26,25,28,27,25,27,28,26,28,27,26,28,28,28,27,28,27,28,28,28,28,27,27,27,26,26,24,24,24,23,21,22,22,20,19,21,20,18,18,18,15,12,10,7,6,5,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,4,4,4,4,4,4,5,4,4,3,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,3,2,3,3,2,2,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3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,3,3,3,4,4,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,5,6,5,5,5,5,5,5,5,4,4,5,5,4,4,5,4,4,4,4,5,5,6,6,5,5,5,5,6,6,6,5,6,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,5,6,8,7,9,11,11,11,12,14,15,17,17,18,21,20,20,18,20,21,20,23,21,24,24,23,26,24,24,24,24,23,26,25,23,25,25,24,24,23,23,25,24,24,25,24,23,25,25,24,22,24,24],[27,27,28,28,28,28,27,27,28,27,26,27,26,26,26,25,25,26,25,26,26,25,26,26,25,27,26,26,27,25,25,27,27,27,26,27,27,27,27,26,27,26,26,26,26,24,24,22,23,22,22,22,21,19,18,20,19,17,17,17,13,11,9,6,6,5,4,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,3,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,3,3,2,3,3,3,3,2,2,2,2,2,2,1,2,2,1,1,1,1,1,1,1,1,1,1,2,1,1,2,2,2,2,2,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,1,2,2,1,1,2,1,1,2,1,1,1,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,4,3,3,4,4,4,5,5,6,8,9,9,10,13,13,11,13,14,14,14,15,16,16,16,17,18,19,19,20,21,21,21,22,20,20,21,21,20,21,20,22,21,21,20,23,23,25,23,23,24,24,24,25,24,24,24,24,24,25,25,25,25,25,25,26,25,25,25,24,25,25,25,24,24,24,24,25,23,23,23,23,22,20,20,20,18,17,16,15,14,12,10,8,7,6,5,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,7,7,8,8,7,7,7,7,6,6,6,6,6,6,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,6,6,6,5,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,3,3,3,4,5,6,6,4,3,2,2,1,2,2,3,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,1,1,1,2,1,1,1,1,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,3,4,3,4,4,3,4,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,4,5,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,4,5,4,4,4,4,4,5,5,4,4,5,5,4,4,4,4,4,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,7,6,8,10,9,9,11,12,13,15,16,17,18,19,19,17,18,18,19,22,19,23,21,21,24,23,24,23,24,23,25,23,24,25,22,23,23,22,22,24,23,23,24,23,23,23,24,23,21,23,24],[28,28,28,28,28,28,28,27,28,27,26,26,26,26,27,25,25,27,26,26,26,26,26,26,26,27,25,26,26,25,25,26,26,27,26,27,26,27,27,26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,2,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,3,3,3,4,4,3,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,6,6,7,9,9,8,9,11,12,14,15,16,18,19,18,16,18,19,18,22,19,21,21,22,25,24,24,24,24,24,24,23,24,25,22,23,24,22,20,24,24,22,23,23,24,22,24,23,20,24,25],[28,28,28,28,28,28,28,27,27,27,27,26,26,25,26,24,25,26,25,25,26,25,25,25,26,26,25,26,26,25,25,26,25,26,25,26,25,26,25,26,25,26,25,25,24,24,22,22,22,22,22,20,20,20,18,18,18,16,16,16,13,11,9,6,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,1,1,1,2,1,1,2,2,3,3,2,2,3,3,2,2,3,2,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,2,2,3,3,2,2,3,2,2,2,3,2,2,3,4,5,6,6,7,8,9,9,10,11,11,14,14,15,17,18,16,15,17,18,17,20,17,21,20,20,23,22,21,21,23,21,23,22,21,22,22,22,22,20,21,22,22,22,23,21,21,22,23,21,20,22,23],[28,28,28,28,28,28,28,28,27,27,27,27,27,25,26,25,26,27,26,27,27,25,26,27,25,26,27,26,27,26,25,26,27,27,27,27,26,27,27,27,26,26,26,26,25,25,24,23,24,23,22,22,22,20,18,20,19,17,17,17,13,11,8,6,5,4,3,3,3,2,2,2,2,1,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,1,1,2,2,3,3,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,4,4,5,6,8,9,9,10,12,14,12,13,15,15,14,16,16,17,16,18,19,20,20,20,21,22,23,23,22,21,23,21,21,22,22,23,22,22,22,24,23,26,23,24,25,24,25,25,24,24,24,24,25,24,25,25,25,25,25,26,25,26,25,26,25,25,25,25,24,25,24,26,24,24,23,23,22,21,20,20,18,17,16,15,13,11,9,7,6,5,4,3,3,4,4,3,4,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,6,6,6,5,5,6,6,6,7,6,6,6,6,6,5,5,5,5,5,5,5,4,4,4,3,3,3,3,3,2,2,3,3,2,3,3,3,3,3,3,3,4,4,4,4,5,5,5,4,4,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,1,1,2,2,3,3,3,6,6,6,4,3,2,2,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,2,2,2,1,2,2,1,1,2,2,1,1,2,2,2,2,2,2,2,2,2,3,2,3,3,2,2,3,2,2,3,3,2,3,2,3,3,2,2,3,2,2,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,2,2,3,3,2,2,3,2,2,3,3,2,2,3,4,5,5,5,7,9,9,9,10,12,12,15,17,17,18,19,18,16,17,18,19,21,20,23,21,22,25,24,22,22,24,23,24,23,22,23,22,22,23,21,22,23,22,23,23,22,22,23,24,21,21,23,23],[28,27,28,28,28,28,28,27,28,27,27,27,27,26,26,26,26,27,26,26,27,27,26,27,27,27,27,27,28,26,26,27,26,27,27,27,26,27,27,27,27,27,26,26,26,26,24,23,23,23,23,21,21,21,19,21,19,18,17,17,14,11,8,6,5,4,3,3,3,2,2,2,2,1,2,2,2,2,2,2,1,1,1,1,1,1,1,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2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,3,3,4,4,4,4,3,3,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,3,2,2,3,3,2,2,2,3,3,2,2,3,3,2,2,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,3,2,2,3,4,5,6,6,7,9,9,8,10,12,13,16,17,16,19,19,19,17,17,19,20,21,20,24,21,22,25,24,23,23,24,23,23,24,24,23,21,23,24,21,21,24,23,23,24,23,23,23,24,23,20,23,23],[28,28,28,28,27,28,28,27,27,26,27,26,26,25,26,25,25,26,25,26,26,25,26,26,26,26,26,26,26,25,25,26,26,27,25,26,26,26,25,26,26,25,25,25,24,24,23,22,22,22,21,21,21,19,17,19,19,16,17,16,13,11,8,6,5,4,4,3,3,2,2,2,2,1,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,2,2,1,2,2,3,3,3,2,3,2,2,2,3,2,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,1,2,2,2,2,3,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1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,5,5,6,8,9,8,9,11,12,14,16,16,17,19,16,16,16,18,18,20,18,22,20,20,23,23,22,21,23,22,22,23,22,22,21,22,24,22,21,23,22,24,23,22,22,22,24,23,20,22,24],[28,28,28,28,28,28,28,27,27,27,27,27,26,25,26,25,26,26,25,25,26,25,25,25,25,26,26,26,27,25,25,26,26,26,26,26,26,26,26,26,26,25,25,25,25,24,24,22,22,22,21,21,22,20,18,19,18,16,17,16,13,11,9,6,5,4,3,3,3,2,2,2,2,1,2,2,2,2,2,2,1,1,2,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,2,2,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,1,1,2,2,2,2,2,2,3,3,2,2,3,2,2,2,3,2,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,1,2,2,2,3,3,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,4,4,4,6,7,8,9,11,13,15,12,13,16,16,15,16,17,18,18,18,20,21,20,20,22,22,22,22,21,21,22,20,20,22,21,22,22,22,22,23,23,26,23,24,24,24,25,24,24,24,24,24,24,25,25,25,25,25,25,26,25,26,25,25,25,24,25,24,24,25,24,25,23,23,23,23,22,21,19,19,18,17,16,15,13,11,9,7,6,5,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,5,5,5,5,5,5,6,6,6,5,5,6,5,5,5,5,4,4,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,4,4,4,4,4,4,4,3,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,1,2,1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,2,3,3,5,5,5,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,3,3,4,4,3,3,3,3,2,2,2,1,2,2,1,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,4,3,4,3,3,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,5,6,7,9,9,9,10,12,13,15,16,16,18,19,16,16,17,19,18,20,19,22,20,21,25,24,23,23,24,21,23,23,23,23,22,22,22,21,21,22,21,22,22,22,20,21,23,21,20,22,24],[27,28,28,28,28,28,27,27,28,27,27,27,27,27,26,27,26,27,27,27,27,27,27,27,27,27,27,27,27,26,27,28,27,28,28,28,28,27,28,27,27,26,27,27,26,25,24,23,24,23,22,22,22,21,20,21,19,18,17,16,13,12,9,6,5,4,3,3,3,2,2,2,1,1,1,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3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,3,3,4,3,3,3,4,4,3,4,3,3,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,3,2,2,3,3,2,2,2,3,3,2,2,3,3,2,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,3,2,3,2,3,3,3,3,3,4,4,4,4,4,4,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,4,4,3,4,3,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,3,2,2,2,3,3,4,5,5,7,8,8,8,9,11,12,14,16,16,19,18,19,16,17,18,18,20,19,22,22,21,23,24,22,23,23,23,24,23,23,24,22,22,22,21,23,23,24,22,23,23,21,23,23,22,20,22,23],[27,27,28,28,28,28,27,27,28,27,25,26,26,26,26,26,26,26,26,26,26,26,26,26,27,26,26,26,26,25,25,26,26,27,25,27,26,26,27,26,26,25,25,26,24,24,24,22,23,22,22,22,22,20,19,20,19,18,17,17,14,12,9,6,5,5,4,3,3,3,2,2,2,1,1,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,2,2,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,3,3,3,2,2,1,1,1,1,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,5,5,6,9,9,10,13,13,14,12,13,16,15,15,16,17,18,18,18,19,21,19,20,22,23,22,23,20,20,21,19,21,22,20,24,22,21,21,23,23,26,23,23,25,25,25,26,25,25,25,25,25,25,26,25,26,26,26,26,26,25,24,25,24,25,26,24,26,24,24,25,23,24,23,24,23,22,19,20,19,17,16,15,13,10,9,8,6,5,4,4,3,4,4,3,4,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,6,6,6,6,6,6,6,6,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,5,5,5,4,4,3,3,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,4,4,5,3,3,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,2,1,1,1,1,1,1,1,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,3,4,3,3,3,4,4,3,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,2,2,3,3,2,3,3,2,3,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,4,3,4,4,4,4,4,3,3,3,4,3,3,4,3,3,3,3,3,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,2,3,4,5,6,6,7,9,8,8,9,11,12,13,15,15,19,19,18,16,16,17,18,21,19,21,19,21,24,23,22,23,23,23,23,22,22,23,20,21,23,21,19,22,22,22,22,21,22,22,23,22,19,23,24],[28,28,28,28,27,28,27,27,27,26,27,26,26,26,26,26,26,27,26,26,27,26,26,26,27,26,26,27,26,26,25,26,26,27,25,26,25,26,26,26,26,25,25,25,25,24,23,22,22,22,21,21,21,20,18,21,19,17,18,18,15,12,10,7,6,5,4,3,3,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,3,3,2,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,3,3,3,2,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,2,2,2,3,3,3,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,3,3,3,3,3,3,4,4,5,5,5,6,8,10,10,12,13,15,13,15,16,16,16,17,17,18,18,18,20,21,20,21,22,22,23,23,22,20,22,21,21,22,21,24,22,22,22,25,24,26,24,24,25,26,26,25,25,25,25,25,25,25,25,25,25,26,25,26,25,26,25,25,24,24,25,24,25,25,25,25,24,23,23,24,23,21,20,19,18,16,16,15,13,11,9,8,6,5,4,4,3,4,4,3,3,3,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,7,6,6,6,5,5,5,5,6,6,6,6,6,6,6,6,5,5,5,5,4,5,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,3,2,2,3,3,3,3,4,4,4,4,4,4,4,4,3,3,2,2,2,2,1,1,1,1,1,1,2,2,1,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,4,4,5,4,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,3,3,4,4,3,3,4,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,2,3,2,2,3,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,4,3,4,4,4,3,3,3,3,3,4,3,3,4,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,4,5,6,6,7,9,9,9,10,12,12,15,16,15,17,18,16,16,17,18,17,21,18,20,20,21,24,24,23,21,23,22,22,22,22,23,21,21,23,20,21,22,22,23,23,22,21,21,23,21,19,22,23],[28,27,28,28,28,28,27,27,28,27,26,27,26,26,26,25,25,26,26,25,26,26,25,25,27,26,26,26,26,26,26,26,26,26,25,26,25,25,26,25,26,25,24,25,24,24,23,22,22,23,21,21,21,20,18,20,19,18,17,17,15,12,10,7,6,5,4,3,3,3,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,3,2,2,3,3,3,3,3,4,3,4,4,4,4,3,3,3,4,3,3,3,3,3,2,2,3,3,2,2,3,2,2,3,2,2,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,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3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,4,3,4,4,5,5,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,4,4,4,4,4,4,5,5,4,4,4,5,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,4,5,6,6,8,9,9,10,10,14,13,15,17,18,19,20,18,17,19,19,19,22,20,22,21,22,24,23,23,23,23,22,24,23,22,23,22,22,22,20,22,22,22,22,22,22,20,22,23,20,21,23,23],[28,28,28,28,28,28,28,28,28,27,26,26,27,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,26,26,27,28,28,27,27,27,27,27,27,27,27,26,27,26,26,24,24,25,24,22,22,22,20,20,21,20,19,18,19,16,13,10,8,6,5,4,4,3,3,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,5,4,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,1,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,3,3,3,3,2,2,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,3,3,3,4,4,3,4,4,4,4,5,6,8,9,11,11,13,15,15,15,15,16,17,17,18,17,18,19,20,21,22,21,22,23,23,23,23,22,22,23,21,21,23,22,24,21,23,23,26,25,27,25,25,26,26,26,25,25,26,26,26,26,25,26,26,26,25,26,26,26,26,26,26,26,25,26,26,26,26,26,26,24,24,24,24,23,22,20,20,19,17,15,14,12,11,10,8,7,6,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,7,7,7,8,7,7,6,6,6,6,6,7,7,8,7,7,7,7,7,7,6,6,6,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,4,4,3,3,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,5,5,5,4,3,3,2,2,3,2,2,2,3,3,3,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,3,3,3,3,3,4,4,4,4,4,4,5,5,4,4,4,4,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,4,3,3,3,4,3,4,3,4,4,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,3,4,4,4,5,4,5,5,4,5,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,6,6,8,9,9,9,10,12,13,15,16,17,19,19,19,17,17,19,19,21,19,23,21,21,24,24,22,23,23,23,24,23,23,24,22,23,24,21,21,23,22,23,23,21,22,22,24,22,20,23,23],[28,27,28,28,28,28,28,27,28,27,26,26,26,26,26,26,26,27,26,27,27,26,27,27,26,26,27,26,27,26,25,26,27,28,26,26,26,26,27,26,26,25,25,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4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,4,4,4,5,4,5,5,5,4,4,4,5,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,5,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,3,4,4,4,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,4,5,7,7,8,10,10,10,11,13,13,15,16,16,19,19,18,17,17,19,18,22,19,21,21,21,24,23,23,23,23,23,23,23,23,24,22,23,24,22,22,23,22,23,23,22,22,22,24,23,21,23,23],[28,28,28,28,28,28,28,28,28,27,26,26,27,26,26,26,26,27,26,27,27,27,27,27,27,27,27,27,27,26,26,27,27,27,26,26,26,26,27,27,27,26,26,26,26,26,25,24,24,24,22,22,23,22,20,22,20,20,20,19,17,14,12,9,8,7,5,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,4,4,3,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,4,3,4,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,2,2,3,3,3,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2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,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,6,7,7,9,10,10,10,10,13,13,16,17,17,19,17,17,17,18,19,19,22,20,20,20,20,23,23,23,21,22,22,23,23,22,25,22,22,24,22,23,22,23,23,22,21,21,22,24,21,20,22,21],[28,28,28,28,28,29,28,28,28,27,27,27,27,26,26,26,26,27,26,26,27,26,26,26,26,27,27,27,27,26,26,27,27,27,26,26,26,26,27,26,27,26,26,26,26,25,25,24,24,24,21,22,23,20,19,21,21,19,18,19,16,13,11,8,7,6,5,4,4,3,3,2,2,2,2,2,3,3,3,3,2,2,3,2,2,2,3,3,3,3,4,3,3,3,4,3,3,4,4,4,4,4,4,4,4,5,5,4,5,5,6,5,4,4,4,5,4,4,4,4,4,3,3,4,4,3,3,4,3,3,3,3,3,3,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,2,2,2,2,2,2,3,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,2,3,3,3,3,2,2,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,3,3,3,4,4,4,4,4,4,5,6,7,7,10,11,12,12,15,16,14,15,17,18,16,17,18,19,19,20,20,21,21,22,23,23,23,24,22,22,23,21,21,23,22,24,22,25,24,25,25,26,25,25,26,26,26,26,26,26,26,26,26,26,26,26,27,25,25,26,26,26,26,26,26,25,26,26,26,25,26,25,24,23,23,24,22,22,20,20,18,17,16,15,13,11,10,9,7,6,5,5,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,7,7,8,7,8,8,8,8,8,7,7,7,6,7,6,7,7,8,8,7,8,8,7,7,6,6,6,5,5,5,5,4,4,4,3,3,3,3,2,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,6,6,6,5,4,3,3,3,3,2,2,1,1,1,2,1,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,3,2,2,3,3,3,3,4,4,4,5,5,6,6,5,4,3,3,3,3,3,3,3,3,4,4,4,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,3,4,4,3,3,4,4,4,3,3,3,4,4,4,3,3,3,4,4,4,4,4,5,5,5,5,5,5,6,6,5,5,5,5,5,5,5,4,4,4,3,3,2,3,3,2,2,3,2,2,2,3,2,2,3,3,2,3,3,3,3,3,4,3,3,3,4,3,3,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,5,5,5,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,4,4,5,5,5,5,4,5,5,5,5,5,5,6,5,5,5,5,5,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,6,7,7,9,10,10,11,10,13,14,16,18,18,20,20,17,17,18,19,19,21,20,20,22,21,24,23,23,22,22,21,24,23,21,24,22,22,23,22,22,23,22,22,23,23,21,23,24,21,21,22,21],[27,28,28,28,28,28,28,28,28,27,26,26,27,26,26,27,26,27,26,27,27,27,27,28,27,27,27,27,27,27,26,27,28,28,27,28,27,27,27,27,28,27,26,27,26,26,25,24,25,24,23,24,23,21,20,22,20,19,19,18,16,14,11,9,8,6,5,4,4,3,3,3,2,2,3,3,3,3,3,3,4,3,3,3,3,4,4,4,5,5,5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,3,4,4,4,4,3,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,3,4,4,4,4,4,5,4,5,5,4,4,4,4,5,5,5,5,5,6,6,6,6,6,7,6,6,6,6,6,6,5,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,5,5,4,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,5,5,6,7,6,6,5,6,6,5,6,5,5,6,5,4,5,5,4,4,4,4,4,5,5,5,5,5,5,5,6,7,6,6,7,7,6,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,5,4,3,4,4,3,3,4,5,6,7,7,8,9,10,10,10,12,13,14,16,17,19,19,18,17,19,19,17,21,19,20,21,22,24,25,23,23,22,24,24,24,23,24,21,22,23,22,22,24,23,23,24,22,22,22,24,22,19,22,20],[28,28,29,29,29,29,29,29,29,28,27,27,28,27,28,27,27,28,27,28,28,27,28,28,27,28,29,28,28,28,27,28,29,29,28,29,28,28,29,28,29,28,28,28,28,28,27,26,27,25,25,25,24,23,22,23,22,21,20,20,18,16,12,10,8,6,5,4,4,3,3,2,2,2,2,3,3,3,4,3,3,3,4,3,3,4,4,5,5,5,5,5,5,5,5,5,5,6,5,6,6,6,6,6,7,7,6,6,7,7,8,7,6,6,6,6,6,6,5,5,6,5,5,6,6,5,5,6,5,5,5,6,5,5,6,6,6,6,6,6,5,5,5,5,5,5,5,4,4,5,4,4,4,4,5,5,6,6,5,5,5,5,4,5,4,4,4,4,4,3,4,4,4,4,4,4,3,4,4,4,4,3,4,4,4,4,4,5,4,4,5,5,5,5,5,6,6,6,6,6,6,7,7,6,6,7,7,6,6,5,6,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,4,5,5,4,4,4,4,4,3,3,4,3,3,3,3,2,3,3,3,3,3,4,4,4,5,4,4,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,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11,11,10,11,13,15,16,17,19,21,20,20,19,20,21,20,23,21,23,23,23,25,24,24,24,24,24,25,25,24,25,24,24,25,22,24,25,25,24,25,23,25,23,26,24,21,24,23],[28,28,28,28,28,29,28,28,28,28,27,27,27,27,27,27,27,28,27,28,28,27,28,28,28,28,28,28,28,28,27,28,29,29,28,28,28,28,28,28,28,28,28,28,27,27,26,26,25,25,25,24,24,23,21,23,21,21,19,19,16,15,12,9,7,6,4,4,4,3,3,2,2,1,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,4,5,5,4,5,5,5,5,5,6,5,6,6,6,6,6,7,7,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,6,6,6,5,5,5,5,4,5,5,4,4,5,4,4,4,4,3,3,4,5,4,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,4,4,3,3,4,3,3,4,4,3,4,4,4,4,4,5,6,5,5,5,6,6,5,6,7,6,7,6,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,4,5,5,4,4,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,1,2,2,2,1,1,0,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,3,3,3,3,4,3,4,4,4,5,5,6,8,10,12,14,14,16,17,16,17,18,17,17,18,18,19,20,21,22,23,22,24,24,24,24,25,23,23,24,23,22,24,23,24,23,23,23,26,25,26,26,26,27,27,27,28,27,27,27,27,27,27,27,27,27,27,28,28,27,28,26,27,26,27,27,26,28,26,26,27,24,25,25,24,24,24,20,22,21,19,18,17,15,13,12,9,7,6,5,4,4,4,4,4,4,4,4,5,5,5,6,6,6,6,7,7,7,8,8,8,9,9,9,9,8,8,7,7,6,6,6,7,7,8,9,8,8,8,7,7,6,6,6,6,5,5,5,4,4,4,4,3,3,3,2,3,3,3,3,4,4,4,4,4,4,5,5,5,6,6,6,7,7,6,6,5,4,4,3,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,5,5,6,6,7,7,6,5,4,4,4,4,4,4,4,5,5,5,6,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,6,6,6,6,6,6,6,5,6,6,6,5,5,4,4,3,3,3,2,3,3,2,2,3,2,2,3,3,2,3,3,3,3,3,4,3,3,4,4,4,4,4,5,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,5,5,5,5,5,6,6,6,5,5,6,5,5,5,5,5,5,4,4,4,4,4,4,3,4,4,5,5,5,5,5,5,5,6,5,5,6,6,5,6,6,6,5,5,5,5,4,4,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,6,7,8,8,10,11,10,10,11,14,14,15,17,18,21,21,20,17,19,19,20,22,20,21,23,22,24,23,24,24,23,24,25,24,24,25,24,23,24,22,22,24,24,23,24,24,22,24,24,23,22,24,22],[28,28,28,28,28,29,28,28,28,27,27,26,27,27,27,27,27,28,27,28,27,27,27,28,27,28,27,27,28,27,26,28,28,28,27,28,27,27,28,28,28,27,26,27,27,26,25,25,25,25,23,24,23,22,21,22,20,20,19,18,16,14,11,9,7,6,5,4,4,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,6,7,7,7,7,6,6,5,6,6,6,6,6,6,5,5,5,5,6,5,5,5,6,5,5,5,6,6,6,6,5,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6,5,6,6,6,5,5,4,4,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,5,5,5,5,5,6,6,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,5,6,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,6,7,8,8,9,11,11,10,11,13,13,14,16,16,19,19,18,17,19,19,19,22,21,21,21,21,23,23,23,22,23,22,23,24,23,25,22,23,23,21,22,23,23,23,23,21,23,23,24,22,21,23,22],[28,29,28,28,28,28,29,28,28,27,27,27,28,27,27,27,27,27,27,27,28,27,28,28,27,28,28,28,28,27,27,28,28,28,27,28,27,27,28,27,27,27,26,27,27,27,25,25,25,24,23,24,24,22,21,23,21,20,20,20,17,15,12,9,8,6,5,4,4,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,4,5,5,5,5,5,5,5,5,6,5,5,6,6,6,6,6,6,7,7,6,6,5,5,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,6,5,5,6,5,5,5,5,5,5,4,4,5,4,4,4,4,5,4,5,5,5,5,4,4,4,4,4,3,4,4,4,3,4,4,4,3,4,4,3,4,4,4,4,3,4,4,4,4,4,5,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,4,5,5,5,4,5,4,4,3,4,4,3,3,3,3,3,3,3,3,2,3,3,4,4,4,3,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,4,4,5,5,4,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4,5,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,2,3,4,3,3,3,3,3,4,3,3,4,4,5,6,7,8,10,12,11,14,16,17,15,16,18,18,17,20,20,19,20,20,21,22,21,23,23,24,22,24,22,22,23,22,21,23,22,24,23,24,24,26,25,27,25,26,27,27,27,27,26,26,27,26,27,26,26,26,26,26,26,25,26,26,25,26,24,25,25,25,26,25,24,26,23,24,24,24,23,22,21,20,20,19,15,15,14,12,11,8,6,6,5,4,4,4,4,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,8,7,8,8,8,8,7,7,6,6,6,5,6,6,6,7,8,7,7,7,7,6,5,6,6,5,5,5,4,4,4,4,3,3,3,2,2,2,3,2,2,3,3,3,3,3,3,3,4,4,5,5,5,6,6,5,5,4,4,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,6,7,7,6,5,5,4,4,4,5,5,4,5,5,5,6,6,6,6,6,6,5,5,5,5,5,5,4,4,4,4,4,3,4,4,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,4,3,3,3,4,3,4,4,4,3,4,4,4,4,4,4,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,6,5,6,6,6,6,5,5,5,5,5,5,4,4,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,4,5,4,4,4,4,3,4,4,4,5,5,5,5,5,5,5,5,5,6,6,5,5,5,6,5,4,5,4,4,4,4,4,3,4,4,3,3,4,3,3,3,4,3,3,3,4,5,6,7,7,9,10,10,9,10,12,13,14,16,16,18,19,17,16,18,18,18,20,18,19,22,20,22,23,24,23,23,23,24,24,24,24,22,23,24,22,23,23,22,23,24,21,22,23,24,21,20,23,21],[29,28,28,29,29,29,28,28,29,27,27,28,27,27,27,27,27,27,27,27,27,26,27,27,27,26,28,28,27,28,27,27,28,29,27,28,28,28,28,28,28,27,27,27,27,26,25,24,25,25,24,24,23,22,20,22,20,19,19,19,16,14,11,9,7,6,5,4,4,3,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,4,5,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,7,6,5,5,4,5,5,5,5,5,5,4,4,5,5,4,5,5,5,4,5,5,4,5,6,6,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,3,4,4,4,4,5,5,4,5,4,4,4,4,4,3,3,4,3,3,3,4,3,3,4,3,3,3,4,4,4,3,3,4,3,3,4,4,4,4,4,4,4,4,5,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,2,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,5,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,5,5,6,8,10,12,11,13,15,16,15,15,17,18,16,19,19,19,19,21,21,23,22,22,23,24,23,24,22,22,24,22,21,23,24,23,23,23,25,25,25,26,27,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,26,27,26,26,27,26,27,26,25,26,25,24,24,24,24,22,21,21,20,18,16,15,14,12,11,8,6,5,4,4,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,6,6,7,6,7,7,7,8,7,6,6,5,5,5,5,6,5,7,7,6,6,6,5,5,5,5,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,4,4,4,5,5,5,5,5,5,4,3,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,4,4,5,5,6,7,7,6,5,4,4,4,4,5,4,4,5,5,5,6,6,6,6,6,6,5,5,5,5,5,5,4,4,4,4,4,3,4,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,3,3,4,4,4,4,5,5,5,5,6,6,6,6,6,6,5,6,6,5,5,5,4,4,3,3,3,3,3,3,2,2,3,2,2,3,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,4,5,5,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,6,7,7,8,9,9,9,10,12,13,14,16,17,20,20,18,17,18,19,19,21,20,20,21,21,24,22,23,22,23,22,25,23,23,22,22,22,23,20,22,24,22,22,23,23,21,23,24,21,21,23,21],[28,28,28,28,28,29,29,28,28,28,27,27,27,27,27,27,27,28,28,28,28,28,27,28,27,27,28,28,28,28,27,28,28,29,28,28,28,28,28,28,28,28,27,27,27,26,26,25,25,25,24,24,24,23,22,23,20,20,19,19,16,14,11,9,7,5,4,4,4,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,4,5,5,5,4,5,5,6,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,3,4,4,4,4,5,5,5,5,4,4,4,4,4,3,4,4,3,3,4,4,3,3,4,4,3,4,4,4,4,3,3,4,3,3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,4,4,4,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,5,5,5,4,5,5,5,4,4,4,4,4,4,4,4,3,4,3,3,3,3,4,4,4,4,4,4,4,5,5,4,5,5,4,5,5,5,5,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,6,7,7,8,10,9,9,10,12,12,14,16,17,19,20,19,16,18,19,19,21,19,22,21,21,24,24,23,23,24,22,24,24,23,23,22,23,23,20,21,23,23,22,23,22,22,22,23,22,20,23,20],[28,28,28,27,27,28,28,27,28,27,26,26,26,26,26,27,26,26,27,26,27,27,26,27,27,27,27,27,27,26,27,27,27,28,27,27,26,27,27,27,27,27,26,27,26,25,25,24,24,23,23,23,23,22,21,22,20,20,19,18,15,13,11,9,7,6,4,4,4,3,3,2,2,2,2,3,3,3,3,3,3,3,4,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,6,6,6,6,6,6,6,6,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,4,5,5,4,5,5,4,4,4,5,5,5,5,5,5,4,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,5,5,4,4,5,5,6,6,5,6,6,6,6,6,6,6,6,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,5,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,4,3,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,5,5,6,7,10,11,10,13,14,15,13,14,16,16,15,17,17,17,19,19,20,20,20,22,21,22,21,21,21,19,21,20,19,21,20,22,21,22,23,24,24,25,24,25,24,25,25,26,25,25,25,25,25,25,25,25,25,25,25,25,25,26,24,24,24,25,24,24,26,23,23,25,24,23,23,23,23,21,21,20,19,18,15,17,14,14,12,7,6,5,4,4,3,3,3,3,3,4,3,4,4,4,5,5,5,5,6,6,6,6,7,6,7,7,8,8,7,6,6,5,5,5,5,6,6,6,7,6,7,7,6,6,5,5,5,5,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,3,3,2,3,3,3,3,4,4,4,5,5,5,5,5,4,4,3,3,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,3,3,4,4,4,5,6,7,7,6,5,4,4,4,4,4,4,4,5,5,6,6,6,6,7,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,3,3,4,3,3,3,4,3,3,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,5,6,6,5,5,5,4,4,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,5,5,5,6,5,4,5,4,4,4,4,4,3,4,4,3,3,4,3,3,3,4,3,3,3,4,5,6,7,7,8,9,9,9,9,11,11,13,14,14,18,18,17,16,17,18,17,20,18,19,21,21,22,23,23,22,22,22,23,23,22,24,21,23,23,21,21,22,22,23,23,20,20,23,23,20,19,22,20],[28,28,28,28,28,28,28,28,28,27,26,26,27,26,26,26,26,27,26,26,27,26,26,27,26,27,27,27,27,27,26,27,27,28,26,27,27,27,28,27,27,27,26,26,26,25,25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,5,5,4,4,4,4,4,4,4,3,4,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,1,2,1,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,4,4,4,3,3,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,5,5,5,5,5,5,6,6,5,5,5,5,5,5,4,4,4,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,3,2,2,2,3,2,3,3,3,3,3,3,3,3,3,4,4,4,4,3,4,4,4,3,4,4,3,3,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,5,5,4,4,4,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,4,5,6,6,7,9,8,8,9,10,11,12,15,15,18,18,16,15,17,17,16,18,18,18,20,19,21,23,23,21,21,22,23,22,22,23,21,21,22,20,20,22,22,21,22,21,20,20,23,19,17,20,19],[29,28,28,29,29,29,28,28,29,27,28,28,28,27,27,27,26,28,27,27,27,26,27,28,27,27,28,28,27,27,26,27,28,28,27,28,27,27,28,27,28,27,27,27,26,26,25,24,25,24,24,24,24,22,21,22,21,19,19,18,15,13,10,8,6,5,4,4,4,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,4,4,5,5,5,4,5,5,5,5,5,6,6,5,6,6,5,5,5,4,5,5,5,4,5,5,4,4,5,5,4,4,5,4,4,5,4,4,4,5,6,5,5,5,5,5,4,5,4,4,4,4,4,3,4,4,3,3,3,4,4,4,4,4,5,4,4,4,4,4,3,3,4,3,3,3,4,3,3,4,3,3,3,4,3,3,3,3,4,3,3,3,4,3,3,4,4,3,4,4,5,5,5,5,5,5,5,5,6,5,6,5,5,5,5,5,4,4,4,4,3,3,4,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,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3,3,4,3,4,4,4,4,5,4,4,5,5,4,5,4,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,6,6,7,8,8,8,9,11,11,13,15,16,19,20,18,15,17,17,17,20,19,19,20,20,24,22,23,22,22,20,24,23,23,22,21,22,21,19,21,23,21,20,21,20,20,22,22,19,19,22,19],[28,28,28,28,28,28,28,28,28,27,26,26,27,26,26,27,26,27,27,27,27,27,27,28,27,27,28,27,28,26,26,27,28,28,27,28,27,28,28,27,28,27,26,27,27,26,26,25,25,24,23,23,23,22,22,21,20,20,19,18,15,14,10,8,7,5,4,4,4,3,3,2,2,2,2,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,6,5,5,6,6,6,6,6,7,6,6,7,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,5,6,5,5,5,5,4,4,5,5,4,4,4,4,4,4,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,6,6,5,5,6,6,6,6,6,6,6,6,5,5,5,5,5,4,5,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,3,2,2,2,3,3,3,3,3,4,4,4,5,5,7,8,9,10,13,15,15,13,15,17,16,16,18,18,17,18,19,20,21,21,22,21,23,22,23,20,20,22,20,20,22,22,22,21,23,24,25,25,25,25,26,27,27,27,27,27,26,27,27,27,27,27,27,27,27,27,27,26,27,26,26,26,26,26,25,27,25,24,26,24,23,24,24,22,22,21,21,20,18,15,17,13,12,11,7,6,5,4,4,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,6,6,6,6,7,7,7,7,6,6,5,5,5,4,5,5,5,6,7,5,6,6,5,5,5,4,4,4,4,4,3,3,3,3,3,2,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,5,5,6,5,5,4,3,3,3,3,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,5,6,7,7,6,5,4,4,4,4,4,4,4,5,5,6,6,6,6,7,7,6,6,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,7,6,6,6,6,5,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,3,2,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,4,4,5,5,4,4,4,4,4,4,3,4,3,3,3,3,3,3,4,4,3,4,3,4,4,5,4,4,5,5,4,5,4,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,6,6,6,8,9,8,9,9,11,10,12,14,14,18,18,18,16,17,17,17,19,18,19,20,20,22,22,22,22,22,22,23,22,22,23,21,22,22,20,21,22,22,22,22,21,21,22,21,20,18,22,19],[28,28,27,27,27,28,28,27,27,26,26,25,26,25,26,26,26,26,26,26,26,26,26,27,26,26,27,27,27,26,25,26,26,27,26,27,26,27,27,27,27,26,25,26,26,26,25,24,24,23,23,23,22,22,21,21,19,20,19,18,16,14,11,8,8,6,5,4,4,3,3,3,2,2,3,3,3,3,4,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,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4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,4,5,5,4,5,5,5,5,6,6,6,6,6,7,6,7,6,6,6,6,6,5,5,5,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,5,5,4,4,4,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,4,3,3,3,4,3,3,4,4,4,4,5,5,5,6,6,5,5,6,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,6,6,5,5,5,5,5,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,5,6,6,6,8,9,8,8,9,9,11,12,14,15,18,17,15,15,17,17,16,18,17,18,20,20,22,22,22,21,23,22,22,24,22,22,21,23,22,20,20,22,22,22,22,20,20,20,22,19,18,20,20],[28,28,28,28,28,28,28,28,28,26,26,26,27,26,27,26,26,27,26,27,26,25,26,27,26,26,27,27,27,27,26,27,27,28,26,27,27,27,28,27,27,26,26,26,26,25,24,23,25,23,23,24,23,22,20,22,20,19,19,18,15,13,11,8,7,6,5,4,4,3,3,3,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,7,5,5,5,5,5,5,5,5,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,5,4,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,4,5,4,4,4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,10,10,12,14,15,18,19,15,14,16,18,14,18,17,17,19,19,21,21,22,21,22,20,23,22,21,22,21,21,21,18,20,21,21,18,21,19,19,20,21,18,16,19,18],[29,29,29,29,29,29,28,28,29,27,28,27,28,27,27,27,27,28,27,27,28,27,27,28,28,27,28,28,28,28,27,28,28,29,27,28,28,28,28,28,28,27,27,27,27,26,26,25,25,24,24,24,24,23,22,21,20,20,19,18,16,13,11,9,7,6,5,4,5,4,3,3,3,2,3,3,3,3,4,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,6,6,7,7,6,6,6,5,6,6,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,5,5,5,6,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,5,5,5,6,6,5,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,4,4,5,4,3,4,4,4,3,4,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,4,4,4,5,4,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,5,4,4,4,5,4,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,1,2,2,2,3,3,3,3,3,3,4,4,4,5,5,7,8,9,10,13,14,16,14,15,17,17,16,19,19,18,19,20,21,21,21,22,23,24,22,24,21,21,23,20,21,22,23,23,22,23,25,26,26,26,25,27,28,28,28,28,28,28,28,28,28,28,28,28,27,28,27,28,27,28,27,27,25,26,28,26,28,26,26,27,25,24,25,25,25,24,23,23,22,21,17,18,16,14,12,7,6,5,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,6,6,6,6,5,5,4,4,4,4,5,5,5,5,4,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,1,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,5,5,5,5,5,4,4,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,6,6,7,7,6,5,4,5,4,5,5,4,5,5,6,6,6,6,6,7,6,7,6,6,6,6,5,5,5,5,5,5,4,4,4,4,4,3,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,3,4,3,3,4,4,4,4,4,4,5,4,4,5,4,4,4,4,5,4,4,5,5,5,5,4,5,5,5,5,5,5,5,6,6,6,7,6,7,6,7,7,6,6,6,6,5,5,5,4,4,4,4,3,4,4,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,4,3,3,3,4,3,3,4,4,4,4,4,4,4,5,4,4,4,5,5,4,4,4,4,4,4,4,4,3,4,3,2,3,3,3,3,3,4,4,4,4,4,4,4,5,5,4,5,4,5,5,4,4,4,3,3,4,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,4,5,6,6,7,8,8,8,8,9,11,12,14,15,17,18,16,15,18,19,17,20,19,20,20,20,23,22,23,22,22,21,23,22,21,22,21,22,22,20,20,21,21,20,21,19,21,21,22,20,18,20,18],[28,28,27,28,28,28,28,27,28,26,25,26,27,26,26,26,26,26,26,26,26,26,26,27,26,26,26,27,26,26,26,27,27,27,26,27,26,26,27,26,27,26,26,26,26,25,25,24,25,23,24,23,22,22,20,20,19,19,18,17,15,13,11,8,7,6,5,5,5,4,3,3,3,3,3,4,4,4,4,4,4,4,5,4,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,7,7,8,8,7,7,7,7,7,6,6,6,6,6,6,6,7,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,6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,7,6,6,5,5,4,5,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,4,5,5,5,4,4,5,4,4,5,4,4,4,3,3,3,4,3,3,4,4,3,4,4,3,3,4,4,4,5,5,5,5,6,6,5,5,6,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,4,3,4,4,4,5,5,5,5,6,6,5,5,5,6,5,4,5,5,4,4,4,4,3,4,4,3,3,4,3,3,3,4,3,3,3,4,5,6,7,7,8,9,9,9,9,10,11,12,12,13,16,17,16,14,17,17,15,19,16,19,20,20,22,22,22,21,21,21,23,24,22,23,20,22,22,19,20,21,21,20,21,18,20,20,21,19,17,19,19],[28,28,27,27,28,27,27,28,26,26,25,25,27,24,26,25,26,25,25,26,26,25,26,27,26,26,26,26,26,26,25,26,27,27,26,26,26,26,26,26,26,26,25,25,25,25,24,23,24,23,22,21,21,21,21,20,19,19,18,17,15,14,11,9,8,7,6,5,5,4,4,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,7,6,6,7,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,7,7,6,6,7,7,7,6,7,7,6,6,7,7,6,7,7,6,6,7,6,6,7,7,7,7,7,7,7,7,6,7,7,6,6,6,6,6,6,6,5,6,5,6,6,6,6,6,6,6,6,6,5,6,5,5,6,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,6,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,7,7,7,6,7,6,6,6,6,6,6,6,6,5,5,5,5,5,5,4,4,4,4,4,3,4,4,4,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,5,6,6,5,4,4,4,4,4,5,5,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,2,3,3,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,2,2,2,3,3,3,4,4,3,4,4,4,4,4,5,6,6,8,10,10,11,13,13,14,14,14,16,15,15,17,17,16,17,18,18,19,19,20,20,21,20,22,20,18,20,19,18,20,20,21,20,21,22,24,24,26,23,24,24,24,24,25,24,24,25,24,24,25,25,25,24,24,24,23,24,24,23,23,22,23,23,23,24,23,22,24,22,22,22,22,21,20,20,19,18,18,14,15,13,12,12,8,6,6,5,4,4,4,3,3,3,3,3,4,4,4,4,5,5,5,5,6,7,6,6,7,7,7,8,7,7,6,5,5,5,5,4,5,6,6,7,7,7,7,6,6,6,5,5,5,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,4,4,5,5,5,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,6,6,7,8,8,8,7,6,6,6,6,6,6,6,6,7,7,7,8,7,8,8,9,9,8,7,7,7,7,7,6,6,6,6,6,5,6,6,5,5,5,5,4,4,4,4,4,3,4,3,3,3,3,3,2,2,2,2,2,2,2,3,2,3,3,3,3,4,4,4,4,4,5,5,5,4,5,5,5,5,5,5,5,5,5,6,6,5,6,6,6,5,6,5,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,8,8,8,8,8,7,7,8,7,7,7,6,6,5,5,5,5,4,5,4,4,4,5,4,3,4,4,3,4,4,3,3,4,4,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,4,4,4,4,4,4,4,5,4,4,4,5,4,4,5,5,5,5,6,6,6,7,7,6,6,6,6,6,6,6,5,5,5,5,5,4,4,4,3,3,4,4,4,4,5,5,5,5,6,5,5,6,6,5,6,6,6,5,5,5,4,4,4,4,4,3,4,4,3,4,4,3,3,3,3,3,3,3,4,5,6,7,7,8,10,9,9,9,10,12,13,15,14,17,17,16,15,17,17,16,18,16,20,21,19,22,22,22,22,21,22,22,23,23,22,20,23,21,19,19,20,22,19,21,18,21,20,21,18,17,19,19],[28,29,28,28,28,28,29,28,28,27,26,26,27,26,27,26,27,27,26,27,26,25,27,27,26,27,27,27,28,27,26,27,28,29,27,28,28,28,28,27,28,27,26,27,27,26,26,24,26,25,24,23,24,22,22,21,21,20,19,19,16,14,12,9,8,7,6,6,5,4,4,4,3,3,4,4,4,4,4,4,4,4,5,4,5,5,5,6,6,6,6,6,6,6,7,6,6,6,7,7,6,7,7,7,7,8,8,8,7,9,9,8,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,6,7,7,7,6,7,6,6,6,6,6,5,6,6,5,5,5,6,6,6,7,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,4,5,5,4,5,5,5,5,4,4,5,5,4,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,8,7,7,7,6,7,6,6,6,6,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,3,4,4,4,5,5,5,5,5,5,4,4,4,4,4,3,4,4,3,3,4,4,4,4,4,5,5,5,5,4,4,4,4,3,4,4,4,4,5,5,5,5,5,5,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,2,2,3,3,3,4,4,4,3,4,4,4,4,5,6,6,8,9,10,11,14,14,16,13,14,17,16,15,17,18,17,17,19,20,20,21,21,22,22,22,24,20,20,22,20,19,20,22,22,20,23,23,25,25,27,25,26,27,27,27,27,27,27,27,27,27,26,27,27,26,27,26,26,26,27,26,26,24,25,25,25,26,25,26,26,23,23,23,23,22,22,21,20,19,19,16,15,14,13,12,8,7,6,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,6,5,6,6,6,7,6,6,6,6,6,5,5,4,4,5,6,6,6,5,6,5,5,5,4,4,4,4,4,4,3,3,3,3,2,2,2,2,1,2,2,2,2,2,2,2,2,3,2,3,3,3,4,4,6,6,5,6,5,4,4,3,3,3,2,3,2,2,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,6,6,6,8,8,8,7,7,6,6,5,6,6,6,6,6,7,7,8,7,8,9,8,8,7,7,7,7,7,6,6,6,5,6,5,5,5,5,5,4,5,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,5,6,6,6,6,6,6,6,7,8,7,8,8,8,8,8,7,7,8,7,7,6,6,6,5,5,5,4,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,4,3,4,4,4,4,5,5,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,4,4,4,4,3,4,4,4,3,4,4,4,4,4,5,4,5,5,5,5,6,5,5,5,6,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,4,4,5,5,5,5,5,6,5,5,5,5,5,5,4,5,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,4,5,6,7,7,8,9,9,9,9,10,11,13,13,15,18,18,14,14,17,17,15,18,18,17,20,19,21,20,21,21,21,20,22,22,21,21,20,22,21,19,19,21,19,20,21,20,20,20,22,20,16,19,19],[27,27,26,26,26,27,27,27,26,26,24,26,26,26,26,26,25,24,25,25,25,25,25,26,26,25,26,26,26,26,25,25,26,27,26,27,26,27,27,27,27,26,25,26,27,26,25,25,24,23,23,23,22,22,21,21,19,20,19,18,16,15,12,9,10,8,7,7,7,6,6,5,5,4,5,6,6,6,6,6,6,6,7,6,7,7,7,8,8,8,8,8,8,9,8,9,8,8,9,9,9,9,9,9,9,9,10,9,9,10,10,9,8,9,8,8,8,8,8,8,8,8,7,8,8,8,7,8,8,7,8,8,7,8,8,9,9,9,9,8,9,8,8,8,7,8,8,7,7,8,7,6,8,7,7,8,8,8,8,8,8,7,7,7,7,7,7,7,7,6,6,7,7,6,7,7,6,6,6,6,6,6,5,6,6,6,6,7,6,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6,7,7,6,6,5,4,5,6,4,4,6,5,4,5,6,4,4,6,6,5,6,6,6,6,7,7,5,6,7,7,6,6,7,6,5,6,5,5,5,5,4,3,4,3,4,4,4,5,5,5,5,6,6,6,6,6,6,6,7,7,6,5,6,5,5,5,5,4,4,5,5,4,4,4,4,4,4,4,3,3,4,4,5,6,7,7,8,9,9,9,9,10,11,12,14,15,18,18,16,13,17,18,15,18,16,19,20,20,22,22,20,20,22,23,22,21,22,20,20,21,20,18,18,21,21,18,20,18,18,20,21,18,16,18,17],[29,29,29,29,29,29,29,28,29,28,27,27,28,27,27,27,27,27,27,27,27,26,27,27,27,27,28,28,28,27,27,28,28,29,28,29,28,29,29,28,29,28,27,28,28,28,27,26,26,26,25,25,25,23,22,23,22,22,20,20,17,14,12,9,9,7,6,6,6,5,5,4,4,4,5,5,5,5,6,5,5,6,6,6,6,6,7,7,7,7,8,8,8,8,8,8,7,8,9,8,9,8,9,9,9,9,9,9,9,10,10,9,8,9,8,8,8,8,8,7,8,9,8,8,8,8,7,8,8,8,8,8,7,8,8,8,8,9,8,8,8,7,8,8,8,7,8,8,7,7,8,7,7,7,8,8,7,8,8,7,8,7,7,7,7,6,7,7,7,6,7,6,7,6,7,7,6,6,7,6,7,6,6,7,6,6,6,7,6,6,6,7,6,7,7,8,8,8,8,8,8,8,8,9,9,9,9,8,8,8,8,7,7,7,7,6,6,7,7,6,6,6,6,5,6,6,5,5,5,5,4,5,6,5,6,6,6,6,7,6,6,5,5,5,5,5,5,5,4,5,5,4,5,5,5,6,7,7,6,5,5,5,4,4,5,5,4,6,5,5,5,6,6,6,7,7,7,7,6,6,6,6,5,6,5,6,5,5,5,5,4,4,5,4,4,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,2,2,3,3,3,4,4,4,4,4,4,4,5,6,6,7,9,11,11,12,15,16,14,14,17,16,15,17,18,18,20,21,21,22,22,22,23,24,23,24,22,21,22,20,20,21,23,23,21,24,24,25,27,27,26,28,27,28,28,27,28,27,27,27,27,27,27,28,28,26,27,26,27,27,26,26,24,26,26,26,27,25,26,26,23,24,25,24,23,23,21,22,21,20,18,17,16,14,12,9,7,6,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,6,6,6,6,8,8,7,7,6,6,6,4,5,5,5,6,6,7,6,6,6,5,5,5,5,5,4,4,4,3,3,3,3,2,2,2,2,1,2,2,2,2,3,2,2,3,3,3,3,4,4,4,5,6,6,5,7,6,4,4,3,4,3,4,4,3,3,4,4,4,4,4,4,4,5,5,4,5,5,4,4,5,5,5,5,5,6,5,6,6,6,6,6,6,6,7,8,9,8,8,7,6,6,6,6,7,7,7,7,8,9,9,8,9,10,9,9,9,8,8,8,8,7,7,7,6,7,6,6,6,6,6,5,5,5,5,5,5,4,4,5,4,4,4,4,3,3,3,3,3,2,2,2,3,3,3,3,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,5,5,6,6,6,6,5,6,6,5,6,6,6,6,6,7,7,7,7,7,7,8,7,7,7,8,8,8,9,8,9,9,9,9,9,8,8,8,8,8,7,7,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,4,4,3,3,4,4,4,4,4,5,5,5,5,6,5,6,5,5,5,5,5,5,6,6,5,6,5,5,5,4,4,4,4,4,4,5,4,4,4,5,4,4,5,5,4,5,5,6,6,6,6,5,5,6,5,5,5,5,4,4,4,4,4,4,4,4,3,4,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,6,6,7,7,8,9,9,10,10,11,11,13,14,15,19,19,16,15,18,18,17,18,18,19,20,20,22,23,21,21,21,21,22,23,21,22,21,22,21,19,19,21,20,20,22,20,19,21,22,19,17,20,19],[27,27,26,27,27,27,27,26,27,25,25,25,26,25,25,25,25,25,26,25,25,26,25,25,26,25,26,27,26,26,25,26,26,27,26,26,26,26,27,26,27,26,26,26,26,26,25,24,24,23,23,23,23,22,21,21,20,19,19,17,15,14,11,9,8,7,6,6,6,5,4,4,4,4,5,5,5,5,6,6,6,7,7,6,7,7,8,8,9,9,9,9,9,9,9,9,9,9,10,10,9,10,10,10,10,10,11,10,10,11,11,9,9,9,9,9,9,8,8,8,8,8,8,9,9,9,9,10,9,9,9,9,9,9,10,10,10,10,10,10,10,9,10,9,9,9,9,8,8,9,8,8,8,8,8,9,9,9,8,9,8,7,7,7,7,6,7,8,7,6,7,7,7,6,8,7,7,7,7,8,7,7,7,7,8,7,8,8,8,8,8,8,8,8,8,9,10,9,9,10,10,10,10,10,10,10,10,9,10,10,10,9,8,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,5,5,5,6,5,6,6,6,6,7,6,5,6,6,6,5,6,6,5,5,6,6,5,6,6,6,7,7,7,6,6,6,6,6,7,7,6,7,7,6,7,7,7,7,8,7,7,8,8,8,7,7,7,6,6,6,6,6,6,6,5,5,6,5,5,5,5,4,4,4,3,3,3,3,3,2,3,2,2,2,2,1,2,2,2,1,1,0,1,1,2,2,3,3,3,3,3,4,4,4,4,5,6,6,7,9,10,10,13,14,15,12,13,17,15,15,17,18,16,17,18,20,20,19,22,20,22,20,22,20,20,19,18,18,19,20,20,19,20,22,23,24,25,24,25,25,26,25,26,26,26,27,26,26,26,26,26,26,26,26,25,25,25,24,24,23,25,23,23,25,23,24,25,22,23,23,22,22,21,20,21,20,20,17,18,15,14,13,8,7,5,5,4,3,3,3,3,3,3,3,4,4,4,4,5,4,5,5,5,5,6,7,7,7,8,8,8,7,6,5,5,5,5,5,5,5,8,8,6,7,7,6,5,5,5,5,4,4,4,4,3,3,3,2,3,2,2,2,3,3,2,3,3,2,3,4,4,3,4,4,4,5,6,6,6,7,6,6,5,5,4,4,4,4,5,4,4,5,5,5,5,6,5,5,6,6,5,6,6,6,5,6,6,6,6,6,7,6,7,7,7,6,7,7,8,8,9,10,9,9,8,8,8,8,8,8,8,8,9,10,10,10,10,10,11,11,10,10,10,9,9,9,9,8,8,8,8,7,7,7,7,6,6,7,6,6,6,5,6,5,5,5,4,4,5,4,4,4,4,3,3,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,6,7,7,7,6,6,7,7,6,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,8,8,9,10,9,10,10,10,10,10,9,9,9,8,9,8,7,7,6,6,6,6,6,6,5,5,6,6,5,4,5,5,4,5,5,4,4,5,5,4,4,4,5,5,5,5,6,6,6,6,6,7,6,6,6,6,6,6,6,6,6,5,6,6,6,5,4,4,5,5,4,5,5,5,4,5,5,5,5,5,5,5,6,6,6,6,6,7,5,6,6,6,6,6,6,6,5,5,5,5,5,4,4,3,4,3,4,4,4,5,5,5,5,6,6,6,6,7,6,6,6,7,6,6,6,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,5,4,5,6,7,8,8,8,9,10,10,10,10,11,12,13,14,15,16,18,17,15,17,18,16,19,17,19,19,20,22,22,19,21,21,22,22,23,22,22,20,21,21,19,19,20,20,19,20,19,18,20,20,18,16,18,18],[29,29,28,28,28,28,28,28,28,27,27,26,28,26,27,26,27,27,27,27,27,27,28,28,27,27,28,27,28,28,27,28,28,29,28,28,28,28,29,28,29,28,28,28,28,28,27,26,26,25,25,25,25,24,24,24,22,22,21,19,17,16,13,11,10,8,7,6,6,6,6,5,5,5,6,6,6,6,7,7,7,7,7,7,8,9,8,9,10,10,10,10,10,11,10,10,11,11,11,11,12,11,11,11,11,11,11,12,11,12,11,11,11,11,11,10,10,10,11,10,10,10,10,10,10,11,10,11,11,10,11,11,10,11,11,11,11,11,10,11,11,10,11,11,10,10,11,10,10,10,10,9,9,9,10,10,10,10,11,9,9,8,9,8,9,8,9,9,8,8,8,9,9,8,9,9,9,9,9,9,9,9,9,9,9,9,9,10,8,9,9,9,9,9,10,10,11,11,10,11,11,11,11,11,12,12,11,10,10,10,11,10,9,10,10,9,9,9,9,8,8,9,8,7,7,8,7,6,7,7,5,6,6,7,6,8,8,8,8,8,7,7,7,7,7,7,7,7,6,7,7,6,7,7,8,8,8,8,8,7,7,7,6,7,7,7,7,8,8,7,8,8,8,8,9,8,8,8,8,9,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,5,6,4,4,4,4,3,3,4,3,2,3,3,2,2,3,3,2,1,1,0,1,1,2,3,3,4,3,3,4,5,4,5,6,7,7,8,10,11,11,14,16,16,14,16,18,17,16,18,18,18,18,20,21,20,21,23,21,22,21,23,21,20,21,20,19,21,21,22,22,23,24,26,25,26,25,25,26,27,26,27,27,27,27,27,27,26,27,27,26,26,26,26,26,26,26,26,24,26,25,25,26,24,24,26,24,24,24,24,23,23,22,22,20,19,16,18,16,14,13,8,8,5,5,4,3,3,3,3,4,3,4,5,5,5,6,7,6,7,7,7,8,9,9,8,9,10,11,10,9,9,8,8,6,5,6,7,8,8,9,9,8,7,8,8,7,6,6,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,6,6,7,8,8,9,9,8,7,6,6,6,5,6,5,6,5,6,6,6,6,7,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,7,8,8,9,10,10,10,10,9,9,9,9,9,9,9,9,10,11,11,11,11,11,13,12,12,11,11,11,10,11,10,9,9,9,9,8,8,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,6,5,4,5,5,4,5,4,5,5,6,6,5,6,7,6,6,6,6,6,7,7,7,6,7,6,6,7,6,6,7,7,6,7,7,7,7,7,8,7,7,8,8,8,8,8,9,9,10,9,9,10,10,9,10,10,10,10,10,11,10,11,11,11,11,11,10,10,10,10,9,9,8,8,7,7,7,6,6,6,6,6,6,6,5,5,6,5,4,6,6,4,4,6,6,4,5,6,6,6,6,6,7,7,7,7,7,7,7,7,6,7,7,6,6,7,7,6,6,6,6,5,5,5,5,5,4,5,6,5,5,6,6,5,5,6,6,6,7,7,7,7,8,8,6,7,8,7,7,6,6,6,6,5,5,5,5,5,4,3,4,4,4,5,5,6,6,6,6,7,7,7,8,8,8,8,7,9,8,7,7,7,6,6,7,7,6,7,7,6,6,6,6,6,7,7,7,6,7,7,9,9,10,10,12,12,12,13,12,14,15,16,17,18,20,19,19,19,20,19,21,21,20,21,23,22,24,24,23,23,24,24,25,24,25,25,23,25,25,23,23,24,25,24,24,23,22,23,23,22,21,22,22],[29,29,29,29,29,29,30,29,29,29,28,28,29,28,29,28,28,28,28,29,28,27,28,29,27,28,29,28,29,29,28,29,29,30,28,29,29,29,29,29,29,29,28,29,29,28,28,26,27,26,25,26,26,24,24,24,24,22,21,21,19,17,14,13,11,10,9,7,8,7,6,5,7,7,8,9,8,9,10,10,10,11,10,10,11,12,12,13,12,13,13,13,13,13,14,13,13,13,14,14,14,14,14,14,14,15,15,15,13,15,15,14,13,14,15,14,13,13,13,13,13,14,13,13,14,13,12,14,14,13,14,13,12,13,13,14,13,14,13,14,14,13,14,13,13,12,13,13,12,14,13,12,12,12,13,12,13,13,13,13,13,12,12,12,12,11,12,12,11,11,11,11,11,11,11,11,12,11,11,11,11,12,12,12,12,11,12,13,12,12,12,12,12,13,12,13,13,13,12,14,13,13,13,15,14,14,13,13,13,13,13,13,12,13,13,12,12,13,12,11,11,12,11,11,10,11,10,9,10,10,8,9,9,9,10,10,10,11,10,10,10,10,9,10,9,9,9,9,9,9,8,10,10,9,10,10,11,10,10,10,11,10,10,10,10,11,10,10,10,11,10,12,11,11,12,11,12,12,12,12,11,12,10,11,10,10,10,10,10,10,9,8,9,9,8,8,9,9,8,6,5,5,6,6,4,5,6,3,3,4,4,2,3,4,4,4,2,2,1,0,1,2,3,4,4,5,4,5,6,5,6,6,8,8,10,12,14,14,16,16,17,17,18,19,18,19,20,21,20,21,22,23,23,23,25,24,25,23,25,23,23,23,22,20,22,24,23,22,22,24,25,26,25,26,27,27,27,28,28,28,27,27,27,27,27,27,27,27,27,27,27,27,27,26,27,24,27,26,25,27,25,25,26,24,25,25,24,24,24,23,22,21,19,17,18,15,14,13,10,8,6,5,4,4,4,4,4,5,4,6,6,6,6,7,7,7,8,8,9,9,10,10,9,10,12,12,12,11,11,10,9,8,7,8,9,10,10,11,10,10,10,9,9,9,8,8,7,6,6,5,5,6,5,5,3,3,4,3,6,5,4,5,6,6,6,7,7,7,8,9,8,10,9,9,11,11,10,10,8,8,7,7,8,7,7,7,7,9,9,9,9,9,10,9,9,9,11,10,10,11,10,10,9,10,10,9,10,10,10,11,9,9,10,10,10,11,11,12,12,12,12,11,12,12,12,12,11,11,13,13,13,14,13,14,15,14,14,13,13,12,12,13,12,13,12,11,12,11,11,11,10,9,10,10,9,8,9,9,8,8,8,8,7,8,7,7,5,7,7,6,5,6,7,6,7,8,7,8,9,9,8,9,9,10,9,9,10,9,9,9,9,9,9,9,9,10,9,9,9,9,9,9,10,10,9,10,10,11,11,10,13,12,12,12,12,12,12,13,13,13,13,14,13,13,14,13,14,14,12,14,12,13,13,12,11,11,10,10,9,10,9,8,8,9,7,7,8,8,6,6,7,6,5,7,7,5,6,7,7,5,6,7,8,8,8,8,9,9,9,8,9,9,8,9,8,8,9,8,8,8,8,7,8,8,7,7,6,6,6,6,5,5,6,6,5,6,7,6,6,8,8,8,9,9,8,8,9,10,8,8,8,8,7,7,8,7,7,7,6,5,5,5,5,4,5,5,6,6,6,7,7,7,7,8,8,9,9,9,9,9,10,10,9,9,9,8,9,9,8,9,9,9,8,9,9,8,8,8,9,8,9,8,10,8,10,10,12,12,13,13,13,13,13,16,16,17,19,19,22,23,22,19,21,21,21,22,22,23,24,23,25,25,25,25,25,24,27,25,25,24,25,25,25,21,23,26,25,23,25,24,23,25,26,23,22,25,23],[29,29,28,29,29,29,29,29,29,28,28,28,28,27,28,28,28,28,28,29,28,28,28,29,28,28,29,29,29,29,28,29,29,29,28,29,29,29,29,29,29,29,28,29,29,28,28,27,28,26,26,26,26,25,25,25,24,23,22,22,19,17,15,14,12,11,9,9,9,9,7,7,7,8,10,11,10,11,13,12,12,13,13,12,13,14,14,15,16,15,16,15,16,16,16,16,15,16,17,16,16,17,16,16,16,16,16,16,15,16,16,15,14,16,15,15,15,14,15,15,15,14,14,15,15,15,14,15,15,15,16,16,15,15,15,16,15,16,16,17,17,16,17,17,16,17,16,15,14,16,15,15,14,14,14,14,15,15,14,15,14,13,14,13,13,13,14,14,13,13,13,14,13,13,14,14,12,13,13,13,13,13,14,14,14,13,14,15,14,13,14,15,15,16,15,16,16,16,16,17,16,16,17,17,17,16,17,17,16,16,16,17,15,16,16,15,16,16,15,13,13,14,13,12,13,13,11,12,13,12,10,10,11,12,10,13,13,13,12,12,13,11,12,12,12,10,12,11,11,11,10,10,10,12,11,12,12,12,12,12,11,12,11,11,13,12,11,13,13,12,13,14,14,13,14,13,14,15,15,15,14,13,13,13,13,12,11,11,11,10,11,12,11,10,10,11,10,10,9,9,7,6,8,6,5,6,6,4,4,5,5,3,4,5,5,5,3,3,2,1,0,1,3,4,5,4,4,6,7,5,6,7,8,9,12,13,14,16,16,19,19,18,18,21,19,19,21,21,20,21,22,24,23,24,26,25,25,24,26,24,24,25,22,22,24,23,24,23,24,25,26,26,27,27,27,29,29,28,29,29,29,29,29,29,28,28,29,29,28,28,28,27,27,27,27,26,27,26,26,27,26,25,27,24,24,26,24,25,23,22,22,20,19,17,17,15,14,14,10,9,8,6,5,6,6,6,5,6,6,7,8,7,8,9,9,9,9,9,10,10,11,12,12,13,14,13,13,12,12,10,9,10,8,9,11,10,13,14,11,12,11,10,10,10,9,9,9,8,8,7,6,7,6,6,5,6,5,5,7,6,7,7,8,8,8,8,9,8,9,9,9,11,10,11,11,11,12,10,8,10,9,9,9,7,11,9,9,10,10,10,10,11,12,11,11,11,12,11,11,12,11,12,11,12,12,11,13,11,12,13,13,11,12,13,12,14,14,14,14,14,13,15,14,14,15,15,14,15,16,16,17,16,17,16,17,17,17,17,16,16,16,16,17,15,15,15,15,14,14,14,13,13,14,13,12,12,12,11,11,10,10,10,8,10,9,8,8,7,8,8,6,7,7,8,9,10,8,10,10,11,11,11,11,12,11,11,11,11,12,12,11,12,12,11,12,12,11,12,12,13,11,13,12,12,11,13,13,13,13,13,15,14,15,15,13,15,15,15,16,15,15,15,15,15,16,15,16,16,15,16,15,15,14,15,13,13,13,12,12,12,11,11,11,11,9,9,11,11,7,9,10,8,7,10,10,8,8,10,9,7,8,10,11,10,10,10,12,11,12,12,12,12,12,12,11,11,12,12,12,11,11,9,10,10,9,8,7,7,8,9,8,8,9,8,8,8,9,8,9,10,9,9,10,10,11,12,11,11,9,12,11,11,12,10,10,9,8,8,8,8,9,6,6,5,7,7,7,8,8,8,8,8,9,9,11,11,11,13,11,11,11,12,12,11,11,11,10,10,10,10,10,10,10,10,10,10,10,10,11,11,10,9,11,11,12,13,13,13,14,15,14,15,15,16,18,19,19,19,22,23,22,20,22,22,21,23,22,23,24,24,25,25,24,24,25,25,25,26,26,25,24,25,26,23,24,25,26,24,25,24,23,24,24,22,22,24,23],[29,29,29,29,29,29,29,29,29,28,28,28,29,28,29,28,29,28,28,29,28,28,29,29,28,28,29,28,29,29,28,29,29,30,29,29,29,29,30,29,30,29,29,29,29,29,28,28,28,27,25,26,26,25,24,25,23,23,22,22,19,18,16,13,12,10,8,7,7,6,7,6,6,6,8,8,9,9,10,9,9,10,11,9,10,12,11,12,14,13,14,15,15,14,15,16,14,15,16,16,15,16,16,16,16,16,16,16,15,16,15,15,15,15,14,15,15,14,14,14,15,14,14,15,15,14,14,16,15,14,16,16,14,16,16,16,16,17,16,16,17,16,17,17,15,16,15,14,12,14,14,12,12,13,14,13,15,14,13,13,13,12,12,13,13,10,12,13,11,12,12,13,12,12,13,13,12,12,14,13,12,11,12,14,13,12,14,16,13,13,14,14,14,15,15,16,16,16,16,16,16,16,17,17,17,16,16,16,15,14,15,16,14,16,16,14,12,15,14,11,11,13,11,10,10,11,11,9,10,11,8,9,10,10,11,11,12,11,12,12,11,10,11,12,11,11,11,11,9,11,10,11,11,12,12,12,13,12,12,11,12,11,11,12,12,11,11,12,12,11,12,13,12,12,14,13,14,14,13,13,12,11,10,10,10,10,10,9,10,10,9,10,10,10,9,10,10,9,8,6,5,6,7,6,5,5,7,6,5,6,6,6,6,7,7,7,6,4,3,3,3,0,1,4,3,3,3,4,5,5,4,7,8,7,10,12,13,16,17,19,19,19,19,21,20,20,22,21,20,22,23,23,23,24,26,25,26,25,26,25,24,25,23,21,24,24,24,24,25,26,27,26,27,27,28,28,28,28,29,28,28,29,29,28,28,29,28,28,27,28,28,28,27,27,27,25,27,27,26,26,25,25,27,24,24,25,24,23,22,21,21,19,18,17,16,14,13,13,9,9,6,6,4,4,8,7,9,7,7,7,8,7,7,9,9,9,10,10,11,11,13,13,12,13,14,14,14,13,12,12,12,11,9,9,11,10,12,13,13,11,11,10,11,9,8,7,8,7,7,6,6,6,6,6,7,6,7,7,8,8,8,8,9,10,10,12,11,11,12,12,12,13,13,13,13,14,13,13,12,12,12,11,13,9,11,9,12,12,12,12,13,12,12,13,12,11,13,12,12,12,12,13,11,11,13,11,11,11,13,12,11,10,11,12,12,14,13,14,14,14,13,13,13,12,13,14,12,12,16,16,16,17,15,16,16,16,17,16,15,16,15,15,15,15,13,12,14,12,11,12,11,10,11,11,11,9,10,11,9,8,10,9,7,7,9,7,8,7,9,8,8,9,9,10,11,11,9,11,13,11,11,12,12,11,12,12,12,11,12,11,11,12,11,12,11,11,11,11,11,11,10,11,11,11,9,11,11,11,11,11,13,12,13,14,12,12,12,12,14,14,14,14,14,14,14,15,16,14,15,15,13,13,14,13,13,11,11,10,9,9,10,9,9,10,8,7,9,9,6,6,8,7,7,7,9,7,9,9,8,9,10,9,10,12,10,10,12,13,12,12,13,13,12,11,11,11,12,10,11,11,10,8,10,9,7,7,7,6,7,7,6,7,8,8,7,8,8,8,10,10,9,9,12,11,11,13,11,13,9,11,11,11,11,8,9,8,7,8,7,7,8,5,6,8,5,7,6,6,7,7,7,7,8,10,11,12,13,14,13,12,11,13,13,13,12,13,12,13,13,13,12,13,13,12,13,12,13,13,13,12,13,12,13,13,13,14,15,14,16,17,16,16,17,18,20,20,21,22,23,23,23,22,24,23,23,25,24,24,26,23,27,26,26,26,26,26,27,27,27,27,27,27,27,25,26,26,27,25,26,25,24,25,26,23,23,25,24],[29,29,29,29,29,29,29,29,29,28,28,28,28,28,28,28,28,28,27,29,28,27,29,29,28,28,29,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,28,28,29,28,28,27,27,25,25,26,25,24,23,25,23,22,22,21,20,18,15,12,10,8,7,6,6,5,5,4,5,6,7,6,7,8,9,8,9,9,9,9,9,9,10,10,11,12,11,12,12,12,12,13,14,13,14,13,14,14,13,14,14,13,13,14,14,13,13,13,12,13,12,13,14,13,13,12,13,13,13,13,13,13,13,13,13,13,13,13,12,14,13,13,14,14,12,13,13,12,13,14,12,12,13,13,11,11,12,11,10,11,11,11,12,12,12,11,11,9,9,11,10,9,11,11,10,9,11,11,10,11,11,11,10,12,11,12,11,11,11,11,12,11,12,12,11,11,13,12,11,14,13,13,13,13,12,13,14,13,13,14,14,13,12,12,12,12,13,13,11,13,13,11,10,11,11,10,10,11,10,9,9,10,9,9,9,9,7,8,9,9,8,9,10,11,9,11,10,8,9,11,10,9,10,11,8,9,10,9,9,10,9,11,11,10,10,9,8,10,9,9,9,10,9,9,10,10,9,11,10,10,11,11,11,11,10,11,11,10,9,8,9,8,9,9,9,9,8,9,9,8,7,7,7,8,7,6,5,4,6,5,3,4,5,4,3,4,5,5,4,6,6,6,5,4,3,2,2,1,0,1,1,2,2,2,3,4,4,5,5,6,9,10,13,14,15,16,17,17,17,19,18,17,18,19,19,18,22,22,21,23,24,22,25,23,25,22,22,24,22,22,23,23,24,23,24,25,27,26,28,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,26,27,26,27,27,26,27,26,26,26,25,27,25,25,26,24,24,25,23,23,22,22,21,19,18,16,16,15,13,11,9,8,6,5,4,4,3,4,4,5,5,6,8,8,7,8,8,10,10,9,10,10,11,12,11,13,13,15,14,11,12,10,10,9,9,9,10,10,11,12,10,10,10,9,10,9,8,9,8,7,6,7,6,5,5,5,5,5,5,5,6,7,6,7,8,8,9,10,10,10,11,10,10,11,11,12,12,13,11,11,10,10,9,9,9,7,8,7,9,9,10,10,10,9,9,10,9,9,9,8,9,9,9,8,8,9,9,8,8,8,9,8,8,8,8,9,9,10,11,12,11,11,11,10,10,9,10,11,10,10,12,12,13,14,13,12,13,13,13,13,13,12,12,12,11,11,10,10,10,9,9,9,8,8,8,8,8,7,8,8,6,6,7,7,6,6,6,7,6,6,6,5,5,6,7,7,9,9,7,9,10,9,9,9,8,9,9,9,9,8,9,8,7,9,8,8,7,8,8,8,8,8,7,8,7,8,7,8,8,9,9,8,10,10,11,10,9,11,11,11,11,12,12,12,12,12,12,13,13,13,12,13,11,11,11,11,11,10,9,8,8,8,8,6,7,7,5,5,6,6,4,5,6,6,5,6,7,5,5,7,7,5,6,8,8,9,8,8,9,9,9,9,9,9,8,9,8,7,8,8,8,8,7,7,7,7,6,4,4,4,4,4,4,4,5,5,5,6,8,6,7,9,8,8,9,9,9,9,9,9,8,8,8,9,8,8,8,8,6,6,6,5,4,4,4,4,4,4,6,7,6,7,7,7,8,9,9,9,10,10,9,9,9,10,10,10,10,10,10,9,10,10,9,9,9,10,9,9,10,10,10,9,10,10,10,10,12,12,13,13,14,15,15,16,16,18,19,20,21,20,23,23,22,21,23,22,22,25,23,25,26,24,26,25,26,26,25,26,27,26,26,26,25,26,26,24,25,27,26,26,27,25,25,25,26,24,24,26,26],[29,29,29,29,29,30,29,29,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,28,28,28,28,29,28,29,28,28,28,28,28,27,25,26,25,25,25,25,24,23,23,23,21,21,20,18,17,14,11,10,9,6,5,5,4,5,4,5,6,7,6,6,9,8,8,9,9,9,8,9,10,9,10,11,11,11,12,11,12,12,12,13,13,13,13,14,13,13,13,14,13,13,14,13,14,14,14,13,14,13,12,13,13,12,13,12,13,12,12,13,13,13,13,13,13,13,13,12,12,12,14,12,14,12,13,13,12,12,13,12,12,12,12,11,12,12,10,10,11,12,11,12,11,12,11,10,9,9,10,10,9,10,12,10,10,10,11,10,11,11,11,11,10,11,11,11,12,11,11,11,11,11,12,11,11,12,11,11,13,12,13,13,13,12,13,13,12,13,14,14,14,12,12,11,11,12,12,11,12,12,11,11,11,11,10,10,11,10,10,9,10,10,8,9,9,8,8,9,8,9,10,10,10,10,10,10,10,9,10,10,10,9,10,10,9,9,9,10,10,10,11,11,11,10,10,11,9,10,9,10,10,10,10,10,10,10,11,10,10,10,11,12,11,10,10,10,10,10,9,8,9,9,8,8,8,8,8,8,8,8,8,8,8,7,6,5,4,6,5,4,4,5,5,4,5,5,4,5,6,6,6,5,5,4,3,4,2,1,0,1,1,1,1,2,3,3,4,4,6,8,10,13,14,14,16,16,16,17,17,17,17,18,18,18,20,20,21,22,22,23,24,23,23,24,23,24,24,22,23,24,23,24,23,24,26,26,25,27,27,27,28,28,27,28,28,28,28,28,28,27,28,28,28,27,27,27,27,27,26,27,25,26,26,26,27,25,25,26,23,24,25,23,23,22,20,20,19,17,15,14,16,13,11,9,7,6,5,4,4,4,4,5,5,6,7,8,7,7,8,9,9,10,11,10,11,12,12,12,13,13,14,14,13,12,12,11,10,10,10,11,10,12,14,12,12,10,10,9,9,8,8,8,7,7,7,6,6,6,5,5,5,5,5,6,6,6,7,7,7,8,9,9,9,10,10,10,10,11,11,11,11,12,11,10,9,9,9,9,8,9,8,9,9,9,9,9,10,10,9,9,8,10,9,8,9,9,9,9,10,9,8,9,9,8,8,9,8,8,8,9,9,11,11,11,12,10,10,10,10,10,11,10,10,12,13,12,12,14,13,13,12,13,12,12,11,12,10,11,10,10,9,9,8,8,9,8,8,8,8,7,7,8,7,7,6,7,7,6,6,6,6,6,5,6,5,5,6,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,7,8,8,8,8,7,8,8,9,8,8,8,7,8,7,7,9,6,7,8,8,8,9,9,8,10,10,9,10,10,10,11,11,11,11,11,12,12,12,12,12,12,12,11,10,10,10,10,9,8,8,7,6,7,6,6,6,6,5,6,6,5,5,6,6,5,5,7,5,5,6,6,5,7,8,8,7,8,7,9,8,8,8,8,8,8,9,8,7,8,8,8,8,7,7,7,6,5,4,3,4,5,5,4,5,5,6,4,5,8,6,6,7,7,8,8,8,9,9,8,9,8,7,8,9,9,7,7,7,5,6,6,5,4,4,5,4,4,5,6,7,6,7,8,6,8,8,8,9,10,9,9,9,9,10,9,10,9,9,9,8,8,9,10,9,9,9,10,8,9,11,9,9,10,10,11,10,12,12,13,13,14,16,15,15,16,17,18,19,21,20,22,22,22,21,22,22,23,25,23,24,25,24,26,25,26,25,25,25,26,25,25,26,25,25,26,23,24,25,25,24,26,25,25,26,27,24,24,26,24],[29,29,29,29,30,30,29,29,29,29,28,28,29,28,29,28,29,29,28,29,29,28,29,29,28,29,30,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,28,28,29,28,27,26,27,25,25,25,25,24,23,24,22,21,21,21,18,16,13,10,8,7,6,5,5,4,4,4,4,4,6,6,7,7,8,7,8,9,9,9,9,10,10,10,11,11,10,12,11,11,12,12,12,12,12,12,13,12,13,13,14,13,15,14,13,13,14,13,12,13,11,13,13,12,12,13,13,11,11,12,13,13,12,14,12,12,13,12,12,12,12,14,13,13,13,13,13,12,12,13,12,11,12,11,11,11,11,10,10,9,11,11,11,11,11,9,10,8,8,9,9,9,8,10,9,8,9,10,9,9,10,11,9,10,11,10,11,10,10,11,11,10,11,11,12,10,12,11,11,12,12,14,14,13,12,13,14,13,13,14,14,14,12,12,12,13,12,12,12,12,12,12,11,10,11,10,10,11,11,8,8,10,8,7,8,8,7,7,8,8,9,9,9,10,10,10,9,9,9,10,9,9,9,8,8,9,9,10,9,9,9,11,11,10,10,9,9,9,9,9,10,9,9,9,12,9,9,10,11,10,10,11,12,11,11,11,11,11,10,8,9,9,8,8,8,8,8,8,7,7,7,8,7,7,5,5,5,4,4,4,4,4,4,4,4,5,5,4,6,7,6,6,6,5,4,3,3,3,1,1,0,1,1,1,2,2,3,4,5,6,8,9,11,14,14,15,16,16,16,18,17,16,18,18,18,20,20,21,22,22,23,22,24,23,24,22,22,23,23,21,23,24,24,23,24,25,25,26,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,27,27,27,27,27,26,27,26,26,27,25,26,25,24,26,23,24,24,23,23,23,21,21,20,18,16,16,15,13,11,9,8,5,4,3,4,3,3,4,5,5,6,6,6,7,7,7,8,8,8,9,9,11,11,11,11,13,13,13,11,11,10,10,9,9,9,10,9,12,14,10,11,10,9,9,8,8,7,8,7,7,6,6,6,5,5,4,5,4,5,5,6,6,6,6,7,7,8,7,8,8,8,9,10,10,12,11,11,11,10,9,9,8,8,8,8,8,7,8,8,8,8,8,9,9,8,8,9,10,8,8,8,9,9,9,10,9,8,9,10,8,9,8,7,7,9,9,10,11,11,11,12,10,10,10,11,11,11,10,11,12,12,13,13,13,12,13,12,13,13,11,11,11,10,11,10,10,10,10,9,8,9,8,9,8,8,7,8,7,7,6,6,7,7,6,5,6,6,4,5,6,5,5,6,6,7,6,7,6,7,7,8,8,7,8,9,7,7,8,8,10,9,8,8,9,8,8,8,9,7,8,8,8,8,7,8,8,8,8,8,8,8,9,7,9,9,8,10,9,8,10,10,11,10,11,11,11,12,12,11,11,11,11,11,10,10,9,8,8,8,6,6,7,6,7,7,6,5,6,6,5,5,6,6,5,5,7,5,5,6,6,6,6,8,7,7,8,8,8,8,9,7,7,8,8,9,7,8,8,8,7,8,7,6,7,6,5,4,3,3,5,5,4,4,5,5,5,6,7,6,6,7,7,7,7,8,8,8,8,8,6,7,8,8,7,7,7,6,6,6,6,5,4,5,4,3,4,5,6,6,5,6,7,7,7,7,8,7,9,9,8,10,9,10,8,8,8,8,8,7,8,7,8,8,8,8,8,7,8,9,8,8,9,9,10,8,11,12,13,13,14,17,15,15,15,18,18,18,21,21,23,23,23,22,23,23,22,26,23,25,25,24,26,26,26,26,26,26,27,26,26,27,25,26,27,24,25,26,26,25,27,26,26,26,27,25,25,27,25],[29,28,28,28,29,29,29,29,29,28,27,26,27,27,27,27,27,28,27,28,28,27,28,28,27,28,28,28,28,28,27,28,29,29,28,29,28,28,29,28,29,27,28,27,28,27,26,24,26,25,24,24,24,23,22,22,22,20,20,20,17,16,14,10,9,7,6,5,5,4,5,5,5,5,6,6,6,6,8,8,8,7,8,8,8,9,9,10,10,10,10,11,10,10,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,11,11,11,11,11,11,12,11,11,12,10,10,12,12,11,11,12,11,11,13,11,11,12,12,13,11,13,11,12,12,11,11,12,10,11,11,10,10,10,10,9,9,9,10,10,10,10,10,10,9,8,8,10,9,8,8,9,9,8,9,9,8,8,9,9,8,9,10,10,10,8,9,10,9,9,10,11,9,9,12,11,10,11,11,12,12,13,12,12,13,13,12,12,12,12,12,11,11,10,12,11,9,12,12,10,10,10,9,9,9,9,8,8,8,8,8,8,7,7,6,6,8,8,8,7,8,8,8,9,7,8,7,8,8,8,8,8,7,7,8,7,7,8,8,9,10,9,9,8,7,8,8,7,8,8,8,8,9,8,9,9,10,9,9,10,10,10,10,10,9,9,9,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,5,5,4,4,4,4,4,5,3,4,4,5,4,5,5,5,5,5,4,4,3,3,3,1,1,1,0,1,1,1,2,2,3,4,5,7,10,12,13,13,15,15,15,16,16,16,15,16,16,16,17,19,19,19,19,22,21,22,20,23,21,21,22,20,21,22,23,24,22,23,24,26,26,27,26,27,27,28,27,28,27,28,28,28,27,28,28,28,28,27,27,26,27,27,25,26,24,25,25,23,25,24,23,25,22,23,23,22,22,20,20,19,18,17,14,15,13,12,11,8,7,5,4,3,3,3,4,4,5,6,6,7,7,7,8,8,8,9,9,9,9,10,11,9,11,12,14,13,11,11,10,9,9,8,9,9,9,11,12,10,10,10,8,9,8,7,8,7,6,6,6,6,5,5,5,5,5,4,4,5,6,6,7,7,7,7,7,8,8,8,8,8,9,10,10,10,10,10,9,9,8,8,7,6,7,6,6,6,7,7,7,7,7,8,7,7,7,7,7,8,7,8,8,8,8,8,7,8,8,8,8,8,7,8,9,8,9,11,10,11,10,9,10,10,9,10,10,9,10,11,12,12,12,13,11,12,13,13,12,11,11,11,10,10,10,11,10,9,9,9,9,8,8,8,8,7,7,7,7,6,5,6,6,6,5,5,5,5,5,5,5,4,5,5,6,6,7,6,7,6,7,7,7,7,8,8,7,8,7,8,8,7,8,8,8,7,7,7,7,8,8,7,8,7,8,7,7,8,8,8,8,9,8,9,9,8,9,9,9,10,10,10,10,10,10,11,11,11,11,11,11,10,10,10,10,9,8,7,7,6,6,6,6,6,7,6,5,5,6,5,5,5,5,5,5,6,5,5,6,7,5,6,7,7,7,8,8,8,9,8,8,8,8,7,8,8,8,8,8,7,7,7,5,7,6,5,4,3,3,4,4,4,4,5,4,4,5,7,5,7,8,7,7,8,8,8,8,8,9,7,6,7,7,7,6,7,6,5,6,5,5,3,3,4,3,4,5,5,6,6,6,8,7,7,8,8,8,9,9,9,9,9,10,9,8,9,8,8,8,8,8,8,8,8,8,8,7,8,8,8,8,8,8,8,8,10,11,12,12,13,14,14,14,15,16,18,18,19,20,22,22,22,20,22,21,20,24,22,23,25,25,25,25,26,24,26,24,26,26,25,26,25,26,26,24,24,26,26,23,26,24,24,25,26,23,23,26,24],[29,29,28,29,29,29,29,29,29,28,28,27,28,27,27,28,28,28,27,28,27,26,27,28,27,27,28,27,27,28,27,28,28,29,27,28,28,28,29,28,29,28,28,27,27,27,26,25,26,25,24,24,24,24,23,23,21,20,20,19,18,16,14,10,8,6,5,4,4,3,4,4,4,4,5,5,6,6,7,7,7,7,8,7,8,9,8,10,9,9,10,10,10,10,10,10,11,11,11,10,11,11,11,11,11,11,12,12,11,12,12,11,11,11,11,11,11,10,11,10,11,10,10,10,11,11,10,11,11,11,10,11,11,10,11,12,12,12,11,11,12,11,11,11,11,11,10,10,9,10,9,9,9,9,10,10,10,10,9,10,10,8,8,9,9,8,9,9,9,8,9,9,9,8,9,9,9,9,9,9,10,8,9,9,10,9,9,9,9,9,9,10,9,10,10,11,11,12,11,12,12,12,12,12,11,11,11,10,10,10,10,10,10,10,10,9,9,9,9,8,9,8,8,8,8,7,7,7,8,7,6,6,7,6,8,8,7,8,8,8,8,7,7,8,7,6,7,8,7,7,7,7,7,8,8,9,10,9,9,8,7,7,7,7,8,7,7,8,8,7,8,8,9,8,9,9,9,9,9,8,9,8,7,7,7,7,7,7,7,6,7,6,7,6,6,6,6,6,6,5,4,4,5,4,3,3,5,3,3,5,5,4,5,5,4,5,5,4,4,3,3,2,1,1,1,1,0,1,1,1,2,2,3,4,5,7,9,11,14,16,16,14,15,16,16,15,17,16,18,18,19,19,20,21,22,22,23,22,24,22,22,23,22,21,22,22,24,22,23,25,26,26,26,26,27,28,28,28,29,29,29,28,29,29,28,28,28,28,27,28,27,27,27,26,27,24,26,26,25,26,24,24,26,22,23,24,21,22,21,19,19,18,16,15,15,13,12,9,8,6,4,3,2,2,3,4,3,5,5,5,6,5,6,7,7,6,8,8,8,9,10,10,9,11,11,11,11,11,10,9,9,8,8,8,9,8,11,11,10,9,8,8,8,7,7,6,6,6,5,5,5,5,5,5,4,4,4,5,5,5,5,6,7,6,7,7,8,8,7,7,8,9,8,10,10,10,9,9,8,8,8,7,6,6,7,6,6,7,7,7,7,8,7,7,7,7,7,7,6,8,7,7,7,7,8,6,7,7,7,7,7,6,6,7,7,8,9,10,10,9,9,9,8,8,9,9,8,8,10,10,10,10,11,11,11,10,10,11,10,10,10,9,9,9,9,8,8,8,8,7,7,7,7,7,6,6,6,7,5,5,6,6,5,5,5,4,5,5,5,4,5,6,5,5,7,6,6,6,7,7,6,6,6,7,7,6,7,6,7,6,6,7,7,6,6,6,6,6,6,6,5,6,6,6,5,6,6,7,7,7,8,8,9,9,8,9,9,9,10,9,10,9,9,10,10,10,10,10,10,10,9,9,9,9,9,8,7,7,6,5,6,5,6,5,4,4,5,5,4,4,4,4,4,4,5,4,5,5,5,4,5,6,6,6,6,6,7,7,7,7,6,7,6,7,5,5,6,5,5,5,4,4,4,4,3,3,2,3,3,3,2,3,3,4,3,4,5,4,5,6,5,5,6,6,6,6,6,6,5,5,5,6,6,4,5,5,4,4,4,4,3,2,3,3,3,4,5,5,5,5,4,5,5,6,6,6,7,7,7,7,8,8,8,7,7,7,7,7,7,7,8,7,7,8,8,6,7,8,8,7,7,7,8,8,10,10,12,12,13,14,13,13,14,15,17,17,19,19,21,21,21,20,21,20,20,24,21,23,24,22,25,24,25,24,24,24,26,26,25,25,24,25,24,22,24,25,25,22,25,23,22,24,25,22,21,24,23],[29,29,29,29,29,30,29,29,29,29,29,28,29,28,28,28,28,29,28,29,29,28,28,29,28,29,29,29,29,29,27,29,29,29,29,29,29,29,29,29,29,28,28,28,28,27,27,26,26,25,25,24,24,24,22,23,22,21,21,21,18,15,12,8,8,6,5,5,4,4,4,4,5,5,5,5,6,8,8,6,7,8,7,7,8,8,9,10,10,9,10,10,10,11,10,11,11,12,11,11,12,12,12,12,12,12,12,13,12,13,13,12,11,11,11,11,11,11,11,12,12,12,11,11,12,11,11,12,12,12,12,12,11,11,12,13,12,12,12,11,12,11,11,12,11,10,11,11,9,10,10,10,10,10,10,10,10,10,10,10,9,7,9,9,9,8,9,10,9,9,9,10,10,10,10,10,10,9,10,10,10,10,10,10,10,11,10,11,11,10,11,10,11,11,11,11,12,13,12,13,13,13,12,13,13,12,11,11,11,11,11,11,10,11,11,10,10,9,10,9,9,9,9,8,8,9,9,8,8,9,7,7,8,8,9,9,8,9,9,9,9,9,8,9,9,8,8,9,9,9,8,9,9,9,9,10,11,10,10,9,9,9,9,9,9,9,9,9,10,9,9,10,10,9,10,10,11,10,10,10,10,9,9,7,8,8,7,7,7,7,7,7,7,8,7,8,7,7,7,5,5,4,5,5,4,4,6,4,4,6,6,5,5,6,6,6,5,4,4,3,3,3,2,1,1,1,1,0,1,1,2,2,4,5,6,7,8,11,11,15,16,13,13,18,17,14,18,17,17,18,19,19,20,21,22,23,23,22,24,23,22,23,22,20,22,22,24,23,24,25,26,25,28,26,27,27,27,27,28,28,28,28,28,28,28,28,27,27,27,27,27,26,27,26,27,25,25,26,24,26,24,24,26,23,23,24,22,22,22,20,20,18,17,16,15,15,11,9,8,6,4,4,3,2,3,4,4,5,5,6,6,6,6,7,7,7,8,8,8,9,11,10,11,11,12,12,13,11,12,10,10,9,8,8,10,9,11,12,10,10,9,9,8,7,7,6,7,6,6,5,5,5,4,5,4,5,4,5,6,6,6,7,7,6,7,8,8,8,8,8,9,10,10,11,11,10,10,10,9,8,9,8,8,8,8,8,8,8,9,9,8,9,9,9,8,8,10,8,8,9,8,8,8,8,7,7,8,8,8,8,7,7,7,8,8,9,10,10,11,11,9,9,8,9,9,10,9,10,10,11,10,11,11,11,11,11,11,11,10,9,9,9,9,8,8,8,8,7,7,8,7,7,7,7,5,6,7,7,6,6,7,6,5,5,7,6,5,7,7,5,6,7,6,7,7,8,7,7,8,8,7,8,7,8,8,8,8,7,8,8,7,8,6,7,7,6,6,7,6,6,5,6,6,6,6,5,8,7,7,7,8,7,8,8,8,9,9,9,9,9,10,9,9,10,10,10,10,10,9,10,9,9,9,8,9,7,7,6,6,5,5,5,5,5,4,4,5,5,4,5,5,4,4,5,6,4,5,7,6,5,6,6,7,7,7,6,8,8,7,7,7,7,7,7,6,6,6,7,7,7,6,5,5,5,4,3,3,2,5,5,3,3,5,5,4,5,5,5,5,7,7,6,7,7,7,7,7,7,7,6,7,7,7,5,6,6,4,5,5,4,3,3,3,3,3,4,5,5,5,5,5,6,6,6,7,7,8,8,8,8,8,9,8,8,8,8,9,8,8,8,9,8,8,8,10,7,8,9,9,8,8,9,9,9,11,12,13,12,13,15,15,14,16,17,18,18,21,20,22,23,23,21,22,22,22,25,23,25,26,23,26,26,26,25,26,26,27,26,26,27,26,25,27,24,26,26,26,25,26,25,25,26,27,25,24,26,25],[29,29,29,29,29,29,29,29,29,29,28,28,28,28,29,28,29,29,29,29,29,28,29,29,28,29,29,29,29,29,28,29,30,30,29,29,29,29,29,29,29,29,28,29,29,28,27,26,27,26,25,25,24,24,23,23,22,20,21,21,18,16,14,10,8,7,6,6,5,5,4,4,5,6,7,6,6,7,9,8,8,10,10,10,10,11,12,12,12,12,12,13,12,12,13,13,13,13,14,14,14,14,14,14,14,13,14,13,13,13,14,13,12,14,13,13,13,13,12,13,13,13,12,13,14,13,13,14,13,13,14,13,12,14,13,14,13,14,13,14,13,13,13,14,12,12,14,12,13,13,12,12,12,11,12,12,12,12,11,11,9,9,9,11,12,10,10,12,11,10,12,13,11,10,12,11,11,12,12,11,11,10,11,12,12,11,12,13,11,11,13,12,12,13,13,15,15,14,13,14,15,14,15,15,14,14,14,13,12,12,13,13,11,14,13,11,12,12,11,12,12,12,11,10,10,12,10,10,9,10,8,7,8,8,9,9,10,10,9,11,10,9,10,11,11,10,10,10,10,11,10,10,10,10,9,10,11,11,11,10,9,10,10,10,10,10,10,11,11,10,10,11,11,10,11,12,13,12,11,12,11,11,10,9,11,10,9,9,9,9,9,10,9,9,8,9,8,8,8,8,6,5,6,5,5,5,7,5,6,6,7,6,7,7,7,7,6,6,6,4,5,4,2,2,2,2,1,1,0,1,2,3,3,5,6,6,9,12,12,16,15,13,14,15,16,15,17,17,17,18,19,19,19,20,23,22,24,21,24,22,22,23,21,21,22,22,24,22,24,24,27,26,27,26,27,28,28,27,28,28,28,28,28,28,28,28,28,28,27,27,26,27,28,26,27,24,25,26,24,26,24,24,25,23,24,25,22,22,23,21,20,20,18,17,17,16,13,13,10,8,5,4,4,3,4,5,4,6,5,7,7,7,8,8,8,9,10,11,11,11,12,14,12,13,15,15,15,13,13,12,11,10,10,10,12,10,13,15,13,11,11,10,10,9,9,8,9,8,7,7,7,7,5,5,5,6,5,6,6,7,7,8,8,7,8,8,9,9,9,10,10,11,12,13,13,12,13,12,10,10,10,10,8,9,9,9,9,9,9,8,9,10,10,9,9,9,10,9,9,9,9,9,9,10,10,9,10,10,10,10,9,9,8,9,10,10,11,12,12,12,12,11,11,11,11,12,11,12,12,12,14,14,14,12,14,14,13,12,12,12,12,12,11,11,11,11,11,10,10,11,10,10,9,10,10,7,8,9,8,7,8,8,6,7,8,7,7,7,7,6,6,8,7,8,7,9,8,8,8,9,8,8,8,8,8,8,9,8,9,8,8,9,9,9,9,9,9,9,9,8,8,7,8,9,7,7,9,9,8,10,11,9,11,11,10,11,11,10,12,12,11,11,12,12,12,12,12,12,12,11,11,11,11,10,10,8,8,7,7,6,6,6,7,7,6,6,7,6,5,6,7,5,4,6,6,5,5,7,7,5,7,7,8,8,8,8,9,9,9,9,9,9,8,8,9,9,9,7,9,9,8,6,6,6,5,4,3,3,5,4,4,4,6,5,5,6,7,6,7,9,8,7,8,9,9,9,9,9,8,7,8,8,8,7,7,7,7,6,5,6,4,4,4,4,5,4,6,6,7,6,7,8,7,8,8,9,10,10,10,11,9,11,10,9,10,10,9,8,9,9,9,9,10,9,9,9,10,10,9,11,10,9,9,11,13,13,14,14,15,16,16,16,16,18,21,20,21,21,23,24,23,21,23,23,22,26,24,25,27,24,27,26,27,26,26,25,27,28,27,28,27,27,27,25,26,27,27,26,27,25,26,26,27,26,24,26,27],[29,29,29,29,29,30,29,29,29,28,28,28,29,28,28,29,28,28,28,28,28,28,28,29,28,28,29,28,28,29,27,29,29,29,28,28,28,28,29,28,29,28,27,28,28,27,26,25,25,25,24,25,24,23,22,22,21,20,20,20,19,17,13,9,9,7,6,7,6,6,5,5,6,7,7,7,8,9,9,9,10,10,9,10,10,11,11,12,13,12,13,14,13,12,14,16,13,15,15,15,14,15,15,15,15,15,15,15,14,14,15,14,14,15,14,14,14,13,13,14,14,13,13,14,15,13,15,15,14,13,14,15,14,14,15,15,15,16,15,14,16,16,15,15,13,15,14,13,12,13,12,11,12,12,12,12,14,13,11,13,11,10,10,11,11,10,10,12,11,11,11,12,12,11,11,11,11,12,12,12,12,11,12,13,12,12,13,14,12,12,14,14,12,14,14,14,15,15,14,15,15,14,15,15,16,15,14,15,14,13,14,14,12,16,14,13,13,13,12,11,11,11,10,10,10,10,10,9,9,9,8,8,9,9,9,9,10,10,10,11,11,10,10,11,10,10,10,10,10,10,10,10,10,11,11,11,12,12,12,11,9,10,10,11,12,10,10,11,11,11,12,12,12,11,11,12,12,13,13,12,12,11,10,11,10,10,9,9,8,8,9,9,8,8,8,8,8,8,7,7,6,5,7,7,6,6,6,6,6,7,7,6,8,8,8,8,8,7,7,6,5,5,3,3,3,2,2,2,1,0,1,2,3,4,6,7,8,11,12,15,15,13,14,15,15,14,16,15,15,17,19,18,19,20,22,21,23,22,23,22,21,23,22,20,22,22,24,23,24,26,27,26,28,26,28,28,28,27,29,28,28,28,28,29,29,28,28,28,27,28,27,28,28,27,27,25,26,26,24,26,24,24,25,22,23,23,21,21,21,19,19,19,18,16,15,12,13,11,9,7,6,5,4,6,5,6,6,8,8,10,9,9,9,10,10,11,11,12,11,12,13,13,12,13,15,15,15,13,15,13,12,12,11,12,12,12,14,15,12,12,13,11,11,11,10,10,11,9,8,8,8,8,7,7,7,8,7,7,9,10,9,11,11,11,10,11,11,12,12,12,13,13,13,13,13,12,14,13,12,12,11,11,10,9,9,9,9,10,10,9,11,11,11,11,11,10,10,10,10,10,10,10,10,10,10,10,11,10,10,11,10,9,10,11,11,12,13,13,13,12,12,12,13,11,12,13,11,12,14,14,14,14,15,13,14,15,14,13,14,12,13,12,12,13,12,11,11,11,11,11,10,11,10,10,10,9,9,9,8,7,8,9,6,7,8,8,6,7,8,8,7,8,9,10,9,10,11,10,9,11,10,10,9,10,10,9,10,10,11,10,10,10,10,11,10,10,9,10,11,10,10,11,11,11,9,10,10,9,10,9,11,9,11,12,10,11,11,10,12,12,12,12,12,13,13,13,13,12,13,13,12,12,12,11,11,9,9,9,8,9,8,8,8,9,7,7,7,8,5,6,7,6,6,8,9,6,6,9,9,6,9,10,10,9,11,11,11,11,11,11,10,11,10,11,10,11,11,9,10,11,8,6,8,7,5,4,3,3,5,5,4,5,5,6,6,7,8,7,10,10,10,10,10,11,11,10,9,11,8,9,9,11,10,6,7,7,6,6,6,5,5,4,5,5,5,6,7,9,8,8,9,7,9,10,9,10,10,11,10,11,11,12,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,12,11,11,12,13,13,15,15,15,17,16,17,16,19,19,20,21,20,23,22,22,22,22,21,23,24,24,23,26,24,25,25,27,25,26,25,26,26,26,27,26,26,26,25,26,26,26,25,26,24,25,26,26,25,24,25,26],[29,29,29,29,29,30,29,29,29,29,29,28,29,28,28,28,29,28,28,28,28,27,28,28,27,28,29,28,28,29,27,28,29,29,28,28,28,28,28,27,28,27,27,27,27,26,25,24,25,24,24,23,23,22,22,22,21,21,21,20,18,15,12,9,9,7,5,6,5,6,5,6,6,8,8,8,9,9,10,10,11,10,12,9,10,13,12,14,15,14,15,15,15,15,15,15,15,14,15,16,16,16,16,17,17,15,17,17,16,16,15,15,15,15,16,14,15,15,16,15,15,14,15,16,16,15,15,16,16,16,16,16,16,16,16,16,16,16,16,16,18,16,16,16,16,15,16,15,14,16,15,15,14,15,14,13,15,15,14,13,13,11,11,13,13,11,12,14,12,12,12,13,12,13,15,14,13,15,15,14,14,14,14,15,15,15,16,17,14,14,15,15,14,16,15,16,15,16,16,16,16,15,16,16,17,16,16,15,15,14,16,16,14,16,16,15,14,15,14,12,12,13,12,10,11,11,10,10,11,11,8,9,10,9,11,11,11,12,12,12,12,11,12,13,11,11,12,12,11,12,13,11,12,14,13,13,15,14,13,14,12,11,12,12,13,11,10,13,13,12,12,14,13,12,14,14,14,14,14,14,13,12,11,10,10,10,10,9,10,9,10,9,10,9,9,10,10,9,9,8,7,6,7,7,7,7,7,7,7,8,7,9,9,9,9,9,9,8,7,6,5,4,4,4,4,3,3,3,2,1,0,1,3,4,6,7,8,8,10,13,14,11,12,15,14,13,15,15,16,17,18,18,19,20,21,21,22,22,24,22,21,24,22,21,23,23,23,22,24,25,27,26,26,26,26,27,27,27,28,28,28,28,28,27,27,27,27,27,26,26,27,26,26,26,26,23,25,25,24,25,23,23,25,22,22,23,20,21,20,19,19,17,15,16,15,14,12,10,10,8,6,5,5,4,5,6,6,8,9,9,9,9,9,11,10,10,13,12,12,13,14,13,14,14,16,15,16,16,14,13,14,13,13,12,13,13,14,16,15,13,12,11,12,11,11,10,11,9,9,9,9,8,7,7,8,9,9,8,9,9,10,11,10,11,12,11,12,13,12,12,13,14,14,14,14,13,15,15,13,13,12,13,12,12,11,11,11,13,11,12,12,14,12,12,13,12,13,11,11,12,12,11,12,11,12,11,11,11,11,12,12,10,10,11,11,12,12,12,13,14,14,13,13,12,14,14,13,14,15,14,16,15,16,14,15,16,15,15,14,13,14,14,12,13,13,12,12,12,11,12,11,10,10,10,9,9,10,9,8,8,10,9,8,8,10,8,7,8,10,8,7,10,10,10,11,10,11,11,10,11,10,10,10,10,11,11,11,9,10,9,9,11,8,9,10,9,7,9,10,9,7,7,9,9,7,8,10,9,11,10,11,11,13,13,11,13,12,12,14,14,14,14,13,13,14,14,13,13,12,13,13,12,11,11,11,9,10,8,7,7,9,8,8,8,7,7,7,7,6,6,6,7,6,7,7,6,7,8,7,7,7,9,10,10,8,8,13,12,10,10,11,11,9,8,7,8,8,7,6,8,7,6,6,6,4,5,5,5,5,6,4,6,6,7,6,7,8,7,7,8,9,8,10,8,10,9,8,8,7,8,8,8,9,6,7,7,6,6,6,5,4,4,7,5,5,6,7,7,6,7,6,7,8,9,9,10,10,11,11,11,10,11,11,12,10,12,12,11,13,11,12,10,13,12,13,12,14,13,11,13,14,12,12,13,14,14,15,16,16,17,17,16,17,19,20,20,21,22,24,23,24,23,24,23,23,26,24,26,27,25,27,27,27,27,27,26,28,28,27,27,27,27,27,24,27,28,27,24,27,25,25,26,27,25,23,25,25],[29,28,29,29,29,29,28,29,28,28,28,28,28,28,28,28,28,28,28,28,28,27,28,28,27,28,29,27,29,28,27,28,29,29,28,29,28,29,28,28,29,28,28,28,27,27,27,25,25,25,24,23,23,23,21,22,21,19,19,18,16,15,11,8,8,5,6,6,5,6,6,7,9,11,11,9,10,11,11,11,10,12,11,11,12,12,12,14,14,14,14,15,15,15,16,16,16,16,16,16,17,17,16,17,17,16,17,16,17,17,16,15,14,16,17,15,15,16,16,16,16,14,16,16,16,17,16,17,16,16,17,16,16,16,15,16,17,16,17,17,17,16,16,17,16,17,16,16,14,15,15,14,13,15,14,15,15,14,14,15,13,12,14,13,13,13,12,14,13,14,13,15,14,14,14,14,14,16,15,16,15,15,15,15,16,15,15,15,15,15,16,14,16,15,16,16,16,16,16,16,16,15,15,16,15,16,15,14,14,14,16,16,14,16,15,15,13,15,14,13,13,14,14,13,12,13,12,11,12,12,11,11,11,10,12,12,13,14,13,14,12,13,13,14,14,13,13,14,13,14,14,12,13,13,13,14,15,14,14,14,13,12,13,14,14,12,12,13,14,12,13,13,13,13,12,13,13,13,12,13,12,12,11,11,11,12,10,10,10,11,12,11,11,10,13,10,10,11,11,10,9,8,9,10,7,8,9,10,9,9,11,11,9,10,10,10,10,8,9,8,6,5,5,4,5,4,3,3,4,2,1,0,1,2,4,5,6,8,7,11,10,9,9,14,12,11,15,15,14,15,16,17,16,18,21,20,23,21,22,22,20,22,21,19,22,22,23,22,23,24,26,25,26,25,26,27,28,27,27,28,28,28,28,28,27,28,28,27,26,27,27,26,26,25,26,24,25,25,23,25,23,24,24,21,20,22,20,18,20,16,18,18,17,17,14,15,12,12,10,8,7,6,4,6,6,7,8,8,10,11,10,10,12,12,11,12,12,13,13,13,14,14,14,13,16,17,16,16,16,15,14,14,14,14,14,12,16,16,13,14,13,12,12,12,11,11,12,11,10,10,10,9,9,9,10,11,10,10,11,12,11,14,13,13,14,15,15,14,15,15,14,15,14,15,15,16,16,15,15,14,15,14,14,13,12,14,14,14,14,14,14,14,14,14,13,12,14,12,13,12,13,12,12,12,11,11,11,11,11,11,11,10,9,11,10,12,12,13,14,13,13,13,13,12,12,14,13,13,14,14,16,14,16,13,15,16,14,14,13,13,13,13,12,12,12,12,11,11,12,11,12,10,10,12,10,11,11,12,10,10,10,10,11,10,11,11,10,10,12,11,10,11,11,14,13,13,14,12,12,14,13,12,12,12,12,12,12,10,11,10,10,10,10,9,10,10,9,8,10,8,7,9,9,9,9,9,10,10,11,10,11,10,12,12,12,13,13,11,13,13,13,15,13,12,14,13,13,14,12,13,12,12,11,10,11,10,10,8,8,8,8,9,10,8,8,8,8,7,8,8,8,8,7,9,10,9,10,10,10,9,10,9,11,10,12,11,12,11,11,11,10,11,9,10,9,8,9,7,7,9,7,6,6,7,4,4,3,4,5,4,5,6,6,7,8,8,8,8,8,10,9,10,10,10,11,11,9,11,9,8,8,8,7,8,8,6,7,8,7,6,6,4,6,6,6,7,9,9,9,9,9,8,9,10,10,11,11,12,12,12,10,13,13,13,12,13,14,12,13,12,13,13,14,14,14,13,15,15,14,14,15,14,15,14,16,16,17,16,18,19,18,19,18,20,22,21,22,23,25,23,25,23,24,24,24,27,25,26,27,25,27,27,28,26,27,26,28,27,26,28,27,27,26,24,27,27,27,25,27,25,27,27,28,26,24,26,26],[30,30,30,30,30,30,30,30,30,29,29,29,30,29,29,29,29,29,29,29,28,28,29,29,28,29,29,28,29,29,28,29,30,30,29,29,29,29,29,29,29,29,28,28,28,27,26,25,25,24,24,23,23,22,21,21,20,20,20,18,15,15,13,10,10,8,6,5,6,6,5,6,9,9,10,9,8,10,10,10,11,12,11,10,13,14,14,15,16,15,16,16,16,16,15,18,16,18,17,17,18,18,17,17,18,16,17,18,17,17,17,16,17,17,17,16,17,17,17,17,17,15,17,17,17,16,17,18,17,17,17,18,17,18,17,17,17,19,18,17,18,17,18,18,16,16,18,16,15,16,16,15,13,16,16,15,17,16,15,14,14,12,13,14,13,13,14,15,14,13,14,15,14,15,16,15,15,17,16,17,15,14,17,17,16,16,17,17,15,16,18,17,16,18,17,18,18,17,15,18,18,16,17,17,17,18,17,16,16,15,16,18,16,16,18,16,15,16,15,14,14,15,15,14,13,15,14,12,12,13,11,11,14,11,12,13,13,14,15,16,14,13,15,16,14,15,16,15,13,16,16,13,14,15,15,15,16,16,16,14,14,13,15,14,16,13,13,15,16,13,14,16,15,16,15,17,16,15,16,16,15,14,15,13,11,12,13,11,12,12,12,11,12,12,11,12,11,13,11,10,9,8,9,9,8,8,11,10,9,12,12,13,12,12,13,12,12,11,11,9,8,7,6,5,5,5,5,4,4,3,2,1,0,1,3,4,6,8,9,9,10,10,8,13,11,9,14,16,14,15,18,18,17,19,19,20,22,20,22,21,20,22,20,19,22,23,22,22,22,24,25,24,25,25,27,27,28,27,27,27,27,27,27,27,27,27,27,27,26,26,26,26,27,25,25,24,25,25,24,24,24,23,25,23,22,23,23,20,21,21,20,19,17,17,16,14,14,13,11,9,7,6,5,7,7,8,10,10,11,12,12,11,12,13,12,13,13,15,15,14,16,15,14,16,17,16,17,17,16,15,14,15,15,14,16,15,16,18,15,14,14,12,12,12,12,12,12,11,12,11,11,11,11,12,10,12,13,12,14,14,14,12,16,15,15,15,16,17,16,16,16,16,16,16,16,17,17,17,17,17,16,15,16,16,14,14,14,15,14,15,15,16,14,14,15,14,14,13,13,13,16,13,13,13,13,12,14,13,13,13,12,13,9,11,12,13,14,13,14,15,15,14,14,15,15,16,15,16,16,17,16,16,16,16,15,15,17,17,14,16,17,15,15,15,13,14,15,13,11,13,12,12,11,12,11,11,11,12,12,10,11,12,11,10,11,12,11,9,13,12,12,11,12,15,13,12,15,15,13,15,15,12,11,14,14,11,14,11,14,13,11,13,11,8,11,11,11,9,11,8,11,7,9,10,8,9,11,9,12,11,11,10,12,13,11,14,13,12,14,14,15,15,13,15,16,14,14,14,15,14,12,13,12,11,11,10,9,10,8,7,9,10,13,9,6,10,11,10,7,10,10,8,7,12,11,10,10,13,10,9,11,13,12,11,12,13,14,15,9,12,11,12,11,11,11,10,11,11,11,10,11,6,7,9,4,3,3,5,7,5,5,8,9,6,8,10,11,9,11,10,9,10,10,10,10,8,8,9,9,7,9,8,6,5,9,8,5,6,7,6,5,3,6,7,7,8,10,9,9,9,9,9,9,9,10,11,11,11,12,11,12,12,13,14,12,14,15,14,13,14,16,12,15,16,15,14,16,16,14,16,16,15,15,17,17,16,17,17,17,20,19,19,19,20,22,23,23,23,26,24,27,25,25,25,25,28,26,27,29,26,28,28,29,28,28,27,29,28,28,29,28,28,28,26,28,28,28,26,28,27,27,28,28,26,26,27,25],[29,29,29,30,30,30,30,29,29,29,29,28,29,28,29,28,28,29,27,29,28,27,28,28,27,28,29,27,28,28,27,28,29,29,28,29,28,28,28,28,28,28,27,27,27,26,25,24,24,23,23,22,22,21,21,22,20,20,20,19,17,14,12,9,9,7,7,8,7,7,8,8,8,11,11,11,10,12,11,13,12,14,13,12,14,15,15,16,19,17,18,17,18,19,18,18,18,20,18,19,21,20,20,20,21,20,21,21,21,20,20,19,19,20,19,19,18,19,18,19,19,19,20,20,19,21,19,20,20,20,19,20,20,20,19,20,20,21,20,20,22,19,19,20,19,20,18,19,16,18,19,17,17,18,18,18,19,18,16,16,16,15,14,16,16,16,15,18,17,17,16,17,17,18,19,17,17,19,19,19,19,16,18,19,19,17,19,20,18,19,20,19,19,20,21,20,20,21,19,19,19,20,20,20,19,20,20,19,18,19,19,19,18,19,20,18,20,18,17,16,16,17,16,13,17,16,14,13,15,16,13,13,14,14,14,15,15,16,16,18,16,16,16,17,17,15,17,16,16,17,17,17,16,17,18,18,19,18,17,17,17,16,16,16,17,15,12,16,17,13,16,17,17,18,17,18,17,17,17,17,16,16,15,13,14,14,11,11,14,12,13,12,13,13,11,13,14,13,12,10,9,11,11,12,11,9,12,12,10,13,14,17,13,15,15,14,16,13,13,12,10,10,9,7,7,7,7,5,5,5,4,3,1,0,1,3,5,6,7,7,8,11,11,10,10,10,11,14,12,14,17,17,16,19,21,21,23,21,23,21,20,22,21,19,21,23,22,21,23,25,25,26,26,26,26,27,27,27,28,27,27,28,27,28,27,28,27,27,26,27,26,26,26,25,25,23,25,25,23,25,24,23,25,21,22,22,21,21,20,19,20,19,18,17,17,15,15,13,12,10,9,7,7,10,11,12,14,12,15,14,14,14,15,15,14,14,17,16,16,18,19,17,18,19,20,18,19,21,18,17,17,17,18,17,17,18,18,19,18,17,16,18,17,16,15,14,16,13,13,13,13,12,13,13,15,13,14,15,17,18,16,15,17,17,17,17,19,18,18,18,19,17,18,19,18,19,18,19,18,18,18,17,18,17,16,16,17,18,16,15,17,17,17,14,16,15,14,15,16,16,16,16,15,15,16,14,14,14,15,16,15,14,13,15,14,16,15,17,18,17,18,17,16,17,19,17,17,18,18,18,20,18,18,18,17,18,19,19,16,18,20,17,17,17,16,14,15,14,14,14,14,12,12,14,12,12,13,13,12,12,12,13,11,11,12,14,12,11,13,15,14,13,14,18,15,14,16,16,14,16,17,15,13,15,17,15,15,14,14,16,14,13,13,13,13,12,16,12,13,10,13,12,10,11,11,11,14,13,13,12,14,13,15,16,15,14,15,14,18,17,17,16,16,17,18,16,17,16,17,18,14,15,15,14,12,11,13,11,9,9,10,10,11,12,11,10,11,11,8,11,11,11,11,11,13,12,13,14,15,12,13,14,14,13,16,14,16,16,16,14,15,15,13,12,14,15,14,11,11,9,12,7,7,8,6,6,3,5,7,5,5,8,8,6,10,11,13,9,15,15,14,13,12,12,12,9,9,13,14,12,12,11,10,7,13,15,10,7,9,12,7,6,9,11,13,12,11,12,12,11,15,14,11,11,11,13,13,16,14,16,16,16,15,16,15,16,19,17,15,16,18,15,17,15,15,16,18,17,16,17,20,18,18,18,19,19,19,19,20,21,21,22,20,23,23,23,23,23,25,25,26,25,26,25,24,28,24,27,27,26,28,28,28,27,28,25,28,28,27,27,28,28,27,26,26,27,28,25,28,26,26,27,27,25,25,27,26],[30,29,29,29,29,30,29,29,29,29,29,28,29,28,28,28,29,28,27,28,27,27,27,28,27,27,28,26,28,27,27,28,29,29,28,29,28,29,29,28,28,28,27,26,27,26,25,24,24,24,23,22,23,22,21,20,21,20,20,20,18,16,14,10,11,10,8,9,10,11,11,13,12,13,15,13,13,15,14,16,17,16,14,15,17,17,17,19,20,20,21,21,20,21,21,20,20,21,22,22,23,22,22,22,23,23,23,22,23,22,22,21,20,21,22,21,21,22,22,22,21,22,22,21,21,23,21,22,22,22,22,23,22,21,20,21,23,22,22,22,23,22,22,22,22,22,21,22,20,20,21,21,20,21,19,21,21,20,19,20,18,17,18,20,19,18,18,19,19,19,19,19,20,21,20,21,20,21,20,20,21,22,21,21,22,21,21,21,22,20,20,21,22,21,21,21,21,21,21,21,22,21,21,21,21,22,21,20,19,20,21,21,19,21,21,22,23,21,21,20,18,20,21,19,18,19,20,18,18,18,18,18,18,16,18,19,19,19,19,20,20,19,19,20,20,20,19,20,20,20,19,19,21,19,21,21,21,20,19,20,20,19,21,19,19,19,18,18,19,19,19,19,21,18,18,19,18,18,19,18,19,20,19,17,18,18,17,15,17,17,18,16,17,17,16,17,17,17,17,15,14,13,15,14,15,13,16,17,14,16,18,18,16,16,16,17,17,15,14,13,13,13,13,11,11,12,9,7,8,7,5,5,3,1,0,1,4,4,6,7,9,7,8,9,11,10,10,12,13,13,14,15,15,17,20,20,22,20,22,21,21,23,21,21,21,23,23,20,22,24,25,26,26,26,26,26,28,27,27,28,28,28,28,28,28,28,28,28,27,27,26,27,27,26,26,22,26,25,23,25,23,24,24,22,22,23,22,21,22,20,22,21,18,20,18,17,17,15,15,11,11,9,9,10,13,14,12,14,17,17,17,16,17,17,16,17,17,18,18,20,20,19,19,20,21,23,22,22,20,20,19,20,21,19,20,18,20,22,20,19,18,19,19,18,16,17,18,17,16,15,16,13,15,15,15,16,17,17,17,18,17,20,20,19,20,20,21,20,20,20,21,20,21,21,21,22,21,21,22,20,22,20,20,19,19,20,19,19,21,20,20,21,20,19,19,18,20,18,17,19,19,18,19,19,18,17,18,17,16,17,17,15,16,16,16,18,16,18,18,18,17,18,17,18,20,19,19,20,20,21,21,20,20,20,20,20,22,20,18,20,20,18,18,21,18,18,18,16,18,17,18,14,16,17,15,15,16,17,14,15,16,17,15,15,16,16,17,18,18,18,17,17,17,19,18,20,21,19,17,20,19,19,18,18,18,18,18,15,18,15,16,17,16,15,15,16,14,12,14,13,13,13,14,12,13,14,15,16,16,17,16,15,18,18,16,18,19,17,18,19,20,20,19,19,21,19,20,19,19,19,18,18,16,15,16,14,16,13,14,12,13,14,14,12,12,15,12,13,13,12,13,14,14,14,15,14,15,17,15,14,14,15,17,16,18,17,17,17,16,17,17,15,15,14,13,13,10,13,12,12,11,10,10,10,5,7,5,9,8,7,8,10,11,10,10,11,12,13,13,16,13,14,15,14,13,12,12,12,13,10,12,12,12,8,14,11,10,10,11,9,9,7,11,11,12,14,15,13,15,14,15,13,13,14,15,16,18,19,18,19,17,18,19,19,17,17,20,20,17,18,20,20,18,19,21,19,20,21,20,19,20,20,20,21,22,21,23,22,23,24,24,23,22,24,25,25,26,25,27,26,27,26,27,27,27,29,27,28,29,27,28,28,29,28,28,28,28,28,28,28,28,28,28,28,27,29,29,28,29,27,28,27,28,28,27,28,28],[30,30,30,30,30,31,30,30,30,30,30,30,30,29,30,29,30,29,28,30,29,28,29,29,28,29,29,28,28,29,28,29,29,29,29,29,28,29,29,28,29,28,28,27,27,27,26,25,25,24,24,24,23,22,21,22,22,20,20,20,18,17,15,12,12,11,8,11,10,13,12,14,15,18,17,18,16,19,18,19,20,19,19,19,19,21,19,21,22,22,23,23,23,23,23,23,22,24,24,23,24,25,24,24,24,24,25,25,24,24,24,23,23,23,23,22,22,24,23,25,24,24,24,24,25,23,24,25,24,23,24,24,23,24,23,23,24,24,25,24,24,25,24,24,23,24,24,23,21,23,22,21,22,21,21,23,23,22,22,21,20,20,20,21,21,20,20,22,20,22,21,22,20,23,23,22,22,23,23,23,22,22,23,24,24,22,24,23,22,23,23,25,22,24,24,24,24,23,22,24,24,23,23,24,25,24,23,23,23,24,23,25,22,23,24,23,23,23,23,21,20,23,22,19,20,22,20,19,20,20,19,20,20,20,20,20,20,22,22,23,21,21,22,23,22,21,22,23,22,22,24,20,21,23,23,24,23,24,23,21,22,22,20,20,23,21,19,22,22,19,21,22,22,23,21,22,21,21,22,22,21,22,21,21,19,19,20,21,19,18,21,19,18,20,21,19,20,19,19,18,17,16,18,19,17,17,18,19,18,20,20,21,20,20,20,21,18,18,17,17,16,17,16,14,14,15,12,10,11,10,8,6,5,2,1,0,1,4,5,7,7,7,7,10,10,10,10,11,12,11,13,15,15,16,20,20,21,20,22,21,21,22,20,20,21,22,22,21,22,24,25,26,25,26,26,27,27,26,27,27,27,28,28,28,28,28,28,28,26,27,26,27,26,26,25,25,26,25,24,25,25,24,25,23,23,24,23,22,23,22,22,22,20,20,19,18,18,17,16,14,11,12,12,14,15,18,17,18,18,19,18,19,19,20,19,19,21,20,21,20,22,21,21,22,23,25,23,24,22,23,22,22,21,21,22,22,23,25,21,22,20,20,21,21,18,18,21,19,19,19,18,16,20,18,20,18,23,19,21,22,22,22,23,22,23,22,23,24,23,23,25,24,23,24,23,24,24,25,24,24,24,24,23,21,22,22,22,23,22,21,23,23,20,21,23,21,21,20,21,20,22,21,21,23,22,21,22,22,18,21,20,17,17,13,16,18,18,21,19,21,21,21,21,21,22,23,23,22,23,24,24,24,22,24,23,23,25,24,22,23,22,22,22,20,21,20,20,19,20,20,19,21,17,20,20,21,19,19,19,20,20,22,22,20,20,21,21,20,19,23,20,20,20,23,19,21,24,21,20,21,24,21,20,24,22,20,21,18,22,18,16,18,19,21,17,20,18,18,17,14,16,14,17,18,16,16,16,16,18,19,20,19,21,21,20,21,21,21,22,22,22,21,21,22,23,22,22,21,22,21,21,20,18,18,17,16,16,15,13,15,18,14,17,18,17,15,18,18,17,17,18,16,17,18,18,17,20,20,17,17,16,18,18,18,20,18,19,19,19,18,18,18,18,21,18,16,18,17,15,17,15,7,9,12,6,10,8,12,12,9,12,15,13,11,16,17,15,17,17,19,16,15,15,16,15,14,13,17,14,10,11,14,12,6,11,12,10,9,14,12,10,10,14,14,14,17,18,16,18,16,16,14,15,15,16,17,18,19,19,20,19,19,20,21,20,21,22,21,21,21,22,21,22,22,21,21,23,23,20,22,24,23,22,24,25,24,24,24,24,26,26,26,26,26,27,27,27,27,29,29,28,28,29,28,28,30,29,30,30,29,30,30,30,30,30,29,30,30,30,30,29,30,29,28,29,30,30,29,30,29,29,29,29,28,28,29,28],[30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,29,29,29,29,29,28,28,29,28,27,28,29,27,28,28,27,28,29,29,28,29,28,28,28,28,28,27,27,26,27,26,25,24,24,23,23,23,22,22,22,21,21,20,19,18,16,15,13,11,11,9,9,10,10,12,11,12,14,15,15,16,13,18,17,14,17,19,17,16,19,18,19,20,23,22,23,24,23,23,24,24,23,25,24,24,24,25,24,25,25,25,26,26,26,26,24,25,25,25,25,24,24,24,24,26,24,24,25,25,25,26,24,25,24,24,24,25,24,25,24,25,25,24,25,25,24,25,24,25,25,25,25,24,22,24,24,23,23,23,23,22,25,23,22,22,20,21,20,22,22,21,20,23,23,23,22,23,23,24,24,23,23,24,24,24,24,23,24,24,25,23,24,24,23,25,23,25,24,24,24,23,24,22,22,24,24,22,23,24,24,24,24,23,23,23,23,24,23,24,24,24,23,23,24,22,22,24,23,19,23,24,22,20,21,21,20,20,19,22,20,23,22,24,23,24,23,22,23,24,23,21,22,23,22,22,23,21,21,23,23,24,24,24,23,22,22,23,21,22,23,21,19,22,23,17,21,22,21,21,22,23,22,22,22,22,20,21,21,17,20,20,18,18,19,19,18,19,20,19,20,19,20,19,19,18,16,15,18,18,16,18,19,19,18,20,20,22,20,21,21,20,21,19,19,19,18,18,17,16,16,16,14,11,12,12,9,9,6,4,2,1,0,1,4,4,5,5,6,8,10,9,10,12,10,13,12,14,14,16,20,20,21,20,22,21,21,22,21,21,21,22,23,20,22,24,24,26,25,25,26,27,27,27,28,28,27,28,27,28,27,28,28,28,27,27,27,27,26,25,26,24,25,26,24,25,24,23,25,22,23,24,23,22,23,21,22,22,20,21,20,20,19,17,19,17,16,14,12,16,19,21,19,19,21,20,20,21,21,21,21,21,22,22,23,22,23,23,23,24,24,25,24,25,23,23,22,23,22,21,22,22,24,24,23,24,22,24,22,23,22,22,22,20,22,21,19,18,20,19,19,19,21,21,21,22,21,21,23,22,23,22,24,23,23,23,24,24,23,24,23,24,24,24,24,24,23,23,23,21,23,22,22,23,21,21,22,23,20,21,23,22,21,22,21,21,21,23,21,21,22,22,22,21,20,21,19,18,17,17,17,19,19,21,22,23,23,23,22,22,22,21,22,22,23,23,25,24,23,23,24,23,25,24,21,23,23,21,20,22,21,19,19,19,18,18,20,17,17,19,18,18,18,20,19,16,18,20,19,18,19,20,18,20,19,21,20,19,20,24,21,20,21,21,21,20,22,22,21,22,22,23,21,20,22,18,18,18,19,22,18,17,18,16,18,14,15,14,17,15,16,15,15,17,17,15,21,18,20,21,18,20,21,21,22,22,23,21,22,23,21,22,22,21,22,22,19,19,20,19,18,15,16,15,13,12,14,13,17,15,12,14,14,18,14,15,18,15,17,18,20,19,20,21,19,18,21,20,19,20,21,19,19,20,23,22,19,18,19,21,20,18,21,18,12,19,13,7,9,10,7,9,8,12,11,8,11,16,15,13,16,18,18,18,21,20,18,18,18,17,20,20,17,19,17,15,14,10,14,6,10,16,12,10,16,13,10,10,14,17,17,20,21,20,18,17,18,20,17,17,15,18,16,21,20,20,20,22,20,21,22,22,23,22,24,22,22,22,22,22,22,22,23,22,21,22,23,23,22,24,24,23,24,24,25,26,26,25,25,26,26,26,26,26,28,27,28,27,28,27,27,29,28,29,29,28,29,29,28,29,29,28,29,29,28,29,28,29,28,28,28,29,28,28,29,29,27,29,28,28,27,28,27],[30,30,30,30,30,30,30,30,30,29,29,29,29,28,29,28,29,28,27,28,28,27,28,27,27,27,28,27,28,28,26,28,28,29,27,28,27,28,28,27,28,28,27,26,27,26,24,23,24,23,22,22,22,21,21,21,21,20,20,19,18,15,15,12,12,12,11,12,16,16,14,16,15,18,18,18,18,19,18,17,20,21,19,19,21,21,21,22,23,23,23,23,24,24,24,24,24,25,24,25,26,25,25,26,26,25,26,25,26,26,25,25,25,25,25,24,25,26,25,26,25,25,25,26,26,27,26,26,25,24,25,26,25,24,24,25,25,26,25,25,25,26,26,26,25,26,25,24,24,25,24,25,24,25,24,24,25,23,22,22,22,22,21,24,23,22,21,24,23,24,23,24,24,25,25,24,25,24,25,25,25,26,24,25,26,25,24,25,25,24,25,25,25,24,24,24,24,24,24,24,25,24,24,24,24,24,24,22,24,24,24,24,25,24,25,25,25,24,24,24,22,24,25,23,24,24,23,23,23,23,22,23,21,22,20,22,24,22,23,24,23,23,24,25,25,22,24,25,24,24,23,24,25,23,24,24,25,24,24,24,24,23,24,24,24,23,22,23,24,22,23,24,24,24,22,23,23,22,23,23,23,22,22,20,21,22,20,20,20,21,20,21,22,22,22,21,22,22,22,22,18,18,21,20,18,19,21,20,20,20,22,22,19,20,21,21,21,19,20,18,17,19,18,14,16,17,17,14,16,15,13,11,9,5,5,3,1,0,1,3,4,5,5,7,8,7,8,10,10,10,14,15,14,15,17,17,19,20,21,21,20,23,22,22,21,22,22,22,21,24,24,25,25,25,26,26,27,27,28,28,27,28,27,27,27,27,27,27,26,26,26,27,26,25,26,24,25,25,24,25,24,24,25,22,22,24,23,22,23,21,22,21,21,21,21,20,20,19,18,17,17,17,16,17,18,16,18,18,22,20,20,21,20,21,19,20,22,22,21,22,24,21,23,23,25,25,24,25,24,24,23,23,23,23,23,23,24,25,23,23,22,22,22,22,20,20,23,20,20,20,20,19,20,20,19,19,21,20,21,21,21,22,23,22,23,24,24,23,25,24,25,24,24,24,25,25,24,24,25,23,26,23,25,24,23,23,24,23,23,25,24,24,24,23,22,22,23,22,21,22,22,22,22,22,20,21,22,22,19,22,21,19,18,18,19,20,20,21,21,22,22,22,22,22,23,23,23,23,24,23,24,24,24,21,23,23,24,23,21,23,23,22,23,23,21,21,21,20,20,20,20,19,18,21,19,19,20,21,19,21,21,21,20,20,20,21,19,22,22,21,21,22,22,23,23,22,23,22,22,23,22,21,22,21,20,22,22,20,23,18,19,20,17,18,18,17,18,15,17,18,16,16,17,15,15,16,18,19,19,18,21,18,21,23,21,21,21,22,22,23,23,22,23,23,22,23,24,22,23,22,21,22,20,19,20,16,16,16,15,15,18,16,18,16,15,17,17,15,15,18,17,16,17,21,17,17,19,21,19,18,19,21,20,21,22,18,20,21,17,20,19,17,17,16,19,18,17,14,12,16,13,10,11,12,10,13,12,15,14,10,13,16,13,11,15,15,14,15,14,18,17,16,17,19,18,18,17,19,17,15,16,15,15,8,12,12,11,9,13,13,12,11,16,16,16,17,18,19,17,18,16,16,16,17,16,19,19,21,20,22,20,21,22,21,21,21,22,21,22,21,22,23,21,23,23,22,23,24,24,24,24,25,25,25,24,24,25,25,26,25,26,27,26,26,27,27,27,26,29,28,29,28,29,28,28,30,29,29,30,29,29,30,30,29,30,29,29,30,29,30,29,29,29,29,29,30,30,29,30,29,29,30,29,29,29,29,28],[30,31,30,30,30,31,31,30,30,30,30,30,30,29,29,29,29,29,28,29,28,27,29,28,27,28,28,27,28,28,26,28,29,29,28,28,27,28,28,28,29,28,27,27,27,27,25,25,24,24,24,24,22,22,21,22,20,19,19,17,17,15,15,11,13,14,11,15,14,18,16,18,19,21,20,20,21,23,22,20,23,23,22,21,23,23,22,24,25,25,25,25,25,25,25,25,25,25,25,24,25,26,26,26,26,25,27,27,25,27,27,25,25,25,26,26,25,26,26,27,27,25,25,26,25,25,25,26,25,25,26,25,23,26,25,25,25,25,25,24,25,25,25,25,24,26,24,24,24,25,24,24,25,26,23,25,26,25,24,25,25,24,24,25,24,24,24,24,24,24,23,24,24,26,25,24,25,25,24,25,24,24,24,24,25,24,25,25,24,24,25,25,24,26,24,24,25,24,23,25,25,24,25,26,24,26,24,24,24,25,24,25,23,25,26,25,25,25,26,23,24,25,26,23,26,26,24,24,25,24,23,24,23,24,24,26,26,25,26,25,25,24,25,26,24,25,24,26,23,24,25,24,25,25,25,24,25,25,25,24,24,25,23,24,25,23,22,25,25,21,23,24,23,24,24,25,25,23,24,24,23,23,23,23,23,22,22,21,23,21,23,22,24,22,24,23,24,23,24,24,21,21,23,21,21,21,23,21,21,22,22,24,22,21,23,22,22,22,23,20,21,22,21,18,19,22,18,15,18,18,14,11,11,7,6,4,3,1,0,1,4,3,4,3,4,6,6,8,8,9,10,12,11,12,16,16,19,18,19,19,20,22,20,21,22,22,22,22,24,24,26,25,26,26,27,27,28,26,28,28,27,28,27,28,27,28,28,28,26,27,25,27,26,26,26,24,25,25,24,26,25,25,25,23,24,24,23,24,23,22,24,22,22,22,21,21,20,19,20,17,18,16,17,21,19,19,19,20,22,22,21,22,22,23,21,21,23,23,22,21,25,24,23,25,26,26,25,26,25,25,26,24,23,24,25,24,24,26,24,24,24,21,22,24,22,20,24,23,22,21,22,20,22,21,21,22,24,22,23,24,24,25,24,23,24,25,25,25,24,24,25,24,25,25,26,25,26,25,25,25,26,25,26,25,25,24,26,24,24,23,25,25,23,23,25,24,23,23,24,23,23,24,24,23,23,23,24,25,21,22,22,20,21,19,21,20,22,23,22,23,25,24,24,24,23,24,26,24,24,25,27,26,25,25,26,27,24,25,25,24,24,24,24,22,23,24,22,21,22,22,21,22,21,23,22,22,22,23,24,23,22,24,23,21,22,23,21,23,23,22,22,23,23,25,23,23,23,24,23,23,25,24,23,23,23,24,23,21,24,21,21,22,22,23,20,22,21,17,20,15,18,16,17,20,20,19,18,20,22,22,23,22,23,24,22,24,24,23,24,25,25,25,26,24,25,25,25,24,24,23,24,24,20,22,22,20,20,20,16,17,19,19,21,18,18,21,20,21,19,21,21,20,21,23,21,20,22,24,22,21,21,21,21,22,25,21,22,23,22,22,20,22,18,22,20,18,21,19,14,13,16,12,10,14,10,15,12,16,18,11,13,17,16,15,17,20,17,17,20,21,17,17,20,19,20,17,18,19,15,13,14,14,13,9,14,13,11,11,16,12,12,12,15,19,18,20,19,20,20,17,19,16,18,19,20,20,22,22,22,21,21,25,23,24,24,23,24,23,23,23,23,24,24,23,23,23,24,24,23,23,25,25,24,25,25,25,25,25,26,27,27,26,26,27,27,28,27,27,29,29,29,28,29,29,28,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,30,30,29,29,30,30],[30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,28,28,28,28,27,28,28,27,28,28,27,28,28,26,28,28,29,28,28,27,28,27,27,28,26,25,26,26,25,25,22,24,24,23,22,22,22,21,20,20,19,18,17,16,14,14,11,12,11,12,14,15,16,16,17,19,20,19,18,20,21,20,17,22,22,21,20,21,22,19,22,22,23,24,24,23,25,25,26,24,24,26,26,26,26,28,26,27,27,27,27,27,28,27,27,27,27,27,27,26,28,27,28,28,26,27,27,26,27,26,28,26,25,26,26,24,26,25,26,27,27,27,26,26,25,26,26,25,26,26,25,22,25,25,25,24,26,24,26,26,26,25,25,25,23,23,25,24,23,24,26,24,24,25,25,24,26,26,25,24,26,26,27,25,26,25,25,25,24,26,25,24,24,25,26,23,26,25,26,27,25,23,25,26,24,25,26,26,26,25,23,24,23,24,24,24,24,26,24,25,25,24,22,23,25,26,22,24,24,23,23,24,25,23,25,24,25,23,25,25,26,27,28,25,25,26,27,26,25,26,27,25,26,27,25,26,26,25,26,26,26,26,24,25,25,23,23,25,23,23,24,25,22,22,25,24,25,24,25,25,23,24,22,25,23,23,21,22,23,21,21,22,21,22,23,22,21,22,24,24,21,24,23,22,21,22,21,21,21,24,22,22,23,23,25,21,23,23,24,22,23,23,20,20,21,21,17,17,18,18,16,15,16,16,13,11,8,7,5,4,2,1,0,1,1,2,2,3,3,3,4,5,5,6,9,9,10,13,14,17,15,19,17,20,22,20,18,20,21,21,21,23,24,24,24,26,25,26,26,26,26,27,28,27,27,27,27,27,27,26,26,25,26,25,26,26,25,25,23,23,24,24,24,24,24,25,22,23,24,23,23,22,22,23,21,21,21,21,19,20,19,18,17,17,18,16,19,19,20,20,21,23,22,21,21,22,22,20,22,22,22,21,21,23,23,23,24,24,26,23,24,23,24,22,24,22,23,23,23,24,26,22,24,23,22,20,22,22,20,22,22,21,19,22,21,20,21,22,21,21,21,22,23,23,23,23,23,24,24,24,25,24,24,26,25,24,25,24,24,26,26,26,26,26,26,26,25,25,25,25,25,24,23,24,25,23,23,24,23,23,23,23,24,24,22,22,22,22,23,22,22,20,21,20,22,20,21,19,22,22,23,22,23,23,23,23,22,23,23,24,23,24,24,26,26,26,23,24,24,26,24,23,23,23,22,22,22,20,21,20,20,22,19,21,20,20,20,20,21,20,20,19,22,20,21,20,21,21,20,22,22,23,22,23,23,23,23,22,23,24,23,23,24,23,23,22,23,23,24,23,21,24,22,21,20,21,21,23,21,20,17,19,18,18,17,19,18,16,16,19,20,19,18,21,20,22,22,21,23,24,22,23,23,25,24,24,24,23,24,23,23,23,23,21,20,21,20,21,18,18,19,16,17,19,19,20,18,16,20,17,16,18,19,19,16,19,20,20,19,24,22,19,19,22,22,21,21,25,21,23,24,22,22,22,22,19,22,19,16,19,17,14,15,15,9,10,14,11,13,15,13,14,11,14,17,15,12,19,19,15,18,21,19,17,19,21,18,19,17,15,19,16,14,13,13,15,8,11,15,12,13,13,15,12,15,17,20,16,19,19,19,19,18,20,17,18,20,19,21,20,22,21,22,22,23,22,23,22,24,24,23,24,23,22,25,24,23,22,23,24,24,22,24,25,25,25,26,26,26,25,26,26,28,27,27,26,27,27,28,28,29,28,28,29,27,28,29,29,30,29,30,30,30,31,30,30,30,30,29,29,30,29,30,29,30,29,30,30,30,29,29,30,30,29,30,30,29,29,30,29],[30,30,30,30,30,30,30,30,29,29,29,28,29,28,28,28,28,28,27,28,28,27,28,28,26,28,28,26,28,28,26,28,28,28,28,28,27,28,27,27,28,27,26,26,26,25,25,23,22,23,23,21,21,21,20,19,19,18,18,15,15,13,15,12,13,15,14,15,15,19,16,18,19,19,20,20,21,21,21,19,22,23,21,19,23,24,21,23,24,25,25,25,25,25,24,25,25,25,24,26,26,26,27,26,27,26,27,27,26,26,27,26,26,27,25,26,26,27,27,28,27,26,26,27,26,27,27,27,27,26,26,27,25,26,25,27,26,27,26,26,27,26,26,26,26,26,26,26,24,26,26,26,24,27,24,25,27,25,24,26,25,23,24,26,24,24,23,26,23,26,24,26,25,26,26,26,26,26,25,27,26,27,25,26,27,26,26,26,26,25,26,26,25,26,25,25,25,26,23,25,25,24,23,25,25,25,23,23,23,24,24,26,24,26,27,25,27,25,26,23,23,26,27,22,25,26,25,23,25,25,24,24,24,25,24,25,25,25,26,26,25,25,26,27,26,25,26,27,25,25,26,26,26,25,26,25,26,26,26,25,25,26,23,25,26,24,23,25,25,21,22,25,24,23,22,24,24,23,24,23,25,23,23,20,23,22,21,19,23,21,20,21,24,21,21,23,23,23,24,23,21,21,22,21,21,21,23,21,21,22,23,25,21,23,23,22,23,22,21,20,19,19,19,16,16,17,18,17,17,16,15,15,10,9,8,5,3,3,3,1,0,1,1,2,2,3,3,4,3,6,7,8,9,10,13,12,17,15,18,17,19,19,18,19,20,20,21,21,21,23,24,25,26,25,25,25,26,26,26,26,25,26,25,25,26,26,25,25,25,24,24,25,24,24,24,23,23,25,23,25,24,23,26,23,23,25,24,24,24,22,24,22,22,21,22,20,20,19,19,17,17,17,19,19,18,19,18,19,23,22,22,21,22,22,19,20,23,22,19,21,25,22,21,24,24,24,24,24,25,25,24,24,24,23,24,24,24,26,24,24,24,21,22,23,20,20,23,21,20,20,22,20,20,20,21,21,23,22,22,23,23,25,22,23,25,24,24,24,25,24,25,25,26,25,25,26,26,26,26,25,27,25,26,25,26,25,26,25,25,24,25,26,24,24,25,22,24,21,22,23,23,23,22,22,21,22,23,23,20,21,21,21,21,21,21,20,20,21,20,22,22,22,22,22,23,23,24,22,23,25,26,26,25,24,25,25,25,25,24,24,22,23,24,22,21,22,21,20,22,20,21,20,21,21,21,21,21,22,22,20,22,22,21,21,22,22,21,22,23,22,21,23,23,23,24,23,24,22,23,24,21,22,21,22,20,23,22,19,23,21,20,20,21,20,20,21,21,17,18,16,18,17,17,19,19,19,19,20,19,20,21,20,22,23,20,24,24,23,23,25,25,25,25,24,24,25,24,24,23,23,22,21,19,20,22,19,18,19,16,17,18,19,22,18,18,20,20,19,19,19,21,18,19,23,21,18,20,22,21,19,19,21,19,18,24,20,20,22,21,18,19,21,18,20,17,16,19,17,12,14,15,11,12,14,14,12,15,14,14,13,15,16,17,14,15,18,15,17,17,17,16,16,18,16,17,16,16,15,15,14,13,12,13,9,13,14,14,14,15,14,14,16,17,19,16,19,19,18,17,17,19,19,17,18,18,18,20,20,19,20,21,22,21,22,21,21,21,22,22,20,22,24,23,22,24,23,24,26,24,24,26,26,26,26,25,25,25,26,26,27,27,27,27,27,27,28,28,28,29,28,29,29,29,28,29,29,29,30,30,30,30,30,30,29,30,29,30,30,29,30,29,30,30,30,30,30,30,30,30,29,30,30,30,29,29,29,29],[30,30,30,30,30,30,30,30,30,29,29,29,29,28,29,28,29,28,28,29,28,28,29,28,28,28,28,27,28,28,27,28,28,29,28,28,27,27,27,27,27,27,26,26,25,25,24,24,22,23,22,21,21,21,20,21,20,19,18,18,16,13,14,12,12,12,11,14,15,16,17,16,18,19,19,19,20,22,21,20,22,22,22,20,22,22,20,21,22,23,23,24,24,23,24,25,24,25,26,26,26,26,26,26,26,26,27,27,26,26,26,26,26,27,26,26,26,27,27,28,27,24,27,27,26,26,27,27,26,26,26,27,25,25,25,25,26,26,26,26,26,26,26,27,26,27,27,26,24,26,26,25,24,25,24,24,26,25,24,25,24,22,23,25,24,22,24,25,23,24,25,26,24,26,26,26,25,26,26,26,25,25,25,26,25,26,26,26,25,25,26,25,25,25,25,24,25,25,23,25,25,24,24,25,25,24,23,23,23,24,25,25,23,25,26,25,25,26,26,24,23,26,26,22,24,26,24,23,24,25,22,23,24,24,25,25,25,25,26,26,25,25,26,27,25,26,26,26,24,26,26,24,25,25,25,24,25,25,25,25,24,24,23,25,25,23,21,24,25,22,22,24,22,21,22,23,22,24,22,24,23,22,21,19,22,23,22,19,23,22,20,21,24,22,22,22,23,22,24,23,19,21,22,19,21,22,23,22,22,23,22,24,23,23,22,23,23,24,23,21,20,20,20,16,18,20,19,16,16,17,15,13,12,8,7,6,3,4,2,1,1,0,1,2,2,2,3,3,3,4,8,8,8,10,13,13,16,15,20,19,18,21,19,21,21,21,22,21,23,24,26,25,26,26,26,26,27,26,27,28,27,27,27,27,27,27,27,27,26,26,25,27,27,24,26,23,24,26,24,26,24,23,26,23,23,26,24,23,25,23,24,24,23,23,21,21,22,18,21,18,19,18,16,19,19,18,20,20,22,23,22,21,22,23,21,22,23,24,21,22,24,23,24,25,25,26,24,26,24,26,24,24,24,24,25,25,25,27,25,25,25,23,24,23,23,22,24,23,20,22,22,22,21,21,21,23,22,22,22,23,24,24,23,24,25,25,25,25,25,24,25,25,25,25,26,25,26,26,26,25,27,25,27,25,25,23,26,25,24,23,26,26,23,24,25,23,23,22,22,22,22,22,22,22,22,21,23,23,21,21,21,21,21,19,20,20,20,21,20,23,21,22,21,20,22,23,23,22,22,23,25,24,22,21,22,22,22,21,21,22,21,20,22,20,20,20,21,19,20,20,21,20,19,21,21,20,19,21,22,20,22,22,21,20,22,21,21,22,22,21,22,23,24,22,23,23,22,22,22,22,21,23,22,21,20,22,22,20,22,21,21,22,21,18,20,20,20,19,19,17,18,16,18,18,17,18,19,19,20,19,21,21,21,21,21,23,23,21,22,24,24,23,23,23,22,22,22,20,21,21,20,21,18,19,21,19,18,17,15,17,19,17,21,19,17,17,20,18,16,19,21,18,18,21,21,19,19,21,21,19,20,20,20,20,22,20,22,23,21,21,22,21,20,21,19,15,19,15,14,14,15,11,11,14,11,14,13,15,15,14,14,16,18,16,17,17,19,16,17,18,16,17,19,19,19,16,17,18,15,15,14,11,13,9,12,16,14,14,15,14,14,14,19,18,17,19,19,19,19,20,18,17,18,20,20,21,21,22,22,22,21,23,23,20,22,22,22,22,22,23,22,24,24,22,24,24,25,25,24,25,26,24,25,26,26,25,25,26,26,27,27,27,28,28,28,28,28,28,29,29,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29],[30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,29,29,28,28,28,28,27,28,28,27,28,28,26,27,27,25,28,28,28,27,27,26,27,27,26,27,26,25,26,25,24,23,22,22,21,21,19,19,19,19,19,18,18,16,16,14,13,13,12,12,12,12,14,15,14,17,14,17,18,19,18,21,19,19,18,20,21,20,18,20,21,20,21,22,23,23,24,24,24,24,25,25,25,26,26,26,26,27,27,26,27,27,27,27,27,26,27,27,27,26,27,26,27,26,27,27,26,27,26,26,27,26,28,26,26,26,27,26,26,25,26,26,27,26,26,27,25,27,27,26,27,26,26,25,26,26,25,24,25,25,24,26,25,25,24,24,22,22,25,24,21,22,26,24,24,25,27,25,26,26,26,25,26,25,26,26,25,25,26,26,26,26,26,26,26,25,27,25,25,25,25,25,25,22,24,25,23,24,25,25,25,23,24,23,23,24,25,22,25,25,25,25,26,25,24,23,27,26,22,24,25,24,23,24,24,21,23,22,24,23,25,25,25,25,25,25,24,25,26,25,25,25,26,24,25,26,24,24,23,26,25,25,26,25,25,24,25,22,25,26,25,21,25,25,21,23,25,23,22,23,23,24,24,22,24,23,23,21,18,23,23,21,20,22,21,20,22,24,22,22,23,24,22,23,22,19,21,21,19,21,20,22,20,21,22,22,23,22,23,21,23,22,23,22,20,21,21,20,18,18,20,19,15,17,17,16,14,11,9,7,5,5,4,2,2,1,1,0,1,2,2,3,3,3,4,6,9,8,8,14,14,16,15,19,16,18,20,20,20,19,22,23,21,22,24,22,25,26,25,26,26,26,26,27,28,26,27,27,27,26,27,27,26,26,26,25,26,26,25,25,23,24,25,24,24,25,23,25,23,23,25,24,24,24,23,24,23,23,22,23,22,22,19,20,18,19,17,18,20,19,20,20,20,22,21,22,21,21,22,21,22,22,23,22,21,23,23,24,25,25,26,25,25,24,25,23,24,23,24,24,23,25,27,24,26,25,24,23,22,23,21,23,23,21,21,21,21,21,21,20,22,22,22,21,24,23,24,21,23,24,24,24,25,23,24,25,25,26,26,25,24,26,26,25,26,25,25,25,24,25,22,24,24,24,22,24,25,23,23,25,23,22,21,22,21,22,22,22,22,19,22,22,20,20,21,20,19,19,19,19,20,20,22,22,22,22,22,22,21,21,22,21,22,22,23,25,24,23,23,23,25,25,23,23,21,22,22,22,21,19,19,20,20,20,19,19,18,18,20,17,19,18,20,19,20,19,20,19,20,20,20,20,22,21,21,21,23,23,22,22,23,21,21,22,23,21,21,21,21,20,22,21,21,22,21,21,21,20,20,21,19,19,18,17,15,16,15,16,16,15,15,17,18,18,17,20,19,20,22,22,23,24,22,23,24,24,23,23,24,22,22,22,22,21,21,20,19,18,18,18,16,16,17,15,15,18,16,17,18,17,17,17,18,17,19,20,20,19,21,23,19,22,22,20,18,19,22,20,20,23,20,21,23,23,21,20,20,21,21,17,16,18,15,14,13,17,8,9,13,11,14,14,14,14,12,16,18,17,14,18,20,17,17,19,19,18,17,17,17,18,17,14,17,17,13,12,13,14,11,13,15,14,14,15,15,14,15,19,19,18,20,20,19,18,18,20,16,17,19,17,19,19,20,20,21,21,23,21,21,22,23,22,21,23,22,21,24,24,23,22,24,26,23,24,25,25,24,26,26,26,25,25,25,26,28,27,26,27,28,28,28,28,28,29,29,29,29,29,28,29,30,30,30,30,30,30,30,30,29,30,30,30,30,29,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,29,29,29],[30,30,30,30,30,31,30,30,30,30,29,29,30,28,29,28,28,29,28,28,27,27,28,27,26,28,28,26,28,26,26,28,28,28,28,28,27,27,27,27,27,26,26,26,26,25,24,24,23,23,22,22,21,22,21,20,20,20,18,16,17,15,14,12,12,14,14,15,15,16,16,17,18,20,19,21,20,21,21,20,22,22,21,20,22,22,20,21,23,24,24,25,25,24,25,26,27,27,27,27,27,27,28,27,27,27,28,27,27,27,27,27,27,27,26,27,27,27,26,28,28,27,27,27,26,28,26,28,27,27,26,27,26,26,26,27,26,27,27,27,28,26,27,27,27,27,27,27,25,26,27,27,25,26,26,25,27,26,25,25,25,23,23,25,25,24,24,26,26,26,25,28,27,26,27,27,26,26,27,27,27,26,26,27,27,27,26,27,27,26,27,26,26,26,26,26,26,26,25,26,26,25,25,26,26,25,23,25,24,23,26,26,25,26,27,26,25,26,26,25,24,27,27,23,26,26,26,23,25,25,25,24,22,24,22,24,25,25,25,26,26,25,26,27,27,24,26,25,26,26,26,25,26,25,26,26,26,27,26,26,26,25,26,26,26,26,23,25,26,22,24,25,23,23,23,24,25,25,24,25,24,24,24,21,24,25,23,22,24,23,22,24,25,24,23,23,24,23,24,23,22,21,23,21,22,22,24,22,22,23,24,26,23,24,23,22,23,22,21,22,19,20,19,17,18,18,19,16,17,16,13,14,14,9,8,5,4,4,2,2,2,1,1,0,1,2,2,2,3,3,5,6,9,9,10,13,15,14,16,16,18,19,19,19,19,21,21,21,22,24,23,24,25,25,26,26,26,26,26,27,26,27,26,26,27,27,27,27,26,26,24,26,26,24,24,22,23,24,24,24,24,24,25,23,24,24,23,24,23,23,24,22,22,22,23,21,20,21,19,18,18,19,18,19,17,20,20,21,23,23,23,21,22,22,21,20,23,23,21,21,24,23,22,23,24,25,23,24,24,25,25,25,24,23,25,24,24,26,23,24,24,21,24,22,21,20,23,22,21,21,22,20,21,20,22,22,22,22,22,23,24,25,24,24,25,25,25,25,24,25,25,26,26,26,26,26,26,26,26,25,27,25,26,25,26,25,26,25,25,25,25,26,24,26,25,24,24,22,22,23,24,23,22,23,21,22,24,23,20,22,21,21,21,21,21,20,22,21,21,22,22,23,23,23,22,23,22,22,23,24,25,24,24,24,25,25,24,24,25,23,23,22,23,22,21,20,21,22,21,20,20,21,22,21,21,23,20,22,22,21,21,22,22,21,22,22,22,25,23,23,23,24,25,25,23,25,24,22,22,25,23,23,21,21,21,21,21,21,23,23,21,21,23,19,21,21,19,18,18,19,16,17,20,18,19,18,20,20,20,20,22,21,22,22,23,23,24,23,23,25,25,24,24,24,23,23,23,23,23,23,22,21,20,20,20,19,19,19,17,18,20,19,20,20,19,20,20,19,20,19,22,19,20,22,21,19,21,22,19,19,20,22,19,21,24,20,23,24,22,19,21,21,19,21,18,15,18,17,12,14,16,12,11,13,11,15,15,15,17,13,16,17,16,14,18,20,15,18,19,18,15,17,18,19,19,15,14,18,15,13,14,14,15,11,15,14,13,13,17,15,14,14,17,18,16,19,19,19,17,16,17,17,17,19,18,19,19,20,20,20,19,21,21,21,22,22,22,22,22,23,23,24,24,22,25,23,25,25,26,25,26,26,26,25,26,26,25,26,27,28,27,27,27,28,28,28,28,28,29,28,30,28,29,29,29,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,30],[30,30,30,30,30,30,30,29,29,29,29,28,29,28,29,28,29,28,28,28,28,27,28,28,27,28,29,27,28,28,27,29,29,29,28,28,27,28,27,28,28,27,25,26,26,25,24,24,22,23,22,20,20,20,20,20,19,19,18,15,16,14,15,13,12,16,15,17,18,17,19,18,20,22,20,21,22,22,22,19,24,24,23,22,24,23,22,22,23,25,24,25,26,25,25,26,26,27,28,28,28,28,28,28,28,28,28,28,27,28,28,28,27,28,27,28,28,28,27,29,28,27,28,28,27,28,28,28,28,27,27,27,27,27,27,27,27,27,28,27,28,27,28,28,28,28,28,28,27,28,28,28,26,26,26,25,27,27,25,26,25,23,25,27,26,24,26,28,26,26,27,27,27,28,27,28,27,28,27,27,27,28,26,27,27,28,27,28,28,26,27,28,27,26,26,26,27,27,25,27,26,25,25,26,26,25,23,24,24,24,26,26,25,27,27,27,26,27,27,27,25,28,28,23,26,27,27,24,25,27,24,24,25,25,25,26,27,27,27,27,27,27,27,28,27,27,27,28,26,28,27,27,27,26,27,26,26,26,27,27,26,26,26,26,26,26,24,26,26,22,24,26,23,21,24,24,24,26,22,25,25,23,22,21,24,25,23,21,25,24,22,24,26,25,22,24,26,24,25,23,19,22,23,22,21,23,25,23,23,25,24,27,25,26,24,24,24,24,22,22,20,21,22,17,18,19,20,17,18,18,17,16,16,11,8,7,5,4,3,3,2,2,2,1,0,1,2,2,2,3,4,5,6,9,11,10,14,14,16,16,17,18,17,19,20,20,20,20,22,23,25,23,26,25,26,25,26,25,27,27,26,27,27,26,26,25,26,26,25,25,24,25,26,24,25,23,23,25,22,24,24,22,26,24,22,26,23,24,24,24,24,24,23,22,23,21,22,21,21,20,18,19,18,20,19,19,20,21,23,24,23,21,23,24,21,22,23,24,21,24,26,24,23,25,25,25,25,26,25,27,26,26,26,26,26,25,26,27,26,25,25,22,24,25,24,23,24,24,21,23,24,22,23,21,23,24,23,24,24,25,25,26,26,25,26,27,26,27,26,25,26,26,27,27,26,27,27,28,28,27,28,27,28,27,26,26,28,27,27,26,27,27,25,26,26,25,25,22,24,24,23,22,23,23,23,22,23,22,21,21,21,21,21,19,22,20,21,22,21,23,22,23,22,21,21,24,25,22,23,24,26,26,24,23,22,24,23,23,23,23,22,22,24,21,21,22,22,21,22,21,22,21,21,22,21,21,21,23,21,19,23,23,21,21,24,22,22,25,24,23,23,25,26,24,24,25,24,24,23,24,23,23,23,22,22,21,22,20,21,22,19,22,22,19,21,21,18,17,18,19,16,18,18,20,19,18,20,19,22,21,22,22,22,23,23,24,24,22,23,25,26,24,25,24,23,24,23,22,23,23,21,22,20,20,22,21,19,20,18,19,20,19,21,20,19,18,21,19,19,19,22,19,18,21,22,19,19,22,20,19,19,20,20,20,22,20,21,22,21,19,20,20,18,20,17,16,15,14,14,15,16,15,11,14,12,16,16,16,18,13,17,18,16,15,17,20,16,18,18,18,18,17,19,17,18,17,16,15,15,16,13,12,16,12,16,14,16,15,18,16,16,16,18,18,17,20,19,18,18,19,17,18,18,19,19,19,19,21,19,20,19,22,21,20,21,22,23,23,22,22,24,25,25,24,26,26,25,27,27,26,27,26,27,27,27,26,26,27,28,28,27,28,28,28,28,29,29,28,29,29,30,29,29,29,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29],[30,30,30,30,30,30,30,30,29,29,29,29,29,29,29,28,29,28,28,28,27,27,27,27,27,27,28,27,27,27,26,28,28,28,27,27,27,27,27,27,27,25,25,25,25,24,24,23,22,23,22,21,21,20,19,21,20,18,17,17,17,17,16,14,13,17,14,15,17,17,18,17,19,19,20,19,21,20,20,20,22,22,21,20,21,22,21,21,23,23,23,24,25,25,25,26,26,26,26,27,28,27,27,28,28,27,27,27,27,27,27,28,28,28,27,27,27,28,27,28,28,27,28,28,26,28,28,28,28,27,27,27,27,26,25,26,26,27,26,27,28,27,27,27,27,27,28,28,26,27,27,26,25,24,26,25,26,26,26,25,25,23,24,25,25,24,24,26,26,26,26,27,26,27,27,27,26,27,26,27,27,27,26,27,27,27,27,27,27,26,27,26,26,26,26,26,26,26,24,26,26,25,24,25,25,24,23,24,24,24,25,25,24,26,26,26,25,26,27,26,24,27,27,23,26,27,25,23,24,26,23,24,24,25,25,25,26,27,27,27,27,26,27,28,26,26,27,27,26,27,27,26,25,26,26,26,27,26,26,27,25,26,24,25,27,25,22,25,26,22,23,25,23,22,23,22,22,25,22,24,24,24,22,20,23,24,22,20,23,22,20,22,25,23,21,22,25,22,23,22,19,21,22,20,21,21,24,22,21,24,23,24,23,25,23,23,23,23,22,22,21,21,21,20,20,20,19,17,19,20,17,16,13,10,8,7,6,5,4,3,3,3,3,2,1,0,1,3,2,4,5,6,7,9,12,12,14,14,16,15,16,18,19,19,19,22,22,21,23,24,25,25,25,26,26,26,27,26,27,27,26,27,27,27,26,27,27,27,25,26,24,25,25,24,24,24,24,23,23,24,24,23,25,24,24,26,23,23,25,23,25,23,23,24,23,23,23,21,24,20,20,19,19,21,21,20,20,20,23,23,23,21,22,23,22,21,22,24,23,22,25,25,24,24,24,26,25,26,25,26,25,25,23,25,26,23,25,26,24,24,25,24,23,23,24,23,24,23,22,21,23,22,21,21,21,23,22,22,21,22,24,24,24,25,26,26,26,26,26,25,26,27,26,26,26,26,26,27,27,27,26,26,27,26,25,24,26,26,25,24,26,26,24,24,24,24,24,22,23,22,22,22,22,21,20,21,23,19,19,20,19,17,19,20,19,18,20,21,22,22,21,22,21,22,21,23,22,22,23,23,25,24,24,22,23,23,22,21,22,21,21,21,21,19,19,19,19,19,20,18,19,17,20,21,18,18,19,22,19,18,22,21,18,19,22,19,20,22,22,20,21,23,23,23,23,24,21,21,22,23,20,21,21,20,19,21,21,20,20,21,20,20,21,19,19,20,17,17,19,16,15,15,16,20,18,18,18,19,19,19,21,19,20,22,21,24,24,22,23,24,25,23,24,25,23,23,23,22,22,21,20,21,19,19,21,19,19,19,17,16,20,17,18,18,17,16,19,18,17,17,20,18,16,20,20,19,18,19,20,18,20,21,20,20,22,19,22,23,21,20,20,19,19,19,21,17,16,15,13,14,16,12,11,13,13,17,16,17,17,14,16,18,14,15,17,19,17,17,19,19,17,17,19,20,20,20,18,17,18,16,15,15,16,11,14,16,16,17,17,16,16,16,19,20,19,20,20,21,18,19,19,18,20,21,20,20,22,21,20,22,19,23,21,21,23,22,22,21,22,23,22,24,24,23,25,25,25,25,25,26,26,25,26,26,27,26,26,27,28,28,28,28,28,29,29,28,29,28,29,29,30,29,30,29,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29],[30,30,30,30,30,30,30,30,30,30,29,29,29,29,30,28,29,28,28,28,27,27,28,27,27,28,28,27,28,27,26,28,27,28,27,27,26,26,26,26,26,26,25,25,24,24,24,22,22,22,22,20,20,21,19,19,19,19,17,16,15,15,14,12,12,14,14,15,16,15,18,18,20,20,21,21,21,21,21,21,23,23,22,22,23,24,23,23,25,25,25,25,27,27,26,26,28,27,28,28,28,27,28,28,28,28,28,27,28,28,28,28,28,28,28,28,28,28,27,28,28,27,28,28,27,29,29,28,28,27,27,28,27,27,26,27,27,28,28,27,29,28,28,28,28,28,28,29,27,27,28,27,26,26,27,26,27,27,26,26,26,25,24,27,26,25,25,27,27,26,27,29,28,28,28,28,27,28,28,27,28,28,27,28,28,28,28,28,28,27,28,27,28,27,28,27,27,27,26,27,27,26,26,26,26,25,24,25,26,26,26,26,27,27,27,27,26,28,28,27,26,29,29,25,26,28,27,25,25,27,24,25,24,26,25,25,26,27,27,28,27,27,28,29,27,27,28,28,27,27,27,27,26,27,27,27,28,27,27,27,27,27,26,27,27,27,24,26,27,23,24,26,24,23,25,24,25,27,24,24,26,25,25,22,25,26,23,23,24,23,22,24,26,25,24,23,26,24,24,24,22,22,24,21,22,23,25,24,23,25,25,26,24,26,24,24,24,24,22,22,22,21,21,20,19,20,20,19,19,19,17,16,15,10,9,7,6,5,4,4,3,3,3,3,2,1,0,1,3,3,5,6,7,8,10,13,14,13,16,16,16,18,19,18,18,21,21,20,22,24,23,25,25,24,26,26,26,25,26,26,26,26,26,27,26,27,27,26,25,25,24,26,24,24,23,23,24,23,23,24,24,24,25,24,24,25,23,24,23,23,24,23,22,23,22,22,21,21,21,19,20,20,20,20,21,21,22,22,25,23,23,22,23,23,23,23,22,23,23,23,25,24,24,23,25,25,24,26,25,25,26,25,25,25,26,24,25,25,25,24,26,24,24,23,24,22,24,24,24,22,23,22,22,22,23,23,23,23,23,23,25,25,24,25,27,27,25,27,27,26,26,27,27,27,27,26,27,28,27,27,27,27,28,27,27,26,27,26,27,26,27,27,25,26,26,25,26,23,24,24,25,23,24,23,22,21,23,21,20,20,21,20,20,21,20,21,22,23,24,25,23,23,23,24,24,24,24,24,24,24,26,25,26,24,25,26,25,23,24,23,24,22,22,21,21,20,21,20,22,19,21,19,20,22,21,20,21,23,22,20,23,22,21,21,23,22,22,25,23,23,22,25,25,24,24,25,23,22,23,25,23,22,21,22,21,21,22,20,23,24,21,21,23,21,21,22,18,19,19,19,17,16,18,18,18,17,18,19,20,20,22,21,22,23,23,25,25,23,25,25,26,24,25,26,24,24,25,24,23,23,22,20,19,21,21,19,19,20,17,17,19,17,19,19,19,18,19,19,19,18,21,18,20,22,22,20,21,22,21,20,21,23,21,22,25,23,23,25,23,21,21,21,20,21,22,16,18,17,14,15,17,12,11,14,12,15,17,19,17,14,17,19,16,15,19,21,16,18,22,20,18,19,20,20,19,19,14,17,17,14,13,15,16,11,15,17,16,13,19,18,16,16,20,20,19,21,20,21,20,20,20,19,20,21,19,21,20,21,21,21,22,23,22,23,22,23,24,23,24,24,23,25,25,25,26,26,26,25,26,26,27,26,27,27,27,28,27,27,28,28,28,28,28,29,28,28,29,29,28,28,30,28,29,29,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30],[30,30,30,30,30,30,30,29,29,29,29,28,29,29,29,28,29,28,27,29,27,27,28,27,27,28,28,27,28,27,26,28,27,27,28,27,26,27,26,26,25,26,26,25,24,24,25,23,23,24,23,22,21,22,21,21,20,20,19,17,18,17,16,15,15,17,16,17,19,19,20,20,22,23,24,23,24,24,23,23,25,25,24,24,25,26,25,23,25,26,25,25,28,27,27,28,28,27,28,28,29,28,29,29,29,28,29,28,28,28,28,29,28,29,28,28,29,29,28,29,29,28,29,28,27,29,29,29,29,28,28,28,27,27,27,28,28,28,28,28,30,28,29,29,28,29,29,29,28,28,29,28,27,27,28,26,28,28,27,26,27,26,26,28,27,26,26,28,28,28,28,29,29,28,29,28,27,28,28,28,29,29,27,28,29,29,28,28,29,28,29,28,28,28,28,28,27,28,26,28,28,26,26,27,27,25,23,26,26,25,26,27,28,28,29,28,27,28,29,28,27,29,29,27,28,29,28,27,27,28,27,27,26,27,26,26,27,28,27,28,28,28,27,29,28,28,28,28,28,28,28,27,28,27,28,26,28,28,27,28,27,28,28,28,28,28,26,27,28,24,26,27,24,24,26,23,26,27,24,24,27,25,26,23,26,27,25,25,26,26,23,26,28,27,26,25,27,26,26,26,24,25,26,24,25,25,26,26,25,26,26,27,25,26,25,25,26,25,23,25,22,23,22,20,20,21,21,19,19,19,17,17,16,13,10,7,7,5,5,4,5,4,4,3,3,2,1,0,2,4,4,5,6,7,10,11,12,14,15,15,16,17,18,17,19,19,21,20,21,21,24,23,25,24,25,25,26,25,26,26,25,26,25,25,25,26,26,25,24,25,23,25,23,24,22,23,23,23,23,24,24,23,25,24,24,24,23,23,23,23,24,24,21,23,22,22,21,20,22,19,19,21,20,21,20,21,22,24,26,25,24,24,25,25,23,22,24,24,22,23,26,24,22,23,25,25,25,25,26,26,26,27,27,26,27,25,26,26,26,24,26,23,25,25,23,24,25,25,24,24,24,22,23,24,23,25,26,25,26,26,26,27,27,26,27,27,27,27,27,27,26,27,27,26,27,26,27,28,27,27,28,27,28,27,28,28,28,28,27,27,27,28,27,27,27,26,27,25,26,26,26,24,26,25,23,23,25,22,21,21,21,21,21,21,22,21,22,22,23,25,23,24,23,25,22,25,26,24,24,25,27,26,26,25,25,26,25,24,25,24,23,23,23,20,21,23,22,21,23,22,21,21,23,24,22,22,23,25,24,23,26,24,23,24,25,24,25,26,25,25,25,27,26,27,26,27,26,24,25,27,24,24,24,23,23,21,23,20,23,23,20,22,23,21,19,21,21,20,20,20,20,21,21,21,21,21,20,22,22,23,23,24,23,24,25,26,26,25,26,27,27,25,26,27,25,25,26,24,23,24,24,23,21,22,23,22,23,22,21,19,22,20,22,20,22,21,23,21,21,20,22,19,21,22,22,21,21,22,21,22,21,23,22,21,24,22,23,23,22,20,20,20,20,21,19,17,19,20,13,16,18,14,14,17,16,18,19,20,19,17,18,19,17,16,18,20,18,18,21,19,18,18,19,17,18,18,15,16,16,14,14,14,15,12,13,16,15,15,18,19,18,17,19,21,19,22,21,21,20,20,17,19,19,19,19,20,19,20,20,21,21,21,21,23,22,22,24,23,23,24,24,25,26,25,27,26,26,26,27,27,28,27,28,27,27,27,27,27,29,28,27,28,28,28,28,28,29,28,29,28,30,28,29,29,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,29,29,30,30,30,30,30,30,30,30,30,29,30,30,29,30],[30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,28,28,28,28,28,27,27,27,27,27,27,27,27,27,28,26,28,27,28,28,27,27,27,27,27,26,26,25,26,25,24,25,24,23,23,24,23,21,21,21,21,19,20,19,17,18,18,17,14,17,19,19,21,23,22,23,21,24,25,25,23,25,26,25,22,26,26,24,23,26,27,25,24,26,27,25,27,28,28,28,29,28,28,29,29,29,29,29,28,29,29,29,29,29,30,29,30,29,29,29,29,29,30,30,30,30,28,29,30,29,29,30,30,29,29,28,28,28,28,27,28,28,28,28,29,30,29,29,29,29,29,29,30,29,29,29,29,28,27,29,27,28,28,28,28,28,26,28,29,28,26,28,29,28,29,29,29,29,29,29,29,28,29,28,29,29,29,28,29,29,29,29,29,29,28,29,28,28,28,28,28,27,28,27,28,28,27,26,27,27,26,25,27,27,27,28,28,28,29,29,29,28,29,29,29,28,29,30,27,28,29,29,27,28,29,27,27,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28,28,28,28,28,28,28,29,28,28,28,28,28,28,29,26,26,27,26,25,26,25,25,28,25,27,28,27,27,23,27,28,26,24,27,27,24,26,28,27,25,25,28,27,26,25,24,25,27,25,25,26,28,25,25,28,27,27,27,28,27,28,27,26,25,25,24,24,24,23,23,23,23,21,23,23,21,20,18,14,9,9,8,6,6,4,5,4,4,4,3,3,2,1,0,2,4,4,5,7,9,10,10,11,13,15,16,17,18,20,19,20,22,21,22,23,24,24,26,25,25,25,26,25,26,25,25,26,25,25,26,26,26,26,25,25,24,24,24,24,23,23,23,23,22,24,24,23,24,25,23,25,25,25,25,23,26,26,24,25,25,24,25,24,25,24,23,23,23,24,23,22,22,24,26,27,25,24,26,27,26,24,26,26,24,25,28,26,25,27,27,28,27,28,28,28,28,28,28,28,29,27,28,28,27,27,28,26,27,27,26,25,27,27,25,25,26,26,25,25,25,27,26,26,26,27,27,28,28,28,29,28,28,28,28,27,28,28,28,28,28,29,29,29,29,28,29,29,29,28,29,28,29,29,28,28,29,28,27,27,27,27,28,24,26,26,27,26,26,26,24,24,26,22,22,22,22,20,21,21,23,21,23,23,24,26,24,27,24,26,24,26,27,24,25,27,27,27,26,25,27,27,25,23,27,24,24,23,25,21,22,24,24,21,23,23,23,21,23,25,21,21,24,26,22,23,25,25,24,23,26,25,23,27,26,25,25,27,28,27,26,27,26,25,26,27,24,25,25,24,23,23,25,22,23,24,22,22,23,21,22,23,19,19,22,19,21,20,21,22,22,22,22,23,24,24,24,25,24,26,25,27,27,25,26,28,28,26,28,27,25,26,26,26,25,24,24,25,22,23,24,25,24,24,23,21,25,22,22,22,22,22,23,22,22,22,24,21,21,23,22,21,22,23,23,21,23,23,22,22,24,22,23,23,22,21,22,21,20,23,18,17,19,20,15,16,20,16,14,20,19,20,20,24,22,21,21,21,20,20,22,22,20,21,23,22,20,21,21,19,21,21,18,18,20,16,14,15,20,14,16,20,21,18,21,22,21,19,22,23,21,23,24,23,23,24,22,20,21,22,21,22,22,22,22,23,21,25,24,23,25,24,25,24,25,25,26,26,26,27,28,27,28,28,28,27,28,28,29,28,29,27,28,29,29,29,29,29,30,29,29,29,30,29,30,29,30,30,30,29,30,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,30,30,30,30,30],[30,30,30,30,30,31,31,30,30,30,30,30,30,30,30,30,29,29,29,29,29,28,28,28,28,28,28,28,28,28,26,28,28,28,28,27,27,28,27,27,27,26,26,25,25,24,24,23,22,23,24,22,21,22,21,20,20,20,19,18,17,19,18,16,17,20,20,21,23,23,22,23,24,25,26,24,26,27,25,24,25,27,25,25,26,28,26,26,27,28,27,28,28,28,29,29,29,29,29,29,30,29,29,29,30,29,29,29,29,30,29,30,30,30,29,29,29,30,30,30,30,29,30,30,29,30,30,30,29,29,28,29,29,28,28,29,29,28,28,29,29,29,29,29,30,30,29,30,29,29,29,29,28,28,29,28,29,28,29,28,28,27,27,29,28,27,28,29,28,29,29,29,29,30,30,29,28,29,29,29,29,29,29,29,30,29,29,29,30,29,29,27,29,28,28,28,28,28,28,28,28,28,28,28,28,28,27,28,28,28,28,28,27,29,29,29,29,29,29,29,28,30,30,28,29,30,29,27,28,29,28,27,27,28,28,28,29,29,29,29,29,29,29,30,29,29,30,30,29,29,29,28,28,29,29,28,29,29,29,29,29,29,28,29,29,28,28,29,29,26,28,28,28,26,27,27,27,28,27,27,28,28,28,24,27,28,27,26,28,27,25,27,29,28,26,27,28,28,27,26,25,26,28,24,26,27,29,25,26,28,28,28,28,29,28,28,28,28,26,25,25,25,26,24,24,24,24,22,24,23,24,22,19,15,11,9,9,8,9,7,7,5,6,6,4,4,4,3,2,0,3,4,4,6,8,10,11,12,14,13,15,18,16,19,20,20,22,20,21,24,24,24,26,25,27,27,27,26,27,27,26,27,26,26,26,26,26,26,24,25,23,25,24,23,24,22,23,24,23,24,24,24,26,24,24,26,25,26,25,26,27,26,26,27,26,26,25,25,25,24,25,23,24,26,25,23,24,25,27,28,27,25,27,28,27,25,27,28,26,26,29,28,27,28,28,29,29,28,28,29,29,29,28,29,29,27,29,28,27,28,28,26,27,28,27,26,29,28,26,26,28,27,25,26,26,28,26,27,26,28,28,28,27,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,28,28,29,29,28,29,28,27,28,26,27,27,27,26,27,26,25,25,27,23,23,24,23,22,23,22,23,23,25,24,26,27,26,27,26,26,26,27,27,26,27,27,28,27,28,27,28,28,26,26,28,25,26,26,27,23,24,25,25,23,24,25,24,22,24,26,23,23,25,27,24,25,27,26,25,25,27,25,25,27,28,25,26,27,28,27,28,28,27,25,27,28,25,26,26,25,24,26,26,24,26,25,24,24,24,24,24,24,23,22,23,21,21,20,22,22,23,22,21,23,22,23,25,24,24,26,26,28,27,25,27,28,28,27,28,28,26,26,27,27,25,24,25,25,22,24,24,24,23,24,22,22,24,23,24,22,22,24,24,23,23,22,25,23,24,25,25,23,25,25,25,25,26,27,25,25,27,26,26,27,25,24,25,25,24,25,22,20,20,22,18,19,21,18,17,21,18,22,23,25,24,22,24,24,22,23,25,25,23,23,26,25,23,23,24,23,24,23,20,21,20,17,16,18,20,16,20,21,20,22,23,22,23,23,25,25,22,25,25,25,25,24,24,23,23,25,22,25,25,26,25,26,24,27,26,25,27,27,27,25,27,28,26,28,29,27,28,28,29,29,29,29,29,28,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,30,31,30,30,30,31,30,31,30,31,30,31,31,30,31,31,30,30,30],[30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,29,29,28,29,28,28,29,28,28,28,29,28,28,28,27,28,28,29,28,28,27,28,27,28,27,27,26,26,26,26,26,25,23,24,25,24,22,24,22,23,22,21,20,20,19,19,18,16,18,19,21,22,22,24,24,25,25,27,27,26,27,27,26,25,27,28,27,26,28,28,28,27,28,29,28,28,29,29,29,30,30,29,30,30,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,30,30,29,29,29,29,28,28,30,29,29,30,29,30,29,30,29,30,30,30,30,30,30,30,29,29,28,30,29,29,29,29,29,29,28,28,29,29,28,28,30,29,29,29,30,30,30,30,30,29,30,29,29,30,30,29,29,30,30,29,30,30,29,30,29,30,29,29,29,29,29,28,29,29,29,29,29,28,28,27,29,29,29,29,29,29,29,30,29,29,30,30,30,29,30,30,29,29,30,29,28,29,29,29,28,28,29,28,28,29,29,29,29,29,29,29,30,29,29,29,30,30,30,29,29,29,29,29,28,29,29,29,29,29,29,29,29,29,30,29,29,29,28,29,29,29,28,28,27,28,29,27,28,29,29,29,26,29,29,28,28,28,29,26,28,29,29,28,27,28,29,28,28,27,26,28,27,27,27,29,27,27,28,28,29,27,28,28,28,29,27,26,27,26,25,26,25,25,24,25,23,23,23,23,22,20,18,13,13,10,9,11,10,11,7,6,8,6,5,4,4,3,1,0,2,3,5,6,7,10,12,13,13,15,17,18,19,19,20,22,21,21,23,23,24,26,23,26,25,25,26,26,26,25,25,25,25,26,26,26,26,25,25,24,24,24,22,24,23,23,23,23,24,23,23,24,24,23,24,24,24,25,26,26,26,25,26,24,25,24,24,25,23,24,25,24,26,25,25,25,27,29,28,27,27,28,28,27,26,28,28,26,27,29,27,26,27,28,27,27,28,28,28,29,28,29,28,29,28,28,27,28,26,28,26,27,29,26,27,28,28,26,27,27,26,27,27,28,28,29,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,30,29,29,29,29,29,29,29,30,29,29,29,29,28,30,28,28,29,29,28,29,29,26,27,29,26,25,25,25,24,25,25,25,25,26,26,26,28,28,29,28,29,27,28,29,28,27,28,29,28,28,27,28,28,28,27,29,27,27,27,28,25,25,27,27,24,27,27,25,24,27,28,25,25,27,28,26,27,28,27,26,27,29,27,27,28,29,29,28,28,29,29,29,29,29,27,29,29,28,28,28,27,27,27,27,26,28,28,26,27,27,26,25,26,25,24,26,24,25,23,25,25,24,24,23,24,25,26,27,26,27,27,28,28,28,27,28,29,29,28,28,29,27,28,28,28,26,27,27,26,24,25,25,25,24,25,23,24,25,24,25,25,24,25,25,24,25,25,26,24,25,27,27,25,27,27,26,26,27,27,27,27,28,27,28,28,27,26,27,27,25,27,23,21,24,24,17,22,23,19,19,22,20,22,23,24,24,22,24,24,23,23,25,26,21,25,26,26,23,25,26,24,25,24,21,22,23,18,17,19,20,15,18,21,19,20,24,24,22,23,25,25,24,26,26,26,26,26,25,23,25,26,25,27,25,27,27,27,26,28,27,28,28,28,28,26,27,28,28,29,29,29,30,29,29,29,29,29,29,29,30,30,29,29,28,29,30,29,29,29,29,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,31,31,30,30,31,30,30,30,31,31,30,31,31,30,30,31,31,31,31,30,31,31,31,31,31,31,30,31,31],[31,31,31,30,31,31,30,30,30,30,30,29,30,29,30,29,29,29,28,29,28,28,28,28,28,28,29,28,28,28,27,28,27,28,28,27,27,27,27,27,26,26,25,25,25,25,25,25,23,24,25,24,22,24,23,22,23,24,22,22,21,22,22,20,22,23,24,24,26,27,26,27,28,28,29,28,29,29,29,26,28,29,29,28,29,30,29,28,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,29,30,29,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,29,30,29,30,29,29,29,29,29,29,30,29,29,29,30,30,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,31,29,30,30,30,29,30,30,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,30,30,29,30,30,30,30,30,30,29,30,29,29,30,30,29,29,28,29,30,29,29,30,30,30,28,30,30,29,29,30,29,28,30,30,30,29,29,29,29,29,29,28,28,29,28,29,29,30,28,28,29,29,30,29,29,29,29,29,29,28,28,27,27,27,26,26,26,27,24,26,25,24,25,21,19,16,16,14,11,12,11,11,9,7,8,7,6,6,4,4,4,2,0,2,4,5,6,7,9,13,13,15,17,17,19,19,19,21,21,21,22,24,23,26,25,26,26,26,25,26,25,24,25,24,24,25,25,25,26,23,24,23,24,23,24,23,23,22,24,24,24,26,24,26,25,24,26,25,26,26,25,27,26,25,27,26,26,25,26,25,25,25,26,24,27,26,26,26,28,29,29,29,28,29,29,28,28,29,29,27,28,30,29,27,28,29,28,29,29,29,29,30,29,30,29,30,29,29,29,29,27,29,26,28,29,27,28,29,29,27,28,29,27,28,28,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,30,29,29,29,30,29,29,29,28,28,29,27,27,27,27,27,26,26,27,27,28,28,29,30,29,29,28,29,28,29,29,29,29,29,30,30,30,29,30,30,29,28,29,28,28,29,29,26,26,28,29,26,28,28,27,25,28,29,27,27,29,29,27,28,29,28,28,28,29,28,28,29,29,29,29,28,29,29,29,30,30,28,29,30,28,29,28,29,28,29,28,26,28,28,27,27,27,27,27,27,26,26,27,24,26,26,27,27,26,26,27,27,27,28,28,28,28,29,29,30,29,28,29,30,29,29,30,30,28,29,29,29,29,29,28,28,27,27,27,28,28,27,27,25,27,27,28,26,26,26,27,26,26,26,27,26,26,28,28,26,27,27,27,27,28,27,27,26,29,27,28,28,27,26,26,27,25,27,25,22,25,25,21,24,26,23,22,25,24,26,26,27,26,25,25,25,26,24,25,26,22,25,26,27,23,25,25,24,24,24,19,23,23,18,18,19,19,19,21,22,21,23,24,25,25,23,26,26,25,27,27,26,26,26,26,24,25,26,24,26,25,26,26,27,26,28,27,28,28,28,29,28,28,29,29,30,29,29,30,29,30,30,30,29,29,29,30,30,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31],[31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,30,30,29,29,29,29,29,28,28,28,28,28,28,29,28,29,28,29,29,27,28,28,27,28,27,27,26,26,26,25,27,25,24,26,26,25,23,24,24,23,23,23,22,22,22,23,23,21,24,26,25,27,27,28,28,27,29,29,29,28,29,29,29,28,29,29,29,28,29,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,31,31,30,30,30,30,30,31,31,31,30,30,30,31,31,31,30,30,31,30,30,30,31,30,30,30,30,30,30,29,29,29,30,29,30,30,30,30,30,30,30,31,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,31,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,30,29,30,30,30,30,29,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,29,29,29,30,29,29,29,30,29,29,30,30,30,30,30,29,30,30,30,29,29,28,28,29,27,28,28,27,26,28,27,28,26,25,22,19,18,17,15,13,12,13,12,11,10,7,9,7,6,5,5,4,2,0,2,4,5,6,9,10,11,14,16,16,19,19,19,21,21,21,23,25,23,26,24,25,26,26,25,26,25,24,25,24,25,24,25,25,25,24,24,24,24,24,22,23,22,21,23,22,24,24,23,25,24,24,26,24,26,26,26,27,27,26,28,27,27,27,27,27,27,28,27,27,28,29,27,27,29,29,30,29,28,30,30,29,28,29,30,28,28,30,30,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,29,30,28,29,30,29,28,30,30,28,29,30,29,28,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,30,30,29,30,30,29,28,30,28,28,28,28,27,27,27,27,27,28,27,29,30,29,30,29,30,29,29,29,29,29,29,30,30,30,29,30,30,29,29,30,29,29,29,30,27,28,29,28,27,29,29,28,26,29,29,28,27,29,29,28,29,29,29,28,29,29,29,28,30,30,29,29,29,30,30,30,30,30,29,29,30,29,30,29,29,28,29,29,27,29,29,28,28,28,27,27,28,27,27,28,26,28,26,27,27,28,27,27,28,28,28,29,29,28,29,29,30,30,29,29,29,30,29,30,30,29,29,30,29,29,29,28,29,27,28,28,28,28,28,28,27,29,28,28,28,27,28,28,27,28,27,29,27,28,29,29,27,29,28,29,28,29,29,28,28,29,28,29,29,28,27,27,27,27,28,27,24,27,28,23,26,27,25,24,28,26,27,27,29,29,27,28,27,28,27,27,28,26,27,28,28,26,27,28,27,27,26,23,25,25,22,21,22,24,24,25,25,25,26,27,27,27,27,28,28,27,29,29,28,28,28,27,26,27,28,26,28,27,28,27,28,27,29,29,29,29,29,29,28,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,31,31,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,30,31,31,31,31,30,31,30,30,30,30,30,30,30,30,30,29,30,29,29,30,29,29,29,29,29,29,30,28,29,28,29,29,28,28,29,28,28,28,28,27,27,27,26,27,26,24,25,26,24,25,25,24,24,23,23,22,21,21,22,21,20,24,25,27,26,27,27,28,28,29,29,29,28,30,30,29,28,29,30,29,29,30,30,30,29,30,30,30,30,30,30,30,30,30,31,31,30,30,31,30,30,31,31,30,30,31,30,30,31,31,31,30,31,30,31,30,31,30,31,31,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,31,31,31,30,31,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,31,31,30,30,31,30,30,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,31,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,29,30,30,30,30,30,30,29,30,30,30,30,29,30,30,30,30,29,30,30,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,29,29,29,29,29,28,29,28,29,28,28,28,28,27,26,23,21,22,21,16,18,17,15,14,15,13,10,10,10,9,7,7,6,4,2,0,1,4,5,7,8,10,12,14,16,18,18,20,20,20,21,23,25,23,26,25,26,26,27,25,27,26,25,26,25,25,26,27,26,26,24,25,22,23,24,21,24,22,22,24,22,25,24,23,26,25,24,26,26,26,26,27,27,27,26,27,27,27,26,27,28,27,28,28,28,29,29,29,29,30,30,30,30,29,30,30,30,29,30,30,29,30,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,29,29,30,30,29,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,31,30,31,30,31,31,31,30,30,31,30,30,30,30,30,30,30,30,30,31,30,31,31,30,30,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,28,28,28,28,29,28,29,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,29,30,29,29,30,29,29,30,29,28,28,30,30,28,29,29,29,28,29,29,28,29,30,30,28,30,30,30,29,29,30,30,29,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,29,29,29,29,29,29,28,28,29,28,28,27,27,27,28,27,28,28,28,28,29,28,29,29,29,30,30,29,29,30,30,29,30,30,29,30,29,30,29,29,29,29,28,28,28,29,28,29,28,27,28,28,29,28,28,28,28,28,28,28,29,28,28,30,29,28,30,30,29,30,30,30,29,29,30,29,30,30,29,29,29,29,29,29,29,27,28,28,25,27,27,26,25,27,26,27,28,28,28,27,28,27,28,28,28,28,27,29,29,29,28,28,29,28,28,27,26,27,27,23,23,26,26,23,26,28,27,27,29,28,28,28,29,29,29,30,29,29,29,29,28,27,28,29,28,29,28,29,28,30,29,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,29,30,29,29,29,29,28,28,29,29,29,29,29,28,29,28,29,29,28,28,28,28,28,28,28,27,26,27,26,27,25,26,27,27,25,25,26,26,25,25,25,24,23,23,24,23,23,26,26,27,27,27,29,29,29,29,29,30,29,30,30,30,29,30,30,30,30,30,30,31,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,31,31,30,31,30,30,30,30,30,31,30,30,31,30,31,31,31,31,30,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,30,31,30,30,30,31,31,30,31,31,31,30,31,31,31,31,31,30,31,31,31,30,30,31,31,30,31,31,30,30,30,31,30,30,30,30,30,30,31,30,30,31,30,31,31,31,31,31,30,31,30,30,31,31,31,31,31,31,31,30,31,31,30,31,31,31,30,31,31,30,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,31,31,31,30,30,31,31,30,31,31,31,30,30,31,31,31,31,30,30,30,31,30,30,31,30,31,30,30,30,30,30,30,30,30,30,31,31,30,30,31,30,30,30,30,30,30,29,30,30,30,30,29,30,30,31,30,30,30,30,30,30,29,30,29,29,29,28,28,29,29,28,28,27,28,27,25,24,22,22,21,17,19,20,19,15,14,15,13,11,10,10,7,7,5,5,4,2,0,1,3,4,7,8,10,13,14,16,17,18,20,19,20,23,23,23,25,24,24,24,25,24,26,24,24,25,24,24,25,25,24,24,23,24,21,24,23,22,23,23,22,23,23,25,25,24,25,25,24,25,25,26,26,26,27,26,26,27,27,27,26,27,26,26,28,29,27,29,29,29,29,30,30,30,30,29,30,30,30,29,30,30,30,29,30,30,29,29,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,29,30,28,30,30,29,29,30,30,29,30,30,30,30,30,30,31,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,30,31,31,31,30,30,30,31,30,30,30,30,29,29,30,29,30,30,30,31,31,30,31,30,31,30,30,30,31,31,31,31,31,31,30,31,31,30,30,31,30,30,30,31,29,30,30,30,29,30,30,30,29,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,30,30,31,30,31,30,30,30,30,30,29,30,30,29,30,30,29,30,30,29,29,30,28,29,29,29,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,31,31,30,31,31,30,31,30,31,30,30,30,30,29,29,30,30,29,29,29,29,29,29,30,29,29,29,29,29,29,28,29,29,29,30,29,29,30,30,30,30,30,30,30,29,30,30,30,30,29,29,29,29,28,29,29,27,29,29,25,28,28,27,26,28,28,28,29,29,29,29,29,28,29,29,29,29,28,29,29,30,28,29,29,29,29,27,25,28,28,23,24,26,26,24,27,27,26,27,29,28,28,28,30,29,29,30,29,30,29,29,29,28,28,28,28,29,29,29,29,29,29,30,30,30,30,30,30,30,31,30,30,31,31,30,31,31,31,30,31,30,31,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,30,31,30,30,30,30,30,30,30,30,29,29,29,29,29,29,28,28,28,28,28,28,29,28,29,28,29,29,28,28,28,28,28,28,28,26,26,27,26,27,26,25,26,27,25,23,25,25,25,25,26,24,24,25,25,25,26,27,28,28,29,29,30,29,29,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,31,31,30,30,30,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,30,30,31,30,31,31,30,30,31,31,30,31,31,31,31,31,31,30,30,31,30,31,31,31,30,30,31,31,30,31,31,30,30,30,31,30,30,30,30,30,30,31,30,30,30,30,30,31,31,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,31,31,31,30,31,30,31,30,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,31,31,31,31,31,31,31,30,30,30,30,31,31,31,30,30,31,30,31,31,30,30,30,30,30,30,31,30,30,31,30,31,31,31,30,31,31,30,30,30,29,30,30,29,30,30,30,29,30,29,29,28,27,26,24,24,23,19,21,18,20,17,14,17,16,13,12,12,10,8,8,6,5,4,2,0,1,3,5,6,8,10,11,13,15,16,18,18,19,21,23,23,24,23,23,24,24,24,25,24,23,24,24,24,24,25,25,25,23,24,23,23,22,22,22,22,22,23,22,24,23,24,24,23,24,26,25,26,26,25,28,27,26,27,27,27,27,27,28,28,29,29,29,30,30,29,30,30,30,30,30,29,30,30,30,29,30,30,29,29,30,30,29,29,30,29,29,30,30,30,31,30,30,30,30,30,30,30,30,29,30,29,30,30,29,29,30,30,30,30,30,30,30,30,30,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,30,30,31,30,30,31,31,30,31,30,30,30,31,30,30,30,30,29,30,30,29,29,30,29,30,30,30,31,30,30,30,30,30,30,30,31,31,31,30,30,31,31,30,30,31,30,30,30,31,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,29,30,30,29,30,30,29,30,30,29,29,30,28,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,30,30,31,30,30,31,31,31,30,30,30,29,29,30,30,30,30,29,29,30,30,30,30,29,30,30,29,30,30,30,29,30,30,30,29,30,30,30,30,30,30,29,29,30,29,30,30,30,28,28,29,28,29,28,27,29,29,27,29,29,28,28,29,29,30,29,30,30,29,30,29,29,29,29,29,28,29,29,29,28,29,29,28,28,27,25,28,28,23,23,27,26,27,28,27,27,29,29,29,29,30,30,30,29,29,29,29,29,29,29,27,27,28,28,29,28,28,28,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,31,30,30,31,31,30,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,30,30,31,30,31,30,30,30,30,30,29,29,30,29,29,29,29,29,29,29,28,30,29,29,29,29,29,28,28,29,28,28,27,28,27,27,27,27,25,27,26,25,25,26,25,25,25,25,25,23,24,25,25,25,28,28,28,29,29,30,30,30,30,31,30,30,31,30,30,30,31,31,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,29,30,30,30,29,30,29,29,29,28,26,27,25,23,20,23,22,21,19,18,17,16,15,14,14,11,10,10,7,7,6,4,2,0,1,4,4,5,7,7,11,12,14,16,17,18,19,21,21,24,22,24,24,25,25,26,24,24,24,24,25,25,25,25,25,23,24,21,23,23,22,22,22,22,22,22,24,25,23,26,24,25,25,25,27,25,27,28,27,26,28,27,28,27,27,28,28,29,29,29,30,30,29,30,30,31,31,30,29,30,30,30,29,30,30,29,29,30,30,29,29,30,30,30,30,30,30,31,31,30,30,30,30,30,30,30,29,30,29,30,30,29,29,30,30,29,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,30,30,31,31,30,31,30,30,30,30,31,30,30,31,31,30,30,30,30,30,30,31,31,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,30,30,31,30,30,30,30,30,30,30,29,30,29,30,29,30,30,30,30,30,30,30,30,31,30,30,31,30,31,31,30,31,31,31,31,31,31,30,30,30,31,31,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,30,29,28,29,29,27,29,29,28,28,29,29,30,30,30,30,30,30,30,30,29,30,30,28,29,30,30,29,29,29,29,29,27,26,28,28,23,25,28,26,26,28,27,27,29,29,28,29,29,30,30,29,30,29,30,30,29,29,28,27,29,28,30,29,30,29,30,29,30,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,30,30,30,29,29,30,29,29,29,29,28,29,28,29,29,27,28,28,27,28,27,28,28,27,27,27,27,27,26,27,27,25,26,28,26,26,26,27,26,25,25,26,27,26,29,29,29,29,30,30,30,30,30,31,31,30,31,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,30,30,31,31,30,31,31,31,31,31,31,30,30,30,30,31,30,30,30,30,30,30,30,30,29,28,26,26,27,24,22,24,24,24,23,21,20,19,17,17,16,13,12,11,10,9,7,6,5,2,0,1,3,5,6,6,8,10,12,17,17,18,21,20,23,25,24,25,24,25,24,26,25,24,25,24,24,24,24,25,24,23,23,22,24,22,20,22,21,21,22,21,24,24,24,26,23,25,27,25,27,27,27,28,28,27,29,28,29,28,28,29,28,29,28,30,30,30,29,30,30,31,31,30,29,30,31,30,29,30,30,29,29,30,30,29,30,30,30,30,30,30,31,31,30,30,30,30,30,31,30,30,30,30,28,30,30,29,28,30,31,30,30,30,30,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,30,31,31,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,31,31,30,30,31,31,30,30,31,31,30,30,31,30,30,30,31,30,30,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,31,30,30,31,31,30,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,31,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,29,29,29,30,29,28,29,30,29,29,30,29,30,30,31,30,29,30,30,30,29,30,30,29,29,30,30,29,29,29,29,29,25,26,28,27,22,26,27,26,27,28,27,25,29,29,28,29,30,30,30,29,30,29,30,29,29,29,27,26,29,27,30,29,30,29,30,29,31,30,30,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,30,31,30,30,30,30,30,30,29,30,30,29,29,29,29,29,29,28,29,29,28,29,29,27,29,28,29,29,28,28,28,27,28,27,28,27,27,27,27,27,27,26,26,26,25,25,26,25,25,25,26,24,24,25,26,25,26,27,28,28,29,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,30,30,30,31,31,31,30,30,30,30,30,31,30,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,30,31,30,31,30,30,30,30,31,30,31,30,30,30,31,31,31,31,31,31,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,31,31,31,31,31,31,31,31,31,30,31,30,30,31,31,31,31,30,30,30,31,31,30,30,31,30,30,31,31,31,31,31,30,30,31,31,31,30,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,29,30,30,29,30,30,30,29,30,29,28,28,28,25,26,24,23,22,23,23,22,21,18,19,18,15,16,16,14,11,13,11,8,8,7,6,4,2,0,1,3,4,5,6,7,11,14,14,15,18,19,19,23,20,22,22,24,23,24,24,23,24,23,24,24,25,25,25,23,23,21,23,23,20,23,20,21,22,22,23,24,23,25,24,24,26,24,26,25,26,27,26,26,27,26,26,27,27,28,27,29,28,29,30,30,29,30,29,30,30,30,29,30,30,30,29,30,30,28,29,30,29,28,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,30,27,29,30,29,28,30,30,29,29,30,30,30,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,31,31,30,30,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,30,30,31,30,31,30,30,30,31,31,31,31,30,30,30,30,31,31,30,31,31,30,31,31,30,30,31,31,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,31,31,31,31,30,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,29,29,30,30,30,30,29,30,30,29,29,30,29,29,29,29,30,30,30,30,30,30,30,31,30,30,31,31,30,31,30,31,31,31,31,30,31,30,30,30,31,31,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,29,29,30,29,29,29,29,29,29,29,29,29,27,28,29,29,26,29,29,28,29,30,29,30,29,30,30,29,29,30,30,29,30,29,28,29,29,29,27,28,29,28,28,26,26,28,27,23,25,26,25,26,28,26,25,29,28,28,28,29,30,30,29,30,29,29,29,28,29,27,26,27,27,29,28,29,29,30,28,30,30,30,30,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,30,30,29,30,29,28,30,29,29,29,29,28,29,29,29,28,29,28,28,28,27,28,27,26,26,27,25,26,26,26,26,26,27,26,24,25,26,26,26,28,29,29,30,30,30,30,30,30,30,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,30,31,31,30,31,31,31,31,31,30,30,31,30,30,30,29,30,30,29,30,30,30,29,30,30,28,28,28,24,26,27,24,23,25,25,25,22,22,22,20,19,20,19,17,13,15,12,11,9,7,6,6,3,2,0,1,3,3,4,7,7,11,12,14,16,17,19,21,21,22,22,24,22,24,23,23,23,23,24,24,24,24,24,23,22,21,22,21,21,21,21,21,22,22,23,23,22,24,25,25,25,24,25,25,26,26,26,26,27,26,27,26,27,27,27,29,28,30,30,30,28,30,29,30,30,30,28,30,30,29,28,30,30,28,28,30,30,28,29,30,30,30,30,30,30,31,30,30,30,30,29,30,29,29,29,29,26,29,30,29,27,30,30,29,29,30,30,30,30,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,30,31,31,31,30,31,31,30,31,30,31,30,31,31,30,30,31,31,30,31,30,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,30,30,29,30,31,29,30,30,30,30,30,29,30,30,29,30,30,29,30,29,30,30,30,30,30,30,30,31,31,30,30,31,30,31,31,30,31,31,31,30,31,31,30,31,31,30,31,30,31,31,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,30,30,29,30,31,30,29,30,30,30,30,30,30,30,30,30,29,29,30,30,29,30,30,29,29,27,28,30,30,28,30,30,28,29,30,30,30,30,30,30,29,30,29,30,29,30,30,29,28,29,29,27,28,29,28,27,24,26,28,26,21,26,25,25,26,27,26,26,28,28,27,28,29,30,30,28,29,29,29,28,28,28,25,25,28,26,29,28,29,28,30,29,30,29,30,31,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[30,31,30,30,30,31,31,30,30,30,30,30,30,29,30,29,30,30,29,30,29,29,30,29,28,29,28,28,28,29,28,29,28,28,28,28,28,28,28,28,28,28,28,27,27,27,28,26,25,28,27,25,25,26,26,26,26,27,25,26,26,26,26,28,28,29,28,29,29,30,29,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,31,30,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,29,29,29,28,29,28,25,28,27,24,24,26,24,25,24,21,22,23,21,19,20,19,15,16,16,12,11,9,6,7,6,3,2,0,1,3,4,4,6,8,11,13,15,16,19,19,19,22,22,23,22,24,23,23,24,23,24,23,23,23,23,21,24,20,22,22,19,22,19,22,22,21,23,23,22,24,22,25,27,24,26,26,26,27,27,26,28,27,27,27,27,28,28,29,28,28,29,29,27,29,28,30,30,30,28,29,29,29,28,29,29,28,28,29,29,27,29,29,29,29,29,30,30,30,30,29,29,30,28,29,29,29,28,29,27,28,29,29,27,29,30,29,28,30,29,29,30,29,30,30,30,29,30,30,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,29,29,30,29,29,29,29,28,29,29,29,29,29,29,30,30,29,30,29,30,30,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,29,30,30,29,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,29,29,29,28,29,30,28,29,28,29,29,30,28,29,29,28,29,30,29,29,29,29,30,29,29,30,30,29,30,30,29,29,30,30,30,30,29,30,30,30,30,30,31,30,30,31,30,30,30,30,30,29,30,30,30,29,29,30,29,29,30,30,29,28,30,29,28,29,29,29,28,29,29,29,28,30,29,29,29,29,30,29,29,29,27,28,29,28,28,28,29,28,28,27,28,28,28,27,29,29,28,29,29,29,29,29,30,30,28,29,29,29,28,29,29,28,27,29,28,28,27,28,28,27,25,24,26,25,21,25,26,25,26,27,26,26,28,28,26,28,28,29,29,28,29,28,28,28,26,28,26,24,27,26,28,27,28,28,29,28,29,28,28,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,30,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30],[31,31,31,31,31,31,31,30,31,31,31,30,30,30,30,30,30,30,29,30,29,29,30,29,29,30,30,29,30,29,28,30,29,30,29,29,29,29,29,29,29,29,29,29,29,28,29,28,27,28,28,27,26,27,27,27,27,27,26,25,27,27,27,26,28,28,28,30,29,30,30,30,30,31,30,31,30,30,30,30,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,30,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,30,31,31,31,31,30,30,31,30,31,30,31,30,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,28,29,30,30,29,30,29,28,28,28,25,27,27,23,24,26,26,25,24,22,24,23,21,21,22,19,15,19,16,14,13,11,8,7,6,5,3,1,0,1,2,4,5,5,8,11,13,15,16,19,19,21,21,22,23,24,24,23,24,23,24,24,25,25,25,24,24,22,23,23,21,21,20,21,23,22,24,24,24,25,25,25,26,25,27,26,27,28,27,26,28,27,27,27,26,27,28,29,28,29,30,30,28,30,29,30,30,30,28,30,30,29,28,29,30,28,28,30,29,26,29,30,30,30,29,30,30,30,30,29,30,30,29,30,29,29,29,29,27,29,29,29,27,30,30,29,29,30,30,30,30,30,30,31,30,30,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,30,29,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,31,30,30,30,30,31,30,30,30,30,30,31,31,30,30,30,30,30,31,31,31,31,31,30,31,30,31,31,30,30,31,31,30,30,30,30,29,30,31,29,30,29,29,30,30,29,30,30,29,29,30,29,30,29,30,30,30,30,30,30,30,30,31,30,31,31,30,31,31,30,31,31,31,30,30,31,30,31,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,31,30,30,30,29,30,29,29,30,29,29,30,29,28,29,29,28,29,27,28,29,29,28,29,29,28,29,30,29,29,30,30,30,29,30,30,30,28,29,29,28,28,29,29,26,27,28,26,27,25,25,26,26,22,25,25,25,26,27,26,25,28,28,27,28,29,29,30,27,29,28,29,28,26,28,25,24,26,26,28,27,28,28,29,29,30,29,29,30,30,29,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,29,29,30,30,30,29,30,29,29,29,29,29,29,29,29,29,29,28,28,27,28,28,26,27,28,27,27,27,28,27,27,28,28,27,27,29,30,29,30,30,30,30,30,30,30,31,30,30,31,31,30,31,30,30,31,31,30,31,31,31,31,31,30,31,31,31,31,30,31,30,31,30,31,30,31,31,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,31,31,30,31,31,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,30,31,31,30,30,30,31,31,30,30,30,30,31,30,30,30,30,30,30,31,30,31,30,31,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,30,31,30,30,31,30,31,31,31,30,30,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,31,30,30,31,30,30,30,31,30,31,30,30,30,30,30,30,30,29,29,30,30,29,30,30,29,29,28,26,27,28,26,26,26,25,27,24,23,25,24,22,22,23,20,17,20,18,16,15,12,10,8,7,6,5,4,2,0,1,2,4,4,6,8,12,13,16,19,18,21,21,22,23,23,24,22,24,24,25,26,25,25,25,25,25,20,24,25,21,23,21,22,24,23,24,24,24,26,24,26,27,24,28,27,26,28,27,28,28,28,28,28,26,28,27,29,28,29,30,29,28,30,28,30,30,29,27,29,29,29,25,29,29,27,27,29,28,26,28,29,29,30,30,30,30,30,30,29,30,30,29,30,29,28,29,29,27,28,29,28,27,29,30,28,28,30,30,30,30,30,30,30,30,30,30,31,31,30,30,31,31,30,31,31,30,31,31,31,31,30,31,31,31,31,30,31,31,31,31,31,31,31,30,31,30,31,31,31,31,30,30,31,30,30,31,30,30,30,30,30,30,31,30,30,30,30,29,30,30,29,30,30,30,30,30,30,31,30,31,31,30,31,31,31,31,31,30,31,31,30,31,30,31,31,30,30,31,31,30,30,31,31,30,30,30,30,29,30,30,29,30,30,30,29,30,30,30,29,30,30,30,30,31,31,30,30,30,30,30,30,30,30,29,30,31,29,30,30,30,29,29,30,28,30,28,29,30,29,27,30,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,31,31,31,30,31,31,30,31,30,30,30,30,30,30,30,30,29,30,30,30,29,29,30,30,28,30,30,29,28,30,30,30,29,29,30,29,29,30,28,28,28,29,27,28,28,29,28,26,28,28,29,27,29,29,28,29,29,30,30,30,30,30,28,29,29,29,28,29,29,27,27,28,28,27,26,28,27,26,24,25,27,25,21,26,25,23,26,27,26,25,28,27,26,28,29,29,30,29,29,28,28,28,26,28,26,23,26,25,28,27,28,28,29,29,30,29,29,30,29,29,30,30,30,30,31,30,30,30,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,30,31,31,31,31,30,31,31,30,30,30,30,30,30,31,30,30,30,29,30,30,29,29,30,29,29,29,29,28,29,29,29,29,29,28,28,28,28,28,29,28,28,28,28,28,27,27,28,28,26,28,28,27,28,28,28,27,28,28,28,28,28,29,29,29,29,30,30,30,29,30,30,30,30,30,31,30,29,30,30,30,30,31,31,31,30,31,31,31,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,30,30,30,30,30,31,31,31,31,31,30,31,31,31,31,30,31,30,30,31,31,31,31,31,30,31,30,31,30,31,30,31,31,30,31,30,30,31,31,31,30,31,31,31,31,31,31,31,31,30,31,31,31,30,31,30,30,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,30,30,31,31,31,30,30,30,30,30,30,30,31,31,30,31,31,30,31,31,30,30,31,31,31,31,31,31,30,31,31,30,31,31,30,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,31,31,31,30,31,31,30,31,31,30,31,31,30,30,31,31,30,30,31,30,29,31,31,30,30,30,31,30,31,30,29,30,31,29,30,30,30,30,29,31,30,29,30,30,30,30,30,30,30,30,29,30,30,29,29,30,29,29,30,30,28,29,28,25,27,28,25,25,26,26,27,25,23,25,25,22,23,23,22,18,21,20,18,18,15,13,11,8,7,6,6,4,1,0,1,3,3,4,5,8,10,13,16,15,19,19,20,21,23,22,23,23,23,23,23,24,24,23,23,23,21,24,23,22,23,20,22,23,23,24,25,24,26,22,26,27,25,27,27,26,28,28,28,28,29,28,29,27,28,27,28,28,29,29,29,28,29,29,30,30,30,28,29,30,29,27,29,30,27,28,29,29,26,28,29,29,29,30,30,30,30,30,29,30,30,28,29,29,28,29,29,27,28,29,29,27,29,29,28,28,30,30,29,30,29,30,30,30,29,30,30,31,29,30,31,31,30,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,31,30,30,31,30,29,30,31,30,28,30,31,29,29,30,30,28,30,30,29,30,30,30,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,30,30,31,31,30,30,31,31,29,30,30,30,29,30,30,29,30,30,30,28,29,30,29,28,29,30,28,29,30,30,29,29,30,30,29,30,30,29,29,30,30,28,29,30,29,28,30,30,29,30,27,29,30,29,27,30,30,29,29,30,29,29,30,30,30,30,30,30,30,30,30,31,30,30,31,30,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,29,28,29,29,29,28,29,29,27,30,29,28,27,30,29,29,29,29,30,28,29,30,28,28,29,28,28,29,30,28,29,27,28,29,28,28,30,29,28,29,30,30,29,29,30,29,29,29,30,28,27,28,29,28,28,28,28,28,27,28,27,25,21,24,26,25,19,24,24,23,27,27,25,25,28,26,25,28,29,29,30,28,29,28,28,27,25,27,24,20,25,24,27,28,29,28,30,28,30,30,29,30,30,29,30,30,30,29,31,30,30,30,31,31,30,30,30,31,31,31,31,31,30,30,30,31,31,31,31,31,31,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31],[31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,28,30,30,30,29,30,29,29,29,29,29,29,29,28,29,28,29,28,26,28,28,26,26,27,26,27,27,28,26,26,28,28,27,26,29,28,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,30,31,30,31,30,30,31,31,30,31,31,31,31,31,31,31,30,30,31,31,30,31,30,31,31,31,30,31,30,30,30,31,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,30,31,30,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,30,31,31,30,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,30,30,30,31,30,31,31,30,31,31,30,30,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,30,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,31,29,31,31,30,30,30,31,30,31,31,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,27,29,30,29,28,30,29,27,28,28,24,27,27,23,23,26,25,26,23,22,24,24,21,22,22,20,16,20,19,16,17,15,14,13,9,7,6,5,5,4,1,0,1,3,4,4,6,8,10,14,14,18,17,19,20,22,22,22,23,22,23,23,23,23,23,22,22,21,23,22,21,22,20,23,23,23,23,24,24,25,25,24,25,25,26,25,26,28,26,26,28,27,26,27,25,27,26,28,27,28,29,29,27,29,29,30,30,29,26,28,29,27,27,28,29,26,27,29,27,24,28,28,29,29,29,29,30,30,29,28,29,29,28,29,29,28,27,28,26,27,29,28,27,29,29,28,28,30,29,29,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,31,30,30,31,30,30,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,30,31,31,30,30,31,31,30,30,31,30,29,30,31,29,29,30,30,29,30,29,30,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,30,30,30,30,31,31,31,30,30,31,31,30,30,31,31,29,30,30,30,29,30,30,29,30,31,30,29,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,31,30,29,30,30,29,29,30,30,29,29,30,29,30,29,29,30,29,28,29,30,29,29,30,29,29,29,30,29,29,29,29,30,30,30,30,30,30,31,30,31,31,30,30,31,31,31,30,30,30,31,30,30,31,30,30,30,30,30,30,30,29,30,29,29,30,29,30,29,29,30,29,29,29,29,29,29,29,30,29,29,30,29,29,29,29,30,28,29,30,29,28,30,29,27,28,29,28,29,27,27,29,29,28,29,29,28,29,30,29,29,29,29,29,29,29,29,29,28,29,29,28,28,28,27,27,26,28,27,26,20,25,27,25,20,26,24,23,26,27,26,26,28,28,26,27,29,29,30,27,29,28,27,28,25,27,26,22,25,24,27,26,28,27,29,29,29,29,28,30,30,29,29,30,30,29,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,30,30,31,29,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,29,30,29,30,29,29,29,29,29,29,29,29,29,29,29,28,28,27,27,28,28,26,27,26,27,27,27,28,27,27,28,27,27,27,29,28,28,29,29,30,29,30,30,30,30,30,30,30,30,30,31,30,31,30,30,30,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,31,31,31,31,31,31,31,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,30,30,31,31,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,28,29,30,29,28,30,29,28,29,28,26,26,26,24,24,26,26,26,25,24,26,25,24,23,23,22,19,23,21,19,18,17,16,15,13,12,7,7,6,5,4,2,0,1,3,4,5,7,7,12,12,16,16,19,20,21,22,22,23,22,23,23,23,23,24,22,23,22,24,22,21,22,21,22,23,24,24,24,24,25,25,24,26,24,26,25,25,27,25,26,28,27,28,28,26,27,27,28,27,28,29,29,27,29,29,29,30,29,27,28,29,28,27,28,28,25,27,29,27,24,28,28,29,29,28,29,30,30,30,28,29,29,28,29,29,27,28,28,26,27,28,28,28,28,28,28,28,29,29,29,30,30,30,30,30,30,29,30,30,30,30,30,31,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,31,30,30,30,31,30,30,30,30,29,30,29,30,30,30,30,30,31,30,31,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,30,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,29,30,30,28,30,29,29,30,30,28,30,29,29,28,29,28,29,29,29,30,29,29,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,30,30,30,30,29,30,29,30,30,30,30,29,29,30,29,29,29,30,30,29,30,30,30,29,30,30,29,29,29,30,28,29,30,27,28,30,29,26,27,28,27,28,26,27,28,28,27,28,29,28,28,29,29,29,30,30,30,29,29,29,29,27,29,29,27,26,28,27,26,25,27,25,26,21,24,25,25,20,24,24,23,26,26,25,24,26,27,26,26,28,28,30,27,29,28,28,27,25,27,25,22,25,26,27,26,27,27,28,27,29,28,28,29,29,29,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,30,31,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,29,28,29,29,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,27,29,28,27,27,28,28,28,28,28,28,27,28,27,27,27,29,29,29,29,30,30,30,29,30,30,30,30,30,31,30,30,30,31,30,30,31,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,30,31,31,31,31,30,31,31,30,31,31,31,31,31,30,31,31,31,30,31,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,31,31,30,31,31,30,30,31,31,31,30,31,30,31,30,30,30,31,31,31,31,31,30,31,30,30,30,31,30,31,31,31,31,31,31,31,30,31,31,30,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,29,31,31,30,30,30,31,30,31,30,28,30,30,29,29,30,31,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,30,29,29,29,29,28,30,29,28,29,28,26,27,27,23,25,26,26,27,24,22,25,25,24,23,24,23,18,22,21,19,18,17,17,15,14,14,10,8,7,5,4,4,2,0,1,3,5,5,7,8,9,13,14,16,18,20,20,21,23,23,23,22,23,23,23,22,24,22,24,24,22,23,21,23,24,24,25,25,24,26,23,25,26,24,27,27,26,28,28,28,29,28,28,28,27,28,28,29,29,29,29,29,28,29,29,29,30,30,28,28,29,28,26,28,28,26,27,29,28,24,26,28,28,29,29,29,30,30,30,29,29,29,28,29,29,28,27,28,25,26,28,27,28,29,29,28,28,29,29,29,29,29,30,30,30,30,29,30,30,29,30,31,30,30,31,31,30,30,31,31,30,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,30,31,30,30,30,30,30,29,30,30,30,29,30,30,29,29,30,30,28,29,29,30,29,30,30,30,30,30,31,30,30,30,30,31,31,31,31,31,31,31,31,30,31,30,30,31,30,30,30,31,30,30,30,30,29,30,30,30,29,30,30,28,29,30,30,29,29,30,29,28,29,30,28,29,30,30,29,29,30,30,29,30,30,29,28,30,30,28,28,30,29,27,30,30,28,29,27,28,29,29,27,29,29,28,28,29,28,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,31,30,31,31,30,31,31,31,30,30,30,30,30,30,30,30,30,30,29,30,30,30,28,29,29,29,29,29,29,29,27,29,30,29,28,30,29,29,29,29,30,28,29,29,28,28,28,28,27,28,29,27,28,26,27,27,28,27,29,29,28,28,29,29,29,29,29,29,28,29,29,29,27,29,29,28,27,28,27,27,26,27,25,25,21,23,26,26,20,24,23,23,26,27,26,26,27,27,27,28,29,29,29,28,29,27,27,28,25,27,26,22,25,26,27,26,27,27,28,27,30,29,27,29,29,28,29,29,29,29,30,30,30,30,30,30,30,31,30,31,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,30],[31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,29,30,30,30,30,30,30,29,30,29,29,30,30,30,30,30,29,29,29,29,29,29,29,29,29,28,29,28,27,29,29,28,27,29,28,28,28,29,27,27,29,28,27,28,29,29,29,29,30,30,30,30,30,30,30,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,31,30,31,31,31,30,31,31,30,31,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,29,29,29,27,28,28,26,25,27,27,27,25,24,26,26,23,23,25,23,18,23,22,19,19,19,17,16,15,14,12,10,8,7,5,5,4,2,0,1,3,5,5,6,8,11,12,15,17,19,20,20,21,21,21,22,22,22,22,23,23,22,23,22,22,22,21,22,23,23,23,24,24,24,24,25,25,24,26,26,27,28,27,27,28,27,28,28,27,29,27,28,29,29,29,29,28,29,28,29,29,29,27,28,28,27,27,28,29,26,27,28,27,22,26,28,28,29,28,29,29,30,29,28,29,29,28,28,28,28,27,28,26,27,28,28,27,28,29,29,28,29,29,29,29,30,30,29,30,30,29,30,30,30,30,31,30,29,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,30,31,31,30,31,31,30,29,30,31,29,30,30,30,29,30,30,30,30,30,30,31,31,30,31,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,30,30,31,31,30,31,31,30,30,30,31,29,30,31,30,29,30,31,30,29,30,30,29,30,30,30,29,30,30,30,29,30,30,30,28,30,31,29,29,30,30,29,30,30,29,30,29,29,30,30,28,30,30,29,29,30,30,29,30,30,30,29,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,29,29,30,30,29,30,30,29,28,30,30,29,29,29,30,29,29,30,28,29,30,29,28,29,30,29,29,27,28,29,29,28,29,30,29,30,30,30,30,30,30,30,29,29,30,29,29,29,29,28,28,28,28,27,26,28,27,27,21,26,27,26,22,28,25,25,27,27,28,27,28,27,27,27,29,29,29,28,28,28,26,27,24,26,26,23,25,24,26,27,28,27,29,28,29,29,28,30,30,29,29,30,30,29,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,30,31,31,31,31,30,31,30,30,30,30,30,30,30,30,29,30,30,29,30,30,29,29,30,29,29,30,29,29,30,29,29,29,29,29,29,29,29,29,29,29,28,29,28,28,28,28,29,28,26,28,28,27,28,28,29,28,28,28,27,27,27,28,28,29,29,30,29,30,29,30,30,30,30,30,30,30,30,31,31,31,31,31,30,30,31,31,31,31,30,31,31,31,31,30,30,31,31,31,31,31,31,31,31,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,31,31,31,31,31,30,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,31,31,30,30,31,31,31,30,30,31,31,31,31,31,31,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,30,30,31,31,31,31,30,31,31,30,30,31,30,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,31,30,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,30,30,30,30,31,30,30,31,31,30,31,31,31,30,30,31,31,30,31,31,30,30,30,31,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,28,29,30,29,28,30,29,27,29,28,26,28,28,25,25,27,27,28,26,24,26,27,24,23,26,23,20,23,23,21,20,21,20,18,17,17,15,13,11,8,7,6,6,4,2,0,1,3,5,6,7,9,11,13,15,18,20,20,22,22,23,22,22,23,22,22,22,20,23,23,22,22,21,22,23,23,24,24,25,25,25,25,26,25,26,25,27,28,26,26,28,26,27,27,26,27,25,28,28,29,29,29,27,29,28,29,30,29,27,29,29,27,27,28,28,26,26,29,25,24,26,28,27,28,28,29,29,29,29,28,29,29,28,29,29,27,26,28,26,26,29,29,27,29,29,28,28,29,29,29,29,29,30,30,30,30,29,30,30,30,30,30,31,30,31,31,30,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,30,31,30,30,30,31,30,30,31,31,30,30,31,31,30,30,30,30,29,29,29,30,30,30,30,31,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,30,31,31,30,30,31,31,30,31,30,30,30,31,30,30,30,31,30,29,30,30,30,28,30,30,29,29,30,30,29,29,30,30,29,30,30,30,29,30,30,29,29,30,30,29,30,30,29,30,29,29,30,30,29,30,30,29,29,29,29,29,29,30,29,30,30,29,30,30,30,31,30,30,31,31,31,31,30,30,31,31,31,30,31,30,31,31,30,31,31,30,31,30,30,30,30,29,29,29,29,29,30,30,29,29,30,29,29,29,29,29,29,30,30,29,28,30,29,29,29,29,29,28,28,30,28,28,30,29,28,29,30,29,29,27,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,28,27,28,27,27,27,27,26,26,21,25,26,26,21,25,24,25,26,27,26,26,28,28,27,27,29,29,30,27,28,28,27,27,24,27,25,22,25,25,26,25,27,27,29,28,29,28,28,29,30,28,30,30,30,29,30,30,30,30,30,31,31,31,30,31,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,30],[31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,29,30,30,29,29,30,29,29,30,29,29,29,29,28,30,29,30,29,29,29,29,29,29,29,29,29,28,29,29,29,28,27,28,28,27,27,28,28,28,28,28,27,28,28,27,27,27,29,29,29,30,30,30,30,30,30,31,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,31,30,30,31,30,30,31,31,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,29,28,29,28,26,28,28,25,26,26,27,26,26,22,27,27,25,24,26,24,21,24,24,22,21,21,20,20,17,18,17,15,13,10,7,7,6,5,5,2,0,1,3,4,5,9,10,13,14,15,17,18,20,20,21,21,21,22,22,21,21,21,22,22,22,22,21,22,23,24,24,24,24,25,25,25,26,25,26,26,26,29,27,27,28,28,28,27,28,28,27,28,28,29,30,29,28,29,29,29,30,29,27,29,29,27,28,28,28,26,27,29,26,25,26,29,26,29,28,29,29,30,29,29,29,29,28,29,29,28,28,28,28,28,29,28,28,29,29,30,29,30,29,29,29,30,30,30,30,30,30,31,31,30,30,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,30,31,30,30,30,30,29,30,30,29,30,30,30,30,31,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,31,30,31,30,30,30,31,31,30,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,30,30,31,29,30,29,29,30,30,29,30,29,30,29,29,29,30,29,29,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,29,29,30,28,28,30,28,27,29,29,27,28,29,28,28,26,27,28,29,27,29,29,28,29,30,29,30,30,30,30,29,30,29,30,28,29,29,28,28,28,28,28,27,27,27,26,23,24,27,27,23,25,26,25,27,28,25,26,28,28,27,28,29,30,30,28,28,28,28,27,26,28,26,23,27,24,26,27,27,27,28,28,29,28,29,30,30,29,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,30,29,30,30,30,30,30,30,29,29,30,29,29,30,30,29,30,29,29,30,30,30,29,30,29,29,29,29,29,29,29,29,29,29,29,28,28,29,29,28,28,29,28,28,29,29,28,28,29,29,29,28,29,29,30,30,30,30,30,29,30,30,30,30,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,30,31,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,31,30,31,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,28,29,30,29,29,29,29,28,29,28,27,28,29,27,26,28,26,28,27,24,27,28,25,24,26,25,21,24,24,22,22,21,21,21,18,19,17,16,14,12,10,8,6,6,5,3,2,0,1,2,5,6,7,9,11,12,15,16,17,18,19,20,20,20,20,21,22,22,22,22,22,22,22,24,23,24,23,24,24,25,25,26,26,26,27,26,27,29,26,27,28,27,28,28,27,29,26,28,28,29,29,30,28,29,28,30,30,29,27,28,29,28,28,28,28,25,25,28,25,23,25,27,26,28,27,29,29,29,29,28,29,29,28,29,28,27,27,28,26,26,28,28,28,28,29,29,28,30,29,29,29,29,30,30,30,30,29,31,31,30,30,31,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,30,30,31,31,30,31,30,30,30,30,31,30,30,31,30,30,30,30,30,29,30,30,29,29,30,30,30,30,30,30,30,30,31,30,29,31,31,30,30,31,30,29,30,30,29,30,29,29,30,30,29,30,30,29,29,30,29,29,29,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,30,31,30,30,30,30,30,30,30,31,30,30,30,30,29,30,29,30,29,30,30,29,29,30,29,29,29,29,30,28,28,30,28,28,29,29,28,28,29,29,28,27,28,29,29,29,29,29,29,30,30,30,30,30,30,30,30,29,29,29,29,29,29,28,28,28,28,27,26,28,27,26,21,25,26,27,23,27,27,26,28,28,26,27,29,28,28,28,30,30,30,27,29,28,28,27,25,27,26,22,26,24,26,27,27,27,29,29,29,28,29,30,29,29,30,30,30,29,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30],[30,30,30,30,30,31,31,30,30,30,30,30,30,29,30,29,30,29,29,29,29,29,30,29,28,29,28,28,29,29,28,29,29,29,29,29,28,28,29,28,28,29,29,29,28,28,28,28,28,28,28,27,28,28,27,28,28,28,28,28,28,27,28,28,29,30,30,30,30,30,30,29,30,30,30,30,30,31,30,30,31,31,30,31,31,30,30,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,31,30,30,30,31,30,31,31,31,30,30,30,30,30,30,30,30,30,31,31,31,31,30,31,31,31,30,30,31,30,30,30,31,31,30,30,30,30,30,30,31,31,30,30,31,30,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,31,30,30,31,31,31,30,31,31,31,31,31,30,31,31,31,30,30,31,30,31,30,29,30,30,29,29,30,31,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,28,29,29,29,29,29,29,28,29,29,27,28,28,26,26,26,26,27,26,24,26,26,25,25,25,24,23,23,24,23,20,22,22,20,18,19,17,16,14,12,10,9,7,6,5,4,2,1,0,1,3,5,7,8,10,12,14,15,18,19,20,20,21,22,22,21,22,22,22,22,22,22,21,22,23,23,25,23,24,25,25,26,26,25,27,26,26,29,27,27,28,28,28,28,27,28,27,29,28,30,30,29,28,29,28,29,29,28,27,28,28,27,27,27,27,26,27,28,26,25,26,28,27,28,27,29,28,29,29,28,29,29,28,29,28,27,28,28,28,27,28,28,28,28,29,29,29,29,29,30,29,29,30,29,30,29,29,30,30,29,30,30,30,30,30,30,30,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,30,30,30,31,31,30,31,31,30,31,30,30,31,30,30,31,30,30,30,31,30,30,30,30,29,30,30,30,29,29,29,30,30,29,31,30,31,30,30,30,31,31,30,31,30,30,30,30,30,30,30,31,30,30,30,31,30,30,31,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,29,30,30,29,29,30,30,29,29,30,30,29,29,30,29,29,29,29,30,30,29,29,29,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,31,31,30,31,30,30,31,31,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,29,29,30,29,28,29,29,29,28,28,30,29,28,29,28,27,29,29,27,27,28,27,28,26,27,28,29,29,29,29,29,29,29,29,29,29,29,30,28,29,29,29,28,29,29,28,28,28,28,27,27,27,26,24,22,25,27,26,23,25,27,26,27,28,26,27,29,28,27,28,29,29,29,28,29,28,28,27,25,27,26,22,26,25,26,26,25,27,28,27,28,27,29,29,28,29,29,30,29,29,30,30,30,30,30,31,30,31,31,31,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,30],[30,30,30,31,31,31,31,30,31,31,30,30,30,29,30,29,30,29,30,30,29,29,30,29,29,30,29,29,30,29,28,30,29,29,29,29,29,29,29,28,29,29,29,28,29,28,28,28,28,28,28,27,28,28,28,28,28,29,28,29,28,27,28,29,29,30,30,30,30,30,30,29,31,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,31,31,31,31,31,31,31,30,30,31,31,30,31,30,31,31,31,30,31,31,31,30,31,30,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,30,31,31,30,30,30,31,30,30,30,29,30,30,29,29,30,30,29,30,30,30,30,31,31,30,30,30,30,30,30,29,29,30,29,29,30,29,28,30,30,28,29,28,28,28,28,26,26,27,27,28,26,23,28,27,24,25,26,25,22,24,24,22,21,22,21,20,19,19,17,16,15,12,13,11,8,6,5,5,4,3,1,0,1,3,5,5,6,9,11,13,15,16,17,17,19,19,19,20,21,20,22,22,21,22,22,22,23,23,24,22,23,25,24,26,25,24,27,26,27,29,27,27,29,29,28,29,28,29,27,29,28,30,30,30,28,29,28,30,30,30,27,29,29,28,27,29,29,26,26,28,28,23,26,28,27,27,28,29,29,30,29,29,29,28,29,29,28,28,27,28,26,27,29,28,27,28,30,29,28,30,30,30,30,29,30,29,30,29,30,31,30,30,30,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,31,31,31,30,31,31,31,30,31,31,30,30,31,31,30,30,31,31,30,30,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,31,30,30,31,30,29,30,30,29,29,29,30,29,29,29,30,29,29,30,30,30,30,30,29,29,30,30,29,29,30,30,29,30,31,29,30,29,29,30,30,29,30,30,29,29,30,30,30,30,30,30,30,30,31,30,31,31,31,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,31,30,30,30,31,30,30,30,30,30,29,29,29,30,29,29,30,30,28,29,30,29,29,29,29,29,30,30,29,28,30,30,28,30,30,29,29,28,28,29,29,29,29,30,29,29,30,29,29,29,29,30,29,29,29,30,29,29,30,29,29,29,29,29,28,29,28,27,23,26,28,27,24,27,26,23,28,29,26,26,29,29,28,28,29,30,30,28,29,28,27,28,27,28,28,24,28,26,29,27,28,29,29,29,29,29,29,30,30,29,30,30,30,30,31,30,30,30,31,31,30,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30],[31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,29,30,30,29,30,30,29,29,30,30,29,30,29,29,30,29,30,29,30,29,29,29,29,29,29,29,29,29,30,29,29,28,29,29,28,28,28,28,29,29,29,28,29,29,29,28,29,29,30,30,30,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,28,29,29,28,29,30,28,27,28,29,29,28,26,28,29,27,27,28,26,23,25,26,24,24,24,24,23,21,22,20,19,20,16,15,14,12,10,9,9,8,5,3,2,0,1,3,4,6,7,9,12,14,16,17,18,19,19,20,19,20,21,21,21,22,22,22,24,24,23,24,24,24,25,26,26,26,26,27,26,27,29,27,27,28,28,29,28,28,29,28,28,29,30,30,30,29,30,29,29,30,29,28,29,29,28,28,28,28,24,26,28,26,23,25,27,25,27,28,28,29,30,29,28,29,29,28,28,27,27,25,27,26,27,28,28,26,29,29,29,29,29,29,30,29,30,30,30,30,30,30,30,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,30,30,30,30,29,30,30,30,30,30,30,29,30,30,30,30,30,31,30,30,30,31,30,30,31,30,30,30,31,30,30,30,30,31,30,29,31,30,30,29,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,31,31,30,30,30,30,30,30,30,30,29,29,30,30,28,30,30,29,29,30,30,29,29,30,29,28,30,30,29,29,30,29,29,29,29,29,30,29,30,30,29,30,30,30,30,30,30,30,30,30,29,30,29,30,30,30,29,30,28,29,28,29,28,27,24,27,29,29,26,28,28,27,28,29,28,28,30,29,28,29,30,30,30,28,30,29,28,29,27,29,28,24,27,26,27,27,27,28,28,30,30,28,29,30,29,29,31,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,29,30,29,30,30,29,30,30,29,29,30,29,29,30,29,29,30,29,30,30,30,29,30,30,29,30,30,29,29,29,29,28,28,28,28,28,27,28,28,28,28,28,28,28,28,29,28,28,29,29,30,30,30,30,30,30,30,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,30,31,31,31,31,30,31,31,31,31,31,31,31,31,30,31,31,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,31,31,30,30,30,30,30,30,30,31,30,30,31,31,30,31,31,31,31,30,31,30,30,30,30,30,29,29,30,30,29,30,30,29,29,28,28,29,29,28,27,27,28,28,27,25,28,27,26,27,27,25,23,25,25,23,23,24,22,22,20,22,19,19,19,17,16,15,14,13,10,8,10,5,5,3,2,0,1,3,5,6,6,8,11,13,15,16,16,17,18,18,19,20,21,22,22,21,22,23,23,22,23,24,23,24,25,26,26,25,27,26,27,29,26,26,28,28,28,28,28,29,27,29,29,30,30,30,29,29,29,29,30,29,29,30,29,27,28,29,28,26,28,29,27,25,26,29,27,28,28,30,29,30,30,30,30,30,29,30,29,29,28,29,28,28,29,29,28,30,30,30,29,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,30,29,30,31,30,30,31,30,30,30,31,30,30,31,31,30,30,31,31,30,30,31,30,30,30,30,31,30,30,30,31,30,30,31,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,31,31,30,30,30,31,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,29,30,30,29,30,30,29,29,30,29,30,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,29,29,29,28,29,29,27,24,26,29,27,24,28,28,27,28,29,27,28,29,29,29,29,29,30,30,29,30,29,29,29,27,29,28,25,28,27,29,28,28,28,29,29,29,29,29,30,29,29,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,30],[31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,29,30,30,30,30,30,29,30,30,30,29,29,29,29,29,28,29,29,29,29,29,29,28,30,30,29,29,30,30,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,31,31,30,31,31,31,30,31,31,31,31,30,30,30,31,29,30,30,30,30,30,30,30,30,30,29,29,30,29,28,28,28,29,28,26,28,29,27,27,28,26,23,26,26,25,24,25,24,22,21,23,21,21,20,18,19,17,16,14,13,11,11,7,5,5,3,2,0,1,3,5,6,7,9,11,14,15,17,18,19,19,20,20,21,22,22,22,22,23,23,24,24,24,24,25,26,27,27,27,27,27,27,29,28,27,29,29,29,28,28,29,28,29,29,30,30,30,29,30,29,30,31,30,28,30,29,28,28,29,29,25,27,29,27,25,26,29,27,29,28,29,29,30,30,30,29,30,29,30,29,29,28,30,28,28,30,29,28,30,30,30,29,30,30,30,30,30,30,30,30,29,30,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,31,30,30,30,31,30,30,31,30,30,30,31,30,30,30,31,30,30,31,31,30,30,31,30,30,31,30,31,31,30,31,31,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,31,30,29,30,30,30,29,29,30,29,30,30,29,29,30,30,29,30,30,30,30,29,29,30,30,29,30,30,30,30,31,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,27,25,28,30,29,25,29,29,27,29,30,27,29,30,30,29,30,30,30,30,29,30,29,29,29,27,30,29,26,28,27,28,28,27,29,29,29,29,28,29,30,29,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,30,31,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,30,29,29,30,29,30,30,29,29,29,29,29,28,29,29,29,27,28,29,28,29,29,29,28,29,29,29,29,29,30,30,30,31,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,30,31,30,30,30,31,30,30,31,30,31,31,31,31,31,31,30,30,30,30,30,30,29,30,30,30,29,30,29,29,29,29,28,29,30,29,28,28,28,29,28,27,28,29,26,27,28,26,23,25,26,24,24,25,23,23,22,24,22,21,22,19,19,19,17,16,14,12,10,8,6,6,4,4,2,0,1,3,5,6,6,8,11,13,15,16,17,17,18,19,20,20,21,21,21,22,22,22,23,23,23,24,25,26,25,26,27,26,27,29,26,26,29,28,28,28,28,29,28,29,29,30,30,30,29,30,29,30,30,30,28,30,30,28,28,29,29,26,27,29,28,25,26,29,27,29,29,30,30,30,30,29,29,30,29,30,29,29,27,29,28,28,29,29,28,30,30,30,29,30,30,30,30,30,30,30,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,31,30,30,30,31,30,30,31,31,30,31,31,30,30,31,31,30,30,31,31,30,31,31,30,31,31,30,31,31,30,31,31,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,30,29,30,30,30,30,29,30,29,30,30,30,29,30,30,29,30,31,30,30,29,29,31,30,30,30,30,30,30,31,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,28,25,28,30,29,26,29,29,28,30,30,28,29,30,30,29,30,30,30,30,29,30,29,29,29,28,30,29,26,28,27,28,29,28,29,30,30,30,29,30,30,30,30,31,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,29,29,30,29,30,30,29,29,30,30,29,29,29,28,29,28,29,28,29,29,29,28,29,29,30,29,29,30,30,31,30,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,31,30,30,30,29,29,29,30,29,29,28,29,29,28,27,29,29,27,27,29,27,24,26,27,25,25,26,24,23,23,23,22,23,22,20,21,20,19,19,17,15,12,9,8,6,5,6,5,2,0,1,4,5,6,6,8,12,13,15,16,16,17,18,20,21,21,21,22,23,22,22,23,24,23,24,26,26,26,26,27,27,27,29,28,28,29,28,29,28,29,30,29,30,30,30,30,31,30,30,30,30,31,30,29,30,30,29,28,30,30,25,28,30,28,25,27,29,27,30,29,30,30,30,30,30,30,30,30,31,30,30,28,30,28,29,30,30,28,30,30,30,30,31,31,31,31,30,31,30,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,30,30,31,31,30,30,31,31,30,31,31,30,30,31,31,30,30,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,30,29,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,30,30,30,30,30,31,30,30,30,30,30,30,30,29,29,30,30,28,26,28,30,29,25,29,29,28,30,30,29,29,30,30,30,30,30,31,31,30,30,30,29,30,29,30,29,26,29,28,29,29,28,29,30,30,30,29,29,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,30,31,30,30,30,30,30,31,30,30,30,30,29,30,30,29,30,30,30,30,30,29,30,29,29,30,29,29,29,29,29,29,29,29,29,29,28,29,29,29,29,29,29,29,29,30,29,29,29,30,31,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,30,31,31,29,30,30,30,30,30,30,30,30,29,29,29,30,29,28,29,29,30,28,26,29,29,27,27,29,27,23,26,27,24,24,25,24,23,22,24,22,23,21,19,21,20,19,20,17,16,13,11,10,9,6,6,6,6,2,0,1,3,4,5,6,7,11,12,13,15,16,17,18,19,20,21,21,22,21,22,22,23,22,23,25,25,26,26,26,26,26,29,27,27,29,28,29,29,29,30,29,30,30,30,30,30,30,30,30,30,31,30,30,30,30,29,29,30,30,26,28,30,28,26,27,29,28,30,29,30,30,30,30,30,30,30,30,30,30,30,27,30,27,29,30,30,29,30,30,30,30,31,30,31,31,30,31,30,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,31,31,30,30,31,31,30,31,31,31,30,31,31,30,30,31,31,30,31,31,30,31,31,31,31,31,30,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,31,30,31,31,30,30,30,30,30,30,31,30,29,31,30,29,30,31,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,30,31,30,30,30,31,30,30,30,30,30,30,30,29,29,30,30,29,27,28,30,29,25,29,30,27,30,30,28,28,31,30,29,30,31,31,31,29,30,30,30,29,29,30,29,26,29,27,29,29,29,29,30,30,30,29,30,31,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,31,30,30,30,30,30,31,30,30,30,30,29,30,30,29,30,30,30,30,29,29,29,29,29,29,29,29,28,29,29,28,28,28,29,29,27,28,28,28,29,28,29,28,29,29,28,29,29,30,30,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,31,30,30,30,30,30,29,29,29,30,29,28,28,29,29,28,26,29,28,26,27,28,25,22,26,26,23,24,25,23,23,22,24,22,22,21,19,21,20,19,20,17,17,14,12,13,11,7,7,6,7,4,2,0,1,4,4,5,5,7,11,12,13,15,16,17,18,19,20,20,21,20,21,21,23,22,22,25,26,26,25,26,27,27,29,27,27,29,28,29,28,28,29,28,30,30,30,30,31,30,30,30,30,31,30,29,31,30,29,29,30,30,26,29,30,29,26,28,30,29,30,29,30,30,30,31,30,30,30,30,31,30,30,27,29,28,29,30,30,29,30,30,30,30,30,30,31,31,31,31,30,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,30,30,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,31,31,31,31,30,31,31,30,31,31,30,31,31,31,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,30,30,30,31,30,30,30,30,30,30,31,30,29,30,30,29,30,31,30,30,29,30,30,30,30,31,31,30,30,31,30,31,31,30,31,30,30,30,31,30,30,31,30,30,30,30,29,29,30,30,28,25,28,30,29,24,29,29,27,30,30,29,28,30,30,30,30,31,31,31,30,30,30,30,30,29,30,29,26,29,27,29,29,28,29,30,30,30,29,30,30,30,30,31,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,30,30,30,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,30,29,29,29,29,29,29,29,29,29,29,29,28,28,28,29,28,28,29,28,29,28,29,28,29,29,28,29,29,30,30,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,31,30,31,30,30,30,30,29,30,30,29,28,28,29,29,28,26,29,29,27,27,28,26,23,26,26,24,24,25,24,23,22,23,22,22,22,20,22,21,20,21,18,18,15,15,15,14,9,8,6,7,6,5,2,0,1,4,4,5,5,8,10,11,13,14,16,17,18,19,20,21,21,21,22,23,22,22,25,26,25,25,26,27,27,29,27,27,29,28,29,28,28,29,28,30,30,31,30,31,30,31,30,30,31,30,29,30,30,29,29,30,30,27,29,30,29,27,28,30,28,30,29,30,30,30,30,30,30,30,30,31,30,30,28,29,28,30,30,30,29,31,31,30,30,31,31,31,31,31,31,30,31,30,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,30,30,31,31,30,30,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,30,30,30,31,30,30,30,31,30,30,31,30,30,31,31,30,30,31,30,30,29,30,31,31,30,31,31,30,30,31,31,31,31,31,31,30,31,30,31,30,31,31,30,30,30,30,30,30,30,30,28,26,28,30,29,24,29,29,28,30,30,29,29,31,30,30,30,31,31,31,30,31,30,30,30,29,30,29,28,29,28,29,28,28,30,30,30,30,30,30,30,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,29,29,29,29,28,29,29,29,28,29,28,28,29,29,28,28,27,28,29,27,27,28,28,28,28,28,27,28,29,28,29,29,30,30,30,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,30,30,31,31,30,30,30,31,30,30,30,30,30,29,28,29,30,28,28,28,28,29,28,26,29,28,26,27,28,25,21,26,26,23,24,25,23,23,22,24,22,22,22,20,22,21,20,21,19,19,15,16,17,15,11,11,7,6,6,6,4,2,0,1,3,4,5,5,7,10,12,13,15,16,17,18,18,20,20,20,21,22,21,21,24,25,25,24,25,26,26,28,26,26,28,27,28,27,28,29,27,29,30,30,30,31,30,30,30,30,31,30,30,30,30,29,29,30,30,27,28,30,29,26,28,30,28,30,29,30,30,30,30,30,30,30,30,31,30,30,28,29,28,30,30,30,29,31,31,30,30,30,30,31,30,31,31,30,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,30,29,30,31,30,30,30,31,30,30,30,30,30,31,31,29,30,31,30,30,29,30,31,30,30,31,31,30,30,31,30,30,31,30,30,30,30,30,31,30,30,31,30,30,30,30,29,30,30,29,29,25,27,30,29,24,29,29,27,30,30,29,28,30,30,30,30,31,31,31,30,30,30,30,30,29,30,29,27,29,27,29,29,28,30,30,30,30,29,30,30,30,30,31,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,29,30,29,29,28,29,29,29,28,29,28,28,29,29,28,28,27,28,28,27,27,27,27,28,28,28,27,28,29,28,28,29,30,30,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,31,30,30,30,30,30,30,28,29,30,29,27,28,28,29,28,25,29,28,26,27,28,25,22,26,26,23,24,25,23,23,22,23,22,22,22,20,22,21,20,21,19,19,16,17,19,17,13,13,9,7,5,6,6,4,2,0,1,3,4,5,5,7,10,11,13,15,16,17,18,20,19,19,20,22,21,21,23,24,24,24,25,26,26,28,26,26,28,27,28,27,28,29,27,29,30,30,30,31,30,31,30,30,31,30,30,30,30,30,29,30,30,27,29,30,30,27,28,30,28,30,29,30,30,30,31,30,30,30,30,31,30,30,28,29,27,30,30,29,29,31,30,30,30,31,30,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,30,31,31,30,31,31,30,31,31,31,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,30,31,31,30,30,31,30,30,30,31,30,30,30,30,30,31,31,30,30,31,30,30,30,30,31,31,30,30,31,30,30,31,30,31,31,31,31,30,31,30,31,30,31,31,30,30,30,30,29,30,30,29,29,26,28,30,29,24,29,29,27,30,30,29,28,30,30,30,30,31,31,31,30,30,30,30,30,29,30,29,26,29,27,29,28,28,30,30,30,29,30,30,30,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,29,30,29,29,29,29,29,29,29,29,28,28,29,29,28,28,27,28,28,27,27,27,28,28,28,28,27,28,29,28,28,29,30,30,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,30,30,29,28,29,30,28,27,28,28,29,28,25,29,28,26,26,28,25,21,26,26,22,24,24,22,23,22,23,22,21,22,20,22,22,20,21,20,20,16,18,20,18,14,15,12,10,7,6,6,6,5,2,0,1,3,4,5,5,7,10,12,14,15,16,17,19,19,19,20,22,21,21,23,23,23,23,24,25,26,28,26,26,28,26,28,27,28,28,27,29,29,30,30,31,30,30,30,30,31,30,30,31,30,29,29,30,30,27,29,30,30,27,28,30,29,30,29,30,30,30,31,30,30,30,30,31,30,30,27,29,27,29,30,29,29,30,30,30,30,30,30,31,31,31,31,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,30,30,30,31,30,30,30,31,30,30,30,30,30,31,31,30,30,31,30,30,29,30,31,30,30,31,31,30,30,31,30,31,31,31,31,30,31,30,31,30,31,31,30,30,30,30,29,30,30,30,28,26,27,30,29,23,29,29,27,29,30,29,28,30,30,30,30,31,31,31,30,30,30,30,30,29,30,29,27,29,27,29,29,29,30,30,30,30,30,30,30,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,30,30,30,30,30,30,30,29,30,30,29,30,30,28,30,29,30,30,29,28,29,29,29,29,29,29,28,29,29,29,28,27,28,28,27,27,28,28,28,28,28,28,28,29,28,28,28,29,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,30,30,30,29,28,29,29,29,26,28,28,29,28,26,29,28,26,27,28,25,22,27,26,23,24,25,23,24,22,24,21,21,23,20,22,21,21,22,20,20,17,18,20,20,15,15,13,11,9,7,5,6,6,5,2,0,1,3,4,5,5,7,10,12,13,15,15,18,18,18,20,21,20,21,22,23,23,23,24,25,25,28,26,26,28,27,28,28,29,29,27,29,30,30,30,30,30,31,30,30,31,30,30,30,31,29,29,30,30,28,29,30,30,27,28,30,30,30,30,31,31,31,31,30,30,31,30,31,30,30,28,30,28,30,30,29,29,30,30,30,30,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,31,30,31,31,31,31,30,31,30,30,31,30,30,31,31,30,30,31,30,30,29,30,31,31,30,31,31,30,30,31,30,31,31,31,31,30,31,30,31,30,31,31,30,30,30,30,30,30,31,30,29,27,28,30,29,24,29,29,27,29,30,29,28,30,30,30,30,31,31,31,30,30,30,30,30,30,30,29,27,29,28,30,29,29,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,31,30,30,31,30,30,31,30,30,30,30,29,30,30,29,30,30,30,29,29,29,29,29,28,29,29,28,28,29,29,28,28,27,28,28,26,27,28,28,28,28,29,27,28,29,29,29,29,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,29,30,29,28,29,29,28,26,28,28,29,27,25,28,28,25,26,28,24,21,26,26,22,24,24,22,24,21,24,21,21,23,21,22,22,21,22,21,22,17,19,21,21,17,16,15,14,12,10,7,5,6,6,5,2,0,1,3,4,5,6,7,11,13,14,15,17,17,18,19,21,20,21,22,23,23,23,24,25,26,27,25,26,28,26,27,27,28,28,27,29,29,30,30,30,30,31,30,30,31,30,29,31,30,30,29,30,30,28,29,31,30,27,28,30,29,30,30,30,30,30,31,30,30,30,30,30,30,30,28,30,27,29,30,29,29,30,30,30,30,31,30,31,31,31,31,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,30,31,30,30,31,31,30,30,30,31,30,30,31,30,30,31,31,30,31,31,30,30,30,30,31,30,30,30,31,30,30,31,30,31,31,31,31,30,31,30,31,30,30,31,30,30,30,30,30,30,31,30,29,27,28,30,29,24,29,29,26,29,30,29,28,30,30,30,30,31,31,31,30,31,30,30,30,30,30,29,27,29,28,30,29,29,30,30,30,30,30,30,30,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,31,30,31,30,30,31,30,30,30,30,29,30,30,29,30,30,30,29,29,29,29,29,29,29,29,28,28,29,28,28,28,27,28,28,27,27,27,28,28,28,28,27,28,29,29,29,28,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,29,30,29,28,28,29,28,26,28,28,29,27,25,29,28,25,26,28,24,22,25,25,22,24,24,22,24,22,23,21,22,23,21,23,22,21,23,22,22,18,21,22,22,18,18,16,15,13,12,10,7,6,6,6,5,2,0,1,3,4,5,6,7,10,12,14,15,15,16,19,20,20,20,21,23,23,22,23,24,25,27,25,26,28,26,27,27,28,28,26,29,29,30,30,30,30,31,30,30,31,30,29,31,31,29,29,30,30,28,29,31,30,27,28,30,30,30,30,30,31,30,31,30,31,30,30,30,30,30,28,30,27,29,30,29,29,31,30,30,30,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,31,30,31,31,30,30,31,31,30,30,31,30,30,31,31,30,30,31,30,30,30,30,31,30,30,30,31,30,30,31,30,31,30,31,31,30,31,30,31,30,31,31,30,30,30,30,30,30,30,30,29,27,28,30,29,24,29,29,26,29,30,29,27,30,30,30,29,31,31,31,30,31,30,30,30,30,30,29,26,29,28,30,29,29,30,30,31,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,31,30,30,31,30,30,31,30,29,30,30,29,30,30,29,30,30,30,29,29,29,29,29,28,29,29,29,28,29,28,28,28,27,28,28,26,27,27,28,27,27,28,27,27,29,28,28,28,29,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,29,30,29,28,28,29,28,25,27,27,28,27,24,28,27,23,25,27,23,21,25,24,21,23,23,22,23,21,23,21,21,22,20,21,21,20,22,21,21,18,21,22,22,18,18,17,16,14,13,12,10,7,6,6,5,5,2,0,1,3,4,5,6,7,10,12,13,14,16,17,19,19,20,21,22,22,21,22,23,24,26,24,25,28,25,27,27,27,28,26,29,29,30,30,30,30,31,30,30,31,30,29,31,30,29,29,30,30,28,29,31,30,27,28,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,28,29,27,29,30,28,29,30,30,29,30,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,31,30,30,31,31,30,30,30,31,30,30,30,30,30,31,30,30,30,31,30,30,29,30,30,30,30,30,30,30,30,31,30,31,30,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,29,27,28,30,29,25,29,29,25,29,30,28,26,30,30,29,29,31,30,31,30,31,30,30,30,30,30,29,27,29,28,30,29,29,30,30,30,30,30,30,30,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,29,30,30,29,30,30,30,30,30,29,30,29,29,29,30,29,29,30,29,29,29,28,29,29,28,28,29,29,28,28,28,27,28,29,28,28,28,29,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,30,30,30,29,30,29,28,28,29,28,25,28,28,29,27,26,28,27,25,26,28,24,22,26,25,23,23,23,21,23,22,22,21,21,22,20,22,23,22,23,22,23,19,22,24,25,20,20,19,17,16,15,14,12,10,8,6,6,6,5,2,0,1,3,5,6,7,8,11,13,14,15,17,18,19,19,21,21,21,21,22,23,23,25,25,25,27,25,27,27,27,28,27,30,29,30,30,30,30,31,30,30,31,31,30,30,30,29,28,30,30,28,28,30,30,28,29,30,30,30,30,31,31,31,31,30,30,30,30,30,30,30,28,30,27,30,30,29,29,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,31,30,31,31,31,30,29,30,31,30,29,31,30,30,31,31,30,31,30,31,31,30,31,30,31,30,31,31,30,30,31,30,30,30,30,30,29,28,29,31,29,26,29,29,27,29,30,28,27,30,30,29,29,31,31,31,29,31,30,30,30,30,30,29,27,29,29,30,30,30,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,31,30,29,30,30,29,30,30,29,30,29,28,29,29,29,30,29,29,29,29,28,29,29,28,28,29,28,28,28,28,28,28,28,27,28,27,27,27,27,28,27,27,27,26,28,27,27,28,29,29,29,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,29,29,28,28,28,28,28,25,28,28,28,26,25,28,27,24,25,27,23,22,25,24,22,23,22,21,22,20,23,20,21,22,21,22,21,20,23,22,22,19,22,24,25,20,19,19,17,17,16,14,13,13,11,7,6,6,7,5,2,0,1,3,5,5,6,8,10,12,13,15,16,17,19,19,20,21,20,21,22,22,24,24,24,26,24,27,27,27,29,25,29,30,30,30,30,29,30,30,30,31,30,29,30,30,30,28,30,30,29,29,30,30,27,28,30,30,30,30,30,31,31,31,30,30,30,30,30,30,30,29,29,26,29,30,28,29,30,31,29,30,31,30,30,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,31,31,30,31,31,30,30,31,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,31,30,31,31,31,31,30,30,31,31,30,30,30,31,30,30,31,30,30,31,31,30,30,30,31,30,30,31,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,28,30,29,26,29,29,26,28,29,29,27,30,30,29,28,30,30,31,30,30,30,30,30,30,30,29,28,29,29,30,29,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,31,31,31,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,30,29,29,29,29,29,30,29,29,29,28,29,28,28,28,29,28,28,28,29,29,29,29,28,28,28,28,27,28,29,30,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,30,30,30,30,30,30,29,30,29,28,27,29,28,25,29,28,29,28,26,29,28,25,26,27,25,23,26,26,23,24,23,21,22,21,21,22,21,22,20,22,23,21,22,22,23,21,24,25,25,22,22,21,20,19,18,17,16,15,13,11,8,6,7,6,5,2,0,1,3,4,6,7,8,11,13,15,14,17,17,19,20,20,19,22,22,23,24,24,25,26,26,26,26,26,28,26,28,28,30,30,30,30,31,30,31,31,31,30,30,30,30,28,30,30,29,28,30,30,28,29,30,30,30,30,30,31,31,30,30,30,30,30,30,30,30,29,29,28,29,30,29,29,30,30,29,30,31,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,30,31,31,30,30,30,31,30,31,31,31,30,31,31,30,31,30,31,30,30,31,30,30,31,30,30,31,31,31,30,29,30,31,30,30,31,30,30,30,31,30,30,30,31,30,30,30,31,30,29,31,30,30,30,30,30,29,30,30,30,30,29,30,30,29,27,30,29,27,28,29,28,28,29,30,28,29,30,31,31,30,31,30,30,30,30,30,28,27,30,29,30,30,30,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,30,30,31,30,30,31,30,29,30,30,29,30,30,29,30,30,30,30,29,29,29,29,29,29,29,29,28,29,28,28,28,27,27,28,26,26,27,27,27,26,28,25,26,27,26,27,26,28,29,29,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,30,30,30,30,30,29,29,29,29,27,27,28,27,25,26,27,28,26,24,28,25,23,25,26,23,21,24,24,22,23,23,21,22,20,22,20,21,21,20,21,20,20,21,21,21,19,23,23,24,20,22,20,20,18,18,17,15,14,13,12,10,7,6,6,5,5,2,0,1,3,4,6,6,7,10,13,13,14,16,17,19,20,18,19,21,22,23,23,22,25,23,25,24,25,27,24,29,29,30,30,30,29,30,30,30,31,30,29,30,30,29,29,30,30,28,29,31,29,27,29,30,30,30,29,31,30,30,31,30,30,30,30,30,30,30,29,29,28,29,30,28,29,30,30,29,30,31,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,31,31,31,30,31,31,31,31,31,30,31,30,31,31,31,30,31,31,30,30,31,31,30,30,31,30,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,31,30,31,30,31,30,30,30,30,30,30,30,30,29,29,28,27,30,29,25,28,29,26,28,29,29,27,30,30,29,28,30,30,31,29,30,30,30,30,29,30,28,27,29,28,30,28,29,30,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,30,31,30,30,31,30,30,30,30,29,30,30,29,30,30,30,29,30,29,29,29,29,29,29,28,29,29,28,28,28,27,27,28,27,27,27,28,27,28,27,26,26,27,27,27,26,29,29,29,30,30,30,30,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,30,30,30,30,29,29,29,28,27,28,28,25,27,28,27,25,26,27,26,25,26,26,24,23,25,24,22,23,23,21,22,21,21,21,22,22,20,23,23,21,23,23,23,21,24,24,25,22,22,22,21,20,20,18,17,16,15,14,13,11,8,6,6,5,3,2,0,1,3,4,5,6,8,11,12,13,15,16,17,18,18,19,21,21,23,22,23,24,23,26,25,26,27,25,29,29,29,30,30,29,30,30,31,31,31,30,30,31,30,29,30,30,29,29,31,30,28,29,30,30,30,30,31,31,31,31,30,30,31,30,30,30,30,29,29,27,29,30,28,29,31,30,29,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,30,30,31,30,31,30,30,31,31,31,31,30,31,31,30,30,30,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,29,29,30,29,27,29,29,28,28,29,29,27,29,30,29,28,30,30,31,29,31,30,30,30,30,30,29,29,30,30,30,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,30,29,29,29,29,29,29,29,29,29,28,29,28,28,28,28,27,27,28,27,27,27,27,26,26,28,27,27,26,28,29,29,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,29,30,31,30,30,30,30,30,30,30,28,29,28,27,26,27,26,25,27,27,28,24,25,28,25,25,24,25,24,22,25,24,23,22,22,22,22,21,19,22,21,22,19,22,24,21,22,22,23,21,25,24,25,23,23,22,22,20,21,19,18,18,17,16,15,14,12,8,6,6,6,5,2,0,1,3,5,5,6,8,10,13,14,14,17,16,16,18,20,20,22,23,22,24,23,24,24,24,27,25,28,28,29,30,30,29,30,30,30,31,30,29,30,30,29,29,30,30,27,29,30,29,28,29,30,30,30,30,30,30,31,31,30,30,30,30,30,29,30,28,29,27,29,29,28,28,30,30,29,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,30,30,31,30,31,30,30,31,31,31,30,30,31,31,30,31,30,31,30,31,31,31,30,31,31,31,31,31,31,30,30,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,31,30,29,30,30,30,30,30,30,30,29,30,30,30,30,31,30,30,30,30,30,30,30,30,29,29,29,29,30,29,27,28,28,27,28,29,29,27,29,30,29,28,30,30,30,29,30,30,30,29,29,30,29,28,29,29,30,29,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,30,30,31,30,30,30,30,29,30,30,29,30,30,28,30,29,30,29,29,29,28,29,28,28,28,28,28,28,27,28,28,26,27,27,26,25,27,27,26,26,26,25,24,26,26,25,25,28,28,28,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,29,29,28,27,25,27,27,23,26,26,25,24,23,25,24,22,24,24,22,21,23,22,20,21,20,20,21,19,21,19,21,20,19,20,20,19,22,22,22,21,24,24,25,22,22,23,22,21,22,21,20,19,17,16,16,14,13,10,7,6,6,5,4,2,0,1,3,5,6,7,8,11,13,13,15,17,16,19,19,20,22,22,22,23,21,25,24,24,27,24,28,28,29,30,30,29,30,30,30,31,31,30,30,31,30,29,30,30,29,29,30,30,29,29,30,30,30,30,31,31,31,31,30,30,30,30,30,30,30,29,29,28,30,30,29,29,31,30,29,30,31,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,30,31,31,30,30,30,31,29,31,30,30,31,30,31,30,30,31,31,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,30,31,30,30,31,31,30,30,31,30,30,30,29,30,30,29,30,30,30,29,30,29,30,30,30,30,29,30,30,30,30,31,30,30,30,30,30,30,30,30,30,29,29,28,30,29,27,28,28,27,28,29,29,26,29,30,29,28,30,30,31,30,30,30,30,30,30,30,29,28,29,29,30,29,30,30,31,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,31,30,30,30,30,29,29,29,29,29,30,29,29,29,29,29,29,27,28,29,28,27,28,28,28,27,28,26,26,27,27,27,26,28,29,29,29,30,30,30,30,31,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,30,30,30,30,30,30,28,28,28,27,25,27,27,25,26,27,28,26,25,27,26,25,25,27,23,22,25,23,21,24,22,21,22,21,20,22,20,22,20,21,22,21,22,22,23,23,25,25,26,25,24,24,24,23,22,22,21,20,19,19,17,16,15,13,9,8,7,6,4,4,2,0,1,3,4,6,6,8,11,13,14,14,17,17,19,19,22,21,21,23,22,25,24,24,27,25,28,27,29,30,29,29,30,30,30,31,31,30,30,30,30,29,29,30,29,28,30,30,29,29,30,30,30,30,30,31,31,30,30,30,30,30,30,30,29,29,28,28,29,29,29,29,30,30,28,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,31,30,30,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,30,31,30,30,29,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,31,30,30,30,31,31,30,29,30,31,30,29,30,30,30,30,31,31,29,31,31,30,30,31,31,30,30,31,30,30,31,30,30,31,31,31,30,30,30,30,30,29,30,30,29,29,30,29,30,29,30,30,29,29,30,30,29,30,30,29,30,30,30,29,30,30,30,29,30,29,30,29,27,29,28,26,27,28,28,27,28,29,28,28,29,30,30,29,30,30,30,29,29,30,28,28,30,29,30,30,30,30,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,30,29,29,29,29,29,30,29,29,29,28,29,28,27,27,28,26,26,28,27,27,26,27,27,26,27,27,26,25,28,29,29,30,29,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,29,30,30,30,30,30,29,29,28,28,28,25,28,27,25,28,28,28,26,26,27,25,24,25,26,23,23,25,24,23,23,23,22,22,21,22,22,21,22,20,22,23,21,23,23,23,23,25,25,26,24,25,24,24,22,23,22,21,21,20,19,18,18,16,15,13,11,8,7,6,5,4,1,0,1,3,5,5,7,8,12,13,15,14,17,18,18,21,21,21,22,21,23,24,23,26,24,28,28,29,30,29,29,30,30,30,30,30,29,30,30,29,28,30,30,29,29,30,30,29,29,30,30,30,30,31,31,31,30,30,30,30,30,30,30,30,29,29,28,29,30,28,29,30,30,29,30,30,30,30,30,30,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,29,30,31,31,31,30,30,30,31,30,30,30,31,30,30,31,31,30,31,31,30,30,30,30,30,30,31,30,31,31,31,30,30,31,30,30,30,30,30,30,29,30,30,29,29,30,29,30,29,30,30,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,29,29,28,30,29,27,27,28,28,27,28,28,26,28,29,28,28,30,30,30,30,29,29,29,29,29,30,29,28,29,30,30,30,30,30,31,30,31,30,30,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,30,30,31,30,30,31,30,29,30,30,29,30,30,29,30,30,30,29,29,29,29,29,28,29,29,29,28,28,28,28,28,27,27,28,27,26,27,27,27,26,27,25,26,26,26,25,25,27,28,28,29,29,30,30,30,30,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,30,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,30,30,30,29,30,30,30,30,30,30,28,28,28,27,25,28,27,25,26,27,27,25,24,26,25,24,24,24,23,22,24,22,21,23,22,20,21,20,20,21,21,21,19,22,23,20,23,23,24,22,25,25,26,25,24,24,24,22,23,21,21,21,20,20,18,17,16,16,13,12,11,8,7,6,5,4,2,0,1,4,5,5,6,9,10,12,13,14,16,17,19,19,20,23,20,24,24,23,27,23,28,28,29,30,29,29,30,30,30,31,31,30,30,31,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,31,31,31,30,30,30,30,30,30,30,29,29,29,30,29,29,29,30,30,29,30,31,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,29,30,30,30,30,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,30,31,31,30,30,30,30,29,30,29,30,30,30,31,30,30,30,31,30,30,30,30,30,30,31,30,29,31,31,31,30,31,31,31,30,31,30,31,31,30,30,30,31,30,30,30,30,30,30,29,30,30,29,29,30,28,29,29,30,30,29,30,30,30,29,31,30,30,30,30,30,29,30,30,30,29,29,29,30,29,28,29,28,27,28,29,29,26,28,29,29,27,29,30,30,29,30,29,30,30,30,30,29,29,30,30,30,30,30,30,31,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,30,31,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,29,29,29,29,29,29,30,29,29,29,28,29,28,27,28,28,27,26,28,27,26,26,28,26,26,26,27,25,24,27,27,28,29,30,30,30,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,30,30,30,30,30,29,30,30,30,30,30,29,28,27,28,26,26,27,26,26,26,28,27,25,26,27,25,23,23,25,23,22,25,24,22,24,24,22,24,21,22,22,21,22,19,22,24,22,22,23,24,22,26,24,26,24,24,24,24,22,23,22,21,21,20,20,20,19,18,17,16,14,13,12,8,6,6,5,4,2,0,1,4,5,6,8,8,11,11,14,16,16,19,19,19,22,20,23,22,23,26,24,28,29,29,30,29,30,30,30,30,31,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,30,29,30,31,31,31,30,30,30,29,30,30,30,28,29,28,29,29,28,29,30,29,29,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,31,30,30,31,30,30,29,31,30,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,30,31,31,30,30,30,30,29,30,29,30,30,31,31,30,30,30,30,30,30,30,30,30,30,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,29,29,29,28,28,28,28,29,28,28,30,29,28,29,30,30,30,30,30,30,30,30,30,28,29,29,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,30,30,31,30,31,30,31,31,30,31,30,30,30,30,30,30,30,29,30,30,28,30,29,30,29,30,29,29,29,29,29,29,28,28,28,28,28,28,26,27,28,27,25,26,28,26,26,27,26,27,27,26,24,25,27,27,28,29,29,30,29,30,30,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,30,30,30,30,30,29,30,30,29,29,30,29,29,27,27,26,24,26,26,23,26,27,26,25,24,27,26,24,25,26,24,23,26,24,22,25,24,22,23,21,22,22,21,22,20,22,23,22,22,23,24,23,25,24,26,24,24,24,24,23,23,22,22,23,22,21,20,20,18,18,17,16,15,14,12,9,7,7,5,4,2,0,1,3,5,7,7,8,10,12,15,15,18,18,19,22,19,22,22,22,26,24,28,29,29,30,29,29,30,30,30,31,30,29,30,30,30,29,30,30,29,29,30,30,29,29,30,30,30,30,31,31,30,31,30,30,30,29,30,30,30,29,28,28,29,29,28,29,30,29,29,30,30,30,30,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,31,31,31,30,31,31,30,30,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,30,29,30,30,30,30,30,31,31,30,31,30,30,31,31,31,31,30,31,31,31,30,31,31,30,31,31,31,31,30,30,31,30,29,30,30,29,30,28,30,30,30,31,30,29,30,30,30,30,30,30,30,30,31,30,30,31,31,31,30,31,31,31,30,31,30,31,31,31,30,31,31,30,30,30,30,30,30,29,30,30,29,29,30,28,29,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,27,28,28,28,27,28,28,25,28,30,29,27,29,30,30,29,30,30,30,30,30,30,29,29,30,30,30,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,31,30,31,30,30,31,30,30,30,30,29,30,30,29,30,30,30,29,29,29,29,29,29,29,29,29,29,29,28,29,29,27,27,28,27,26,27,27,27,25,27,26,26,26,27,25,25,27,27,27,28,29,30,30,30,30,31,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,29,29,30,30,29,30,29,28,27,28,26,25,28,26,25,26,27,26,25,26,27,25,24,25,26,24,24,26,24,23,24,24,22,24,23,23,24,22,23,22,23,25,23,23,24,25,23,27,26,27,25,25,24,24,24,24,22,22,22,22,22,22,22,20,19,18,17,17,16,14,11,7,8,6,5,4,2,0,1,3,5,6,8,9,11,13,14,16,17,18,22,18,22,22,22,25,23,28,28,28,30,30,29,30,30,30,31,30,30,30,31,30,30,30,30,29,29,31,30,30,30,30,30,30,30,30,31,31,31,30,30,30,29,30,30,30,29,29,28,30,29,28,29,30,30,30,30,31,30,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,31,31,31,30,31,31,30,30,31,31,30,30,31,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,29,30,30,30,30,30,30,30,30,31,30,30,31,30,31,31,30,31,31,31,31,31,31,30,31,31,31,31,30,30,31,30,29,30,30,29,30,27,29,30,30,30,30,29,30,30,30,30,30,30,29,30,30,30,29,31,30,30,30,31,31,31,31,31,30,31,31,30,31,30,31,31,30,30,30,30,30,29,30,29,29,29,30,28,29,28,30,30,28,30,30,30,29,30,30,29,30,30,30,30,30,31,30,30,30,29,30,29,29,29,29,29,28,28,29,27,27,29,29,27,29,30,30,30,30,30,31,30,30,30,29,30,30,30,30,30,31,30,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,30,29,30,29,29,29,29,28,29,28,27,28,28,26,27,28,27,25,26,27,27,25,28,27,27,27,26,25,24,27,27,27,29,29,30,29,30,30,30,30,30,30,30,30,30,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,31,31,30,31,31,31,30,31,31,30,31,30,30,30,29,30,30,29,29,29,29,29,29,28,28,25,27,25,25,27,26,26,27,28,28,25,26,28,25,24,25,25,24,24,27,25,23,24,24,23,24,23,23,24,22,24,21,23,26,24,24,24,26,24,26,25,27,25,25,25,25,24,24,24,23,24,23,23,22,22,21,20,18,18,17,17,15,14,12,8,7,7,5,5,2,0,1,4,5,7,7,8,13,12,14,16,17,20,17,21,21,21,25,23,27,29,28,29,29,29,30,30,30,31,30,29,30,30,29,29,30,30,28,29,30,30,29,29,30,30,30,30,30,30,31,31,30,30,30,29,30,30,30,28,27,28,29,29,28,29,30,29,28,30,30,29,29,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,30,31,31,30,31,31,31,30,31,31,30,30,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,29,29,30,30,30,29,30,30,31,30,31,30,30,31,30,31,31,30,31,31,31,30,31,31,30,31,31,31,31,30,30,31,30,30,30,30,29,30,28,30,30,30,31,29,29,30,30,30,30,30,30,30,30,31,30,29,31,31,31,30,30,31,30,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,29,30,30,29,29,30,28,28,29,30,29,28,30,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,29,30,29,29,29,27,28,28,28,29,27,28,30,29,27,29,30,30,29,30,29,30,30,29,30,29,29,30,30,30,30,30,30,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,30,30,30,30,29,30,30,29,29,29,29,29,30,28,29,29,30,29,29,29,29,29,28,29,28,28,28,28,28,28,27,26,26,27,26,24,26,26,25,25,26,25,26,26,25,24,24,26,26,26,28,28,29,29,29,30,30,30,30,30,30,30,29,30,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,31,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,30,30,31,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,30,30,30,29,30,28,28,29,29,28,28,28,28,25,26,26,24,26,26,25,25,25,25,25,23,25,25,24,24,24,23,23,25,23,22,24,23,21,23,22,23,23,22,24,21,22,24,23,23,23,24,24,26,26,26,25,25,25,25,24,23,23,23,23,23,23,21,22,21,21,19,19,18,17,16,15,13,11,8,7,7,6,4,2,0,1,3,5,6,7,9,10,12,13,14,19,16,19,21,21,25,24,28,28,28,29,29,29,30,30,30,31,30,30,30,30,30,29,30,30,29,29,30,30,30,29,30,30,30,30,30,31,31,31,30,30,30,29,30,29,30,29,29,28,30,29,28,29,30,29,29,30,30,30,29,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,30,31,31,30,30,31,31,30,30,31,30,30,31,30,30,30,30,30,30,30,31,30,30,31,31,31,30,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,30,30,31,30,30,30,30,29,29,29,29,30,30,30,30,30,30,30,30,29,30,31,30,31,31,30,31,31,30,30,31,30,30,30,30,31,31,30,29,30,29,29,29,29,28,29,28,29,30,29,30,29,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,31,30,31,31,30,30,31,31,30,30,30,30,29,29,29,29,29,29,29,29,28,29,29,30,29,29,30,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,29,29,30,28,27,27,27,27,29,29,26,28,29,28,27,29,30,30,29,30,30,30,30,30,30,29,28,30,30,30,30,31,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,30,31,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,29,28,26,28,27,27,26,28,27,26,26,26,24,23,27,26,26,28,28,30,30,29,30,29,30,29,29,30,30,29,29,30,30,29,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,31,30,30,30,30,30,30,29,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,30,31,31,30,30,30,30,30,30,30,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,31,31,31,30,30,31,30,31,30,29,30,30,30,30,30,31,30,30,31,30,30,30,31,30,30,30,31,30,30,30,30,30,29,29,29,29,28,28,27,26,24,25,25,23,26,26,25,27,27,28,25,25,27,26,24,26,26,24,24,27,25,23,26,25,23,25,23,24,24,23,25,23,23,25,24,24,24,24,24,27,26,27,25,25,25,25,24,24,24,24,24,23,23,23,23,22,21,20,21,19,19,18,17,15,14,11,9,8,7,6,5,3,0,1,3,4,6,8,8,11,13,14,17,18,19,21,21,24,23,27,25,27,29,29,29,30,30,30,30,30,29,29,30,30,29,29,30,28,29,29,30,30,30,29,30,30,30,29,31,31,30,30,30,29,29,29,29,29,30,28,29,29,28,28,29,30,29,29,30,30,29,29,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,30,30,31,30,30,30,30,30,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,30,30,31,31,30,30,31,30,29,30,30,30,29,30,30,29,29,30,30,28,30,30,30,30,31,31,30,30,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,31,30,31,30,31,31,30,30,31,30,29,30,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,31,30,31,31,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,28,29,30,29,30,29,28,29,30,29,28,29,30,29,29,30,30,29,30,30,30,30,30,31,30,30,31,30,30,31,30,30,31,31,30,30,30,30,30,29,29,29,29,28,29,29,28,28,28,29,29,27,29,29,29,28,30,30,29,29,30,30,29,30,31,29,30,30,29,30,29,29,29,28,28,27,27,29,28,27,29,28,27,28,29,29,28,30,30,30,29,30,30,28,29,30,30,30,30,31,30,30,31,31,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,29,29,29,29,29,29,29,28,29,28,27,28,28,27,26,27,26,26,26,26,26,26,26,26,26,26,25,24,23,26,26,25,28,26,29,29,29,30,30,30,29,29,30,30,29,30,30,30,29,30,30,30,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,31,30,30,30,29,29,30,30,30,29,30,31,30,30,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,30,30,30,30,30,30,30,29,30,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,31,31,31,30,30,31,30,31,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,28,29,28,29,28,27,26,27,23,26,26,24,26,26,25,25,26,26,24,24,26,25,23,26,25,23,24,27,24,22,24,25,22,24,24,23,24,24,24,23,23,24,24,24,24,24,24,26,26,26,26,25,25,25,24,24,24,23,23,23,23,23,24,23,23,22,21,20,19,19,17,16,14,13,12,9,7,6,5,3,1,0,1,3,4,6,7,9,11,11,15,14,18,18,20,23,22,26,27,27,28,28,29,29,30,30,30,30,29,30,30,29,29,29,30,28,28,30,30,29,29,29,30,29,30,30,30,30,30,30,30,29,28,29,29,29,28,28,28,29,29,27,29,29,28,28,29,30,29,29,29,30,30,30,30,30,30,30,31,30,30,31,30,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,31,31,31,30,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,29,30,31,30,30,31,31,28,30,31,30,29,30,31,30,30,31,30,29,30,30,30,30,31,31,30,30,30,31,31,30,31,30,31,31,31,30,31,31,30,31,31,31,30,31,31,31,31,30,30,30,30,29,30,31,29,29,29,29,30,30,29,30,30,30,30,30,29,30,30,29,30,30,29,30,31,30,30,30,30,30,30,30,30,30,29,29,30,29,28,29,29,28,29,28,30,29,29,30,29,29,29,30,29,29,30,30,29,29,30,30,29,30,30,30,30,30,31,30,30,31,30,31,31,30,30,31,31,30,30,30,30,30,29,29,29,29,29,28,29,28,28,28,29,29,28,29,29,29,28,29,29,29,30,30,30,29,30,30,29,29,29,29,29,29,29,28,28,28,27,28,28,25,27,29,27,26,28,29,29,28,29,29,29,29,29,29,28,28,29,29,30,30,30,30,31,30,30,30,30,31,30,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,30,30,31,30,30,30,29,30,30,30,30,30,29,29,30,29,29,29,28,29,29,29,29,29,29,29,28,29,29,28,28,28,28,28,27,27,26,25,26,25,25,25,24,24,24,23,24,24,25,24,24,24,23,25,24,27,25,28,27,27,29,29,29,28,28,29,29,29,30,30,29,30,30,30,30,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,29,31,30,29,30,29,28,29,30,30,29,30,30,30,30,30,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,29,30,30,30,29,30,29,29,29,30,31,30,30,30,30,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,31,29,30,31,30,30,30,28,28,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,28,27,29,27,27,28,27,26,26,26,26,23,25,25,23,25,25,24,24,24,24,24,24,24,23,25,24,24,23,24,25,24,24,23,24,23,24,24,23,24,24,24,23,23,24,24,25,24,24,24,26,26,27,25,25,25,25,24,25,24,23,23,24,23,23,24,23,23,22,22,21,20,19,18,16,15,15,13,11,8,7,5,4,3,1,0,1,3,5,5,7,10,10,14,13,16,16,19,22,22,26,27,26,27,28,28,29,30,30,30,30,29,30,30,29,29,30,30,29,29,30,30,29,29,30,30,30,29,30,30,31,30,29,30,30,29,29,29,30,29,28,28,29,28,28,29,30,29,28,30,30,29,29,30,29,30,30,30,30,30,30,31,30,31,31,30,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,29,29,30,30,30,30,30,31,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,30,29,31,31,30,30,31,30,29,30,30,29,30,30,30,28,29,30,30,29,30,30,29,29,30,30,28,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,30,31,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,28,29,30,28,28,27,28,28,28,28,29,29,29,29,30,29,29,30,29,30,30,29,30,30,30,29,30,30,29,30,29,30,30,28,28,29,28,28,28,28,28,28,27,29,29,27,29,28,27,28,29,29,28,28,30,29,29,30,30,29,30,30,30,30,29,31,30,30,30,30,30,30,30,30,30,30,29,30,29,29,29,29,28,28,28,28,26,28,26,27,26,28,28,27,28,28,28,28,29,29,29,30,29,30,29,30,29,29,29,29,28,28,29,28,27,28,28,26,27,27,27,27,28,27,26,27,28,29,29,29,29,29,29,29,29,28,28,29,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,31,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,29,30,29,29,29,28,28,28,28,28,27,27,27,27,26,27,26,26,26,26,24,24,26,25,24,27,25,28,28,28,29,29,29,28,28,29,29,29,29,30,29,29,30,30,30,30,31,31,30,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,29,30,30,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,29,30,29,31,30,30,29,29,28,29,30,30,28,29,30,30,29,30,30,30,30,30,31,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,30,31,31,30,30,30,30,29,30,30,29,28,30,29,29,29,30,30,30,30,30,30,31,31,30,30,31,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,30,31,31,30,30,31,31,30,29,30,30,29,30,30,30,28,30,30,30,30,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,28,29,28,28,28,28,26,26,25,26,22,24,26,23,26,26,25,27,28,27,26,26,28,27,24,26,27,25,26,27,27,25,26,26,24,26,24,25,25,24,25,24,24,26,25,25,25,25,26,27,27,27,26,26,26,26,25,26,25,25,25,25,25,25,25,24,24,24,23,22,21,19,19,17,16,16,14,13,10,7,6,6,4,3,1,0,1,3,4,6,9,10,13,12,16,16,18,22,19,24,25,25,28,28,29,29,30,30,30,30,29,30,30,29,29,29,30,29,29,30,30,29,29,29,30,30,30,29,30,30,30,30,30,30,29,29,28,29,29,28,28,29,29,27,29,29,29,28,29,30,29,28,30,30,30,30,30,30,30,31,31,30,31,31,30,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,31,30,30,31,31,30,31,31,31,31,31,31,31,30,31,31,30,30,31,31,29,30,30,30,29,30,30,30,30,30,31,31,30,31,31,31,30,30,31,30,30,31,31,31,31,31,31,31,31,31,30,31,31,30,30,31,30,30,30,31,30,29,30,30,28,30,30,30,28,30,30,29,28,30,30,28,30,30,30,29,30,30,30,30,30,30,30,30,31,30,30,30,30,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,29,29,29,30,29,30,29,30,28,30,30,29,30,30,29,30,30,30,29,30,30,30,30,30,30,31,29,29,30,29,29,29,29,28,29,26,29,29,28,29,29,28,28,29,28,27,29,30,29,28,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,28,29,29,28,28,28,26,26,26,29,28,27,28,29,28,27,29,30,29,29,30,30,29,30,30,30,30,30,30,30,29,29,29,28,28,27,28,29,26,27,28,27,26,27,28,29,28,29,29,30,29,30,29,28,29,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,29,29,30,29,29,29,28,29,28,28,27,27,27,26,26,26,27,26,26,26,26,27,25,24,24,26,24,25,26,24,27,27,28,28,29,29,28,28,29,29,29,29,30,29,29,30,30,31,30,31,30,30,31,31,29,31,31,30,30,31,31,30,31,31,31,30,31,31,31,31,31,31,31,30,31,30,30,31,31,30,31,31,30,31,31,31,30,31,31,31,31,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,31,30,30,29,30,29,31,30,30,30,29,29,28,30,30,29,29,30,30,30,30,30,30,30,31,31,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,30,31,31,30,30,31,31,30,30,30,30,29,30,30,30,28,30,29,28,29,30,30,30,30,30,30,30,31,30,30,31,30,30,31,31,30,30,30,31,31,31,31,31,31,30,31,30,31,31,30,30,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,30,30,31,30,30,29,30,30,29,30,31,30,29,30,30,30,30,29,28,28,30,29,29,29,30,30,29,30,30,30,29,30,30,29,30,29,28,28,27,26,27,27,27,26,26,26,25,23,25,22,24,25,23,25,26,25,25,27,27,24,24,27,26,23,25,26,23,25,27,25,23,25,25,23,25,24,24,25,24,25,23,24,25,25,25,25,25,25,27,27,28,26,26,26,26,25,26,25,25,25,25,25,24,25,24,25,23,23,22,23,23,20,19,17,16,15,14,13,11,8,7,5,4,4,2,0,1,3,5,7,7,9,10,12,15,16,19,19,22,25,25,27,25,27,28,29,29,29,30,28,29,29,29,28,29,29,29,28,29,29,29,29,29,30,29,30,29,30,30,30,29,29,29,28,28,29,29,27,28,27,29,28,26,28,29,28,26,29,29,26,27,29,29,29,29,30,29,30,30,30,30,30,31,30,30,30,31,31,30,30,31,30,30,31,31,31,31,30,31,31,31,30,30,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,29,30,30,30,30,30,30,30,31,30,31,30,30,31,31,31,30,31,31,31,30,31,31,31,31,31,31,31,31,30,30,31,31,30,30,31,30,30,30,30,30,30,30,30,28,29,30,30,28,30,30,29,28,30,30,28,29,30,30,29,30,30,30,29,30,30,30,30,31,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,30,30,30,28,30,30,29,29,29,29,29,28,29,30,29,30,30,30,29,29,30,29,30,30,29,30,30,30,29,30,30,29,30,30,30,31,29,29,30,29,29,28,29,27,28,27,28,28,28,29,28,28,28,29,29,28,29,30,29,28,30,30,28,30,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,29,28,28,28,27,26,26,25,28,27,27,27,28,28,28,28,29,29,29,29,30,29,30,30,29,29,29,29,29,29,28,29,28,27,26,28,28,25,26,28,26,24,25,28,28,27,28,28,29,28,29,28,27,28,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,30,31,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,28,27,27,26,26,26,25,26,25,25,25,25,26,26,25,24,24,24,23,24,25,23,27,26,27,26,29,29,27,28,28,29,27,29,29,29,29,30,30,30,29,31,30,30,31,31,29,31,31,30,30,31,31,31,31,31,31,30,31,31,31,31,31,31,31,30,30,29,30,31,31,30,31,31,30,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,29,30,29,30,30,29,30,29,28,28,29,29,28,29,30,29,29,30,30,30,30,30,30,30,31,31,31,31,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,30,31,31,31,30,31,31,30,30,30,30,29,29,30,29,28,29,29,28,29,30,30,30,30,29,30,30,31,29,30,31,30,30,31,31,30,30,30,31,31,31,31,31,31,30,30,30,31,31,30,31,31,31,30,30,31,31,30,30,31,30,31,31,30,31,30,31,30,30,31,30,29,30,30,29,30,30,30,29,29,30,30,30,29,28,27,29,29,29,29,30,30,28,30,30,30,30,30,30,30,30,29,28,28,26,26,27,26,25,25,26,25,24,24,25,21,23,23,23,25,26,25,25,26,25,25,25,26,25,24,26,26,24,26,26,26,25,25,26,24,25,24,24,25,24,25,24,25,26,24,25,25,25,25,28,26,28,26,27,27,27,25,26,26,26,25,25,25,24,25,24,24,23,22,21,23,21,21,19,19,17,16,15,15,13,11,8,8,5,5,3,2,0,1,3,5,6,8,10,11,15,15,19,21,23,26,23,26,26,27,28,29,29,30,30,29,29,30,30,29,29,30,29,29,30,30,29,29,30,30,29,30,30,30,30,30,29,30,30,29,29,29,29,29,29,28,29,28,27,29,29,28,28,29,29,28,27,29,28,29,29,30,29,30,30,30,30,30,31,30,30,30,31,30,30,30,31,30,30,30,31,31,31,31,31,30,31,30,30,30,30,30,30,30,31,31,31,31,30,30,31,30,30,31,31,31,31,30,31,31,31,30,30,30,30,30,29,30,30,30,30,30,30,30,30,31,30,30,31,31,30,30,31,31,31,31,31,30,31,31,30,30,31,31,30,30,31,30,29,30,30,29,30,30,30,28,29,30,30,28,29,30,29,28,30,30,28,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,31,30,30,30,30,30,29,30,30,30,29,29,29,28,28,27,28,29,27,27,29,28,29,28,29,28,29,30,28,30,29,29,30,30,30,29,30,30,29,30,30,30,30,29,28,29,28,27,28,28,27,28,26,27,28,27,29,28,26,27,29,28,27,28,29,29,28,30,30,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,28,28,28,28,26,26,25,25,25,27,26,27,26,27,28,28,29,29,29,29,29,30,29,30,29,29,29,29,29,29,30,29,29,28,29,25,27,28,26,25,28,26,25,25,28,28,28,28,29,29,29,29,28,28,28,29,29,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,31,30,30,31,30,31,30,31,30,31,31,31,30,31,30,30,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,30,31,30,30,30,30,30,30,30,29,30,30,30,30,30,29,30,30,29,29,30,29,29,29,29,29,28,28,27,28,28,27,27,27,27,26,27,26,27,27,26,25,25,23,22,23,25,21,26,25,26,28,28,29,27,27,28,29,28,28,30,29,28,30,30,30,30,30,30,30,31,31,29,30,31,30,30,31,30,30,30,31,31,30,30,31,31,30,30,30,30,30,30,29,29,30,30,30,30,30,30,31,30,30,30,31,31,30,31,31,31,30,30,30,31,30,31,31,31,31,31,31,31,31,31,30,31,30,30,30,30,30,29,30,29,30,30,29,29,28,28,27,29,30,27,29,30,30,29,29,30,29,30,30,30,30,30,30,31,30,30,31,31,30,30,31,31,30,31,31,31,30,31,30,31,31,30,30,31,31,30,31,31,31,31,30,31,31,30,31,31,30,31,31,31,30,31,31,30,30,30,30,29,30,30,30,28,29,30,29,28,29,28,28,28,29,30,29,30,29,29,30,30,29,29,30,30,29,30,30,29,30,30,31,30,30,31,31,31,30,30,30,30,31,30,30,31,30,29,31,31,30,30,30,31,30,30,31,31,30,30,30,30,30,30,30,29,30,30,27,30,30,30,28,29,30,29,29,29,26,27,29,28,28,28,29,29,28,29,29,29,29,29,29,29,29,28,28,27,26,25,26,26,26,24,25,24,22,21,23,21,24,25,24,25,26,26,26,26,27,26,26,28,27,25,26,27,26,26,27,26,25,26,26,25,25,26,25,26,25,25,24,26,27,25,26,25,25,26,27,27,28,28,26,27,27,26,26,26,26,26,26,26,25,25,26,25,24,24,23,24,23,23,22,20,20,18,17,17,15,12,11,9,7,6,5,3,2,0,1,4,5,7,9,10,12,15,17,19,20,24,22,26,25,25,27,27,28,29,29,27,28,29,29,27,29,29,28,28,29,29,29,29,29,30,29,29,29,30,30,30,29,29,29,29,28,29,28,28,28,27,28,27,25,27,28,27,25,28,28,27,26,28,28,29,28,29,29,29,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,31,31,30,31,31,30,30,31,31,30,30,31,30,29,30,30,30,30,29,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,31,31,31,30,30,31,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,28,29,30,30,28,30,30,29,28,30,30,28,29,29,29,28,29,29,29,28,29,30,30,30,30,28,30,30,30,29,30,30,29,29,30,30,30,30,30,30,30,29,30,30,30,28,30,30,30,29,29,30,29,28,28,29,29,30,28,30,28,29,30,28,30,30,28,30,30,30,29,30,30,30,30,30,30,30,29,29,30,29,29,29,28,27,27,25,27,28,26,29,28,27,27,29,28,27,29,30,29,28,30,30,29,30,29,30,28,29,30,30,30,30,29,30,30,29,30,30,30,30,29,30,30,30,29,29,29,28,28,28,27,26,25,24,26,27,27,26,28,28,28,29,29,29,29,29,29,29,30,30,29,29,29,29,29,29,29,29,28,28,27,28,29,25,27,28,26,25,26,27,27,27,28,28,28,27,28,29,28,28,29,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,31,30,31,31,30,30,30,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,31,30,31,30,30,30,30,30,30,30,29,30,30,29,30,30,30,29,30,30,29,30,29,30,29,28,29,29,29,29,28,28,27,27,27,26,26,26,26,26,26,25,25,26,25,25,24,25,24,24,26,22,26,25,26,27,28,28,28,27,28,28,28,28,30,29,28,29,30,30,29,30,30,30,31,30,29,30,31,30,30,31,30,30,30,31,30,30,31,31,31,30,31,30,30,30,30,29,30,30,31,30,30,31,30,31,30,30,30,31,31,30,30,31,30,30,30,30,30,30,31,31,31,31,31,31,30,30,31,30,30,30,30,30,30,30,29,30,29,30,30,29,30,28,28,28,29,29,28,29,30,30,30,30,30,29,30,30,30,30,30,30,30,30,29,30,31,30,30,31,31,30,30,31,30,30,31,31,31,31,31,30,31,31,30,31,31,31,31,30,30,30,30,30,31,30,31,31,30,30,31,31,30,30,30,30,29,30,30,30,28,29,30,29,28,29,29,27,28,29,30,30,30,29,29,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,30,29,30,30,30,30,30,30,29,30,31,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,28,29,30,29,28,29,30,29,29,28,27,26,28,28,27,28,29,29,28,29,29,28,29,29,29,29,29,28,27,27,25,24,26,25,24,23,23,24,22,20,23,20,23,22,23,24,25,24,24,25,25,25,24,26,25,24,26,26,25,25,26,26,25,25,26,25,24,24,25,24,25,25,24,25,25,24,25,26,25,25,28,27,28,26,26,27,27,26,26,26,26,26,25,25,25,26,25,25,24,24,23,23,23,21,22,21,20,20,18,17,16,14,13,11,7,8,6,4,3,1,0,1,3,6,6,8,11,12,15,17,20,22,21,24,24,25,26,28,28,29,29,28,28,29,29,28,28,29,28,28,30,29,28,28,29,29,29,29,29,30,30,29,28,29,29,28,28,29,28,28,28,27,28,27,26,27,28,27,25,28,28,26,26,28,27,28,28,29,29,29,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,29,30,31,31,31,31,30,31,31,30,30,31,30,30,30,30,30,29,30,30,29,29,30,30,28,29,30,29,28,29,30,29,28,30,30,28,28,30,30,28,29,30,29,29,29,30,30,30,30,29,30,30,30,29,30,30,29,30,30,30,30,29,30,30,30,28,30,30,29,28,29,29,28,28,27,28,28,28,28,28,28,29,28,29,28,29,30,28,29,29,29,29,30,29,29,30,29,29,30,30,30,30,29,28,29,29,28,27,27,27,27,26,28,27,26,29,27,27,26,29,28,27,27,29,28,27,29,29,28,29,30,29,29,28,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,28,29,27,27,26,25,25,25,23,24,26,26,25,27,27,26,27,28,28,29,29,29,29,29,29,29,29,28,28,29,29,28,28,28,27,26,27,27,24,24,27,25,23,24,26,26,27,27,27,27,27,28,27,27,27,28,29,29,29,29,29,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,30,30,31,31,31,30,30,31,31,31,31,30,31,30,31,31,31,30,31,31,31,31,31,31,31,31,30,30,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,28,28,28,28,28,27,28,27,27,26,26,27,27,26,25,25,25,24,24,25,22,26,25,26,26,28,27,25,27,27,28,26,28,29,28,28,30,30,30,30,31,30,30,30,30,29,30,31,30,30,31,31,31,30,31,31,30,31,31,31,30,31,31,30,30,30,30,30,30,30,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,29,30,29,30,29,29,30,28,27,28,29,30,27,28,30,30,29,29,30,30,30,30,30,30,30,31,31,30,30,30,31,31,31,31,31,31,31,31,30,31,31,31,31,30,30,31,31,31,31,31,31,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,30,31,31,30,30,30,30,28,29,30,29,27,28,28,28,28,29,30,30,30,29,29,30,30,29,29,30,30,29,30,30,30,30,30,30,30,31,30,30,31,30,30,30,31,31,30,30,31,31,30,31,31,30,30,30,30,30,30,31,31,31,30,31,30,30,30,30,29,30,30,28,29,30,30,28,29,30,29,29,28,26,26,28,27,26,27,30,28,27,29,30,28,28,29,29,29,29,28,27,27,24,23,25,25,23,23,22,22,21,19,22,21,22,23,25,25,26,26,26,27,28,26,26,27,27,26,27,27,26,27,28,27,26,26,28,26,26,26,27,26,26,26,24,26,27,25,26,26,26,26,29,27,29,27,28,28,28,27,28,27,27,27,27,27,26,27,26,26,25,25,24,25,24,23,22,22,22,21,21,21,18,17,17,15,11,10,10,7,5,5,2,0,1,4,5,7,10,11,14,17,20,22,20,24,24,24,26,27,28,29,29,27,28,29,29,27,29,29,28,28,29,29,29,28,30,30,29,29,29,30,30,29,28,29,29,28,28,29,29,28,28,28,28,28,26,27,28,27,25,27,27,26,25,28,26,29,28,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,29,30,30,30,30,30,30,30,31,30,30,30,30,30,31,30,31,31,30,30,30,31,29,30,30,30,30,29,30,30,30,30,30,30,30,30,31,30,30,31,31,30,30,31,30,31,30,31,30,31,31,30,30,31,31,30,30,31,30,29,30,30,30,29,30,30,27,29,30,30,27,29,30,29,27,30,30,26,28,30,30,28,29,29,29,29,29,30,30,30,30,28,30,30,30,29,30,30,30,30,30,31,30,30,30,30,30,29,30,30,30,28,29,30,29,29,28,29,29,27,28,29,28,29,28,29,27,29,30,28,30,29,27,30,30,29,29,30,30,29,29,30,30,30,29,28,30,29,28,28,27,26,26,26,26,28,26,28,28,26,25,29,28,26,27,29,27,26,29,29,27,29,29,30,29,29,30,29,30,30,29,30,30,29,30,30,30,30,29,29,29,29,28,29,29,27,27,27,26,25,24,22,24,27,26,24,26,28,26,27,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,27,28,28,25,25,27,25,25,24,27,26,26,27,27,27,27,28,27,27,28,29,29,29,30,29,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,31,30,30,30,30,31,30,30,31,30,31,31,30,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,30,31,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,29,30,30,29,30,29,28,28,28,28,27,27,27,27,27,27,26,26,28,27,27,24,25,24,24,24,21,25,23,25,24,27,27,26,26,28,28,28,28,30,29,28,30,30,30,30,30,30,30,31,30,30,30,31,30,30,31,31,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,31,31,30,30,30,30,30,31,31,31,31,31,31,30,30,31,30,30,30,30,31,30,30,30,30,30,31,30,29,30,29,29,28,30,30,28,29,30,30,29,30,30,30,30,30,30,30,31,31,31,30,30,30,31,30,30,31,31,30,30,31,30,30,31,30,30,31,30,30,30,30,30,30,30,31,31,30,30,30,30,30,31,30,31,31,30,30,31,30,30,30,30,30,29,30,30,30,29,30,30,29,27,28,28,27,29,29,30,29,30,30,28,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,29,30,30,28,29,30,30,28,29,30,29,29,28,26,25,28,27,25,27,29,28,26,29,29,28,28,29,29,28,28,28,26,25,23,22,24,23,23,21,21,20,20,16,20,19,23,23,24,25,25,26,26,27,27,26,26,28,26,26,27,27,25,26,27,26,25,26,27,25,25,25,25,25,25,25,24,26,26,26,26,26,26,27,29,28,29,28,28,28,28,28,28,27,27,27,27,26,27,27,27,26,25,25,24,25,25,24,24,23,23,22,21,22,20,18,18,17,14,13,10,8,8,6,5,2,0,1,4,5,8,10,11,14,17,20,19,22,21,24,25,27,27,28,28,26,27,29,28,27,28,29,27,28,29,29,28,28,28,29,28,29,29,30,30,29,28,29,28,28,28,29,28,27,27,26,28,27,25,27,27,25,24,27,28,25,24,26,26,28,27,28,28,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,30,30,30,30,30,29,30,30,30,30,30,30,29,30,30,30,29,30,30,30,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,29,28,29,30,28,28,30,30,27,28,29,29,27,29,29,28,28,29,30,29,30,30,28,29,29,30,28,30,30,29,30,30,30,30,30,30,30,30,29,30,30,30,28,30,30,29,29,29,30,29,27,28,29,29,30,28,30,28,29,30,28,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,29,30,30,29,29,27,27,27,26,27,27,26,29,27,26,26,28,28,27,27,29,27,26,29,29,27,29,29,29,27,28,29,29,29,30,29,30,30,29,30,30,30,30,29,29,30,30,27,29,29,27,27,28,26,25,24,22,23,25,26,23,26,27,26,27,28,28,27,27,29,29,29,29,29,30,29,28,29,29,28,28,28,28,26,28,28,24,25,26,23,22,22,25,24,24,25,26,27,26,27,28,26,27,28,28,29,30,29,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,28,28,27,27,26,27,28,27,25,27,27,25,24,25,24,24,23,24,22,26,24,24,26,27,27,27,28,28,28,27,28,29,29,28,29,30,29,29,30,30,30,30,30,29,30,30,30,30,31,30,31,31,31,31,31,30,30,30,30,30,30,30,30,31,30,30,30,31,30,30,30,30,31,30,30,30,31,31,30,31,30,30,30,30,30,30,30,30,30,30,31,31,31,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,29,30,29,28,28,30,30,29,29,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,31,31,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,29,29,29,29,27,29,30,30,29,30,30,29,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,29,30,29,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,28,29,30,29,28,29,30,29,29,28,26,26,28,26,25,28,29,27,27,29,29,28,28,29,29,29,28,27,25,25,22,21,22,22,21,21,19,20,20,16,19,18,21,20,22,22,24,24,24,26,26,26,26,27,26,26,26,27,26,26,28,27,26,27,27,26,26,26,26,26,26,27,24,25,26,25,26,26,27,27,29,26,29,28,28,29,29,27,28,28,27,28,27,27,27,28,27,27,25,25,24,26,26,24,23,24,22,23,23,24,22,20,20,19,17,16,13,10,8,9,6,4,2,0,1,3,5,8,9,12,16,18,16,22,21,21,24,26,27,28,28,26,27,28,27,26,28,29,27,27,29,29,28,28,29,29,29,28,28,30,29,29,27,28,28,27,28,29,28,27,27,26,26,27,26,25,27,26,24,25,27,24,24,27,26,28,27,29,28,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,29,30,30,29,29,30,30,29,30,30,30,28,30,30,29,28,28,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,27,29,29,28,27,29,29,28,27,29,29,27,28,29,29,28,29,30,29,28,29,30,29,30,30,28,29,29,30,28,30,30,29,29,30,30,29,28,28,29,29,27,29,29,29,27,28,29,28,27,27,29,28,26,26,28,28,29,28,29,27,29,29,28,30,29,29,30,30,30,29,29,30,29,30,29,29,30,29,29,29,29,28,28,26,27,26,25,27,27,26,28,26,25,26,28,26,25,27,28,26,26,28,28,25,28,29,28,27,27,29,28,29,29,28,29,29,28,29,29,29,29,28,28,28,28,26,28,28,26,25,26,25,23,23,21,23,26,23,21,25,25,24,25,27,27,25,26,28,28,28,28,28,28,28,27,29,28,27,27,27,27,25,25,26,23,23,24,23,20,21,23,24,22,25,25,25,25,26,27,26,26,27,27,28,28,29,29,29,29,30,29,29,29,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,30,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,30,31,31,31,30,31,30,30,30,31,30,30,30,30,30,29,29,29,29,28,27,29,28,28,27,28,27,28,28,27,26,26,25,25,22,24,22,24,24,25,26,26,27,25,27,28,29,28,28,29,29,29,30,30,30,30,30,30,30,31,30,30,30,31,30,30,31,30,31,30,31,31,31,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,31,30,30,31,31,30,31,31,30,30,30,30,30,30,30,30,30,30,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,30,30,30,29,30,29,29,28,29,30,28,28,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,30,31,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,31,31,31,30,30,31,31,30,30,30,30,28,30,30,28,27,28,29,27,29,29,29,29,29,30,28,29,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,28,29,30,30,28,29,30,29,28,27,26,26,27,26,26,26,28,27,26,28,28,27,27,28,28,28,28,27,25,25,21,21,23,22,21,20,18,20,20,16,19,16,20,21,23,24,24,25,26,28,27,25,26,28,27,26,27,28,27,27,28,27,27,27,28,27,27,27,28,27,27,27,26,27,28,26,27,27,27,28,29,28,30,28,29,29,29,27,28,29,28,28,28,28,28,28,27,28,27,26,26,27,26,26,26,25,24,25,24,24,23,21,22,22,20,18,15,14,11,11,8,7,5,2,0,1,4,6,7,10,14,16,15,20,19,20,24,25,26,27,28,24,27,28,27,25,27,28,27,25,28,28,27,27,28,29,29,28,28,29,29,28,27,28,28,26,27,28,26,27,28,26,26,27,25,25,26,25,23,25,27,23,22,26,24,28,26,28,28,28,29,29,29,29,30,30,30,30,30,29,30,30,30,30,29,30,30,30,30,30,30,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,29,30,30,29,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,28,29,30,29,28,29,30,28,28,30,29,26,28,29,29,26,28,29,28,27,29,29,29,29,30,28,29,29,30,28,30,30,29,29,30,30,29,30,29,30,30,29,29,30,29,27,29,30,29,28,28,29,29,27,28,29,29,29,29,30,28,30,30,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,29,30,30,29,29,28,28,27,26,26,28,26,28,27,26,25,28,27,25,27,28,26,25,29,29,25,28,29,29,26,28,29,29,29,30,29,30,30,29,29,29,30,30,28,28,29,29,27,28,29,27,26,28,26,24,23,21,22,25,24,21,24,26,25,25,27,27,25,28,28,27,28,28,28,29,28,29,29,28,27,28,27,28,25,27,26,23,24,25,21,20,20,23,23,22,24,24,25,24,26,26,25,27,27,28,29,29,29,28,30,29,30,29,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31],[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,30,31,31,30,31,31,30,31,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,29,29,29,29,29,28,28,29,28,28,27,28,27,27,26,25,26,26,23,25,23,24,26,25,27,27,27,26,27,29,29,27,27,30,28,27,29,30,30,29,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,29,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,28,28,29,28,29,29,30,30,30,29,29,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,28,29,30,29,28,29,30,29,28,28,26,28,28,27,25,29,29,27,27,28,28,27,28,29,28,28,27,26,26,25,21,21,21,23,23,19,19,22,21,12,18,18,21,20,23,25,26,26,26,28,27,26,26,28,27,26,27,27,27,27,28,28,27,28,28,27,27,27,28,27,27,28,25,25,28,27,26,27,28,29,30,28,30,29,29,30,30,29,29,29,29,29,29,29,29,29,28,28,27,27,26,27,27,26,26,26,25,25,25,26,24,22,25,21,20,21,17,16,15,11,9,9,7,5,2,0,1,4,6,8,12,15,15,19,19,20,24,24,26,26,28,26,26,28,27,25,26,28,27,26,27,28,26,27,28,29,28,28,28,29,28,28,27,27,28,26,27,28,26,26,27,25,26,25,25,25,26,25,23,25,26,23,22,26,25,27,26,28,28,28,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,29,29,29,28,29,29,29,30,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,29,30,29,28,29,29,28,28,29,29,28,28,30,29,27,28,30,29,26,29,29,28,28,29,30,29,29,30,29,29,30,30,29,30,30,29,29,30,29,29,30,29,29,29,29,29,30,29,27,29,29,29,28,27,29,28,26,27,28,28,29,27,29,28,28,29,29,30,30,29,30,30,30,29,30,30,30,30,29,30,30,30,29,29,29,29,29,27,28,27,26,26,27,26,28,27,25,25,28,27,25,27,28,25,25,29,28,24,28,29,29,26,27,29,28,29,29,29,29,30,29,29,29,29,29,28,28,29,28,26,28,29,26,25,27,25,24,24,20,24,25,23,22,26,25,23,24,26,26,25,26,28,27,27,28,28,29,28,28,28,27,27,28,26,26,25,26,26,22,23,24,21,19,20,23,21,22,24,24,24,24,25,26,25,27,27,27,28,29,29,28,30,29,29,29,28,29,29,29,29,30,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,31,31,31,31,30,30,30],[31,31,31,31,31,31,31,31,31,31,31,30,31,30,31,30,31,31,30,31,31,30,30,31,30,30,30,30,30,31,30,30,31,31,30,31,30,31,31,31,31,30,30,30,31,30,30,29,30,29,29,28,28,28,27,28,28,27,27,28,28,26,25,25,25,26,23,24,22,25,22,22,24,25,26,26,25,27,28,27,26,28,28,28,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,31,30,30,31,30,30,30,30,30,29,30,29,29,29,30,29,29,29,28,28,27,29,29,28,28,29,29,28,29,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,29,29,26,27,27,28,27,28,28,29,28,29,29,28,28,29,29,28,30,29,28,28,29,29,29,29,30,30,30,30,30,30,29,29,28,30,30,29,29,30,30,29,30,30,30,30,29,30,29,30,30,30,30,30,30,29,29,30,29,28,29,29,27,28,29,28,27,28,28,27,27,26,24,24,26,25,24,26,27,25,25,27,27,26,28,28,28,27,26,24,24,23,18,19,21,20,20,18,17,18,18,15,17,18,20,20,23,24,24,25,25,26,27,26,26,27,27,26,27,26,26,27,27,27,26,27,28,28,28,26,28,27,27,28,26,26,27,26,26,26,27,28,29,28,29,28,29,29,29,29,29,29,29,29,28,28,28,28,28,28,27,27,26,27,26,26,25,25,24,25,24,26,24,23,25,22,21,21,18,18,16,14,11,10,9,7,5,2,0,1,3,6,8,11,12,15,15,16,21,22,25,26,26,25,25,27,26,24,26,27,25,25,27,27,26,26,27,28,28,27,27,28,28,27,26,28,27,26,27,28,26,26,27,24,25,26,24,25,25,24,22,23,26,22,20,24,24,27,25,27,26,27,28,29,28,28,29,28,28,28,29,29,29,29,29,29,29,30,29,29,29,29,29,28,29,28,28,28,28,29,28,28,30,30,29,29,30,29,29,29,30,29,29,29,29,28,29,29,29,28,29,29,28,27,28,28,28,29,29,29,30,30,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,28,28,29,29,27,28,29,28,27,28,28,27,26,28,28,24,27,28,27,25,27,27,26,26,27,28,27,28,28,27,27,28,29,27,28,29,28,28,29,29,28,28,27,28,28,27,28,28,28,26,28,28,28,27,27,28,28,25,27,28,28,28,27,29,28,29,30,28,29,29,29,29,29,30,29,29,30,30,29,30,29,30,29,29,29,29,29,29,27,27,26,27,26,26,24,27,26,24,24,27,27,22,25,27,24,23,27,27,22,27,27,27,24,26,27,27,27,28,26,28,28,27,28,28,28,28,27,26,27,27,25,26,28,26,24,26,25,24,22,20,21,24,22,19,23,24,21,23,25,25,22,25,27,25,25,27,27,27,26,27,28,26,26,27,25,26,25,25,24,22,21,22,17,16,18,20,19,17,23,21,24,23,23,24,23,25,25,26,26,27,28,26,29,27,29,27,27,28,29,28,28,29,28,28,30,29,29,29,29,29,29,29,29,30,30,30,30,30,29,29,30,29,30,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,31,30,31,31,31,31,30,31,30,30,30,31,31,30,31,30,30,30,30,30,31,30,30,30,30,30,31,30,30,30,30,30],[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,30,30,31,30,30,30,30,30,30,29,29,29,29,29,28,29,28,28,28,29,27,28,28,28,27,27,26,26,21,24,21,24,21,23,25,25,27,26,26,28,28,26,27,29,28,27,28,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,30,29,30,29,28,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,31,30,30,30,30,31,30,30,30,30,30,29,30,29,30,29,30,29,29,29,28,29,27,29,29,28,28,29,29,29,29,30,29,29,30,30,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,29,28,29,30,28,27,27,28,27,28,29,28,27,29,29,27,29,30,28,28,29,29,28,30,29,29,28,29,30,29,30,30,30,30,29,29,28,30,30,29,29,30,30,28,30,30,30,29,30,30,30,29,30,30,29,30,30,29,29,29,29,29,29,29,27,29,29,28,28,28,29,28,28,27,25,24,26,25,22,25,28,26,23,27,27,25,26,27,27,25,25,22,22,22,17,16,21,20,20,17,15,18,19,12,16,14,20,18,21,24,24,25,24,26,26,27,26,28,27,26,27,27,27,26,27,27,26,27,27,27,27,27,27,27,27,27,26,26,27,26,27,27,26,27,29,28,29,28,28,29,29,28,29,28,28,28,28,28,28,28,28,28,27,27,26,26,27,25,26,25,25,25,24,27,24,23,25,24,23,23,20,19,18,15,13,11,9,9,6,4,2,0,1,5,6,9,12,14,13,16,19,22,23,25,26,24,25,26,24,24,25,26,25,24,26,26,24,26,26,28,27,26,26,28,27,26,25,26,25,24,25,27,25,24,25,24,25,24,22,23,24,23,20,23,24,19,17,24,21,25,24,26,27,26,27,29,27,28,29,29,29,28,29,29,29,28,29,29,28,29,29,29,29,29,29,29,30,27,29,28,29,29,29,28,29,29,28,29,30,29,28,29,30,29,28,30,29,28,28,30,29,27,29,29,28,27,29,28,28,29,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,28,28,29,29,27,28,28,28,27,28,28,27,27,29,29,27,27,29,28,27,28,29,27,28,28,28,28,28,29,29,28,28,29,28,29,29,28,28,29,29,28,28,28,29,29,28,28,29,28,28,28,29,28,28,27,29,28,27,28,28,28,28,27,29,28,29,30,29,29,30,29,30,30,29,29,30,30,30,30,30,30,30,30,30,29,29,29,29,28,28,28,27,27,27,26,28,26,26,25,27,27,24,25,28,25,25,28,27,23,27,27,27,24,26,28,27,28,28,27,29,29,28,28,28,29,28,28,27,28,28,26,27,28,26,24,26,25,23,23,18,22,25,22,19,23,25,21,22,25,25,23,25,27,25,25,27,26,28,26,27,27,26,26,27,25,26,25,25,24,19,21,20,16,14,17,19,17,17,22,18,23,23,24,23,22,25,25,26,27,27,29,27,29,28,29,28,28,29,28,28,28,29,28,28,29,29,29,29,29,29,28,29,29,29,29,29,30,30,29,30,30,29,30,30,29,30,30,30,30,30,30,30,31,30,30,30,31,30,31,30,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,31,30,30,31,31,31,31,30,30,30,31,30,30,30,30],[31,31,30,30,31,31,31,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,31,30,30,30,30,30,30,29,29,28,28,28,28,27,27,28,27,26,26,26,26,24,24,23,23,24,22,22,22,23,22,21,23,23,23,24,25,26,26,25,24,27,27,24,27,27,28,28,28,29,29,29,29,29,29,30,29,29,30,30,30,29,30,29,30,29,30,29,29,29,29,29,29,30,29,29,29,28,29,29,29,29,30,29,30,30,30,30,29,30,29,29,29,29,29,29,30,30,30,30,30,29,30,30,30,30,30,30,29,29,30,29,29,28,28,28,29,28,28,28,27,26,27,27,28,27,27,28,28,28,28,29,28,28,29,29,28,29,29,29,29,28,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,28,29,29,29,29,29,29,30,29,30,30,29,29,30,29,27,28,28,27,25,27,27,25,26,26,27,26,27,27,27,27,27,27,27,28,28,27,27,28,27,26,28,27,26,27,28,28,28,28,29,29,29,27,28,26,29,29,28,27,29,29,27,29,29,28,29,29,28,29,29,29,29,29,28,29,27,28,28,27,26,27,27,25,26,27,26,26,26,26,25,25,24,22,23,24,23,21,23,25,23,23,25,25,23,25,26,25,26,24,22,21,20,17,15,19,19,19,17,15,18,18,14,16,15,20,18,21,21,23,22,22,24,24,24,24,26,24,24,26,26,24,25,26,27,25,26,28,27,27,26,28,26,25,26,24,25,25,26,25,25,25,26,28,27,28,28,28,28,29,28,29,29,28,28,28,28,28,28,28,28,27,26,26,26,26,25,25,25,25,25,24,26,24,24,25,24,23,22,20,20,19,17,15,14,11,9,9,5,3,1,0,1,4,7,10,13,13,13,17,19,22,25,24,22,24,24,24,23,25,24,23,22,26,25,24,24,26,26,26,25,26,26,25,26,24,26,26,24,27,26,25,23,25,23,23,25,21,22,24,22,18,22,24,18,17,23,20,25,24,25,24,25,27,26,27,26,28,26,26,27,27,27,28,27,27,28,27,27,28,28,27,28,27,27,28,26,27,25,27,28,27,26,28,28,27,27,28,28,27,28,28,28,26,28,28,26,27,27,28,25,27,27,27,25,26,27,26,27,27,27,28,29,28,29,28,28,29,29,29,29,29,29,29,29,30,29,29,28,29,29,29,28,29,29,29,28,28,28,28,27,27,28,27,24,27,27,26,25,26,27,25,24,27,26,24,25,27,25,23,26,25,24,24,26,27,26,26,27,26,25,26,27,25,27,27,26,26,27,27,26,26,25,26,26,25,27,26,26,25,25,25,26,26,25,26,25,24,25,25,26,26,27,27,27,28,28,27,28,28,28,28,28,28,28,28,29,28,28,29,28,28,28,27,28,27,28,27,26,26,25,24,23,25,24,25,24,22,24,25,24,20,24,26,23,22,25,25,21,24,25,25,22,25,25,26,26,26,26,27,27,26,26,25,26,25,26,24,25,25,23,25,25,23,21,24,23,22,21,18,20,23,21,19,22,23,18,20,23,23,19,23,25,22,23,24,24,24,25,24,25,24,23,23,23,23,22,22,20,16,19,18,13,13,15,17,17,14,20,16,22,21,22,20,19,23,23,24,24,25,25,25,26,25,27,25,25,26,26,26,26,28,27,26,27,27,26,27,28,28,27,28,28,28,27,28,28,29,28,28,28,29,29,28,28,29,28,29,29,29,29,29,30,30,29,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30],[30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,28,28,28,27,28,27,28,27,27,26,26,25,25,25,24,23,22,22,22,19,20,20,20,19,19,21,23,24,22,22,24,25,24,24,25,25,26,26,27,28,28,28,29,28,28,28,29,28,29,28,28,29,29,29,29,29,28,29,29,29,29,28,29,29,29,28,29,29,28,28,28,29,29,29,28,29,28,28,29,29,29,29,29,28,29,28,28,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,29,27,27,28,28,27,27,27,27,26,26,26,27,25,25,27,26,26,27,28,27,27,28,28,27,28,28,28,28,28,28,28,28,28,29,29,28,28,28,28,29,28,28,28,28,28,28,28,28,28,27,28,28,28,29,28,28,29,28,28,28,29,28,29,29,29,28,28,28,29,28,27,27,27,26,25,26,25,23,24,23,25,23,25,25,25,25,27,26,25,25,26,25,24,26,26,25,25,26,25,26,26,27,27,27,27,27,28,26,27,26,27,28,27,26,27,28,27,27,27,28,27,27,27,27,28,28,27,28,28,28,26,27,27,26,26,25,25,24,25,25,24,23,24,24,23,23,24,20,21,22,21,20,21,22,21,20,21,21,22,22,21,21,21,21,19,19,18,13,13,16,15,16,15,13,15,16,11,13,13,18,16,18,19,19,21,21,23,23,22,23,24,24,22,25,25,24,24,25,26,25,26,27,26,26,25,27,26,25,26,25,24,24,25,26,24,26,26,27,27,28,27,28,28,28,28,29,29,28,28,28,29,28,28,28,28,27,27,26,27,26,25,26,24,25,25,24,25,24,24,25,22,24,23,21,22,21,19,18,17,15,11,10,9,6,4,2,0,1,4,7,8,9,10,13,14,17,21,19,18,19,21,19,18,20,21,20,18,22,22,22,21,23,24,24,22,23,23,23,22,20,22,23,20,23,23,20,20,22,20,20,22,18,18,20,20,17,18,20,16,14,19,16,22,19,21,21,21,21,23,22,22,24,24,23,24,25,25,25,24,26,25,25,25,27,27,26,25,26,25,26,23,24,23,25,26,24,25,27,27,25,25,26,26,25,25,26,25,24,27,26,25,25,26,27,23,25,26,25,23,24,25,25,26,26,25,27,27,26,27,27,27,28,28,27,28,28,28,29,29,29,28,28,29,28,28,28,28,28,28,28,27,26,27,28,26,26,26,26,23,25,25,23,23,24,24,22,22,24,23,21,22,22,22,19,22,22,21,21,22,22,21,23,24,23,23,23,25,23,24,24,23,23,25,26,23,24,21,24,24,22,23,23,23,21,22,24,24,23,23,25,23,22,23,24,24,25,25,27,25,27,28,26,27,26,27,28,28,27,27,28,27,27,28,28,27,28,28,26,26,26,26,26,24,24,23,23,22,22,21,23,22,19,21,22,22,18,21,22,18,19,22,21,17,22,21,22,19,20,22,21,22,23,20,24,24,21,22,23,24,23,22,19,23,23,19,21,23,21,18,22,21,19,18,16,16,21,16,14,18,20,15,17,18,20,15,18,21,20,18,21,21,22,22,22,22,20,23,23,19,20,19,19,17,15,14,14,11,10,11,12,12,10,14,14,17,15,18,17,16,20,20,21,21,22,24,22,24,22,26,23,23,24,24,23,24,24,23,23,25,25,24,25,25,25,24,25,26,26,25,27,26,27,26,26,27,26,27,26,27,28,27,28,28,27,27,29,29,29,28,29,29,29,30,29,29,30,29,30,29,30,30,30,29,30,30,29,30,30,30,29,29,30,30,29,29,29,29,29,30,29,29,29,29,29],[30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,29,29,29,28,29,29,28,29,29,28,29,29,29,29,29,28,29,29,30,29,30,29,29,29,29,29,29,28,28,29,28,28,26,27,25,25,27,26,26,24,25,24,23,23,22,22,20,18,16,15,14,13,12,13,12,12,11,13,13,16,14,15,17,18,15,16,19,18,16,19,20,21,21,22,23,22,24,23,23,25,24,23,23,26,25,26,25,25,25,25,26,26,26,25,25,25,25,24,24,24,24,23,25,23,25,25,22,23,25,26,24,25,25,26,24,25,26,24,23,25,25,26,25,25,26,26,24,26,26,25,26,25,24,23,24,24,22,23,21,23,22,24,22,20,22,21,19,20,21,21,18,19,21,20,19,21,23,20,21,24,23,19,22,23,23,24,20,24,24,23,22,24,25,23,23,24,23,23,24,24,24,25,24,24,24,24,24,23,23,23,23,22,23,23,22,24,24,22,25,24,23,23,24,24,21,22,23,21,18,21,22,18,16,20,20,16,16,18,18,20,21,20,19,19,20,19,18,20,21,19,19,20,21,16,19,19,18,18,20,21,21,22,22,22,20,19,20,17,20,21,19,17,22,22,17,21,21,22,20,21,21,22,23,22,22,21,21,19,17,19,19,17,17,19,17,14,16,19,16,14,18,18,15,16,15,11,14,16,13,10,15,16,11,14,15,16,14,18,16,15,17,14,15,15,10,9,7,9,8,8,9,7,8,8,7,8,9,10,11,13,15,15,16,17,20,19,18,18,19,18,19,20,19,20,21,23,23,22,23,24,24,26,23,25,24,23,24,23,21,23,25,24,23,24,24,25,25,27,26,28,28,28,28,29,29,28,28,28,28,28,28,28,27,26,26,25,26,25,24,24,22,24,24,22,24,23,23,24,22,22,23,20,21,20,19,19,17,15,13,11,10,8,6,3,3,0,1,2,4,5,7,7,10,10,13,14,12,12,16,16,14,15,16,16,17,19,17,17,19,20,20,20,19,19,18,16,18,15,17,18,17,19,19,16,16,16,14,16,16,13,14,15,13,14,14,14,13,10,13,11,15,14,14,15,14,16,16,17,18,17,17,18,20,19,18,20,20,20,20,21,20,22,21,18,20,19,19,20,17,18,14,18,21,17,16,20,21,17,18,20,19,16,18,19,18,14,19,20,16,15,19,19,14,18,19,17,14,16,17,18,18,19,18,20,20,20,22,23,20,21,23,21,20,23,24,23,22,23,23,23,24,23,23,23,22,22,22,22,21,20,21,21,18,18,21,18,14,17,19,16,15,17,17,14,14,17,15,11,14,16,12,10,16,17,13,13,15,17,15,17,17,16,16,17,16,15,16,18,15,14,18,18,17,16,13,17,17,13,14,16,16,13,15,16,16,13,14,16,16,13,15,18,17,18,19,21,20,21,22,19,22,21,21,22,23,21,22,22,22,22,23,24,23,22,22,21,21,19,20,19,18,17,15,15,14,16,14,15,15,12,12,16,13,11,12,14,11,11,14,11,10,12,14,12,11,13,15,15,16,14,12,15,16,12,14,16,17,15,14,13,15,15,12,13,15,12,11,13,12,11,9,9,9,10,8,7,10,11,7,9,13,11,9,12,13,11,12,15,12,15,15,14,14,12,15,14,12,16,13,13,12,10,9,8,7,5,5,6,5,6,9,9,12,9,11,9,11,14,14,14,15,14,17,15,17,15,18,18,16,17,18,17,15,19,18,16,17,19,18,16,19,20,18,19,20,21,19,20,22,22,22,21,22,21,23,22,22,23,24,24,25,26,25,27,27,29,27,27,27,27,29,27,28,29,28,28,28,29,28,28,28,29,28,29,29,29,28,28,26,28,28,28,27,28,28,25,27,27,26,27,27,26],[30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,28,29,29,28,29,28,27,29,29,28,28,29,28,29,29,28,29,30,30,29,30,29,29,29,29,29,29,28,29,28,28,28,27,27,26,26,26,26,25,24,25,24,24,23,22,20,18,15,12,11,10,9,8,8,7,7,7,7,7,9,8,9,11,11,10,10,13,12,11,13,14,15,15,16,16,17,18,17,17,17,17,17,17,19,19,19,19,19,19,19,20,19,19,19,19,20,17,18,17,17,18,16,18,17,17,18,17,18,17,18,17,17,19,19,18,18,20,17,18,17,18,17,19,19,19,19,19,20,19,17,18,18,18,15,16,17,15,15,16,15,16,16,16,16,15,16,13,15,15,15,13,15,15,15,14,15,14,15,15,16,15,14,16,16,15,16,15,15,17,17,15,17,16,16,16,16,17,16,16,16,17,18,17,17,18,17,16,18,18,18,18,18,17,16,17,17,18,15,18,18,16,15,17,16,13,14,16,15,12,14,15,12,11,13,13,10,10,12,12,12,14,13,14,15,15,14,13,14,14,13,13,14,15,11,13,13,12,11,13,13,14,15,15,13,14,13,14,11,13,15,12,12,15,15,13,14,15,15,14,14,15,16,15,15,16,14,13,13,12,14,13,11,11,12,11,9,10,12,9,9,10,10,8,9,9,6,7,8,7,6,7,8,6,6,8,8,7,9,9,8,10,7,7,6,5,5,4,5,4,5,5,3,4,5,4,4,6,6,6,9,9,10,11,14,18,18,14,15,20,17,15,19,19,18,18,21,22,21,22,24,24,25,23,25,23,22,25,22,21,23,24,23,22,24,25,25,26,27,27,27,27,28,28,28,28,28,28,28,28,27,28,27,27,26,27,25,27,25,25,25,23,26,24,24,26,23,23,25,22,23,24,21,22,22,20,20,19,17,15,13,12,9,7,5,3,1,0,1,2,3,3,4,5,6,8,8,6,7,8,8,7,8,9,9,9,10,10,9,10,12,13,12,11,11,12,10,10,10,10,9,9,10,11,9,9,9,6,7,8,7,6,7,7,6,6,7,6,5,6,6,8,7,8,8,8,9,11,10,10,10,10,12,13,12,13,14,13,14,14,15,14,16,15,13,14,12,13,13,12,11,9,11,13,12,11,14,14,11,11,13,12,11,12,13,11,10,12,13,10,11,13,12,11,12,13,10,10,11,12,12,14,13,15,15,14,15,14,14,13,14,16,14,14,16,16,18,17,16,16,17,16,16,17,16,15,16,16,15,16,15,14,15,13,12,14,13,10,11,11,9,9,9,10,8,8,10,9,8,8,9,7,7,8,9,8,7,9,10,9,10,11,9,9,10,10,8,11,10,10,10,12,12,10,11,9,11,11,9,9,11,11,10,9,10,10,9,9,10,10,10,9,10,12,12,12,14,14,15,15,13,15,15,15,15,16,16,16,14,17,16,16,17,16,16,16,15,15,15,15,13,12,11,9,10,9,9,8,9,10,9,8,9,9,7,8,9,9,7,8,9,7,7,9,8,7,7,9,8,10,10,8,10,11,10,9,11,10,10,10,9,9,9,8,8,10,9,7,10,7,7,6,6,6,6,7,5,7,8,6,7,9,8,5,7,9,6,8,9,8,10,7,9,8,5,7,8,7,5,7,6,6,4,5,5,2,2,3,3,3,3,5,4,5,5,5,5,5,6,7,8,9,9,12,10,12,10,11,12,9,11,12,10,10,12,11,10,11,13,10,11,12,13,12,11,13,14,12,13,14,15,15,16,16,17,18,18,18,18,19,20,20,23,21,25,25,24,23,25,23,24,27,25,26,28,24,28,27,27,26,27,26,27,28,27,26,26,27,27,24,24,28,27,24,28,25,26,26,27,24,24,26,24],[29,29,29,29,29,30,29,29,29,29,29,28,29,28,29,28,29,29,28,29,29,28,29,29,28,29,29,29,29,29,28,29,29,30,29,29,29,29,29,29,29,28,28,28,28,28,27,26,27,26,25,25,25,24,24,24,23,22,22,21,19,17,15,10,9,7,8,7,7,7,6,6,7,6,7,7,8,9,10,9,9,10,11,9,10,12,12,14,14,13,14,14,13,15,14,14,14,14,15,15,15,16,15,14,16,16,15,15,15,15,15,14,14,14,15,14,14,14,14,14,14,13,13,14,15,14,13,15,14,14,14,14,14,13,14,15,15,15,14,15,14,14,15,14,13,13,14,13,14,14,14,13,13,14,14,14,14,13,15,13,13,12,11,13,12,11,12,14,12,12,12,12,12,12,13,13,12,13,12,13,13,12,12,12,13,12,13,13,13,12,13,13,13,13,13,15,15,15,14,15,15,15,15,15,15,15,15,14,13,15,14,14,13,14,14,13,13,13,12,11,12,13,10,10,11,10,9,8,10,10,8,8,9,9,10,11,12,11,11,12,11,10,10,12,10,10,11,11,8,10,11,9,10,11,11,12,12,12,11,10,10,10,9,10,11,10,9,12,12,10,11,12,12,12,12,13,13,13,12,12,12,12,10,10,10,9,9,9,9,9,7,8,8,8,7,8,8,7,7,7,6,7,6,7,5,6,7,5,5,6,6,5,7,7,6,7,5,5,5,4,4,4,4,5,5,6,3,4,6,4,3,5,5,6,7,8,10,11,14,17,18,15,15,18,17,16,18,18,18,17,18,21,20,21,23,23,24,22,25,22,20,22,21,19,21,22,22,21,22,23,26,25,26,25,25,26,27,26,27,27,26,26,26,26,26,27,27,27,25,26,26,26,25,25,26,23,25,25,24,25,24,24,25,23,23,24,21,22,21,19,19,18,17,15,14,13,10,9,6,3,2,1,0,1,2,3,4,5,5,6,6,6,6,7,7,7,8,8,8,9,9,10,9,9,11,11,11,9,10,9,8,8,8,8,9,9,10,11,10,10,9,9,8,8,7,6,6,6,6,6,5,5,4,4,4,6,6,6,7,7,7,8,8,8,8,9,10,9,9,10,10,11,11,12,12,12,12,11,10,10,10,9,10,8,9,8,9,10,9,10,11,11,9,10,10,10,9,9,10,10,9,10,9,9,10,9,10,9,10,11,11,9,10,10,10,11,13,13,13,13,12,12,12,12,13,13,12,13,14,14,14,13,14,14,14,14,16,16,14,13,14,14,13,13,13,12,11,11,11,11,9,9,10,9,8,8,9,8,8,7,8,8,7,7,8,6,5,7,8,6,6,7,8,7,9,9,8,8,9,9,9,9,9,8,9,9,9,8,9,8,9,9,8,8,8,8,8,9,9,8,8,8,9,8,7,8,9,10,10,10,13,11,13,13,11,12,13,14,14,13,13,13,13,14,14,13,15,13,14,13,14,13,12,12,12,11,9,8,8,8,8,8,7,8,7,7,7,8,7,7,6,7,6,7,8,6,6,7,7,5,6,7,7,9,8,8,10,10,8,9,8,9,8,8,7,8,8,6,6,7,6,7,7,7,6,6,4,5,5,5,4,6,5,5,4,6,6,5,6,7,6,6,8,7,8,6,7,7,5,5,6,7,6,5,5,4,4,5,4,3,2,2,4,3,3,4,4,5,4,5,5,4,6,7,7,8,8,9,8,9,9,10,10,9,9,10,9,9,10,10,9,10,10,10,10,10,11,11,10,10,11,10,10,12,13,12,15,14,15,15,16,16,16,17,18,20,20,20,23,23,23,22,23,22,21,24,23,25,26,24,26,26,26,26,25,25,27,26,26,26,26,26,25,23,25,27,26,24,26,24,25,25,26,23,22,24,23],[29,29,29,29,29,30,30,29,29,29,29,29,29,28,29,28,29,29,28,29,29,28,29,29,29,29,29,29,29,29,28,29,29,30,29,29,29,29,30,29,29,29,29,29,29,29,28,27,28,27,26,26,26,25,25,25,23,23,22,21,19,16,13,11,9,8,6,5,5,5,4,5,5,6,7,7,7,7,8,7,7,8,9,8,9,10,11,11,12,11,12,13,11,12,13,13,12,13,14,13,13,14,13,13,15,15,14,14,13,14,14,13,13,13,13,12,12,13,12,12,13,12,12,14,13,13,12,14,13,12,14,13,12,14,13,14,13,15,14,14,13,13,14,14,12,12,13,12,12,11,12,11,11,11,12,11,12,11,11,11,11,10,10,11,11,9,10,11,11,10,10,11,11,10,11,11,11,11,11,11,12,11,12,12,12,12,12,12,12,12,13,11,13,13,13,14,14,14,14,15,15,13,14,14,14,14,13,13,13,12,13,13,12,13,13,11,11,12,11,11,10,12,10,9,10,9,10,8,9,9,7,7,8,8,9,9,10,10,10,10,9,9,9,10,9,9,10,9,8,9,9,9,9,9,11,11,11,12,11,10,11,9,10,10,10,10,11,10,10,12,11,10,10,11,12,12,12,12,12,11,11,11,10,9,8,9,10,8,8,10,8,7,8,8,7,8,9,7,7,7,5,5,5,5,5,5,6,6,5,6,6,5,5,6,6,5,5,4,5,3,3,2,3,2,3,4,1,2,4,4,4,4,4,5,7,8,9,12,14,17,17,17,16,17,17,16,18,17,18,19,20,21,21,21,23,23,24,22,24,23,21,23,20,20,22,23,22,22,23,24,26,26,27,26,27,28,28,27,28,28,28,28,28,28,27,28,28,28,27,27,26,27,27,26,27,24,27,26,25,26,24,24,26,24,24,24,22,22,22,19,20,18,17,15,13,11,9,8,7,4,2,1,2,0,1,2,2,3,4,4,5,4,4,5,5,4,5,5,6,6,7,7,6,7,8,8,8,7,7,7,7,6,5,5,6,6,6,7,6,7,5,6,5,5,5,4,4,4,4,4,3,3,3,3,3,4,5,5,6,5,6,7,6,6,7,7,7,7,7,8,8,9,11,11,11,11,10,10,9,9,9,8,9,7,9,7,8,8,9,8,9,9,10,10,10,9,10,9,9,9,9,9,9,10,10,8,9,10,10,10,10,10,9,10,10,10,12,12,12,12,12,11,11,11,11,13,10,11,12,12,12,12,13,12,13,14,12,12,12,12,12,12,11,11,11,10,11,9,9,9,8,7,9,9,8,7,8,9,7,7,8,7,6,6,7,6,6,6,7,7,7,7,7,7,7,7,7,6,7,7,7,7,8,7,7,8,9,7,8,7,8,8,7,7,7,7,7,7,7,7,6,6,7,7,7,7,8,8,9,9,10,9,10,11,10,10,11,10,12,11,11,11,11,12,12,11,13,12,12,12,12,11,12,11,10,9,8,7,7,7,7,6,7,7,6,6,7,6,5,6,5,6,6,6,6,6,6,6,6,4,5,6,5,7,6,6,7,7,7,6,7,7,7,7,6,7,7,6,5,6,6,5,5,6,5,5,3,4,5,4,3,5,5,4,3,5,5,4,6,5,6,5,5,6,6,6,6,6,6,5,6,6,7,5,5,4,4,3,3,3,3,3,2,2,3,4,3,4,4,4,4,5,5,7,6,6,7,7,7,7,8,8,8,7,8,7,7,7,8,7,8,8,8,8,9,8,8,8,9,9,8,8,9,10,12,13,13,13,14,14,14,14,15,17,17,17,20,19,24,22,23,20,22,23,21,25,22,24,27,24,26,26,26,26,26,26,28,27,26,26,27,26,25,23,25,27,27,24,26,26,25,27,26,24,23,25,23],[28,28,28,28,28,28,28,28,28,27,26,26,27,26,26,26,26,27,25,26,26,26,26,26,26,26,27,26,26,26,26,27,27,28,26,27,27,27,27,27,27,26,26,27,27,26,25,25,24,24,24,24,23,22,21,22,21,21,20,18,16,15,12,10,8,7,7,6,6,6,5,5,5,5,6,7,6,8,8,8,7,8,10,8,9,10,10,10,10,11,11,11,11,12,12,12,11,11,13,12,13,13,13,12,13,14,14,14,13,14,14,12,11,12,12,12,11,11,12,12,12,11,11,12,12,12,11,13,12,11,13,12,11,12,12,13,13,13,13,13,14,12,13,12,12,12,12,11,10,12,12,10,11,10,10,11,11,11,10,10,10,10,9,10,10,10,10,10,10,10,10,10,10,10,11,10,10,10,10,10,10,10,11,11,10,10,11,11,11,10,11,10,11,12,11,12,13,12,12,13,13,12,12,12,12,12,11,11,11,12,11,11,11,11,12,11,11,11,11,10,9,10,10,9,9,9,8,8,9,8,8,7,8,8,8,9,10,9,10,9,9,9,9,10,10,8,8,9,9,8,8,9,8,9,9,10,11,10,10,9,9,9,8,9,9,9,8,9,9,9,10,9,10,10,10,9,10,10,10,10,10,9,9,9,8,9,8,8,7,8,8,8,7,7,7,8,8,7,6,6,5,5,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,3,4,4,4,3,3,4,4,3,3,3,4,3,3,4,6,6,8,11,12,12,14,15,15,16,16,15,15,14,16,16,16,17,18,20,19,20,22,21,22,20,23,21,19,21,20,18,20,21,20,19,21,22,24,24,25,24,25,26,26,26,26,26,26,26,26,26,26,26,26,26,25,26,24,25,25,24,25,23,25,24,23,24,22,22,24,23,22,23,22,21,21,20,20,19,17,15,14,12,11,9,6,5,3,2,1,1,0,1,1,2,2,3,3,3,3,4,4,3,5,5,4,5,6,6,6,6,7,7,7,6,6,5,5,5,4,4,6,5,6,7,5,6,5,4,4,5,5,4,3,4,3,3,3,3,2,2,3,3,4,4,4,4,5,5,5,5,5,7,6,7,7,7,7,8,9,9,9,10,9,8,8,8,8,8,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,7,8,8,8,8,8,8,7,8,8,8,7,8,8,8,9,10,10,10,10,9,9,9,10,10,10,10,10,11,12,12,11,12,12,12,11,11,12,10,10,10,11,11,10,9,10,9,9,9,9,8,8,8,9,8,7,7,8,7,7,7,7,6,6,7,6,6,6,7,6,6,6,6,6,7,7,7,6,7,8,7,7,7,8,7,8,8,7,8,6,8,7,7,7,7,8,7,7,7,7,7,6,7,8,7,7,8,8,8,9,9,9,10,10,10,11,11,11,11,11,11,11,11,11,11,12,13,11,11,11,10,12,11,10,10,9,8,7,7,7,7,6,7,7,6,6,7,6,6,6,6,6,6,6,6,5,5,6,5,4,4,5,4,5,6,5,6,7,6,6,7,7,6,6,6,6,7,6,6,6,6,5,6,6,5,5,3,3,5,4,4,4,5,4,4,5,6,4,4,5,5,4,6,6,6,6,6,6,5,6,5,6,6,5,5,5,4,4,4,3,3,2,3,2,2,2,2,3,3,3,3,4,4,5,5,6,6,7,6,7,7,8,7,6,7,6,6,6,7,6,6,7,7,7,8,8,7,8,8,8,8,9,9,9,10,10,12,11,12,12,12,13,12,14,14,16,17,18,21,20,19,18,20,20,18,21,19,21,22,21,23,23,24,23,22,23,25,25,23,24,23,23,23,21,23,24,23,20,23,21,20,23,22,20,20,22,20],[29,29,28,29,29,29,29,28,28,27,27,26,28,27,27,27,27,27,27,28,27,26,28,28,27,27,28,27,28,29,27,28,29,29,27,29,28,28,29,29,29,28,27,28,28,27,27,26,26,25,25,24,24,23,23,22,21,22,20,18,16,14,11,9,8,7,6,6,6,6,5,5,5,6,7,6,6,7,8,8,8,9,9,8,9,9,10,10,10,11,11,11,11,11,12,12,11,12,13,13,13,14,14,13,14,15,15,15,14,15,15,14,12,12,12,12,12,12,12,11,13,11,11,12,13,11,11,13,12,11,12,12,11,12,13,13,13,12,13,13,12,12,13,12,11,12,12,11,10,11,11,10,11,10,11,11,11,11,11,10,10,10,9,10,10,10,9,10,10,10,10,10,10,10,10,10,9,9,10,9,10,9,9,10,10,9,10,10,9,9,10,10,10,10,11,12,13,12,11,12,13,12,12,12,13,12,12,11,10,11,11,11,10,11,11,9,10,10,9,9,9,10,9,8,9,9,8,8,8,8,7,7,7,8,8,9,9,9,9,9,9,8,8,10,9,8,8,9,7,8,8,8,7,8,8,9,9,9,8,8,8,8,7,7,8,8,7,8,9,8,8,9,9,8,8,8,9,10,9,9,9,9,8,8,8,8,7,8,7,7,6,7,7,6,6,7,7,6,6,6,5,5,5,5,5,4,5,4,4,5,4,4,4,5,4,4,3,3,3,3,3,3,3,3,4,3,3,3,4,4,4,5,5,7,7,10,11,12,15,17,16,17,15,16,16,16,18,17,17,17,18,19,20,21,23,21,23,21,24,22,20,24,21,19,21,22,22,20,23,24,24,25,25,25,26,27,27,27,27,27,27,27,27,27,27,28,27,27,26,26,26,26,26,25,27,23,26,25,25,26,25,24,26,23,24,25,24,23,24,22,22,21,18,17,15,12,10,10,7,5,3,2,2,1,1,0,1,1,2,2,3,2,2,3,3,3,4,4,5,4,4,5,5,5,6,6,6,5,5,5,5,4,4,4,5,4,6,6,4,5,5,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,3,3,4,3,4,4,4,4,5,5,5,5,5,6,6,7,7,8,8,8,8,8,6,7,6,7,7,6,7,6,6,7,7,6,7,7,7,6,7,7,6,6,7,7,6,6,7,6,6,7,7,6,7,8,8,7,7,7,8,9,9,9,9,9,8,8,8,9,9,10,9,9,10,11,12,11,12,11,12,11,11,11,11,10,10,10,10,9,9,9,9,8,9,8,8,7,8,7,7,6,6,6,5,6,6,5,5,6,6,5,5,5,5,4,4,5,5,4,5,6,5,5,6,6,5,5,5,5,5,6,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7,6,7,7,8,8,9,9,10,10,10,10,10,10,11,12,11,11,11,10,12,10,11,12,11,11,11,11,10,10,10,9,9,8,7,7,6,7,6,6,7,6,6,6,5,5,5,6,4,5,5,4,5,4,5,4,4,4,4,4,5,4,4,5,5,5,6,6,6,6,5,6,6,6,5,6,5,6,5,5,5,5,5,4,5,4,4,3,4,5,4,4,5,4,4,4,5,4,4,5,5,6,5,5,5,4,5,5,5,5,5,6,4,4,5,3,3,3,3,3,1,2,2,2,3,4,4,3,4,4,5,5,5,6,6,6,6,6,7,6,6,6,5,5,5,5,5,5,5,5,5,6,6,6,5,7,7,6,6,7,7,9,10,10,10,11,13,11,11,13,14,14,16,16,18,20,20,20,17,19,20,19,23,19,22,22,21,25,24,22,23,24,23,24,25,23,22,22,24,23,19,21,24,24,20,23,22,22,22,22,20,21,22,19],[29,29,29,29,29,29,29,29,29,28,28,27,28,27,28,27,27,28,26,28,28,27,28,28,27,28,28,28,28,28,27,28,29,29,27,29,28,28,29,28,28,28,28,28,28,27,26,25,27,25,25,25,25,24,22,23,21,21,21,20,17,15,12,10,9,7,7,7,7,6,6,6,6,6,8,8,7,8,8,8,9,8,8,8,8,10,10,11,10,10,10,11,10,11,11,10,10,11,12,11,11,12,12,12,13,13,12,13,12,13,13,12,11,11,12,12,11,12,12,11,11,11,11,12,11,11,11,12,10,11,12,11,10,12,11,13,11,12,11,11,12,10,11,11,10,10,11,10,10,10,10,10,10,10,11,10,11,11,11,11,11,10,10,9,9,10,10,9,10,10,10,9,10,9,10,9,10,9,9,10,10,10,10,10,9,10,10,9,10,10,9,9,10,10,10,11,11,11,11,12,11,11,11,12,11,11,11,11,11,11,11,10,10,10,10,9,10,9,9,9,8,9,9,9,8,8,9,8,8,8,8,8,8,8,9,9,8,9,9,9,8,9,9,9,9,8,8,8,9,8,7,8,8,8,8,9,9,9,8,8,9,8,9,8,8,8,8,7,8,8,8,8,8,8,9,8,8,9,9,9,9,8,7,8,7,8,8,8,7,8,7,7,8,7,7,8,9,6,6,6,6,5,5,5,4,5,5,5,4,5,4,4,5,6,4,4,3,3,3,3,3,3,4,3,4,4,3,4,5,5,4,5,6,7,8,12,13,13,15,16,16,16,17,17,16,16,17,17,18,17,20,21,21,20,23,22,23,21,24,21,19,21,20,20,20,22,23,21,22,24,24,26,27,25,26,27,26,26,27,27,27,27,27,27,26,27,26,26,25,26,26,26,26,25,26,24,25,25,25,26,24,24,25,24,21,23,25,21,22,22,21,21,20,17,16,14,11,9,8,6,4,2,3,2,1,1,0,1,1,2,2,2,2,2,2,2,3,4,3,4,4,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,5,5,5,5,5,4,4,4,3,3,2,3,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,5,5,5,5,5,5,6,7,7,7,8,8,7,7,6,7,7,7,7,6,8,6,6,8,7,7,7,7,7,7,7,7,7,7,7,8,7,7,7,8,8,7,7,8,7,8,8,8,7,8,8,8,10,10,9,9,9,9,8,9,9,10,8,10,10,11,11,11,10,11,12,11,10,11,10,10,9,10,9,9,9,8,9,8,8,7,7,8,8,7,8,8,8,7,6,7,6,6,5,5,5,5,5,5,5,5,4,5,5,4,5,6,5,6,6,6,6,6,6,6,7,6,7,5,7,6,6,7,7,6,6,7,7,6,6,6,7,7,7,8,8,7,8,8,8,9,9,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,12,12,11,11,11,10,10,10,10,9,8,8,7,8,7,7,7,7,7,6,7,6,6,5,5,6,6,5,5,5,5,5,4,5,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,7,5,6,6,6,5,6,6,6,5,5,4,4,5,3,4,5,4,5,4,4,4,3,4,4,4,5,5,5,6,5,5,5,5,5,5,5,4,5,4,4,4,3,3,3,3,3,1,2,1,2,2,3,3,3,4,4,4,5,5,7,6,6,6,6,7,6,5,6,5,5,5,6,5,5,6,5,5,5,5,6,5,6,6,6,7,7,7,8,9,10,10,11,11,11,12,11,13,14,15,17,17,20,19,19,17,18,18,18,22,19,21,22,22,26,25,24,24,24,23,26,25,24,23,23,24,22,20,21,24,24,20,23,22,22,24,23,20,20,23,20],[29,29,28,28,28,29,28,28,28,27,27,26,27,26,26,26,27,26,26,27,26,26,27,27,26,26,27,26,27,27,26,27,28,28,27,28,27,27,28,27,28,27,27,27,27,27,26,25,26,25,25,24,24,23,22,22,20,21,20,19,16,15,12,9,8,7,6,6,6,6,5,5,5,5,7,6,6,7,7,7,8,8,8,8,8,9,9,9,9,10,10,10,10,11,11,10,10,11,12,11,12,12,12,12,13,13,13,13,13,14,14,13,12,13,12,13,11,12,10,11,12,10,10,11,12,11,10,12,11,11,11,11,10,10,11,12,11,11,11,11,10,10,11,11,10,11,11,10,9,11,10,9,10,9,10,10,11,11,10,11,9,9,9,9,9,9,8,10,10,9,8,9,9,9,9,9,9,8,9,8,8,9,8,9,8,8,8,9,9,8,9,9,9,8,9,10,11,10,10,11,11,11,11,10,10,10,10,10,10,10,10,10,9,10,10,9,9,9,8,8,8,8,8,8,8,8,8,8,7,7,7,7,8,7,8,8,8,8,8,9,9,8,7,8,8,7,7,7,7,7,7,7,7,7,7,8,8,8,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,9,8,8,8,7,7,7,7,7,7,7,7,7,6,6,7,6,6,6,6,6,6,5,4,4,5,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,5,6,6,7,10,10,10,14,16,15,15,16,16,16,16,18,17,17,18,19,21,21,22,23,22,23,21,24,21,20,22,21,19,20,22,21,20,22,24,24,25,26,25,26,27,27,27,26,27,27,27,27,27,26,27,27,27,26,26,26,26,26,26,26,25,25,26,25,25,24,25,26,23,22,23,24,21,22,22,21,21,20,19,16,14,13,11,8,6,4,3,3,2,2,1,1,0,1,1,1,2,2,2,2,2,2,2,3,3,3,4,4,4,4,4,4,4,4,4,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,2,1,2,2,1,1,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,6,5,6,7,7,7,6,6,6,5,6,6,5,6,6,6,6,6,6,6,7,7,7,6,6,6,5,6,6,6,6,7,6,6,6,7,6,7,7,7,7,7,7,8,8,9,9,9,9,8,8,8,8,8,9,8,9,9,10,11,11,10,11,11,10,11,10,10,10,10,10,9,9,9,9,8,8,8,7,7,7,7,7,6,6,7,6,6,5,6,5,4,5,5,5,4,4,5,5,4,4,4,4,4,5,5,4,5,5,5,5,5,6,5,5,6,6,6,5,5,6,5,5,6,6,5,6,6,6,6,6,7,7,6,7,7,7,8,8,9,9,10,9,9,9,9,9,10,10,10,10,11,11,11,11,12,11,11,11,11,10,10,9,9,9,8,7,7,7,7,6,7,6,5,6,6,5,5,5,6,4,4,5,4,4,4,4,5,3,3,4,4,4,4,4,5,5,5,5,5,6,5,5,5,5,6,5,5,5,5,5,5,6,5,5,4,4,5,4,3,4,4,4,3,4,4,3,3,4,4,4,4,4,5,5,5,5,4,5,5,5,5,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,3,3,3,3,4,4,5,4,6,6,5,6,6,7,6,5,5,5,5,5,5,4,4,5,5,4,5,5,5,4,5,5,5,5,7,6,7,8,9,8,9,11,10,10,11,12,12,14,14,15,18,19,19,16,18,18,17,21,18,22,20,20,24,22,21,23,23,21,23,23,22,22,21,22,21,18,21,22,22,18,22,20,19,21,21,18,18,20,17],[29,29,29,29,29,29,29,29,28,28,28,28,28,28,28,27,28,28,28,28,29,28,28,29,28,28,29,29,28,29,28,29,29,29,28,29,29,28,29,29,29,28,28,28,28,28,27,26,27,26,25,26,26,25,24,24,22,21,20,21,18,15,13,11,9,8,7,8,7,7,6,6,7,6,8,8,7,8,10,9,8,9,10,9,9,11,10,11,11,11,12,12,11,12,12,12,11,12,13,13,13,13,14,12,14,14,14,13,13,14,14,14,12,13,12,13,13,13,12,12,13,11,11,12,13,11,11,12,11,11,12,11,10,12,11,13,12,12,12,12,11,11,12,12,10,11,12,11,10,11,11,10,10,10,11,11,12,12,12,11,10,10,11,11,11,9,10,10,10,9,10,10,10,10,10,10,9,9,10,10,10,9,9,10,10,9,10,10,9,10,10,9,10,10,10,11,11,11,11,11,11,11,11,12,11,12,12,11,10,11,11,11,10,11,11,10,10,10,10,9,9,10,9,8,9,9,8,8,9,8,7,7,8,8,9,9,9,9,9,9,9,9,8,9,8,8,8,8,8,8,8,8,8,8,8,9,9,9,8,8,8,8,8,8,8,8,8,8,8,9,8,8,8,8,8,9,9,10,9,10,9,9,9,8,8,8,8,8,7,8,7,7,7,7,7,7,8,6,6,6,5,5,6,5,5,5,5,4,5,5,4,4,5,5,4,4,3,3,4,3,3,4,4,4,5,5,4,4,5,5,5,6,7,7,8,10,11,11,13,15,16,15,15,16,18,17,19,20,19,20,21,24,22,23,24,24,24,23,24,21,21,23,21,20,20,21,23,22,23,24,24,25,26,26,26,27,27,27,27,27,27,27,28,27,27,28,27,27,26,27,26,26,27,26,26,25,25,26,24,26,25,24,24,24,23,24,24,23,22,23,20,21,20,19,17,15,15,12,9,6,4,3,4,2,2,2,1,1,0,1,2,1,1,1,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,4,4,3,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,3,4,4,4,4,5,5,5,6,6,7,8,7,7,7,6,7,6,6,6,6,7,6,6,7,7,7,7,7,8,7,7,7,7,7,7,8,7,8,7,8,8,7,7,8,8,8,8,8,8,8,8,9,10,10,10,10,9,9,9,9,9,10,10,10,11,11,12,12,12,11,13,12,12,12,12,11,11,11,10,10,10,9,10,8,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,5,4,5,5,4,5,5,5,4,4,5,4,4,5,6,5,5,6,7,7,6,7,7,7,7,6,7,7,6,6,7,7,7,7,7,7,7,8,7,7,8,8,9,9,9,11,10,11,11,10,11,10,11,12,11,11,12,12,12,12,12,12,13,12,13,11,11,11,11,10,10,9,9,8,8,8,7,8,7,7,7,7,6,6,6,6,6,5,6,5,5,4,4,4,4,4,4,4,5,4,5,6,6,7,6,6,6,6,7,6,6,7,6,5,6,6,5,6,7,6,6,5,5,5,5,5,5,5,5,4,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,4,4,4,4,4,4,4,3,2,2,2,2,3,3,3,3,4,4,5,5,6,6,6,6,6,6,7,6,5,5,5,4,5,5,4,4,5,5,4,5,5,5,5,6,6,6,6,6,6,8,8,9,9,9,11,10,10,11,12,13,14,17,17,19,19,18,17,19,19,17,22,19,21,22,21,25,23,24,24,23,24,25,24,23,22,23,24,22,20,20,24,23,19,23,21,21,23,22,18,19,22,18],[28,28,28,28,28,28,28,28,28,27,27,26,27,26,27,26,27,26,27,27,27,27,27,28,27,27,28,28,27,27,27,27,28,28,27,28,27,28,28,28,28,28,27,27,27,27,26,25,26,25,25,24,24,23,23,23,22,22,20,20,18,16,14,11,10,9,7,8,7,7,6,6,6,6,7,7,7,8,9,8,7,8,9,8,8,9,9,10,10,10,11,11,11,11,11,11,11,11,12,12,12,13,12,12,13,13,13,13,13,13,14,13,12,12,12,12,11,11,10,11,11,10,10,11,11,11,10,12,11,10,11,11,10,11,11,12,12,11,12,11,12,10,12,11,11,11,12,10,10,11,11,9,10,9,10,10,11,11,10,11,10,9,9,9,9,9,9,10,9,8,9,9,9,9,10,10,9,9,9,9,9,9,9,10,9,8,9,10,9,8,10,9,9,9,10,11,11,11,10,11,11,11,11,11,11,11,11,10,10,10,11,10,9,11,10,9,10,10,9,8,8,9,9,8,8,9,7,7,8,8,7,7,8,8,9,9,8,9,8,9,9,8,8,8,8,7,7,8,7,7,7,7,7,7,8,8,9,8,8,7,7,7,7,7,8,7,6,7,8,7,7,8,8,7,8,8,8,9,9,9,8,8,8,8,8,8,7,7,7,7,6,7,7,6,6,6,6,6,6,5,5,5,5,4,4,4,5,4,4,4,4,3,4,5,4,3,3,3,3,3,4,4,4,4,4,5,4,5,5,5,5,6,7,7,9,10,11,12,14,15,17,15,15,17,17,17,19,19,18,18,20,21,21,21,23,22,24,21,23,20,19,20,19,18,19,20,20,20,21,22,24,23,25,23,26,25,25,26,25,26,26,26,26,26,26,26,25,26,24,25,24,24,26,24,25,24,23,24,23,25,24,23,25,24,23,24,24,23,22,23,20,20,19,18,17,16,13,13,9,7,5,4,4,3,3,2,1,1,1,0,1,1,1,1,1,2,2,2,2,3,2,3,3,3,3,3,4,3,3,4,4,3,2,3,3,3,4,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,3,5,4,5,6,6,8,7,7,7,7,6,6,5,6,6,6,6,6,5,6,6,6,7,6,6,7,7,7,7,6,6,6,6,7,7,7,6,7,7,7,7,8,7,7,7,7,8,8,10,9,9,9,8,8,8,8,9,9,9,9,10,11,11,12,12,11,12,12,11,12,11,11,11,11,10,9,10,9,9,8,8,8,8,7,8,8,6,7,7,7,6,6,6,5,5,5,5,5,4,5,5,4,4,4,5,4,4,5,5,5,5,6,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,7,6,7,7,7,7,8,8,8,8,9,10,9,11,10,9,10,9,10,11,11,11,11,12,12,12,13,13,13,12,12,12,11,11,10,10,9,9,8,8,8,8,7,7,7,7,6,6,6,6,5,6,5,4,5,5,4,4,4,4,3,4,4,4,4,5,5,5,5,5,5,6,6,6,6,5,6,6,5,6,6,6,5,6,6,6,6,5,5,6,5,4,4,5,5,4,4,5,4,4,4,5,4,4,5,5,6,6,6,5,5,6,5,5,5,5,5,5,5,4,4,4,4,3,3,3,2,2,3,3,3,3,4,4,5,5,5,6,6,5,6,6,6,5,5,5,5,4,4,5,5,4,5,5,5,5,5,5,5,5,6,6,5,6,7,7,8,9,9,9,10,10,10,11,12,13,14,16,17,19,20,18,17,20,20,18,22,19,20,22,19,23,23,22,23,24,23,23,24,23,21,23,23,22,20,21,23,23,20,22,19,21,21,22,19,18,21,20],[28,28,28,28,29,28,29,28,28,28,27,27,27,26,26,27,27,27,27,27,28,26,28,28,27,28,28,27,28,28,27,28,29,29,28,29,27,28,28,28,28,27,27,28,28,27,27,25,26,25,24,25,24,23,21,22,21,20,19,20,17,14,13,11,10,9,8,9,8,8,7,7,7,6,8,8,8,9,9,9,9,9,9,9,10,11,10,11,11,12,11,12,12,12,12,12,12,12,13,13,13,14,14,13,14,15,14,14,14,15,15,15,13,14,13,14,13,13,12,12,12,12,11,12,13,12,11,13,12,10,12,12,11,11,11,12,12,11,11,12,11,11,12,12,10,12,12,11,11,13,12,10,11,10,11,12,12,12,12,12,12,11,11,11,11,10,10,11,10,9,10,10,9,10,11,10,9,9,10,9,10,9,8,10,10,9,9,10,10,9,10,10,9,10,10,11,11,11,11,11,11,11,11,12,11,12,11,11,11,11,11,11,10,12,11,10,10,10,10,9,9,10,9,9,9,9,8,9,9,8,7,8,8,9,9,9,9,9,9,9,9,8,8,9,8,7,8,8,7,7,8,8,7,7,7,8,9,9,7,7,7,8,8,7,8,8,8,7,9,8,8,8,9,8,8,9,9,9,9,10,9,10,9,9,9,8,8,8,8,8,7,7,7,7,7,7,7,6,6,6,5,6,6,5,5,5,5,4,4,4,4,4,4,4,4,4,3,3,4,3,4,4,5,5,5,5,5,6,6,6,6,7,7,8,9,11,11,12,13,15,16,14,15,16,17,16,16,18,18,18,19,21,21,22,22,22,23,21,22,21,19,20,20,19,19,21,22,21,21,23,23,25,26,25,26,26,25,26,27,26,26,26,26,26,26,27,26,26,25,26,25,25,26,24,26,24,25,25,24,25,24,23,25,23,23,24,24,22,22,22,20,21,19,17,16,14,13,12,10,7,6,5,5,4,3,3,2,1,1,1,0,1,1,1,1,1,2,2,2,2,2,2,3,3,4,3,4,3,3,3,3,3,3,3,3,3,4,3,3,3,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,3,3,3,4,4,5,5,5,6,6,7,7,7,7,7,6,6,5,6,6,5,6,6,5,6,7,6,6,6,7,6,7,7,7,7,7,7,7,7,7,8,7,7,8,8,8,8,8,7,8,8,8,9,10,10,10,10,9,9,9,9,10,10,10,11,11,12,12,12,12,12,13,13,12,12,12,11,11,11,11,10,10,10,10,9,9,9,8,9,9,8,8,8,7,7,7,7,7,6,6,6,6,5,5,5,5,4,5,5,5,4,4,5,5,4,5,6,6,5,6,6,6,5,7,6,7,6,6,7,7,6,7,8,8,7,7,7,8,8,8,8,7,9,8,9,9,9,11,11,11,11,11,11,12,12,12,12,12,13,13,13,13,14,13,14,12,13,12,12,12,11,11,10,10,9,9,9,8,8,8,7,8,7,7,8,7,6,6,6,6,6,5,5,5,5,4,4,4,4,4,4,4,5,6,6,6,6,6,6,7,6,6,6,7,6,6,7,7,7,7,7,7,6,6,6,6,6,5,5,6,5,5,5,5,5,4,5,5,5,4,5,5,5,6,5,5,5,6,6,6,6,6,5,5,6,5,5,5,5,4,3,3,3,2,3,3,3,4,5,4,5,5,5,6,6,5,6,5,7,6,5,6,4,4,4,6,4,5,5,6,4,5,5,5,6,5,6,6,6,6,6,7,8,9,8,9,10,10,10,10,12,12,14,16,16,20,20,17,17,20,19,17,21,19,20,21,21,25,24,22,22,24,23,25,24,24,22,23,23,22,20,20,23,22,18,22,20,20,22,22,18,18,21,19],[29,29,29,29,29,29,29,29,28,28,28,27,28,27,27,27,28,28,28,28,28,27,28,28,27,28,28,27,28,28,27,28,29,29,28,28,28,28,29,28,29,28,28,28,28,28,27,25,26,26,25,24,24,23,23,22,21,21,20,18,16,15,12,10,9,8,8,8,7,8,7,6,7,6,7,7,8,8,9,9,8,8,9,8,8,10,9,10,11,10,11,12,11,11,12,11,11,11,13,12,12,13,13,13,13,14,14,14,14,14,14,14,13,13,12,13,12,13,12,12,13,12,11,12,12,11,10,13,12,11,12,12,11,11,11,12,12,12,12,12,12,11,12,12,11,11,11,11,10,11,11,10,11,10,10,11,12,12,11,11,10,10,10,10,10,8,9,10,10,9,10,10,9,9,10,10,8,9,10,9,10,8,8,9,9,8,9,10,8,8,9,10,8,9,9,10,11,11,10,10,10,11,10,11,11,11,11,10,10,10,11,10,9,10,10,9,10,10,10,8,9,10,9,8,8,9,7,7,8,8,7,7,8,8,9,9,9,9,8,8,9,8,8,8,8,7,7,8,7,7,7,7,6,6,7,8,8,8,7,6,6,7,7,6,7,7,6,7,8,7,7,8,8,7,7,8,9,8,8,9,8,9,8,8,8,7,7,7,7,7,6,7,6,6,6,6,6,5,6,6,5,5,5,4,4,5,4,3,4,4,4,3,4,4,3,4,3,4,4,3,4,4,4,4,5,5,5,5,6,6,5,6,7,7,8,10,11,10,13,14,14,15,14,17,16,16,18,18,17,18,20,21,21,21,22,22,24,22,25,21,21,22,20,19,19,20,21,19,21,22,23,23,27,25,26,25,26,26,27,27,26,26,27,26,26,27,27,26,26,26,26,26,26,25,26,25,26,26,25,26,25,25,26,25,24,26,25,23,23,23,22,21,20,18,17,15,14,12,9,7,5,4,4,3,3,2,2,2,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,4,3,2,2,2,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,6,6,6,7,7,7,6,5,6,5,6,5,5,6,5,5,6,6,5,6,6,6,5,6,6,6,5,6,6,6,6,6,6,6,6,7,7,6,7,7,6,7,7,8,9,9,10,9,9,8,8,9,8,9,9,9,10,10,11,10,11,11,11,11,11,12,11,11,10,10,11,10,10,9,9,9,8,8,8,8,7,8,7,7,7,6,6,6,6,6,5,5,6,5,4,4,5,5,4,4,4,4,4,4,4,5,4,4,5,5,4,5,5,5,5,5,5,6,5,5,6,6,5,6,7,7,7,7,7,7,7,8,7,8,8,8,9,9,9,10,9,11,11,10,10,10,10,12,11,11,12,11,11,11,11,11,11,11,11,10,11,11,10,10,10,9,9,8,9,8,7,8,7,7,7,7,7,6,6,6,5,5,5,5,4,4,4,4,3,3,3,4,4,5,5,4,5,5,5,5,5,5,6,5,6,6,6,5,6,7,5,6,6,7,6,5,5,6,5,4,5,5,5,4,5,5,4,4,5,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,3,3,3,2,3,3,3,3,4,4,4,5,5,5,6,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,7,8,8,8,9,10,10,10,11,12,13,15,16,17,20,19,19,17,20,19,19,22,19,22,22,21,24,23,22,24,23,23,24,25,24,23,23,24,22,20,22,24,24,20,22,21,20,22,22,18,20,22,19],[29,29,29,29,29,29,29,29,28,28,28,27,28,27,27,27,27,27,27,27,27,27,27,28,27,27,28,27,27,28,26,28,28,29,27,28,28,28,28,28,29,28,27,28,28,28,27,25,26,25,25,24,24,23,23,23,21,21,20,19,17,16,13,10,10,8,8,8,7,7,6,5,6,5,7,7,7,8,8,8,8,8,8,8,8,9,9,10,10,11,11,11,11,12,11,11,11,12,12,12,12,12,12,12,13,14,13,14,14,14,14,14,13,14,13,12,12,11,10,11,13,11,10,11,12,11,10,12,12,11,11,12,11,11,11,12,11,12,11,12,12,10,12,11,11,11,12,11,10,11,11,9,11,10,11,11,12,12,12,11,10,10,10,10,10,8,9,11,9,8,9,10,9,8,10,10,8,9,10,9,10,8,8,9,9,8,8,9,9,8,9,9,8,9,9,10,11,11,10,10,11,10,10,11,11,10,10,10,10,11,11,10,9,10,10,9,10,10,9,8,9,10,8,8,8,8,7,7,7,8,7,7,7,8,9,9,8,9,8,9,9,9,8,8,8,8,7,7,7,7,7,7,6,7,7,8,8,8,7,7,7,7,6,6,7,7,6,7,7,7,7,7,7,7,7,7,8,9,8,9,8,8,8,7,7,7,6,7,7,6,5,6,6,6,6,6,6,5,5,5,4,5,5,4,4,5,4,3,4,4,4,3,4,4,4,3,3,3,3,3,4,4,4,4,5,5,4,4,5,5,5,6,7,6,7,9,11,11,13,16,16,14,15,17,17,17,19,19,18,19,20,22,23,22,23,23,24,23,24,21,21,22,20,20,20,22,21,21,22,23,24,23,26,25,25,26,26,26,27,26,26,27,27,27,27,27,27,27,26,27,26,27,27,26,27,25,26,27,25,26,26,25,27,25,24,25,25,23,24,24,22,22,21,19,18,16,14,13,9,7,5,4,4,3,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,1,2,2,2,3,3,3,3,3,3,3,3,4,4,4,5,5,5,6,6,7,7,7,7,6,6,6,6,6,5,5,5,5,5,6,6,5,6,6,6,5,6,6,6,5,5,6,5,6,6,6,5,6,7,6,6,7,6,6,7,7,7,8,9,9,9,8,8,8,8,8,9,9,9,9,10,11,12,11,11,11,12,12,10,11,11,10,9,11,10,9,9,9,8,7,8,8,8,7,7,7,6,6,6,6,5,5,5,5,4,5,5,4,4,4,4,4,3,4,4,4,4,4,4,4,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,7,7,7,7,7,8,8,8,10,9,11,10,9,10,10,9,11,11,11,12,12,12,11,13,13,12,11,11,11,11,10,10,10,9,9,8,8,7,7,7,6,6,6,6,6,5,5,5,5,4,4,4,4,4,3,4,4,3,3,4,4,4,4,4,4,5,4,5,5,5,5,5,4,5,5,4,5,6,5,5,6,6,6,5,5,5,5,5,4,4,5,4,3,4,4,3,4,4,4,4,4,5,5,5,5,5,4,5,5,5,5,5,4,4,4,4,4,3,4,4,3,2,2,2,2,2,3,3,3,4,4,4,5,5,6,6,5,6,5,6,5,5,5,5,5,4,5,5,4,5,5,5,4,5,5,5,5,6,6,5,6,6,7,8,9,9,10,11,10,11,11,12,13,14,15,17,19,20,18,18,20,19,19,23,20,22,22,21,24,24,23,24,24,23,24,24,24,23,23,23,23,20,22,23,23,20,22,21,20,21,22,20,20,21,19],[29,29,28,29,29,29,29,29,28,28,28,27,28,27,27,27,28,27,27,28,27,27,28,28,27,28,28,28,28,28,27,28,29,29,29,29,28,29,29,29,29,28,28,28,28,28,27,26,27,26,26,25,25,25,22,24,22,22,21,20,18,16,14,11,11,9,8,8,7,8,7,7,7,6,7,8,8,8,9,9,9,9,10,10,10,11,11,12,12,13,13,13,14,13,13,13,13,13,14,14,14,14,14,14,14,14,15,15,15,15,15,15,14,16,14,14,14,12,12,12,13,12,12,12,14,12,11,14,13,11,12,13,12,12,12,13,12,13,13,13,14,13,14,13,13,13,13,12,12,13,13,11,12,12,12,13,13,13,13,12,12,12,11,11,11,10,11,12,11,10,11,11,10,10,11,11,9,10,11,10,11,9,9,10,10,9,10,10,9,9,10,11,9,10,10,11,12,12,10,12,12,11,11,13,12,12,12,11,11,11,13,11,10,12,11,10,11,11,10,9,10,10,10,9,10,10,9,9,9,8,7,8,8,9,9,10,9,9,9,9,9,9,8,9,9,8,8,8,7,8,8,8,8,7,8,8,9,9,8,7,7,8,7,7,8,8,7,8,8,8,8,8,9,8,8,9,9,10,9,10,9,9,9,9,9,8,8,8,7,8,7,7,7,7,7,7,6,7,6,6,6,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,3,3,4,3,4,4,4,4,5,5,5,5,6,5,6,7,8,8,9,11,12,12,14,15,16,15,15,17,17,17,17,19,19,18,20,21,23,22,23,23,24,21,23,21,20,22,20,19,19,20,21,20,21,23,23,22,25,24,25,25,26,26,26,27,26,27,27,27,26,27,27,26,26,26,25,26,26,24,26,23,25,26,24,25,25,25,26,25,23,25,25,23,22,24,22,21,20,18,18,15,13,13,8,6,5,4,4,3,3,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,3,3,2,2,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,5,6,7,7,7,7,7,6,6,6,6,6,6,6,7,6,6,7,7,7,6,7,7,6,6,7,7,6,7,7,7,7,7,7,7,7,7,7,8,8,8,7,8,9,9,10,10,10,10,9,9,9,9,10,10,10,11,11,12,13,12,13,13,13,13,12,13,12,12,12,12,12,10,11,11,10,9,9,9,9,9,9,8,8,8,7,7,6,6,6,6,5,5,6,5,4,5,5,4,4,5,4,4,5,5,5,5,5,6,6,5,6,6,6,6,6,6,6,6,6,6,7,7,6,7,7,7,7,7,7,7,8,8,8,9,9,10,9,10,11,11,12,12,11,12,12,12,13,13,12,13,13,14,13,14,14,13,13,13,13,13,12,11,12,11,10,9,8,9,8,8,8,8,8,7,7,7,6,6,6,6,5,6,5,4,4,5,5,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,6,6,5,6,5,5,5,6,5,4,5,5,4,4,4,5,5,5,5,5,6,6,6,6,5,6,6,5,5,5,5,5,5,5,4,4,4,4,3,3,2,2,3,3,3,4,4,4,5,5,5,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,7,7,8,10,9,9,11,10,10,11,12,13,15,15,15,18,18,17,17,18,18,18,21,20,19,22,20,22,22,22,22,23,22,23,22,22,22,22,23,22,18,20,22,23,20,23,20,19,22,22,19,19,22,19],[29,28,27,28,29,28,28,28,28,27,27,27,28,27,27,27,28,26,27,28,27,27,28,28,27,28,29,27,28,28,27,29,28,29,28,29,28,29,29,28,29,28,27,28,28,27,27,26,26,25,24,24,24,23,22,22,21,20,19,18,16,15,13,11,10,9,9,8,8,8,7,7,7,7,7,8,8,8,9,9,9,9,9,9,9,11,10,12,12,12,12,13,13,12,13,14,12,13,15,14,14,15,15,15,15,15,15,15,15,15,16,16,14,15,13,14,14,13,12,12,14,12,12,13,14,13,12,14,13,11,12,13,11,12,12,13,13,13,14,14,13,12,14,14,13,14,13,12,12,13,13,11,13,11,12,12,13,13,12,12,11,11,11,11,11,10,11,12,11,11,11,11,10,10,11,11,10,10,11,10,10,9,9,10,10,8,10,11,9,9,11,10,9,10,10,11,12,11,10,11,11,11,11,12,12,12,12,11,11,11,12,12,9,12,11,10,11,11,11,9,10,11,10,9,9,10,8,9,9,9,7,8,8,9,9,9,9,9,8,9,9,8,8,9,9,8,8,8,7,8,8,8,7,7,7,8,9,9,8,7,7,8,7,7,9,8,7,7,9,8,8,9,9,8,8,9,9,9,9,10,9,9,9,9,9,8,8,8,8,7,7,7,7,7,7,7,7,6,6,6,6,6,6,5,5,5,5,4,4,4,4,3,4,4,4,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,7,7,7,8,10,11,12,13,15,15,14,14,17,17,17,18,18,18,18,19,21,22,21,23,22,24,22,24,22,20,21,19,19,19,21,20,19,20,23,22,22,24,25,25,25,25,26,26,27,26,27,27,27,26,26,27,26,25,26,25,26,27,25,26,24,25,26,25,26,25,25,26,25,25,26,25,24,24,24,22,21,20,18,17,15,13,12,9,7,6,4,5,4,4,3,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,2,2,2,3,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,3,4,4,4,4,4,5,5,6,5,6,7,6,6,6,5,6,5,6,6,6,6,6,6,6,7,6,6,7,7,6,7,7,7,6,7,7,7,7,7,7,7,7,8,7,8,8,8,7,8,8,9,9,10,10,10,10,9,9,9,9,10,10,10,10,11,12,12,12,13,12,12,13,12,12,12,10,12,11,11,10,10,10,10,9,9,9,9,8,9,8,7,8,7,7,7,7,6,6,6,6,6,5,5,5,5,4,4,5,4,4,5,5,5,5,5,6,6,5,6,6,6,6,6,7,7,6,6,6,7,6,7,7,8,7,7,7,7,8,8,8,8,9,9,9,9,10,11,11,12,11,11,12,11,12,12,12,12,13,13,13,12,13,13,12,12,12,11,12,11,11,11,10,9,9,8,9,8,8,8,8,7,7,7,7,7,6,6,5,5,6,5,5,5,5,5,4,4,4,4,5,5,5,6,6,6,5,6,6,6,6,5,6,6,6,6,7,7,6,7,7,7,6,6,6,6,6,5,5,6,5,4,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,6,5,6,6,5,5,5,6,5,4,5,5,4,4,3,3,3,3,3,3,4,4,4,5,5,4,7,6,5,6,5,6,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,6,5,6,6,6,7,8,9,9,9,10,9,9,10,12,11,14,15,15,18,19,19,15,18,19,18,22,18,22,21,20,24,23,21,24,24,23,23,24,23,21,22,22,21,18,20,22,22,18,21,20,19,21,21,18,19,21,18],[29,29,28,28,29,29,29,28,28,27,27,26,28,26,27,27,27,27,26,27,27,25,27,28,26,27,28,26,27,28,26,27,28,28,26,28,27,27,28,27,28,27,27,27,27,27,26,25,26,25,24,24,23,23,22,22,20,20,19,18,15,15,12,11,9,9,8,8,8,7,7,6,6,6,7,7,8,8,9,8,7,9,9,8,8,10,10,11,11,11,12,13,11,12,12,12,12,12,14,12,13,14,14,13,14,14,14,13,14,15,15,14,14,14,14,14,13,13,11,13,14,12,11,13,13,12,11,14,13,12,12,12,11,11,12,13,13,12,13,13,12,12,13,12,12,12,13,12,11,12,12,10,11,10,12,12,13,13,12,13,11,10,10,11,10,9,10,11,10,9,10,11,9,9,11,11,8,10,10,9,10,9,9,10,10,8,10,10,9,9,10,10,9,9,10,10,12,11,10,11,12,11,10,12,12,11,11,10,11,11,12,11,9,12,11,10,11,11,10,8,10,10,9,8,9,9,7,7,8,7,7,7,8,8,9,9,8,10,8,9,8,8,8,9,8,8,7,8,7,7,7,7,7,7,7,8,9,8,7,7,7,7,6,7,7,7,6,7,8,7,7,8,8,7,8,8,8,9,9,10,8,9,8,8,8,7,7,7,7,7,6,6,7,6,6,6,6,6,6,5,5,5,5,5,5,5,5,4,4,5,4,3,4,4,3,4,3,4,4,4,4,4,4,4,5,5,5,5,6,6,5,6,7,7,8,10,11,11,13,16,15,14,15,16,15,16,18,17,16,17,18,19,20,20,22,22,23,22,23,22,20,22,19,19,19,21,20,19,20,23,21,21,24,23,25,25,25,25,26,26,26,27,27,27,26,27,27,27,25,26,26,26,26,24,26,24,25,26,25,26,25,24,26,25,23,24,24,21,22,22,21,21,19,19,16,14,14,12,9,6,5,4,4,4,3,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,6,6,7,7,7,7,6,6,6,5,6,5,6,6,5,5,6,6,5,6,6,6,5,6,6,5,5,6,6,5,6,6,6,6,6,7,6,7,7,7,7,7,7,8,9,9,9,9,9,8,8,9,8,10,10,9,10,11,11,12,12,12,12,13,12,12,12,12,10,11,11,10,9,9,9,9,8,8,8,8,7,8,8,6,7,6,6,6,5,5,5,5,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,5,5,5,4,5,5,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,7,7,7,8,7,7,8,8,9,8,9,10,10,11,11,9,10,11,10,11,12,11,12,12,12,12,12,13,12,12,12,12,11,11,11,10,10,9,8,9,8,8,7,7,7,7,6,6,6,6,5,5,5,5,5,5,4,4,4,4,4,3,4,4,4,4,4,5,5,4,5,5,5,6,5,5,6,5,5,5,6,6,5,6,6,7,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,5,4,5,5,4,5,5,5,5,5,5,5,5,5,4,4,5,4,4,3,3,3,2,3,3,3,3,3,4,4,4,4,5,6,5,5,5,6,6,5,5,5,4,4,5,4,4,5,5,4,4,5,5,5,5,5,5,5,6,6,7,8,9,9,9,11,11,11,11,12,14,15,16,17,19,19,19,18,20,18,19,22,20,21,22,21,24,24,22,24,24,22,24,24,23,22,22,23,22,20,21,23,23,20,22,20,19,22,21,20,20,21,19],[29,29,29,28,29,29,29,29,29,28,28,27,28,27,28,28,27,27,27,27,27,27,27,27,27,27,27,27,27,28,26,28,28,28,28,28,28,28,28,28,29,28,28,28,28,28,27,26,26,26,25,25,25,24,24,23,21,23,21,19,17,16,14,11,11,9,8,8,8,8,7,7,7,7,8,8,9,9,11,9,10,11,11,10,11,12,12,13,14,14,14,15,15,14,15,15,15,15,16,16,15,15,15,16,16,16,16,16,16,16,16,17,16,17,15,16,15,15,14,14,15,14,13,14,16,15,13,15,15,13,14,15,13,14,13,14,13,14,14,15,15,14,15,16,15,14,15,15,13,15,15,13,13,13,14,14,15,16,15,14,14,13,13,14,12,10,12,13,12,10,12,13,11,11,13,12,10,12,12,11,12,11,10,12,12,10,11,12,11,11,11,12,11,11,12,12,14,13,12,12,13,13,12,13,14,13,13,13,13,13,15,14,12,14,13,12,13,13,12,11,11,13,11,10,11,11,9,9,9,9,8,9,8,9,9,11,10,11,9,11,10,9,9,10,9,9,9,9,9,9,9,9,8,8,9,9,9,10,9,9,8,8,8,8,9,8,8,8,9,9,9,9,10,9,9,9,10,11,11,12,10,10,10,10,10,10,8,8,8,8,8,8,8,7,7,8,8,7,7,6,6,6,6,6,5,5,5,4,5,5,5,4,5,5,4,4,4,4,4,4,4,4,5,4,5,6,5,5,6,6,6,7,8,7,9,11,13,12,14,16,17,16,16,17,17,16,17,18,18,18,19,22,22,20,23,23,23,22,23,22,21,23,19,19,21,22,21,21,22,23,24,22,24,24,24,26,26,26,27,27,27,27,27,27,26,28,28,28,26,27,26,27,27,26,27,25,26,26,26,27,26,26,26,24,24,26,25,23,24,24,22,22,21,19,18,15,14,13,9,7,5,5,4,3,3,3,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,7,8,8,8,8,8,7,7,7,7,7,7,7,6,7,7,7,6,8,7,8,7,7,7,7,7,7,7,7,8,8,7,7,8,9,8,8,9,8,8,8,8,9,9,11,10,10,10,10,10,10,11,12,12,12,12,12,13,14,14,13,14,14,14,13,14,14,12,13,15,13,11,12,12,11,10,10,10,10,9,9,9,8,8,8,8,6,6,7,6,6,6,6,5,5,6,5,4,5,5,5,4,5,6,5,5,6,6,5,5,6,6,6,6,7,7,6,6,7,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,9,11,11,11,12,12,13,13,12,13,13,13,14,14,14,14,15,15,14,15,16,14,14,14,14,14,13,12,12,12,11,10,9,8,8,8,8,8,8,7,7,7,6,6,6,6,5,5,5,5,4,5,5,4,4,4,5,5,5,5,6,6,5,6,6,6,7,6,6,6,6,5,6,7,7,6,7,7,7,6,6,5,6,6,5,4,5,5,4,5,5,4,4,5,4,4,5,5,6,6,6,6,5,6,6,6,5,6,5,5,5,5,4,4,4,4,4,3,3,3,2,3,3,3,4,4,4,5,5,5,6,6,5,6,6,7,7,5,6,6,5,5,5,5,5,5,6,5,5,6,6,6,6,7,7,6,7,7,8,9,10,10,11,12,11,11,11,13,13,15,15,17,19,19,18,17,18,19,19,22,20,21,21,22,25,24,22,23,23,23,23,24,23,22,22,23,22,20,20,22,22,20,22,20,20,22,22,20,19,21,20],[29,28,28,29,28,28,29,28,28,28,27,27,28,26,27,26,27,26,27,28,26,26,28,27,27,28,28,28,28,28,27,28,28,29,28,29,28,28,29,29,29,28,28,28,28,28,27,26,27,27,25,24,25,24,23,23,23,21,20,19,18,16,14,12,12,10,10,9,9,9,8,8,8,7,8,9,10,10,12,10,11,11,12,12,11,13,13,14,14,15,15,16,16,15,15,16,16,16,17,17,17,16,16,17,17,17,18,17,17,18,18,17,16,18,16,16,16,15,15,14,16,15,14,15,16,16,14,17,16,13,14,15,13,14,14,15,15,16,16,15,16,16,16,16,16,16,16,15,14,15,16,14,14,13,15,15,16,16,15,15,14,14,13,14,14,12,13,15,14,12,13,14,12,12,13,13,11,12,13,11,13,11,10,12,12,10,12,13,11,10,13,13,11,12,12,13,15,14,12,14,14,13,13,15,14,14,14,12,13,13,15,14,12,15,14,12,14,14,12,10,12,13,11,10,11,11,10,10,11,10,9,10,9,11,10,11,11,11,9,11,11,10,9,11,10,9,9,10,9,9,10,9,9,9,9,9,10,10,10,9,8,9,9,9,9,9,8,9,10,9,10,10,10,10,10,10,11,11,11,12,10,11,10,11,11,9,9,9,9,9,9,8,8,8,8,8,8,8,7,7,7,7,6,6,6,6,6,5,5,5,5,5,5,5,4,5,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,8,9,9,10,11,12,13,14,15,17,15,15,17,18,16,17,19,19,17,18,21,22,21,23,23,24,22,24,21,20,22,19,18,19,20,20,19,19,22,21,20,22,23,24,24,25,26,26,27,27,27,27,27,26,27,27,27,25,27,25,26,27,25,26,25,24,26,24,26,25,25,26,25,24,25,24,23,23,23,22,21,21,18,18,15,13,12,9,7,6,5,5,4,4,3,3,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,2,2,2,3,3,4,4,3,3,2,3,3,2,3,3,2,2,3,2,2,2,3,2,2,2,2,2,2,3,3,2,3,3,4,4,4,4,4,5,5,4,5,5,5,5,6,6,6,7,7,8,8,8,8,8,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,10,9,10,9,9,10,11,12,12,12,11,11,10,10,10,12,12,11,12,13,14,15,15,15,14,15,15,14,15,13,13,14,14,13,13,13,12,12,11,11,11,10,10,10,9,9,9,8,8,8,8,7,7,8,6,6,7,6,6,7,5,6,6,6,5,5,6,6,6,6,7,7,6,6,7,7,7,7,7,7,8,7,7,9,8,8,8,9,8,8,8,9,9,9,9,9,10,11,11,11,12,13,13,14,14,14,14,13,13,15,16,15,15,15,16,14,15,16,14,15,14,14,14,13,14,13,12,11,10,10,10,10,10,9,8,9,8,8,8,8,7,7,7,6,7,7,5,5,6,5,4,4,5,5,5,6,6,6,7,7,6,7,7,7,7,8,7,7,8,8,8,8,8,8,8,8,7,7,7,6,7,6,6,7,6,5,6,6,5,5,5,6,5,5,6,6,6,6,7,6,6,7,6,7,6,6,6,6,6,6,6,6,5,5,4,4,3,3,3,4,4,5,5,5,6,6,6,7,7,7,6,6,7,7,6,6,7,7,6,6,7,5,6,6,6,6,6,6,6,7,8,7,7,7,8,9,10,10,10,10,11,10,11,11,13,12,15,15,17,18,19,19,17,17,19,19,22,19,20,22,21,23,23,22,23,24,22,23,23,23,22,21,23,21,18,19,23,22,19,23,21,20,23,21,19,20,22,20],[29,28,28,28,28,28,28,28,28,27,27,26,27,26,27,27,27,26,27,27,27,26,27,27,26,27,28,27,28,28,26,28,28,28,27,28,27,28,28,28,28,27,26,27,27,27,26,25,25,25,24,24,23,23,22,21,21,20,19,19,18,16,14,13,11,10,10,10,9,10,9,8,8,8,8,9,9,10,12,10,10,12,12,10,12,14,13,14,15,15,16,16,17,17,16,17,16,16,16,16,17,17,17,17,19,18,17,17,17,17,17,17,17,19,17,16,17,15,15,15,16,16,15,15,17,17,15,17,16,14,15,16,14,15,14,15,15,16,16,16,16,17,17,16,16,17,17,16,15,16,16,14,15,14,15,16,16,16,14,15,13,14,13,14,14,13,13,16,14,14,14,14,13,14,14,15,12,13,13,13,15,13,12,14,14,11,12,14,12,12,13,14,10,13,13,13,15,15,12,14,15,13,13,15,15,13,14,13,14,15,15,14,12,16,14,13,15,15,14,11,13,15,12,11,12,12,10,10,11,11,9,10,9,10,10,11,11,11,10,12,12,10,10,12,11,10,10,11,9,9,10,9,8,9,9,10,11,11,9,9,8,10,9,8,11,9,8,9,11,9,9,11,10,10,10,11,11,12,11,13,12,12,10,11,11,10,9,10,9,9,9,9,9,8,8,8,8,7,8,7,7,7,7,7,7,6,6,5,6,6,5,5,6,5,4,5,4,5,5,5,5,6,6,6,6,6,7,6,7,7,7,8,8,8,10,11,11,14,15,16,17,14,15,16,17,17,16,17,17,17,19,20,20,20,21,20,23,21,21,20,18,20,20,20,20,21,20,19,19,20,20,20,22,24,24,24,24,26,26,26,26,26,25,26,24,25,25,25,24,26,25,25,26,24,26,24,25,26,24,26,25,25,27,25,23,26,25,23,24,22,21,21,19,19,17,14,13,12,9,7,6,5,6,4,4,4,3,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,2,2,2,3,3,3,3,3,3,3,2,2,3,3,2,2,3,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,4,5,5,5,5,7,6,7,8,7,8,7,6,7,6,7,7,7,7,6,7,7,8,7,7,8,7,7,8,8,7,7,8,8,7,8,8,8,7,8,9,8,9,10,9,9,9,10,10,11,11,12,12,12,11,10,11,10,12,12,12,12,14,14,15,15,15,14,15,15,14,15,14,12,14,14,13,13,12,13,11,11,11,11,10,9,10,10,9,9,8,8,7,8,7,7,7,7,6,6,6,6,6,5,5,5,5,5,5,6,6,5,6,6,6,5,6,6,6,7,7,7,7,7,7,7,8,7,8,8,8,8,8,9,9,10,10,10,9,10,10,11,10,11,13,13,14,15,13,15,14,14,15,15,15,16,15,16,14,15,16,15,14,15,14,14,14,13,13,12,12,10,10,10,9,9,9,9,9,9,8,8,8,7,7,6,7,6,6,5,6,5,5,4,4,4,5,5,5,5,6,6,6,6,6,7,7,7,6,8,7,7,7,8,7,7,8,8,8,7,8,7,7,7,7,6,7,6,5,6,6,5,4,5,6,5,5,5,6,6,6,6,6,6,7,6,6,7,6,6,6,6,5,5,6,6,5,4,4,3,3,4,4,4,5,5,4,5,6,6,7,7,7,7,6,7,7,6,6,6,6,5,6,5,5,6,6,5,6,6,6,6,6,7,7,7,7,7,8,9,10,10,10,11,10,11,11,13,13,15,16,16,19,21,19,17,19,20,20,23,20,22,23,21,24,24,23,24,25,22,24,24,23,23,23,23,22,19,21,23,22,21,21,22,18,23,21,20,21,21,19],[28,28,28,28,29,29,28,28,28,27,27,26,27,27,27,27,27,27,26,27,27,26,26,27,26,26,27,27,27,27,26,27,28,28,27,28,28,28,29,28,28,27,27,27,27,27,26,24,26,24,24,24,23,23,22,21,20,20,19,18,16,15,13,11,10,10,10,9,10,8,9,8,8,7,8,8,10,9,12,9,10,11,12,10,12,13,13,14,14,14,14,14,15,16,15,14,15,15,15,16,16,17,16,16,16,17,17,17,17,17,17,17,17,17,16,17,15,15,14,14,16,14,14,14,16,16,14,16,16,14,15,16,14,14,13,14,15,14,15,15,14,15,16,15,15,15,16,15,14,15,15,15,15,13,14,15,16,15,14,16,14,13,14,13,13,12,13,14,13,12,13,14,12,13,13,14,12,13,13,11,13,11,11,13,13,11,11,13,12,11,12,13,11,12,12,13,14,14,12,13,14,14,13,13,14,12,14,12,13,14,15,14,12,14,13,12,14,13,13,12,13,13,12,11,12,12,10,10,11,10,9,10,10,10,11,12,10,12,10,12,11,10,9,11,10,10,9,10,8,9,10,9,8,9,9,10,11,11,10,9,8,9,8,9,10,9,8,9,11,9,9,10,10,9,9,10,10,11,11,12,11,11,10,11,11,9,9,9,9,8,8,8,8,8,8,8,8,7,7,7,7,7,6,7,6,6,6,5,6,6,5,5,6,5,5,5,4,5,5,5,5,5,6,6,6,6,7,7,7,7,7,8,8,8,10,11,13,12,15,16,16,15,16,17,16,16,18,17,16,18,19,19,20,21,22,22,23,22,23,21,20,22,20,19,21,22,20,20,21,21,21,21,23,24,24,25,25,26,26,27,26,27,27,27,27,27,28,27,26,27,26,27,27,26,27,24,26,26,25,27,26,26,26,24,24,26,25,22,23,22,21,22,20,19,17,15,14,13,10,7,6,5,6,4,4,3,3,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,2,2,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,5,4,3,4,5,4,4,5,5,4,5,5,6,7,7,7,8,9,8,8,8,7,7,7,7,7,7,7,7,7,7,7,7,8,8,7,8,7,7,7,7,7,7,6,7,8,7,7,8,8,7,8,9,8,8,8,8,8,10,11,11,10,10,10,9,11,10,12,12,12,12,13,14,14,15,13,13,14,14,13,14,15,12,13,14,13,12,12,12,11,11,11,10,10,9,9,9,8,8,7,7,7,6,7,6,6,6,6,6,6,6,6,5,5,5,5,5,5,6,6,5,6,6,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,8,7,8,9,8,8,9,9,12,10,11,12,13,13,13,13,14,14,13,15,15,14,14,15,15,14,15,16,15,15,14,15,14,13,13,12,12,12,10,10,8,9,8,8,8,8,7,7,7,7,6,6,6,6,6,6,5,5,5,5,4,4,4,4,5,4,4,5,5,5,6,6,6,7,6,6,7,6,6,7,7,7,7,8,7,8,7,7,6,6,6,6,6,6,6,5,5,5,4,4,4,4,4,4,5,5,5,6,6,5,6,6,6,5,6,6,5,6,5,4,5,5,6,4,4,4,3,3,3,3,3,4,5,4,5,5,5,6,6,5,7,6,7,6,5,6,5,5,5,6,5,5,5,6,5,5,6,6,6,6,7,7,7,7,7,8,9,10,10,10,12,11,11,12,14,14,16,17,17,19,20,20,18,20,20,19,22,20,21,22,21,23,23,23,25,24,23,25,24,22,24,22,24,22,21,22,24,22,21,21,21,19,23,21,20,20,22,20],[29,29,28,29,29,29,29,28,29,28,27,27,27,27,27,27,27,26,27,27,26,26,27,27,27,26,27,27,27,27,26,28,28,28,28,28,28,27,29,28,29,28,28,27,28,27,27,26,26,25,25,24,24,23,24,23,22,22,21,20,18,17,14,13,12,10,9,10,9,8,8,8,7,7,8,9,10,10,12,11,11,12,12,11,12,13,14,13,14,13,14,14,14,15,15,15,15,14,15,15,15,15,16,16,15,16,16,17,16,17,17,17,15,17,16,16,15,15,15,15,16,14,14,14,16,15,13,15,15,15,14,14,14,15,13,15,14,15,15,15,15,14,15,15,15,13,15,15,14,14,15,14,14,13,14,15,15,15,15,15,13,14,14,14,13,13,13,13,14,12,13,12,12,12,13,13,12,13,13,13,13,11,12,13,13,12,12,13,12,12,12,12,12,12,12,13,14,13,13,13,14,13,13,14,15,13,14,14,12,15,15,13,12,14,13,13,14,13,13,12,12,13,12,11,12,11,10,10,11,10,9,9,10,11,11,12,11,11,10,13,11,10,10,11,10,10,10,10,9,9,10,9,9,9,9,10,11,11,10,9,8,9,8,9,10,9,9,9,10,9,10,10,10,10,10,10,11,11,11,11,11,11,10,11,11,10,10,9,10,9,8,8,9,8,8,8,8,8,7,7,7,7,6,7,6,6,5,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,6,6,6,6,6,7,7,7,8,8,9,10,11,12,13,15,15,17,16,15,18,18,18,19,20,20,19,20,22,23,22,23,25,25,23,24,22,22,22,19,20,20,20,21,21,21,22,22,22,23,23,24,25,25,25,27,27,27,27,27,27,27,27,27,27,27,27,26,27,27,26,27,24,26,26,26,26,26,26,27,25,23,26,24,24,25,23,22,22,21,19,18,16,13,12,8,7,6,5,5,4,4,3,3,2,3,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,2,1,2,3,3,3,3,3,3,2,3,2,3,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,5,5,4,5,5,5,4,6,6,5,6,6,7,6,7,7,8,8,8,8,9,8,8,8,7,8,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,7,7,8,8,8,9,8,9,8,9,10,9,9,9,9,10,11,12,12,11,12,11,10,11,11,12,12,12,13,14,14,15,15,14,13,14,14,15,15,15,12,13,14,13,13,13,12,11,12,12,11,11,10,11,10,9,8,8,8,8,7,7,8,7,6,7,6,6,6,6,6,6,5,6,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,6,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,11,10,12,11,12,13,13,14,14,13,14,13,13,14,15,14,15,15,17,14,16,18,15,15,15,16,15,15,14,15,13,12,12,11,9,10,9,9,9,9,8,8,8,7,6,7,7,5,6,7,5,5,6,6,5,4,4,5,5,5,5,6,6,6,6,7,6,7,7,7,7,7,6,7,8,7,7,8,7,8,7,7,6,7,6,6,5,6,6,5,5,6,4,4,5,5,5,5,6,6,6,7,6,6,6,7,6,6,6,6,6,6,5,5,5,5,5,4,4,3,3,3,3,4,4,4,5,5,5,5,5,6,7,6,7,6,8,7,6,6,6,5,6,6,6,5,6,7,5,6,7,7,7,7,8,8,7,8,8,9,10,11,11,11,12,12,13,13,13,14,15,14,17,18,20,18,18,19,20,19,23,21,22,22,21,25,23,23,23,24,22,23,24,23,22,21,23,22,20,21,22,22,22,21,21,22,22,22,22,21,23,21],[29,28,28,28,28,29,29,28,28,28,27,27,28,27,27,27,28,26,27,28,27,26,28,27,26,27,27,27,28,27,26,28,28,29,27,28,27,28,28,28,28,28,27,26,27,27,26,26,26,25,25,24,24,24,23,22,22,21,20,19,18,16,14,12,12,10,10,9,9,9,9,9,8,8,9,10,11,12,13,11,11,13,13,11,13,15,15,15,16,16,17,16,17,17,16,16,17,16,17,18,18,17,17,19,18,18,18,17,18,18,17,17,18,19,17,17,17,16,16,15,17,16,14,15,18,17,14,17,17,14,15,17,14,14,15,16,16,17,15,16,16,16,16,17,16,16,17,16,15,17,17,16,16,15,16,16,17,16,16,15,15,14,14,15,16,14,13,16,15,14,15,15,15,15,15,15,13,14,13,13,15,13,12,14,14,12,13,14,13,12,13,14,12,14,14,15,15,15,12,15,15,14,14,16,16,14,14,13,15,15,15,15,13,16,16,14,16,16,14,12,14,15,13,11,14,13,11,10,12,11,9,10,9,11,11,11,12,13,11,12,13,10,11,13,11,9,10,11,9,9,11,9,9,9,9,11,12,12,10,9,8,10,9,10,11,10,9,10,11,10,10,11,11,10,11,12,12,12,12,13,12,13,11,12,13,11,10,10,11,9,9,10,9,9,8,9,8,8,7,7,8,7,7,7,7,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,9,9,8,11,11,12,13,15,15,17,15,15,17,18,16,16,18,19,17,19,21,21,21,22,22,24,22,23,20,20,21,20,20,20,22,23,20,21,21,22,21,24,23,24,24,25,26,26,26,26,26,26,26,26,26,26,26,25,26,25,26,27,24,26,24,25,25,24,26,25,24,26,24,24,24,24,23,22,22,21,20,19,18,17,14,13,11,9,8,7,6,6,5,4,4,4,3,3,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,2,2,2,3,3,3,3,3,2,3,3,2,3,2,2,2,3,2,2,2,3,2,2,3,3,2,3,3,3,3,4,4,4,5,5,4,4,5,5,5,6,5,5,6,6,7,7,7,7,9,8,8,9,9,7,8,7,7,8,7,8,8,8,8,8,8,8,8,8,8,9,8,8,9,9,8,8,9,9,9,9,9,9,9,10,10,9,10,9,10,11,12,13,13,13,12,12,10,12,11,13,13,13,14,14,15,15,15,16,14,15,16,15,15,15,14,14,15,15,14,13,14,13,12,12,12,11,10,11,11,10,10,9,9,9,8,8,8,8,7,7,7,7,6,7,7,6,6,7,6,6,7,7,7,7,7,8,7,7,7,8,8,8,8,8,8,8,8,9,9,8,9,10,10,9,10,10,11,11,10,10,11,11,12,11,13,14,14,15,15,14,16,15,14,16,17,16,16,16,17,14,16,17,15,15,15,16,16,14,14,15,14,13,12,10,11,10,10,10,10,10,9,9,10,9,8,8,8,7,7,7,7,6,6,6,6,5,5,5,6,7,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,8,9,9,9,9,8,8,8,7,8,7,7,7,8,6,7,7,6,5,6,7,6,5,6,6,7,7,7,7,7,8,7,8,7,7,7,8,6,7,7,7,6,6,5,4,4,4,4,5,5,6,6,6,7,7,6,8,8,7,8,8,8,7,7,7,6,6,7,7,6,6,7,7,7,7,8,8,8,7,8,8,8,8,9,9,10,11,11,11,13,12,12,13,14,13,15,16,18,20,20,19,16,18,20,19,21,19,21,21,22,24,23,21,22,24,22,23,23,22,22,22,22,21,19,21,23,22,20,22,22,20,23,20,21,22,22,19],[27,27,27,27,27,28,28,27,27,26,25,26,26,25,26,26,26,25,25,26,26,25,26,26,24,26,26,26,26,26,25,27,26,28,26,27,26,27,27,27,27,26,25,26,26,26,25,24,24,24,23,23,22,22,21,20,20,20,18,18,16,15,14,13,11,11,11,11,10,10,10,10,8,9,10,11,11,12,15,12,12,14,15,13,14,17,16,16,16,16,17,17,17,16,17,17,17,17,17,17,17,18,18,18,18,18,17,18,18,17,18,18,18,18,18,17,17,17,16,17,18,18,16,16,17,18,16,17,17,16,16,17,16,15,15,15,16,16,17,17,16,17,17,18,18,17,17,18,16,17,17,17,17,15,17,16,17,16,17,16,16,15,14,15,16,14,14,16,17,15,15,16,15,15,15,16,14,15,15,13,17,13,13,15,16,13,14,15,14,14,13,15,13,14,14,14,16,16,15,14,15,15,14,15,15,15,16,15,15,17,17,16,14,18,17,15,16,17,16,14,16,16,15,14,15,14,12,12,14,12,10,11,10,12,11,13,12,12,11,14,13,11,11,13,12,11,11,12,10,10,12,10,10,10,10,12,13,13,11,10,9,11,10,10,13,11,9,11,13,10,11,13,12,11,11,12,12,14,14,15,13,15,12,13,14,12,10,11,12,10,9,10,11,9,9,10,9,8,8,8,8,8,7,7,7,7,7,6,7,7,6,6,6,6,6,6,5,6,6,6,7,7,7,7,7,8,8,7,8,8,8,10,10,9,11,11,13,14,14,15,16,15,16,18,17,17,17,17,17,17,18,20,20,20,22,21,23,22,23,22,20,21,19,19,21,21,19,20,21,20,20,20,20,23,22,24,25,25,26,26,26,26,26,26,25,26,26,26,24,25,24,25,26,23,25,22,25,26,24,25,24,25,26,22,22,25,23,21,24,21,21,22,19,18,16,15,14,12,10,9,7,6,7,5,6,4,5,4,3,3,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,2,2,3,3,3,3,3,3,3,3,3,3,2,2,2,3,2,2,3,3,2,3,3,3,3,4,5,4,4,5,4,5,5,6,5,5,5,5,5,5,6,5,6,7,6,7,8,8,9,9,8,9,8,7,8,8,8,8,8,8,8,8,9,8,8,9,10,8,8,9,9,8,8,9,9,8,10,10,9,9,10,11,9,10,11,10,10,10,10,10,12,13,12,11,12,11,11,13,12,14,14,14,14,15,16,16,16,16,16,16,16,17,16,16,14,15,16,15,15,15,15,14,12,13,13,11,11,12,11,10,9,10,9,9,8,8,8,8,8,7,7,7,7,7,7,6,6,7,6,7,7,7,6,7,7,6,6,7,7,6,8,8,8,7,7,8,8,8,8,9,9,9,9,9,10,10,11,11,10,10,11,12,13,13,13,15,15,17,16,15,16,16,15,18,18,16,16,16,18,16,17,17,17,16,16,16,15,15,14,14,14,14,12,12,11,12,10,11,10,9,9,9,9,9,7,8,7,7,7,7,7,6,6,6,6,5,5,5,6,6,6,7,7,7,6,8,7,9,7,8,8,8,8,9,9,8,8,10,9,10,9,9,8,8,8,7,7,7,7,6,6,7,5,5,6,6,5,5,6,6,6,8,7,6,7,7,7,7,8,7,6,7,7,6,6,7,6,6,6,4,5,4,3,5,5,6,5,5,6,6,6,7,7,7,6,7,8,6,6,6,6,5,6,6,6,6,7,7,6,7,7,7,7,7,8,8,8,8,8,9,10,10,11,11,12,11,12,13,13,14,17,17,18,19,19,20,17,18,20,19,22,21,21,21,20,24,23,22,23,24,21,23,24,21,23,23,23,21,20,20,23,21,20,20,21,19,22,20,20,21,21,19],[27,28,27,27,28,28,27,27,28,26,27,26,27,26,26,27,27,25,26,26,25,26,25,25,26,26,26,26,26,26,25,27,26,27,27,27,27,27,28,27,27,27,26,27,26,26,26,25,24,24,24,22,23,22,22,21,20,21,20,18,16,16,13,14,12,11,11,11,11,10,10,10,9,10,11,12,13,13,15,13,14,15,15,14,15,17,16,17,17,18,17,17,17,17,17,17,18,18,18,18,18,19,18,19,18,19,18,17,18,19,19,18,19,21,18,19,18,17,17,17,19,18,16,17,18,17,15,18,19,17,16,17,17,16,16,16,17,17,17,17,18,17,18,18,18,17,18,18,17,17,18,18,17,17,17,18,17,17,17,16,17,17,16,15,17,15,15,17,18,16,16,17,15,15,16,17,15,16,15,15,17,15,14,16,16,15,15,15,15,15,14,17,15,15,15,14,16,17,15,15,17,16,15,16,17,15,16,15,16,18,17,16,15,17,16,16,18,17,16,16,15,17,17,14,16,16,14,14,15,14,12,12,11,13,14,14,13,14,13,14,15,12,12,14,13,12,12,13,12,11,13,12,11,11,12,13,14,13,12,12,12,12,11,12,13,13,11,12,14,13,13,13,13,12,13,13,12,14,15,15,13,17,15,15,15,13,13,13,13,12,11,11,12,11,11,10,10,10,8,8,9,8,7,8,8,7,8,7,7,7,7,7,7,7,7,7,6,6,7,6,6,7,7,8,8,8,8,8,9,9,8,9,11,10,11,12,13,13,15,16,16,16,17,18,17,17,18,19,19,18,19,21,21,21,22,23,24,22,24,22,21,21,19,20,21,22,21,20,21,20,21,21,20,23,23,24,25,24,25,26,26,26,26,27,26,26,27,26,25,26,24,27,26,25,26,22,26,25,24,25,25,25,26,22,23,25,23,22,23,21,21,21,19,18,17,15,14,12,10,9,8,7,7,6,6,5,4,3,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,0,1,1,2,3,3,3,4,3,3,3,3,3,3,2,2,2,3,2,2,3,3,3,2,3,4,3,4,4,4,4,5,4,5,6,6,5,6,6,6,6,7,6,7,7,7,8,9,9,9,9,10,10,10,9,9,8,9,8,9,9,9,9,10,10,9,9,10,10,10,10,10,10,9,10,9,10,9,11,11,10,10,11,12,11,11,12,12,11,11,11,12,12,15,13,13,13,13,13,13,14,15,15,15,17,16,17,17,17,16,16,15,17,16,17,17,15,15,18,16,16,16,17,15,15,15,14,14,13,14,13,12,11,12,11,11,9,9,9,9,8,8,9,8,8,8,8,7,7,8,7,8,7,7,8,7,8,8,8,8,8,8,8,9,8,9,8,9,9,9,9,9,9,9,9,10,10,10,10,12,11,11,12,13,14,13,15,16,17,16,17,17,17,17,16,17,17,17,16,17,19,17,17,21,17,17,17,18,18,17,16,15,15,15,13,12,10,13,11,12,12,10,9,10,10,9,8,9,9,8,8,8,7,7,7,7,6,6,6,5,7,6,6,7,7,7,7,8,7,8,8,7,8,8,8,8,9,9,8,9,8,10,9,9,8,8,8,7,7,8,7,6,7,6,6,5,6,5,5,6,6,7,6,7,7,6,7,7,7,7,8,7,6,8,7,6,6,6,6,6,5,4,4,4,4,4,4,5,5,5,5,6,6,7,8,7,8,8,9,8,7,7,8,7,7,7,8,7,7,8,8,7,8,9,8,8,9,9,9,9,9,10,11,11,12,12,13,12,13,13,14,15,17,17,18,20,20,20,18,20,20,20,22,20,22,22,22,24,24,23,23,24,22,24,24,23,25,22,24,22,22,21,23,22,21,20,21,19,22,21,20,20,21,19],[28,28,28,28,28,29,28,27,28,27,26,27,27,27,27,27,26,25,26,26,25,26,26,26,26,26,27,26,27,27,26,27,27,28,27,28,28,27,28,27,27,27,27,27,27,26,26,25,25,25,25,23,23,23,22,23,22,22,20,20,19,18,17,15,15,14,14,14,14,14,14,13,14,14,16,16,18,18,19,18,20,19,18,21,20,20,21,20,19,21,21,20,21,21,20,20,21,21,21,21,21,21,21,21,21,22,21,20,21,21,21,21,22,22,22,21,21,21,21,20,22,21,20,20,21,20,19,21,21,19,19,21,20,19,18,19,21,21,20,20,21,20,20,21,20,20,21,21,20,20,21,21,20,20,21,21,21,21,21,20,21,20,21,20,20,20,19,21,21,20,19,20,19,20,19,20,18,19,19,20,20,19,18,18,20,19,18,19,19,19,17,20,20,20,18,18,19,19,19,18,19,18,18,18,19,18,18,19,18,20,20,19,19,21,20,19,21,20,19,19,19,20,20,19,19,20,18,18,19,18,17,17,16,17,17,18,17,17,16,18,19,17,16,17,16,16,17,18,15,16,17,16,15,15,15,16,17,17,16,15,15,16,14,16,17,16,15,16,18,16,18,17,18,17,17,17,17,18,18,18,18,18,18,20,18,17,17,17,17,15,16,16,16,14,15,15,14,15,13,13,13,11,11,11,11,10,11,9,10,10,10,9,10,10,10,10,8,8,8,8,8,9,9,10,10,10,10,11,12,12,11,12,13,13,13,15,15,15,18,16,19,17,16,19,19,17,17,19,19,18,19,22,21,20,22,23,23,22,23,22,21,21,20,19,20,21,21,20,21,22,22,22,22,23,24,24,25,25,26,26,26,26,26,26,26,26,26,26,24,25,24,26,26,24,26,24,24,25,24,26,25,25,26,24,23,25,23,22,22,22,22,20,20,18,18,15,16,14,12,10,9,9,9,8,7,6,6,6,5,5,5,5,4,4,4,3,4,4,3,3,3,2,1,1,0,1,4,5,5,5,6,5,4,5,5,4,4,3,2,3,4,3,3,3,4,4,4,5,6,5,5,7,6,6,7,7,9,8,10,9,9,9,10,9,10,11,10,10,11,11,10,10,11,13,13,12,12,12,12,12,12,12,13,13,13,12,13,14,13,13,14,15,14,14,14,14,12,15,14,13,13,15,15,14,15,15,16,15,15,16,17,17,16,16,15,16,18,16,18,18,17,17,17,19,18,18,19,19,18,18,20,20,17,19,20,19,17,18,20,17,17,20,19,19,19,20,18,19,20,19,18,19,19,18,17,16,16,14,15,15,14,14,14,12,13,13,12,12,12,12,10,11,11,11,11,11,11,12,11,11,12,12,11,12,13,13,13,13,13,12,14,13,14,14,13,14,15,14,15,15,15,16,16,15,15,17,17,18,19,19,20,20,19,19,20,21,20,19,19,20,19,20,21,21,18,21,22,20,19,19,19,20,20,18,20,19,18,17,16,16,16,17,17,16,14,14,14,14,13,12,13,13,12,12,12,11,9,10,12,9,8,10,9,11,10,10,11,10,11,12,12,11,12,11,12,12,12,12,12,14,13,12,13,13,13,12,12,11,12,12,10,10,11,11,9,10,10,9,9,10,9,8,9,10,11,9,11,10,9,11,11,10,11,10,10,10,10,9,9,9,9,8,9,7,6,6,5,5,6,6,7,7,7,7,8,8,10,10,9,11,11,12,11,10,11,10,9,12,12,10,11,11,13,10,12,12,12,11,12,13,12,12,12,14,13,13,13,13,13,15,14,15,15,16,16,17,17,18,17,21,19,18,19,21,19,22,20,22,22,21,25,24,22,22,25,22,22,23,22,22,21,23,22,20,21,22,21,20,22,20,20,22,22,19,19,21,19],[28,28,27,28,28,28,28,27,28,27,26,27,27,26,27,26,26,24,27,27,24,27,27,25,27,28,26,27,28,26,28,28,26,28,28,28,27,28,28,29,29,28,27,28,28,28,28,27,26,27,26,25,25,25,25,24,24,24,22,21,22,19,18,17,18,16,16,16,15,17,17,17,17,17,17,18,20,19,21,21,22,20,22,21,21,22,22,22,23,23,23,22,24,23,23,23,24,23,23,23,24,24,23,24,23,23,24,23,23,23,25,24,24,24,23,23,23,24,22,22,24,23,22,22,23,23,21,24,24,21,22,25,22,21,21,23,22,22,23,22,24,22,23,24,23,23,24,23,22,23,23,24,23,21,23,23,24,22,23,22,23,23,21,22,23,22,21,23,23,22,21,23,22,22,22,22,21,20,21,20,22,22,21,21,22,21,20,21,21,21,20,23,21,21,21,21,22,22,20,21,21,21,22,21,22,21,21,22,22,23,23,22,22,23,23,21,24,23,22,22,21,23,22,21,21,21,22,20,21,20,19,19,18,19,18,18,20,18,17,19,20,20,17,20,20,20,18,20,18,19,18,17,17,17,17,18,19,18,17,17,18,18,18,17,19,18,18,18,19,18,19,18,21,17,19,21,19,21,20,21,21,21,20,20,19,20,18,19,19,17,18,18,19,18,16,17,17,17,16,16,16,14,14,15,14,12,14,13,12,12,13,13,11,11,11,12,10,11,11,11,10,12,12,13,13,12,14,14,13,14,12,13,14,14,15,16,17,17,19,19,20,19,18,21,21,19,19,21,20,18,21,23,22,22,23,24,24,22,25,22,22,22,22,20,21,22,23,21,22,22,22,23,23,23,24,26,26,26,26,26,26,26,26,25,26,26,26,26,25,25,25,26,25,24,26,23,25,24,25,25,24,24,26,23,23,25,23,23,22,22,22,20,21,19,19,17,16,15,14,12,12,11,12,12,10,9,9,8,8,7,5,6,7,4,5,5,3,4,5,4,2,3,3,2,1,0,1,3,4,4,5,5,5,6,4,4,4,4,3,3,4,4,5,4,6,6,5,7,8,7,7,7,9,9,10,10,11,12,12,10,12,12,10,9,12,12,9,11,12,10,9,11,12,11,12,13,13,13,13,12,15,13,14,16,15,16,15,15,15,16,16,16,15,16,15,15,16,15,15,15,16,16,16,16,16,15,18,16,16,18,17,17,16,17,17,17,20,17,18,19,18,19,20,21,20,21,20,23,21,21,22,22,21,21,22,23,22,22,22,21,21,22,21,22,22,22,22,21,21,21,19,19,20,19,18,18,18,17,18,16,16,16,16,15,15,14,13,14,14,13,13,13,14,13,12,13,14,13,14,14,13,13,13,14,13,14,14,14,15,13,13,14,16,15,14,16,16,15,16,17,17,17,19,17,18,18,19,20,20,22,22,22,22,22,22,24,23,21,23,23,22,22,23,23,21,23,23,23,22,22,23,22,21,20,22,21,20,20,18,18,19,19,19,17,17,17,16,17,17,15,15,15,14,14,14,13,13,13,13,13,11,11,11,10,14,12,12,13,15,12,14,14,14,15,12,14,14,15,14,15,16,15,15,16,15,15,15,16,14,14,14,14,14,14,13,14,13,12,10,13,12,10,10,12,12,12,12,14,11,13,14,14,14,13,15,11,14,13,12,12,12,13,13,11,10,8,8,7,9,8,10,10,10,11,10,10,11,12,11,12,13,13,11,11,12,10,11,13,12,10,13,15,12,12,16,13,14,14,14,14,14,14,14,14,14,14,14,15,15,15,14,15,16,17,17,19,17,21,19,24,23,19,20,24,22,26,22,25,23,23,26,24,22,24,25,22,25,26,23,23,22,24,21,19,21,23,22,20,23,21,20,22,20,20,19,20,17],[28,28,28,28,28,29,29,28,28,28,27,27,27,27,27,27,27,26,27,27,26,27,28,27,28,28,28,28,28,28,28,29,28,29,29,29,28,29,29,29,29,29,29,29,29,29,28,28,28,28,27,27,27,27,26,26,25,26,25,24,23,22,20,20,20,18,19,19,18,18,18,17,18,17,20,20,21,21,23,21,22,22,23,22,23,24,24,23,24,24,25,23,24,24,24,24,25,24,24,24,24,25,24,25,25,24,25,24,25,25,25,25,25,26,25,25,25,24,24,24,25,24,23,23,24,24,21,23,24,23,22,24,23,23,23,24,23,24,24,24,24,24,24,24,24,24,24,24,25,24,24,25,25,23,25,24,25,24,24,24,23,25,22,23,24,23,21,24,24,23,22,24,23,22,23,23,22,22,22,23,24,22,21,22,23,21,21,23,23,22,20,23,22,22,21,21,22,23,22,22,22,23,23,22,23,22,22,23,22,24,24,22,23,24,24,23,24,24,23,23,23,24,22,22,23,21,21,21,23,20,19,20,18,20,19,20,20,20,19,20,22,19,20,20,21,18,19,21,18,17,19,19,17,17,17,19,20,19,17,17,17,19,17,16,20,20,16,19,20,19,19,19,21,19,20,21,20,21,21,22,22,22,20,22,22,21,20,21,21,18,18,20,19,16,17,19,18,15,16,16,16,14,14,13,13,13,13,11,12,12,10,10,12,11,9,10,9,10,11,10,11,12,11,12,13,14,14,14,15,15,14,15,17,16,16,19,19,19,21,19,21,21,19,22,22,22,21,22,22,22,24,25,25,24,26,25,26,24,25,24,22,23,22,21,22,22,22,22,23,23,24,23,23,24,24,25,26,26,26,26,26,26,26,26,26,26,26,26,25,26,24,26,26,25,26,24,25,25,26,26,25,25,26,24,24,24,23,24,24,24,24,22,23,20,20,18,18,16,15,13,13,12,12,11,10,11,8,8,6,6,5,5,5,4,5,4,3,4,5,4,2,3,4,4,2,1,0,1,3,3,4,5,4,6,7,6,6,5,6,6,8,7,6,7,7,6,6,7,8,7,7,8,8,8,8,8,9,10,10,9,9,9,9,8,9,10,10,11,10,10,10,10,11,11,11,11,12,13,10,12,12,13,14,14,15,13,13,14,15,13,14,16,15,13,15,15,13,14,15,15,13,15,17,15,15,17,19,16,17,19,19,19,18,19,19,19,21,20,20,21,20,20,19,22,22,22,22,23,23,22,23,23,23,22,23,24,24,24,23,22,22,24,23,23,22,24,22,22,24,22,21,20,22,21,20,19,19,18,17,17,16,14,14,14,14,12,12,13,13,11,12,11,11,10,10,12,12,11,11,13,12,11,13,13,12,12,14,14,14,12,15,15,15,14,16,17,16,16,17,18,18,18,20,19,19,20,21,22,22,23,22,23,23,23,24,24,23,23,24,25,24,24,23,24,21,25,25,23,24,23,24,24,22,23,23,22,21,21,19,19,21,21,20,19,19,18,18,18,17,15,16,15,12,14,14,12,10,11,13,12,10,10,11,10,12,12,12,11,12,13,12,13,14,14,13,15,15,14,14,16,17,15,17,18,17,16,16,15,15,15,13,12,14,14,11,12,13,12,10,11,14,11,12,12,12,13,13,14,13,14,14,13,14,14,14,12,14,13,13,14,13,13,12,11,12,8,8,8,9,9,11,11,11,11,11,11,12,12,12,12,12,13,12,11,11,12,12,12,11,10,10,12,11,10,12,12,11,10,13,13,12,12,13,15,14,14,14,14,14,16,15,15,16,18,16,19,18,19,19,23,22,21,21,24,22,24,23,24,24,23,26,26,25,24,25,24,26,25,25,25,24,24,23,21,23,24,24,22,22,23,20,24,20,20,22,21,18],[29,29,29,29,29,29,29,29,29,29,28,28,29,27,29,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,30,29,30,29,30,30,29,30,29,29,29,29,29,29,28,28,28,27,27,27,27,27,27,26,26,25,25,24,22,20,21,20,19,20,18,19,19,19,19,18,19,19,19,22,21,23,22,21,23,24,22,23,25,25,25,25,25,25,26,26,26,25,26,27,26,26,27,26,26,26,27,26,26,26,26,25,25,26,26,27,27,25,26,25,25,24,24,25,25,24,24,26,26,24,26,26,25,24,26,25,24,24,25,25,25,25,25,26,26,26,27,26,26,26,26,26,26,25,25,26,25,25,26,26,25,25,24,25,24,24,25,25,23,23,26,25,24,24,26,24,24,25,25,22,23,24,23,24,22,23,24,24,23,24,25,23,24,24,24,22,24,24,23,24,25,24,24,23,24,24,25,25,24,25,24,24,25,25,25,25,26,25,25,26,26,25,23,25,25,24,22,24,23,20,20,23,21,18,21,19,20,18,19,20,21,18,20,22,19,20,21,20,20,20,21,19,19,20,18,19,19,19,18,20,19,18,19,19,19,19,19,21,20,19,21,22,19,21,22,22,20,22,22,22,22,23,24,22,23,22,22,23,22,19,20,21,19,19,19,19,18,17,19,18,17,17,17,17,16,16,16,15,15,14,11,12,13,13,11,11,12,10,10,9,11,12,11,12,13,14,14,15,15,16,17,16,19,17,18,18,19,18,19,20,20,21,20,20,22,21,21,22,23,22,22,23,23,22,25,25,24,25,25,26,25,26,26,25,25,24,23,24,25,24,22,23,24,25,24,24,25,25,26,26,26,26,26,26,27,26,26,27,27,27,27,26,27,27,27,28,26,26,26,26,26,27,27,27,26,27,26,26,26,26,25,24,25,24,23,24,22,23,19,18,19,16,14,15,13,13,14,12,12,11,9,9,6,6,8,6,5,6,6,5,3,6,6,4,3,5,5,5,2,1,0,1,3,4,4,5,6,6,6,6,7,6,8,10,11,7,8,10,9,7,9,10,9,8,10,9,9,11,9,11,12,11,10,10,12,10,9,11,11,10,10,11,10,11,11,12,13,13,13,13,13,12,14,14,15,16,15,16,16,15,17,17,16,17,18,16,16,18,17,16,18,17,18,17,18,18,17,18,18,20,18,19,21,19,19,19,20,20,20,22,21,22,22,22,21,23,21,23,24,23,23,24,25,25,25,25,24,25,26,26,25,25,25,24,25,25,26,24,24,24,23,23,23,21,21,21,20,19,19,19,19,18,17,18,17,17,16,16,15,13,14,15,13,13,14,12,12,12,15,14,13,15,16,15,14,15,16,16,18,17,16,17,16,18,16,18,18,17,18,19,18,20,20,19,20,22,20,19,21,23,23,24,22,24,24,25,26,25,25,25,25,26,25,25,25,24,26,24,24,26,25,26,25,24,25,25,23,23,23,22,22,22,21,22,19,20,20,19,18,18,19,18,17,17,17,14,16,15,15,14,15,14,12,11,11,13,12,13,13,13,15,16,15,17,17,16,17,17,17,16,18,17,18,18,17,19,17,18,17,18,16,16,16,15,16,16,16,13,15,16,12,12,13,14,12,12,14,14,13,14,16,13,13,16,14,15,15,17,14,15,15,14,14,14,13,14,13,12,10,11,9,9,11,12,11,12,11,12,11,13,12,13,13,14,12,12,13,11,13,12,12,12,12,12,14,13,14,14,15,13,13,15,15,14,14,15,16,16,16,16,16,16,17,16,16,17,18,18,21,19,21,21,22,22,20,21,22,22,24,23,24,25,23,25,26,24,25,25,25,24,25,25,24,23,24,24,21,21,23,24,23,24,22,22,22,23,22,21,22,20],[28,28,28,29,28,29,29,28,28,28,27,27,27,27,28,27,28,27,28,28,27,27,28,28,28,28,28,28,28,29,28,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,28,29,28,28,28,28,28,27,27,26,27,26,26,24,23,22,22,21,20,21,20,20,20,20,19,19,18,20,21,22,23,24,23,22,25,24,24,24,25,26,26,25,26,26,26,26,26,26,26,27,27,27,26,27,27,27,26,26,27,27,26,26,26,26,26,26,27,26,26,26,26,26,25,26,26,26,24,27,26,24,26,27,25,25,26,26,25,23,24,25,26,26,26,27,26,26,27,27,27,27,27,26,27,26,26,26,26,26,26,27,26,26,25,25,26,25,25,26,24,24,26,26,25,24,26,25,24,25,25,23,24,24,24,25,24,23,24,25,22,24,24,24,24,22,25,22,23,24,22,23,24,24,23,23,24,24,23,24,22,24,25,24,25,25,25,25,26,26,25,26,26,26,25,25,26,25,23,24,24,22,22,23,22,20,21,21,22,21,22,22,22,20,23,23,20,20,22,21,19,20,22,19,18,20,20,19,19,19,19,20,20,18,18,19,21,18,19,20,22,18,20,22,20,20,22,23,21,21,21,21,23,24,25,24,24,24,24,24,23,21,23,23,20,20,21,21,18,18,19,19,17,18,18,17,16,16,15,15,14,14,13,13,13,12,12,12,12,11,12,11,12,13,12,14,14,13,14,16,15,15,16,17,17,17,18,18,19,18,20,21,20,21,22,22,23,22,23,23,23,23,24,24,24,25,25,26,26,27,26,26,25,26,25,25,24,22,21,23,23,22,22,23,24,24,24,25,24,25,26,26,26,27,28,27,28,28,28,27,28,28,28,27,27,26,28,28,27,28,25,27,27,26,28,27,27,27,26,26,27,24,26,26,25,25,24,23,23,21,19,19,17,17,15,16,13,14,13,13,12,10,9,8,7,6,7,6,5,6,7,5,4,6,6,3,5,5,6,5,4,2,1,0,1,3,5,5,6,5,7,7,7,7,9,9,9,7,9,10,8,7,8,10,9,9,11,10,10,9,10,10,12,11,9,10,11,10,10,11,11,11,10,11,12,12,11,12,13,13,13,14,14,12,14,14,14,16,15,16,14,15,16,17,13,16,17,16,16,18,16,15,17,16,16,15,18,19,17,18,19,22,18,19,21,21,19,20,20,21,20,21,20,20,22,19,22,22,23,24,24,24,25,24,25,26,25,23,25,25,25,24,26,26,24,24,26,25,24,24,25,24,24,25,25,23,23,23,23,21,21,21,19,18,18,18,17,17,16,16,14,14,15,14,13,13,13,12,12,12,14,13,13,14,15,14,14,15,15,14,15,16,16,16,14,17,16,17,17,18,19,19,18,19,20,19,21,21,21,21,23,23,24,25,24,25,25,26,26,26,26,26,25,26,27,26,26,26,25,24,25,27,25,25,25,24,25,25,24,25,24,23,23,22,22,23,22,23,22,21,20,19,20,18,17,17,17,15,16,16,15,13,15,15,14,12,13,13,13,14,14,14,14,15,15,16,16,16,17,15,17,17,16,17,20,19,17,19,20,21,18,18,17,18,17,15,14,16,16,14,15,15,14,13,14,14,13,13,14,16,15,15,16,14,15,16,15,15,16,17,15,14,15,15,14,14,13,16,14,13,10,10,10,10,11,13,13,12,13,12,12,13,13,14,13,14,13,14,12,14,13,12,13,12,11,12,14,13,11,13,14,12,11,14,14,13,14,15,16,15,15,16,16,16,16,14,14,16,18,16,21,19,20,20,22,21,20,22,23,21,24,22,23,23,23,25,25,24,25,26,24,24,24,24,24,23,24,24,21,22,23,24,21,24,21,21,22,23,20,20,22,18],[29,29,29,30,29,29,30,29,29,29,28,28,29,28,29,28,29,27,29,29,28,29,30,29,29,30,30,30,30,30,29,30,30,30,30,30,29,30,30,30,30,30,29,30,30,30,30,29,29,29,28,29,29,29,28,28,28,27,27,28,27,25,24,23,24,22,23,22,22,22,23,19,21,19,22,23,24,24,26,25,24,26,26,24,26,27,27,28,28,27,27,28,28,28,28,28,29,28,29,28,28,29,28,28,28,29,29,28,28,28,29,28,29,29,28,29,27,28,27,28,28,28,28,28,28,28,27,28,28,27,27,28,27,27,26,27,27,28,28,28,28,28,28,28,29,29,28,28,28,28,28,28,28,27,28,27,29,28,28,28,28,27,27,27,27,26,26,28,27,27,27,28,26,27,27,27,25,26,26,27,26,25,25,26,27,25,26,26,26,25,26,26,24,26,26,25,26,26,25,26,26,26,26,27,27,27,27,27,26,26,28,27,26,28,27,27,27,27,27,26,26,28,26,24,26,26,24,23,26,25,21,23,22,24,23,25,23,25,23,24,25,23,24,25,24,20,23,23,20,20,22,22,20,22,21,21,22,22,21,20,20,22,19,20,23,23,19,23,24,21,22,23,24,23,22,25,25,25,26,26,25,26,23,24,25,25,21,23,24,21,20,22,23,19,20,22,21,17,20,20,17,18,18,17,17,17,17,14,16,15,14,15,15,15,12,13,11,12,14,13,14,17,16,16,17,18,18,18,19,21,17,20,19,19,21,22,22,23,24,23,25,25,23,26,26,26,25,27,26,25,28,27,27,26,28,28,28,26,28,26,26,25,24,22,24,26,24,24,23,25,25,23,25,26,26,27,27,27,28,28,28,28,27,27,28,28,28,28,28,28,27,28,28,28,28,26,27,26,27,28,27,27,28,26,27,27,25,27,25,25,26,24,25,24,23,21,21,19,19,17,18,15,16,16,14,13,11,9,8,6,7,9,5,5,9,9,6,6,9,9,6,7,8,8,7,6,4,4,1,0,1,5,4,7,8,8,7,8,8,10,12,12,10,10,11,11,10,10,11,9,8,11,11,9,11,10,12,13,13,11,11,13,12,9,13,14,10,12,13,13,12,16,14,16,18,15,17,16,14,16,15,16,18,17,18,16,16,19,18,16,18,20,18,17,20,19,17,20,19,19,18,20,21,19,19,21,23,19,21,24,23,21,23,23,22,23,25,23,24,23,22,24,25,23,25,26,26,26,27,27,27,27,28,27,28,29,28,28,27,27,27,28,27,28,27,27,26,26,25,25,24,24,24,24,21,21,22,21,19,19,20,19,18,17,17,16,16,17,16,15,15,16,14,16,14,17,16,16,15,19,16,16,18,17,17,18,18,18,18,17,19,19,19,19,20,21,19,20,22,24,21,24,24,24,24,26,26,26,26,25,27,27,28,28,27,27,27,27,28,28,28,28,28,27,27,27,27,28,28,27,27,27,27,26,26,25,26,25,24,24,25,23,23,23,22,21,21,22,19,18,19,19,17,18,18,18,16,16,16,16,13,14,16,16,16,16,17,17,18,19,18,19,18,19,18,20,20,18,20,22,20,20,22,22,23,21,20,19,19,20,18,18,19,19,16,17,18,15,16,18,17,16,17,18,19,18,19,21,18,19,21,19,19,20,19,18,18,18,18,18,18,17,17,17,14,13,12,12,13,15,15,15,16,17,17,17,18,18,17,17,17,17,17,16,16,17,16,16,16,16,15,15,14,14,15,15,13,14,15,16,14,15,17,18,18,18,18,18,16,20,18,18,19,18,20,22,22,23,23,24,22,22,22,24,23,27,23,25,26,25,27,27,26,26,27,26,26,28,28,26,26,26,26,22,24,25,25,23,26,24,25,25,25,23,23,23,21],[30,29,29,29,30,30,30,30,29,29,29,29,29,28,29,28,29,29,28,30,29,29,30,29,29,30,29,29,30,29,29,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,29,29,29,28,28,28,28,28,27,27,28,26,27,26,25,22,22,24,21,22,21,21,22,22,20,20,21,22,21,23,23,24,23,23,24,24,24,25,25,26,25,26,27,26,26,28,27,27,27,27,27,27,27,27,27,27,28,27,28,27,27,26,27,27,27,27,28,27,27,27,26,25,25,26,26,26,26,26,26,26,26,27,26,25,27,26,25,25,26,25,26,25,26,26,26,27,27,27,27,26,27,27,27,26,26,26,25,25,26,27,26,26,26,26,26,25,25,26,25,24,26,25,25,24,26,24,25,25,25,24,24,24,25,24,24,24,25,25,24,25,25,24,24,24,24,23,25,24,24,25,25,24,24,24,24,25,24,26,24,25,25,25,25,25,26,25,26,25,25,25,26,26,25,24,26,24,23,24,24,23,22,23,23,21,22,21,22,22,22,23,22,21,22,23,21,22,23,23,22,21,23,21,22,21,21,22,22,22,21,21,22,22,21,22,22,20,21,23,23,21,22,22,22,23,23,23,23,23,23,23,23,24,24,24,25,22,24,24,23,21,22,22,21,20,22,22,20,20,20,21,20,20,19,18,17,18,17,16,15,15,14,12,13,13,12,11,11,11,11,12,11,12,12,12,14,15,13,17,17,16,18,19,20,17,18,19,19,20,22,22,22,24,22,25,25,24,26,24,25,25,25,25,24,26,26,26,26,27,27,27,26,27,26,24,25,23,22,24,24,22,23,23,24,25,24,25,25,25,26,27,26,27,27,26,27,27,27,27,27,27,27,26,27,26,27,28,26,27,26,27,27,26,28,27,26,28,25,27,27,26,27,26,25,26,24,25,24,23,20,20,18,17,16,16,14,15,14,11,12,11,8,8,6,7,9,5,5,9,7,5,6,7,6,6,7,9,8,7,7,6,4,3,2,0,2,4,4,6,6,7,8,7,9,9,10,8,7,8,7,7,6,9,8,7,9,10,8,10,10,12,13,13,9,10,14,10,9,10,12,9,9,13,10,9,11,13,15,17,14,14,16,12,14,14,15,19,16,19,18,16,19,19,18,19,20,19,17,20,19,19,18,20,19,18,20,20,20,19,21,22,19,21,21,21,22,21,21,21,22,22,23,22,23,21,22,23,23,23,24,24,25,25,25,25,24,26,25,26,26,25,25,26,26,25,26,25,26,24,25,24,24,23,23,24,22,22,22,21,22,21,20,19,19,20,18,17,18,17,15,15,16,15,13,12,14,12,14,14,14,13,15,13,18,14,14,16,17,15,16,18,17,18,17,17,18,19,18,20,20,20,19,21,21,20,22,22,23,22,23,23,24,24,24,25,25,26,26,25,26,26,26,26,26,26,26,25,26,25,25,26,26,26,24,26,26,25,25,25,24,23,24,22,23,23,23,22,21,21,20,20,20,18,18,18,18,16,17,18,14,14,14,14,14,13,14,15,13,14,14,14,14,17,14,15,18,17,18,16,19,19,19,19,21,19,18,21,21,21,19,18,17,18,18,16,17,18,17,14,15,17,13,13,15,14,13,14,16,15,16,16,18,15,16,19,18,16,19,18,16,17,17,14,15,16,15,14,12,12,11,10,10,11,12,13,13,13,13,13,14,14,14,14,14,16,15,14,14,14,14,13,14,12,12,14,13,12,14,14,13,12,12,14,14,12,13,17,17,18,17,17,17,16,19,16,17,19,17,18,22,21,22,23,25,24,21,23,25,24,27,23,26,27,24,27,27,27,27,28,28,27,28,27,26,25,27,26,22,23,26,25,24,25,24,24,25,23,22,24,24,20],[29,29,28,29,29,29,30,29,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,28,29,29,28,29,28,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28,27,27,27,26,26,26,25,24,23,23,22,20,19,20,17,18,18,17,18,18,18,17,17,17,18,19,19,20,20,22,20,20,23,22,21,23,22,22,23,24,23,23,24,24,24,24,23,24,25,24,24,24,24,24,23,23,24,24,22,23,24,23,24,24,23,24,22,22,21,23,23,22,22,24,23,21,23,23,22,22,23,21,21,21,21,21,22,22,23,23,23,24,24,24,23,23,24,22,23,23,23,23,21,22,23,24,23,23,21,22,22,21,21,23,22,21,22,22,21,21,22,21,21,21,22,20,20,21,21,21,21,20,20,21,20,20,21,21,22,19,20,20,20,20,19,20,21,20,19,21,21,22,21,23,20,21,22,22,22,23,22,21,22,22,22,22,23,22,22,21,22,22,21,20,21,20,19,20,20,17,18,17,18,18,18,18,18,17,18,19,17,18,18,19,18,17,19,16,17,17,18,18,17,17,17,18,18,18,17,17,18,18,16,18,19,17,18,19,20,18,19,20,20,20,19,19,21,20,21,22,20,21,22,21,21,20,21,19,19,18,18,19,17,16,18,17,16,17,15,15,14,14,14,13,13,14,12,11,12,12,10,11,12,10,10,9,10,10,10,9,11,13,12,13,13,13,14,14,15,14,15,15,16,17,17,18,19,20,19,20,21,20,22,21,22,22,21,22,22,24,24,26,25,26,26,27,25,27,25,23,24,22,22,22,23,22,23,23,24,25,24,27,25,26,27,27,27,27,28,28,28,28,28,28,28,28,28,27,28,27,28,28,26,28,26,26,27,26,27,27,26,28,25,26,26,25,26,25,25,24,23,23,21,21,19,18,17,15,13,13,11,10,10,9,8,9,5,5,4,4,4,4,4,5,4,3,4,5,5,6,6,6,5,6,6,5,5,4,3,1,0,1,2,2,4,6,6,5,7,5,5,5,5,5,4,4,4,5,5,5,5,6,6,8,7,9,10,9,8,9,9,9,8,9,9,8,9,10,9,9,10,10,12,11,12,12,12,12,13,13,14,14,15,14,14,14,15,15,14,15,16,16,15,15,15,15,15,15,16,16,16,18,17,17,18,20,18,17,19,19,19,17,17,19,18,20,18,18,20,18,20,18,21,21,20,22,22,22,22,22,22,21,21,22,22,22,23,24,22,21,23,23,21,23,23,22,21,22,21,21,21,22,21,20,20,19,19,18,16,16,16,15,15,14,14,14,14,14,12,11,13,12,10,10,13,13,11,13,14,14,12,13,14,13,14,14,14,15,13,14,15,16,16,16,18,18,17,17,17,18,18,19,20,20,19,20,20,21,21,22,22,23,23,23,23,22,22,24,24,23,23,22,24,21,23,24,22,22,21,22,22,21,22,21,20,19,20,19,20,20,19,20,19,18,18,19,17,16,15,15,15,14,15,14,13,13,14,13,10,10,10,10,10,12,12,13,13,14,15,14,15,14,15,14,15,16,15,15,17,17,15,17,18,16,16,15,15,14,14,14,15,14,14,12,14,13,11,11,13,13,10,13,13,14,14,13,16,12,13,14,13,14,13,14,12,13,12,13,12,12,12,13,10,9,8,6,7,7,8,10,11,10,12,11,12,13,13,12,13,13,12,12,11,12,10,10,11,10,9,9,11,10,9,11,11,10,12,13,12,12,11,13,14,14,14,15,14,14,15,14,14,15,15,17,18,19,19,20,22,20,20,22,21,21,24,22,24,23,24,26,26,24,24,26,26,25,27,25,25,24,26,24,22,23,25,26,23,25,22,22,24,22,21,22,21,19],[29,29,29,29,29,30,29,29,29,29,29,29,29,28,29,28,29,29,28,29,29,28,29,29,28,29,29,29,29,29,28,29,30,30,29,30,29,29,30,29,30,29,29,29,29,29,28,27,28,27,27,27,27,27,26,26,26,25,24,25,22,21,18,18,17,16,17,17,17,17,17,17,16,16,16,18,18,18,17,18,18,18,18,18,18,18,19,19,20,20,20,21,21,22,20,22,22,21,22,22,23,22,22,23,22,22,22,22,22,20,21,21,22,23,22,21,22,19,20,19,19,20,20,19,21,20,20,21,21,20,20,21,20,19,20,20,20,21,20,21,22,21,21,23,21,21,21,21,20,20,20,19,20,20,20,20,21,21,21,18,20,18,19,19,20,19,19,20,20,20,19,20,19,19,19,18,19,18,19,18,19,18,18,19,18,18,19,18,18,18,18,18,18,18,19,18,18,19,18,18,19,19,20,19,21,19,20,20,19,19,20,20,18,20,20,19,20,19,19,18,18,20,18,16,18,18,17,17,18,18,17,18,18,18,17,17,19,16,16,16,18,17,17,18,19,20,17,18,17,18,16,17,17,18,17,16,16,15,15,16,17,17,16,16,17,16,15,16,16,16,16,16,16,15,16,17,17,18,18,18,18,18,18,17,18,16,15,16,16,15,16,16,17,15,15,16,16,16,15,13,15,12,13,13,11,12,11,9,8,9,9,9,8,8,9,7,7,7,8,8,8,9,10,10,12,12,11,13,12,12,13,13,15,15,16,16,19,18,19,18,19,20,21,20,20,21,21,21,22,24,23,25,25,24,26,25,25,25,26,24,23,23,22,22,23,23,23,22,24,25,25,24,27,25,26,28,28,27,28,28,28,27,28,28,28,28,28,28,27,28,27,28,28,27,28,26,26,28,27,27,27,27,28,26,26,27,26,26,25,25,25,24,23,22,22,19,18,17,12,12,10,11,10,10,8,8,6,5,5,4,4,5,3,2,5,4,3,3,5,4,4,5,5,5,5,6,5,5,4,3,2,1,0,1,3,3,4,5,4,5,5,5,5,3,4,5,4,4,6,4,4,5,7,5,5,6,6,9,8,6,7,9,7,6,9,9,6,7,8,8,8,9,10,12,12,12,12,11,11,11,13,12,13,14,14,14,14,14,13,14,15,15,13,13,14,13,15,13,14,15,14,14,15,14,14,16,16,15,16,16,15,16,15,15,15,16,16,16,16,17,17,18,17,17,18,18,18,18,20,21,20,20,21,20,20,21,20,20,20,19,19,20,20,19,19,19,18,17,18,18,17,18,17,17,16,16,15,15,15,14,14,14,15,13,12,11,11,12,11,10,10,11,10,9,9,11,11,10,10,12,11,10,11,12,11,12,13,12,13,12,13,13,15,15,15,14,16,14,16,16,16,17,16,16,17,17,18,18,17,18,20,20,20,20,19,19,20,20,21,21,21,21,20,22,20,20,22,20,20,19,20,20,19,18,19,19,17,18,18,18,17,17,16,15,16,16,15,15,16,12,12,14,13,12,12,10,10,11,10,9,7,8,9,9,10,10,11,11,13,12,12,13,12,13,13,13,13,14,13,15,14,14,15,15,15,15,14,13,12,13,11,12,12,13,9,11,12,9,10,11,10,9,10,11,11,11,11,12,10,10,13,12,12,12,12,11,10,11,11,10,11,12,10,8,10,6,7,5,7,8,8,9,9,9,9,10,10,11,10,11,10,11,10,9,10,9,8,9,10,8,9,10,9,9,10,10,9,11,11,11,11,13,12,13,14,13,14,14,14,14,13,15,15,16,17,18,18,19,20,20,21,19,22,22,21,24,22,23,25,23,25,25,25,24,26,25,25,25,25,24,25,25,25,22,23,25,25,23,24,22,22,23,22,21,21,22,20],[29,29,28,29,29,29,29,29,28,28,28,28,29,27,28,28,28,28,28,28,27,28,28,28,28,28,28,28,28,28,28,29,29,29,28,29,28,29,29,29,29,29,28,28,29,28,28,27,28,27,28,27,26,27,26,25,26,25,24,24,21,20,18,17,17,15,16,16,17,16,17,15,15,14,15,17,17,17,17,18,18,17,18,18,18,18,20,21,21,21,21,21,22,22,21,21,21,22,22,22,23,22,21,22,22,21,21,23,22,21,22,22,22,23,22,22,22,21,20,20,21,19,20,21,21,19,20,21,21,20,21,22,19,20,20,21,21,21,21,20,22,21,22,22,21,22,22,21,20,21,20,20,20,19,20,20,22,21,21,20,21,18,19,20,20,19,18,20,18,19,19,19,18,19,19,19,18,19,19,18,18,18,19,18,18,17,18,18,17,18,17,19,17,19,18,18,20,19,18,18,19,20,19,19,20,18,20,20,19,20,21,20,19,21,20,19,20,21,19,18,18,19,18,17,18,18,16,17,18,17,16,18,18,18,17,19,19,17,17,17,17,18,17,17,17,18,16,16,16,17,16,15,16,16,16,15,15,15,17,14,15,15,14,14,16,15,13,15,16,15,14,16,18,16,16,16,17,17,17,19,18,19,18,18,17,16,15,16,15,14,15,15,15,14,14,16,16,13,14,12,13,12,12,11,10,10,10,8,8,9,9,8,8,8,7,7,7,7,8,8,7,9,10,9,11,12,10,12,11,13,12,14,14,14,15,16,16,17,20,17,19,19,19,20,20,21,21,21,22,21,22,23,24,23,25,26,25,24,26,24,22,22,21,20,21,22,20,21,21,22,22,22,25,24,24,25,25,26,26,28,27,27,27,27,27,27,27,27,26,27,26,28,27,26,27,24,27,27,26,27,26,26,28,24,26,26,25,24,25,24,24,23,23,22,21,19,16,16,11,11,10,9,9,9,7,7,6,5,4,3,4,4,4,3,3,4,3,4,4,4,4,5,6,5,4,6,5,4,4,4,3,2,1,0,1,2,3,4,4,5,4,6,4,3,4,5,4,4,5,5,4,5,5,4,5,5,7,7,7,6,6,8,6,5,7,7,6,6,8,8,8,9,9,11,11,11,11,10,10,10,10,11,12,11,13,11,11,13,12,11,13,13,13,11,12,12,12,12,12,13,12,13,13,13,13,14,15,14,15,16,15,15,15,15,15,16,18,16,16,17,16,17,17,17,18,18,18,20,19,20,20,20,20,20,20,21,19,20,20,18,19,20,20,19,20,20,19,18,19,18,17,18,17,17,14,16,15,14,14,13,13,13,12,12,11,10,10,11,10,9,9,10,9,8,8,10,10,9,10,11,10,10,10,11,10,10,12,11,11,10,11,12,13,12,13,14,14,13,15,15,14,16,16,16,16,17,17,17,18,18,20,20,21,21,19,19,19,20,21,22,20,21,20,21,20,20,22,20,19,20,20,21,19,19,19,18,17,17,16,18,17,16,15,15,15,14,13,14,14,12,12,12,11,10,11,10,9,10,10,8,7,7,8,8,9,9,10,9,11,11,10,11,11,12,12,12,12,12,12,14,13,14,14,14,15,13,13,12,12,12,11,10,11,11,9,10,10,9,9,10,10,9,10,10,11,12,11,12,10,11,11,12,12,12,11,11,12,11,11,10,11,11,10,7,7,6,6,6,6,7,8,9,10,9,9,9,10,11,10,10,10,12,10,9,9,8,8,8,9,8,8,9,9,8,9,9,8,9,10,10,9,10,11,12,12,13,13,13,13,14,13,15,15,16,17,19,19,19,20,22,21,20,21,23,21,25,21,24,24,23,26,26,24,26,27,26,24,27,26,26,24,26,25,22,23,25,26,23,24,22,22,24,25,21,22,24,21],[27,28,27,28,28,28,28,27,28,27,26,26,27,26,27,27,27,26,27,26,26,27,27,27,27,27,27,27,27,28,27,28,28,28,28,28,29,27,29,28,29,28,28,27,28,27,27,26,27,27,27,26,26,26,25,24,24,25,23,22,20,19,18,17,17,14,15,15,15,15,15,14,14,14,15,15,17,16,17,17,20,18,19,20,19,20,20,20,20,22,22,20,22,22,21,20,22,21,22,23,22,21,21,22,22,20,20,21,22,20,20,21,21,23,21,20,21,20,20,18,20,20,20,19,22,22,19,20,22,20,19,21,20,20,19,20,20,21,20,20,21,21,21,22,22,22,21,22,21,21,20,21,21,19,21,22,22,21,21,18,19,21,19,19,21,20,19,20,20,20,18,19,20,18,18,20,18,17,18,19,19,19,17,18,20,18,18,19,19,19,17,20,18,19,18,18,18,19,18,18,20,19,19,18,20,17,20,20,18,21,20,20,20,21,21,20,21,21,21,20,19,20,20,19,18,18,17,18,17,16,16,17,15,16,16,15,16,15,14,15,16,15,15,16,16,15,13,16,14,14,15,14,14,15,14,15,16,15,14,14,14,15,13,14,16,16,13,15,17,16,15,17,18,16,16,16,16,18,17,19,20,18,19,19,19,18,17,17,17,15,15,16,15,13,14,14,13,12,13,12,12,12,10,11,11,10,10,9,8,8,8,7,8,7,6,5,5,6,7,7,8,9,10,10,10,12,11,11,12,13,13,12,13,14,15,16,16,16,18,17,18,19,18,20,19,19,19,20,20,19,21,22,22,21,23,24,24,22,24,23,21,22,20,20,21,21,20,20,21,22,23,22,24,24,24,25,25,26,26,26,27,27,26,27,27,27,26,26,25,25,25,26,26,24,26,24,25,25,25,26,25,25,26,23,24,25,23,23,23,23,22,21,22,19,18,16,14,14,12,11,11,9,10,9,8,8,7,5,4,3,4,4,3,3,4,4,4,4,4,3,3,4,4,4,4,5,5,6,4,4,4,3,2,1,0,1,3,2,2,3,3,4,3,3,4,3,3,3,4,4,4,4,5,4,5,5,7,6,7,6,6,7,6,6,7,7,7,7,8,9,8,8,9,10,11,11,11,10,10,10,10,12,11,13,11,11,11,12,12,11,12,12,12,12,12,12,12,12,12,13,13,13,14,13,14,14,16,14,15,16,16,16,15,14,17,16,17,16,16,19,17,18,17,18,19,19,21,21,20,20,21,20,20,20,18,19,19,20,20,19,18,20,20,19,19,22,19,19,20,20,18,19,19,18,17,17,15,14,12,13,12,12,12,12,11,10,11,10,10,9,10,9,10,8,9,9,11,10,10,10,11,11,10,10,11,11,11,11,11,10,12,12,13,13,13,15,14,13,14,15,15,15,16,16,16,16,18,18,18,19,20,20,19,20,21,21,19,19,20,22,20,20,20,22,18,20,22,18,19,19,20,20,19,18,20,19,16,18,16,18,16,17,16,15,15,15,13,14,13,12,11,12,11,10,10,10,10,9,10,9,8,9,9,10,10,10,12,10,11,12,12,12,11,12,12,12,12,12,12,13,13,12,14,14,14,13,13,12,11,11,11,10,11,11,10,9,9,9,9,9,10,10,12,10,11,10,11,12,10,11,11,11,12,12,10,10,9,10,9,11,12,10,9,8,8,7,6,6,8,7,9,8,9,10,9,10,11,11,11,11,11,11,10,11,10,9,9,10,9,8,9,9,10,8,10,10,10,10,10,10,10,10,11,12,12,12,13,12,14,14,13,15,15,16,15,18,18,18,18,19,20,20,19,21,20,23,21,23,23,22,25,25,24,23,24,24,24,24,23,24,22,24,23,22,23,23,23,22,24,21,21,22,22,22,20,22,20],[29,28,28,28,29,29,29,29,29,28,28,27,28,28,28,27,28,28,27,28,28,27,27,28,27,27,28,27,27,28,27,28,29,29,27,28,28,28,28,28,29,28,28,28,28,28,27,27,28,26,26,26,25,25,25,24,23,23,23,22,20,19,16,16,15,14,16,14,16,14,16,14,13,13,14,15,16,15,17,16,16,17,18,17,17,19,19,19,21,20,21,21,21,21,22,21,21,21,22,23,22,22,22,23,22,22,22,22,22,21,22,22,23,22,21,21,21,20,20,18,21,20,19,20,21,21,19,22,22,20,20,22,19,18,20,20,20,21,21,21,21,21,21,23,21,22,22,21,20,21,21,20,20,19,21,21,22,21,22,20,20,18,18,20,20,18,18,20,18,18,19,20,17,17,19,19,16,18,19,18,19,16,17,19,18,16,18,19,18,18,18,20,17,18,19,18,19,20,19,18,20,19,19,19,21,19,20,20,20,21,21,21,18,22,21,19,21,21,20,18,18,20,18,15,18,17,15,15,17,15,13,15,15,15,17,17,16,15,15,16,15,15,14,15,15,15,14,15,13,14,15,13,12,14,14,15,15,15,14,14,14,14,13,14,17,13,14,15,16,14,16,16,16,15,15,16,16,18,17,19,17,18,16,16,17,16,14,14,15,13,13,13,13,12,13,13,13,12,12,12,12,11,10,11,11,10,9,9,8,9,8,9,9,8,7,7,6,7,9,8,9,8,10,9,10,11,11,11,11,13,12,13,14,15,15,14,17,16,17,18,17,18,20,19,18,19,20,20,20,21,22,23,24,23,25,24,25,25,26,24,24,23,21,21,22,23,21,21,22,23,24,22,26,24,25,26,26,27,27,27,27,27,27,27,27,28,28,27,26,27,26,27,27,26,27,25,26,27,26,27,26,26,27,25,25,26,25,25,24,25,24,23,22,21,19,18,16,16,12,11,10,10,10,9,8,9,7,5,5,4,5,4,3,4,5,4,3,5,4,3,3,4,4,3,3,5,5,5,4,4,5,3,3,2,1,0,1,2,2,2,2,4,3,2,4,5,3,3,5,4,3,5,6,4,7,6,8,8,9,7,7,8,7,6,7,8,7,7,8,8,9,9,9,10,11,10,10,11,9,11,10,12,12,11,12,11,11,12,12,11,12,13,12,11,12,13,11,12,12,11,12,14,14,12,13,13,14,13,14,16,14,14,13,13,13,15,17,16,16,16,16,16,18,17,18,18,18,20,20,20,21,21,21,20,20,21,20,21,21,19,19,21,20,20,19,20,19,17,18,17,16,16,15,15,14,14,13,12,13,13,11,12,12,12,12,11,11,10,11,10,10,9,9,9,9,10,11,11,10,10,11,11,11,11,11,12,11,12,11,11,13,12,12,12,13,12,13,13,13,14,14,15,15,14,14,15,17,18,17,17,20,20,20,20,19,19,19,19,21,21,21,20,20,22,20,20,23,20,19,19,21,20,18,19,18,17,18,16,16,15,16,14,14,13,14,13,12,14,13,11,12,12,11,11,11,11,10,10,10,10,8,8,9,10,9,10,11,11,11,11,12,12,12,11,12,12,11,12,13,13,12,13,13,13,14,13,13,12,12,12,12,11,11,13,10,10,10,9,9,10,11,9,10,10,11,10,11,10,10,10,12,11,12,12,10,10,11,11,10,10,11,10,11,8,7,6,6,6,7,7,8,8,8,8,9,9,10,11,10,12,10,12,10,9,10,10,9,9,11,9,10,9,10,9,10,10,10,10,10,10,11,10,11,12,12,13,13,12,12,14,13,13,14,15,16,17,17,20,19,20,20,20,21,20,21,23,22,24,24,23,25,25,25,25,25,25,24,25,25,26,24,25,25,22,22,24,24,23,23,21,22,22,23,21,20,21,19],[28,28,27,28,28,28,27,28,27,26,26,26,27,26,26,26,26,26,26,26,26,25,26,26,26,26,27,26,27,27,26,27,28,27,27,27,27,27,28,28,28,27,27,27,27,27,26,26,26,26,25,25,24,24,23,23,22,22,21,20,19,18,17,15,15,14,14,15,14,14,13,12,13,13,15,15,16,16,18,17,17,18,18,18,18,19,20,19,20,21,21,20,21,20,20,21,20,21,21,21,21,21,21,21,20,22,21,20,21,22,22,21,22,22,20,20,20,19,19,21,21,20,19,19,20,21,18,20,21,19,19,21,20,18,18,19,20,21,21,20,21,20,21,21,22,21,20,21,21,20,20,20,20,18,21,20,22,20,20,19,19,20,20,19,19,20,18,19,20,19,18,20,18,18,18,19,18,18,19,18,20,17,17,18,19,17,17,19,19,18,17,19,18,19,17,19,20,19,18,18,20,19,19,18,19,18,19,19,19,21,20,18,18,21,20,20,20,20,19,19,18,20,19,17,17,17,17,17,17,17,15,15,14,15,15,16,15,16,15,17,16,15,14,16,15,14,14,16,14,13,15,15,14,13,14,16,16,16,14,14,15,14,14,14,16,16,14,15,17,16,16,16,18,16,17,17,17,19,18,18,19,19,18,18,18,18,17,17,16,16,15,15,15,14,14,13,13,13,12,11,12,11,11,11,11,9,9,9,8,9,9,9,8,7,7,7,7,7,7,8,8,9,8,10,10,10,10,11,11,11,12,12,12,14,13,17,17,16,18,19,19,18,17,20,19,18,18,20,19,19,21,21,21,23,23,23,24,23,22,22,21,21,19,19,20,20,19,20,20,21,21,21,23,22,23,24,24,24,25,26,26,26,26,26,26,26,26,25,24,25,24,25,25,24,25,23,25,24,23,24,23,24,25,23,22,24,23,22,22,22,22,20,21,18,18,16,15,14,11,11,10,9,9,8,7,7,6,6,5,4,5,5,4,4,5,4,3,4,4,4,4,4,4,4,4,4,5,6,6,5,5,5,4,2,2,1,0,1,2,2,3,3,3,3,4,3,3,3,4,4,3,6,5,5,6,6,7,8,8,7,7,7,8,7,7,8,9,8,8,9,9,10,11,11,10,11,11,11,9,10,10,12,11,11,11,12,11,12,13,12,13,13,13,13,12,14,12,13,14,13,13,14,15,14,14,14,15,15,15,16,16,17,16,16,16,16,19,16,17,18,17,18,16,20,19,18,20,20,19,20,20,20,18,21,20,20,20,20,20,18,19,20,20,19,18,21,18,18,19,19,17,17,18,17,16,15,16,15,14,13,13,14,12,12,12,12,10,10,10,10,9,9,9,10,10,10,11,12,10,12,12,11,11,12,12,11,12,12,12,13,12,12,13,13,13,14,15,13,14,15,15,15,16,16,16,16,17,18,17,19,19,19,19,20,20,20,20,18,19,21,19,18,19,21,19,20,22,20,19,20,19,20,17,19,20,18,18,17,15,15,16,16,16,15,15,14,14,14,13,12,12,13,11,11,12,10,10,10,10,11,9,10,10,11,10,11,11,10,12,12,11,12,12,12,12,12,12,13,12,13,14,13,13,13,13,12,13,11,11,11,11,10,11,11,9,10,10,9,9,9,10,10,10,10,11,11,12,12,10,11,12,11,12,11,11,11,10,10,10,10,10,9,9,8,7,5,6,5,7,7,9,9,9,10,9,9,11,11,11,12,11,12,11,12,11,11,11,10,11,11,11,10,11,11,10,11,11,11,10,11,10,10,11,12,12,13,14,13,14,15,15,16,14,16,16,17,17,18,19,20,19,18,19,20,19,23,19,22,23,23,25,25,23,24,24,24,24,23,23,24,20,23,23,20,20,23,23,22,23,21,21,22,24,21,20,21,20],[27,27,27,27,27,28,28,27,27,27,26,26,26,26,26,26,26,25,27,26,26,26,26,26,27,27,27,27,27,26,26,27,27,28,27,27,27,27,28,27,27,26,26,27,28,27,26,26,26,25,26,25,24,25,25,23,22,24,22,20,19,18,17,15,15,14,15,14,14,14,14,14,15,15,14,16,17,17,19,17,18,19,18,19,20,19,21,20,20,21,21,20,20,21,20,20,22,20,20,21,21,21,20,21,21,21,21,21,20,21,22,21,21,23,21,20,20,19,20,20,21,21,19,20,20,21,19,20,21,20,20,22,21,19,19,21,20,21,21,20,21,21,20,21,22,21,20,21,21,20,21,22,21,20,20,21,21,20,20,19,19,20,18,19,21,20,18,20,21,18,18,20,20,19,19,20,18,18,19,18,20,19,20,20,20,18,19,20,20,19,19,20,20,20,19,19,20,21,19,20,20,20,20,18,19,18,20,20,20,22,21,19,19,21,21,21,22,21,20,19,20,20,20,18,20,18,19,17,18,17,18,17,15,16,16,17,16,16,15,17,18,16,15,18,17,17,16,17,16,16,16,15,17,14,15,17,17,18,16,16,16,16,16,16,17,16,16,17,18,18,18,17,19,16,17,18,18,19,19,19,19,20,19,19,18,18,17,18,18,16,17,15,16,17,16,15,14,14,13,13,15,13,12,11,11,10,10,9,9,9,10,9,9,8,8,9,7,7,8,8,8,10,9,10,11,10,11,12,11,12,11,13,13,11,14,16,16,15,18,17,19,19,17,19,19,18,18,21,19,19,21,23,21,21,23,23,23,22,22,22,20,20,20,19,19,20,20,19,20,21,21,21,24,22,24,25,24,24,25,25,25,26,25,25,25,26,26,26,25,25,23,25,24,24,25,22,25,24,24,25,24,24,25,23,23,24,23,22,23,23,21,21,21,18,18,16,15,14,11,10,10,8,10,9,8,6,6,6,6,6,5,5,4,4,5,3,3,5,4,3,3,5,3,2,3,5,5,5,4,5,6,5,4,3,3,1,1,0,1,2,3,3,2,2,4,3,3,4,5,4,4,6,6,6,6,7,8,9,9,8,9,9,9,8,9,9,8,10,10,10,9,11,11,12,12,12,12,12,11,11,12,12,12,12,12,13,13,13,13,14,13,15,13,15,14,15,14,14,15,13,14,17,16,14,15,16,17,15,16,17,17,17,16,16,17,16,19,17,17,19,17,19,18,20,20,19,20,20,19,18,20,19,18,19,20,20,19,20,20,19,18,20,20,20,20,21,19,19,21,20,18,17,19,18,17,17,17,15,16,15,14,15,15,14,13,12,12,12,12,11,11,10,11,10,11,10,13,12,12,12,13,11,13,13,12,13,14,13,12,12,14,14,15,13,13,14,15,14,15,16,16,15,17,15,16,16,18,18,18,20,19,20,19,19,20,20,20,19,19,20,19,19,19,21,19,20,21,20,20,20,20,21,19,18,19,19,18,18,16,16,17,17,17,16,15,15,15,14,16,13,13,14,13,12,12,11,11,11,11,10,9,9,9,11,10,10,10,11,11,10,12,13,12,13,11,13,13,12,12,14,14,12,13,14,14,14,13,14,13,12,11,11,12,12,9,11,11,9,9,9,11,8,10,11,10,8,11,12,8,10,13,12,10,12,12,8,10,12,10,9,11,10,10,9,6,6,6,6,7,6,9,8,7,8,8,8,11,10,10,12,12,14,10,11,12,10,11,12,11,10,11,11,12,11,12,12,11,13,12,12,13,12,12,13,14,14,15,15,16,16,15,15,16,18,17,20,19,20,20,22,22,20,20,23,22,26,21,25,23,24,26,25,24,24,26,25,24,26,25,25,23,25,24,22,21,24,25,22,24,21,21,24,23,21,20,21,20],[29,29,29,29,29,30,29,29,29,29,28,28,29,28,28,28,28,27,28,28,27,27,28,28,27,27,28,27,28,28,27,28,28,29,28,29,28,28,29,28,29,28,28,28,29,28,28,27,27,27,26,26,25,24,24,23,23,23,22,21,19,18,15,14,13,12,12,12,11,12,11,11,10,11,11,12,13,13,14,12,14,14,15,14,14,17,17,17,18,18,17,18,19,19,19,19,18,18,19,19,19,20,18,20,19,20,19,20,19,19,20,20,20,20,19,19,18,19,18,17,19,18,17,17,20,18,16,19,18,18,17,19,17,18,17,18,17,20,18,19,21,19,19,20,18,19,18,19,18,18,19,18,18,16,17,18,18,19,18,17,16,17,15,17,17,15,15,17,17,17,16,16,15,15,16,17,15,16,16,16,17,15,16,17,17,15,17,16,16,16,14,18,15,18,15,16,17,17,16,16,17,16,17,17,17,16,16,17,18,17,18,18,16,19,19,17,19,18,18,15,16,18,17,14,16,16,13,13,14,13,11,12,13,12,14,13,13,14,13,14,13,12,12,14,13,13,12,13,12,12,14,11,11,11,12,13,14,14,14,13,11,13,12,12,14,12,12,14,13,12,13,15,14,13,15,15,15,15,16,16,15,16,14,15,15,14,12,12,13,12,11,10,12,13,11,11,11,11,11,10,10,9,9,9,8,8,8,7,7,8,7,7,8,7,6,7,5,6,7,5,6,6,6,7,8,8,7,8,9,9,8,10,11,10,12,14,15,14,17,17,18,18,18,19,20,19,19,20,22,20,22,24,23,23,25,25,25,24,24,24,22,23,20,20,21,23,21,20,24,23,23,22,24,25,25,26,26,27,27,27,27,27,27,27,27,27,27,27,25,27,25,28,26,26,27,24,27,26,26,27,25,27,27,23,25,26,24,24,25,24,24,23,22,21,19,16,14,12,9,7,7,5,6,5,4,4,4,4,4,3,4,3,3,3,3,2,2,2,3,2,2,3,2,2,2,3,3,4,3,4,4,3,3,3,2,1,1,1,0,1,1,2,2,1,2,2,2,3,3,3,3,4,4,4,4,4,5,6,7,5,6,7,8,6,7,7,7,7,7,8,8,8,8,9,10,10,10,11,9,10,9,10,10,11,10,11,11,10,10,10,11,11,10,10,12,10,11,12,11,10,11,11,12,10,11,11,12,12,11,14,11,12,11,11,12,13,15,15,14,15,14,14,14,14,15,15,14,15,15,16,18,17,17,16,17,18,17,18,17,16,16,18,17,16,15,16,16,14,15,14,14,13,13,13,13,11,11,11,12,10,10,11,10,10,10,10,9,9,9,10,8,8,9,9,9,9,9,9,9,9,9,9,9,10,10,11,11,10,10,10,11,10,12,11,10,11,12,11,10,11,11,11,13,11,12,12,12,15,14,14,15,17,17,16,16,16,16,16,17,18,17,18,17,18,17,18,19,17,17,17,16,16,17,15,14,15,14,13,12,12,11,11,11,11,11,10,11,11,10,9,9,10,9,9,9,8,7,8,8,7,7,7,7,9,8,7,8,8,8,8,10,10,10,9,9,9,9,10,9,10,11,9,11,10,10,10,9,8,9,8,8,8,9,8,7,7,8,6,6,7,7,6,8,8,8,7,9,9,6,7,9,8,7,8,8,6,7,7,7,6,6,7,6,5,4,4,4,4,4,5,6,5,5,6,6,6,8,9,7,9,9,10,9,7,9,9,7,9,8,9,8,9,10,8,9,10,9,9,9,10,10,9,10,11,12,13,12,12,12,14,12,13,14,14,15,16,16,18,20,21,20,18,20,21,21,23,22,24,23,22,26,25,23,23,24,23,23,24,24,22,21,24,24,20,19,24,24,23,24,22,22,23,23,22,21,23,21],[28,28,28,28,28,28,28,28,28,27,26,26,27,27,27,27,27,26,27,26,26,26,26,26,26,27,27,27,27,27,25,28,28,28,27,28,28,28,28,28,27,27,26,27,27,27,27,26,25,25,25,24,24,24,22,21,21,22,20,18,17,15,14,13,12,11,10,11,11,10,10,10,10,10,11,12,12,12,14,12,14,15,13,15,14,15,16,15,16,17,16,16,17,16,18,16,16,16,17,17,17,18,17,16,17,18,18,17,18,19,20,18,17,17,17,17,16,18,16,17,18,16,15,16,17,16,14,17,16,15,16,17,16,15,16,16,17,16,16,17,15,16,18,17,16,16,16,16,16,17,17,17,17,15,16,16,16,16,16,15,16,16,14,14,16,14,14,15,16,14,14,15,14,14,14,16,14,14,15,14,16,15,14,14,15,14,13,15,15,14,13,15,15,14,14,14,17,15,14,15,16,15,15,15,15,15,17,15,15,17,17,14,14,17,16,15,15,16,15,15,15,16,14,14,15,15,14,14,14,13,11,12,11,12,12,13,13,13,12,13,13,11,11,13,12,12,12,13,12,11,12,12,12,12,12,13,13,14,13,13,11,12,11,13,12,13,13,12,12,12,13,13,13,13,13,13,13,14,14,14,13,13,13,13,13,13,13,13,13,12,11,11,12,12,12,11,11,11,10,9,9,8,9,8,7,7,8,6,6,7,7,6,8,7,6,6,5,5,7,6,5,6,7,7,8,8,7,8,8,8,8,9,9,8,11,11,12,13,15,15,17,16,15,19,18,17,19,20,18,17,20,22,21,20,24,23,23,22,23,22,21,21,20,20,21,21,21,20,22,22,22,22,22,23,24,24,25,25,26,26,25,26,25,25,25,25,25,25,24,25,24,25,24,23,25,22,25,24,23,25,23,24,26,22,24,25,23,23,24,22,23,22,21,18,17,15,13,12,9,7,6,5,7,5,4,4,4,4,4,4,4,3,3,3,3,3,2,2,3,2,2,2,2,2,2,3,3,3,3,4,4,3,3,3,3,2,2,1,1,0,1,1,1,1,2,2,2,2,2,3,3,3,3,4,4,5,5,7,6,5,6,7,6,6,6,7,6,7,8,7,7,8,9,10,10,9,10,10,9,9,9,9,10,10,10,10,10,11,10,10,10,11,10,11,10,11,10,10,11,10,10,11,11,10,11,11,12,12,12,12,12,12,11,10,11,13,15,13,13,14,13,13,13,15,15,14,15,16,15,15,16,15,14,15,17,18,16,17,17,14,14,16,15,14,15,15,14,15,13,13,12,13,14,13,12,12,12,11,11,10,11,10,10,9,9,8,7,8,8,7,8,7,7,7,7,8,8,8,8,8,8,8,9,9,8,8,9,9,9,8,9,9,10,9,9,10,10,9,10,10,10,10,12,11,11,12,12,13,13,15,15,16,16,15,16,15,15,15,15,17,16,16,15,17,15,16,17,16,16,16,16,16,15,15,15,14,14,13,12,11,11,11,11,11,11,11,10,10,10,9,9,9,8,8,8,7,7,7,7,6,6,6,6,7,6,6,7,7,8,7,8,7,8,7,7,8,8,8,8,9,9,8,9,9,9,8,8,8,8,8,7,7,7,7,6,6,6,5,6,6,6,6,6,6,7,6,8,8,6,7,8,7,8,7,7,6,6,7,6,5,7,6,6,5,4,4,4,4,5,5,5,6,5,6,6,6,8,8,7,8,8,9,7,7,8,7,7,7,7,7,7,7,8,8,7,8,8,8,9,9,9,9,9,10,11,12,11,12,12,13,12,12,14,13,13,17,15,18,19,20,20,17,19,19,19,22,19,22,21,21,25,24,22,23,23,22,22,24,23,23,21,24,22,20,18,22,22,19,21,20,19,21,20,18,18,19,19],[28,28,27,27,28,28,27,27,27,25,25,25,26,26,26,26,26,25,25,26,26,26,26,27,26,26,26,26,26,27,26,26,27,27,25,27,27,27,27,27,27,27,27,26,27,26,26,24,25,23,24,24,23,23,24,22,21,22,21,18,16,16,14,12,11,10,10,10,9,10,9,9,8,8,10,10,11,12,13,11,11,13,13,11,13,15,14,14,16,16,15,17,17,16,17,16,17,17,17,17,17,17,17,17,17,19,19,18,17,20,19,20,19,18,18,18,17,18,16,17,18,16,15,17,16,16,15,18,17,15,16,19,16,15,16,17,16,16,15,17,17,16,18,17,16,17,17,16,16,16,16,15,16,14,17,17,17,16,16,17,14,14,13,14,15,12,13,16,14,13,14,16,13,13,15,15,13,15,15,14,15,13,14,14,15,13,14,15,14,14,14,15,13,14,15,15,15,15,14,15,16,14,14,15,15,15,15,14,15,17,17,15,14,17,16,15,16,16,16,13,15,15,14,12,14,13,11,11,12,12,10,10,10,11,9,11,12,12,10,13,13,11,11,13,10,10,11,12,10,10,11,11,9,10,11,12,13,13,12,11,10,11,10,10,12,11,10,12,13,11,12,12,13,11,13,13,13,13,14,15,12,15,12,13,13,13,11,11,11,11,10,10,11,10,9,9,10,9,8,8,8,7,8,7,6,7,7,5,5,6,7,6,6,6,5,6,5,5,5,5,5,5,6,5,7,6,6,7,7,7,7,8,8,8,9,11,12,13,15,15,17,14,15,18,17,17,18,20,17,17,20,21,19,18,23,21,22,21,22,21,19,20,18,19,20,20,19,20,20,19,22,20,24,22,23,22,24,24,25,25,24,25,25,25,25,25,25,25,24,25,24,24,24,23,25,23,25,23,23,25,22,24,25,22,25,25,23,23,23,22,21,21,20,18,18,16,13,14,9,6,6,5,5,4,4,3,3,3,3,3,4,3,3,3,3,2,3,3,3,2,2,3,3,2,3,3,4,4,4,4,4,4,4,3,3,3,2,2,1,1,0,1,1,1,1,1,2,2,2,2,2,2,3,3,3,4,4,5,5,4,5,6,6,5,6,6,6,6,7,7,8,8,9,10,9,9,9,10,8,8,8,8,9,8,9,8,8,9,9,9,10,9,9,9,10,10,9,9,10,9,8,9,10,9,9,10,11,9,10,11,11,10,10,10,11,11,13,12,13,12,12,12,13,12,14,13,13,14,14,16,16,15,15,15,16,16,15,16,15,14,14,15,15,14,14,14,13,13,13,13,13,10,12,12,10,10,10,10,9,8,9,9,9,8,9,7,7,8,8,7,6,7,7,7,7,8,7,6,8,8,7,8,9,8,8,8,9,9,8,8,8,9,9,8,9,9,9,9,10,9,9,9,11,11,10,10,12,12,12,13,14,14,15,15,13,14,14,15,15,17,15,18,15,17,15,16,17,16,15,16,16,16,14,14,13,12,12,11,10,9,11,10,11,10,9,9,9,9,9,8,8,8,7,7,7,7,6,7,7,6,5,6,6,7,6,7,7,7,7,7,8,8,8,7,7,8,8,8,8,9,8,8,8,9,8,8,7,7,8,8,6,7,7,7,6,6,7,5,6,6,6,6,6,7,7,7,7,7,6,7,7,7,7,7,7,7,6,6,6,5,6,5,5,4,4,4,4,4,4,5,5,5,5,6,6,6,7,8,7,8,7,8,8,6,7,7,6,7,7,6,6,8,8,7,8,8,8,8,9,9,9,8,9,10,10,11,11,11,11,13,11,12,13,12,14,16,15,16,19,22,20,18,20,20,19,23,21,21,24,22,24,24,23,24,25,25,24,25,25,24,24,26,23,20,20,24,24,21,22,20,20,21,19,20,18,21,20],[29,28,28,28,28,29,28,28,28,28,27,27,28,27,27,28,27,26,27,27,27,27,27,28,27,27,28,27,27,28,26,28,28,29,27,28,28,27,29,28,28,27,27,28,28,27,27,26,26,25,25,24,24,24,23,22,21,22,19,18,18,16,13,12,11,10,10,9,9,9,8,7,8,8,9,9,10,10,11,10,10,12,12,11,12,14,14,14,15,15,16,16,15,15,16,16,16,16,17,16,17,18,17,17,17,18,18,18,17,18,18,18,17,18,16,17,16,17,15,15,16,15,14,16,16,15,14,17,17,14,16,17,15,15,16,16,17,16,16,16,15,15,17,16,16,15,17,16,14,16,16,14,15,13,15,16,15,15,15,15,14,13,11,13,13,12,12,14,13,12,13,14,12,12,13,14,12,13,14,12,14,11,13,14,13,12,13,14,13,14,13,15,13,14,14,15,16,17,14,15,16,16,15,15,16,15,16,15,15,16,16,15,14,16,15,14,14,14,14,12,14,14,12,11,13,12,10,10,11,11,9,10,9,10,10,11,10,11,10,12,11,9,10,12,10,9,11,11,9,9,11,10,9,10,10,12,13,13,11,10,9,10,9,10,12,10,9,11,12,9,10,12,12,11,12,12,12,13,13,13,12,14,10,10,12,11,8,9,10,9,8,9,9,8,8,9,9,8,8,7,6,6,7,6,5,6,6,5,5,6,6,4,5,6,5,5,4,5,5,4,5,5,5,5,6,6,5,6,6,7,7,7,8,8,11,12,14,15,15,17,18,17,18,18,18,19,20,20,19,19,22,23,21,21,25,24,25,24,24,25,21,23,21,22,22,23,22,21,23,24,22,25,25,24,25,25,26,26,27,27,27,27,26,26,26,27,26,26,26,25,25,26,25,25,26,23,27,25,25,26,25,26,27,23,25,26,25,25,25,24,25,24,21,20,18,17,16,14,11,7,6,5,5,4,4,3,3,2,3,3,3,2,2,3,2,2,2,2,2,2,2,3,3,2,3,4,4,4,4,4,4,3,3,3,3,2,2,2,2,1,1,0,1,1,1,1,1,1,2,2,2,2,3,3,3,3,4,5,5,4,4,5,4,4,5,6,5,6,7,7,7,8,9,10,10,8,9,9,7,8,8,8,8,8,8,8,7,9,8,7,9,9,8,8,9,10,7,7,9,8,7,8,9,8,7,10,10,8,9,11,9,8,9,9,10,11,13,13,11,12,11,11,13,11,13,13,13,13,14,16,16,16,15,16,17,18,17,16,16,14,14,15,14,14,13,13,12,11,11,11,10,9,10,10,8,8,9,8,7,7,8,7,7,7,7,6,6,7,7,5,6,7,6,5,6,7,6,6,7,7,6,6,7,6,6,7,8,7,7,6,7,8,7,7,8,8,8,8,9,9,8,9,10,9,9,10,10,11,11,12,13,13,15,14,13,14,13,14,16,16,15,15,15,16,15,16,16,16,16,15,15,13,13,14,12,12,12,11,11,10,10,9,9,8,9,8,8,8,7,7,6,6,6,6,6,5,5,6,5,4,4,5,5,6,5,5,6,6,6,6,7,7,7,6,6,7,7,6,7,7,7,7,8,7,8,7,6,6,6,6,5,6,5,5,4,5,6,4,4,5,5,5,5,6,6,6,7,6,5,6,7,6,7,7,6,5,7,6,5,5,6,5,4,4,3,4,3,3,4,4,5,5,5,6,6,6,7,7,7,7,7,9,7,6,7,7,5,6,6,6,5,6,7,6,6,7,7,7,8,8,8,8,8,9,10,11,11,12,12,13,12,12,14,14,15,16,16,19,19,20,20,20,20,20,20,22,22,22,23,22,24,24,25,23,24,23,25,24,24,24,23,25,23,22,22,23,23,23,22,21,20,21,20,19,20,21,18],[29,29,29,29,30,30,29,29,29,29,28,28,28,28,28,28,28,28,27,28,28,27,28,28,27,28,28,28,28,28,27,29,29,29,28,29,29,29,29,28,29,28,28,28,28,28,27,26,26,26,25,25,24,24,23,22,21,21,20,19,17,16,13,11,11,9,9,9,8,8,8,7,7,6,8,8,9,9,10,9,9,10,10,10,10,12,12,12,13,13,14,14,14,14,15,15,14,14,15,15,15,16,15,16,16,17,17,16,16,17,17,16,16,17,15,16,15,14,13,14,15,13,12,14,15,14,12,15,15,13,14,15,13,13,14,14,15,15,15,15,15,14,15,15,14,14,15,14,13,14,14,12,13,11,13,13,15,15,13,13,12,12,11,12,12,11,11,12,12,11,11,12,11,11,12,12,11,11,12,11,12,10,11,12,12,10,11,12,12,11,11,13,11,12,12,13,14,14,13,14,14,13,13,14,14,13,14,13,13,13,15,14,12,14,14,12,13,13,12,11,12,12,12,10,11,11,9,9,10,9,8,8,8,9,9,10,10,10,9,10,10,9,9,10,9,8,9,9,8,8,9,9,8,8,9,10,11,11,10,8,8,9,8,8,10,9,8,9,10,9,9,10,10,9,10,10,11,11,11,12,10,11,9,10,10,9,8,9,9,8,8,8,8,7,7,7,7,7,6,6,5,6,6,6,5,5,5,4,5,5,5,4,5,5,4,4,3,4,4,4,5,4,5,5,5,6,5,6,6,7,6,7,8,8,9,10,12,12,15,15,16,15,16,17,17,17,18,18,18,18,20,22,22,21,24,24,24,22,24,22,21,21,21,20,20,22,22,21,22,23,23,22,24,24,26,25,25,26,27,27,26,27,27,27,27,27,26,26,26,26,26,27,26,25,26,24,26,26,26,27,25,26,27,25,25,26,25,24,24,23,23,21,22,19,18,15,13,13,10,7,6,4,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,3,4,3,3,2,2,2,2,2,2,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,3,3,4,4,4,4,4,5,4,5,5,5,5,6,6,6,7,7,8,8,7,8,8,6,7,7,7,7,7,7,7,6,7,7,7,7,7,8,8,7,7,7,8,8,7,7,8,8,8,8,8,8,8,8,9,8,8,8,8,8,10,11,11,11,11,10,10,11,10,11,11,11,11,13,13,14,14,14,13,14,14,14,14,14,12,12,13,12,12,11,11,11,10,10,10,10,9,9,9,8,8,7,8,7,6,7,7,6,6,6,6,5,6,6,5,5,6,5,5,5,6,6,6,6,6,6,6,7,7,6,7,7,7,6,6,7,7,7,7,8,7,7,8,8,8,8,8,9,8,9,9,9,10,10,10,12,11,13,12,12,12,12,12,13,14,12,13,14,15,13,15,15,13,14,13,14,13,12,12,11,11,10,10,9,9,9,8,8,8,8,7,7,7,7,6,6,6,6,6,6,5,5,5,5,4,5,5,5,6,5,5,6,6,6,6,7,7,7,6,6,7,7,7,6,7,7,7,7,7,7,7,7,6,6,6,5,5,6,5,5,5,6,4,5,5,5,5,5,6,5,5,6,6,5,5,7,6,6,6,5,5,6,5,5,4,5,5,4,4,3,3,3,3,3,4,4,4,4,5,5,5,7,7,6,8,7,8,7,5,7,6,5,6,6,6,5,6,6,6,6,7,6,6,7,7,6,7,7,8,9,10,11,11,11,13,11,12,13,13,13,16,16,17,19,20,20,18,20,21,20,24,21,23,23,22,26,24,24,25,24,23,24,25,24,23,23,24,23,21,21,22,24,21,23,22,21,23,22,21,20,22,20],[28,28,28,28,28,28,28,28,28,26,27,26,27,26,26,27,26,27,26,26,27,26,26,27,26,26,27,26,26,26,26,27,28,28,27,28,27,26,28,27,28,27,27,27,27,27,26,25,25,23,24,23,23,23,22,22,20,20,20,17,15,14,11,10,9,8,8,8,7,8,7,7,6,6,7,8,8,8,9,9,10,10,10,10,10,11,11,12,12,12,12,13,12,12,13,12,13,13,13,13,14,14,14,14,14,15,15,15,15,16,16,15,14,15,13,14,13,13,13,12,14,11,12,13,14,13,12,14,13,12,13,14,12,12,13,14,13,13,13,14,13,12,14,13,13,12,13,12,12,13,12,11,11,11,12,12,13,14,12,13,12,11,9,12,11,10,10,12,11,10,11,12,10,10,11,11,10,11,11,10,11,10,10,11,11,10,11,11,10,10,11,12,10,11,11,12,13,12,11,13,13,12,12,13,13,12,13,11,12,12,13,12,11,13,12,10,12,12,11,10,11,11,10,10,10,10,8,9,9,8,8,8,8,8,8,9,9,9,8,9,9,9,8,9,8,8,8,9,8,7,9,8,8,7,8,9,10,10,9,8,8,8,8,8,9,9,8,8,10,8,8,10,9,8,9,9,10,10,10,11,10,10,9,10,10,9,8,9,9,8,8,8,8,7,7,7,7,7,6,6,6,5,5,6,4,5,5,4,4,5,4,4,4,4,4,4,3,3,3,4,3,4,4,4,5,5,4,5,6,5,6,6,8,8,9,10,12,10,14,13,16,14,14,16,15,15,16,17,17,17,18,20,21,20,22,22,22,21,23,21,18,20,19,19,19,19,20,19,21,21,21,22,25,23,24,24,25,26,26,26,26,26,26,26,26,25,26,25,24,25,24,25,25,24,25,23,26,24,24,26,22,25,26,24,25,25,24,24,23,23,23,20,21,18,17,14,12,13,8,6,5,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,3,3,4,4,4,4,4,4,4,4,5,4,4,5,6,5,6,7,7,8,7,7,8,6,7,6,6,6,6,6,7,6,7,7,7,7,7,8,7,7,8,7,7,7,7,7,8,8,8,7,8,8,8,8,9,8,8,8,8,8,10,11,11,10,10,10,9,10,9,11,10,11,11,11,12,13,13,12,13,13,13,12,13,13,12,11,12,11,10,11,12,10,10,10,10,9,9,9,9,8,8,8,8,7,7,7,7,6,6,6,6,5,5,5,5,4,5,5,4,5,5,6,5,6,6,6,6,7,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,7,8,8,8,8,9,10,9,9,11,11,12,11,11,11,11,11,12,13,12,13,13,13,13,14,14,13,12,12,13,12,12,12,11,10,10,8,8,8,8,8,8,8,8,7,7,7,7,6,6,6,6,5,6,5,5,5,5,4,4,4,4,5,5,5,6,6,6,6,6,6,6,6,6,6,7,6,6,7,7,7,7,7,7,6,6,5,6,6,5,5,6,5,4,5,5,4,4,5,5,4,5,5,5,5,6,6,5,5,6,6,6,6,6,6,5,5,5,4,4,4,4,3,3,3,2,3,3,3,4,4,4,5,4,5,6,6,5,6,6,7,6,5,6,5,5,5,6,5,5,6,6,5,6,6,6,6,6,7,6,6,7,7,8,9,9,9,10,11,10,10,11,12,12,15,14,17,18,19,19,17,17,19,17,22,19,21,21,20,23,22,23,22,22,22,21,24,22,23,20,24,22,19,20,23,22,21,23,21,20,20,23,20,19,21,19],[29,28,28,28,29,29,28,29,28,27,27,26,28,27,27,27,27,28,26,27,27,27,27,28,27,27,28,27,27,28,26,27,29,29,28,28,28,28,29,28,29,27,27,27,28,28,27,26,26,25,24,24,24,23,22,21,20,21,18,18,15,14,12,11,9,9,8,8,7,7,7,7,6,6,8,8,8,9,10,9,9,10,10,9,10,12,12,12,13,13,14,14,14,14,14,14,14,15,16,14,16,16,16,15,15,16,16,15,15,17,17,16,15,16,13,15,14,14,13,13,15,13,13,14,14,13,13,15,14,13,14,15,13,13,13,14,15,15,15,15,15,15,15,15,14,14,14,14,12,13,14,12,13,11,14,14,14,14,12,13,13,11,11,12,12,10,11,13,11,11,11,12,10,10,11,12,10,11,12,11,12,10,11,12,12,10,11,12,12,11,11,13,11,12,12,13,14,14,12,14,15,13,13,13,14,13,14,12,13,13,15,13,11,15,13,12,13,13,12,10,11,12,10,9,10,10,9,9,9,9,8,8,8,9,10,10,9,10,9,11,10,9,9,10,9,8,9,10,8,9,10,9,8,9,9,10,11,11,10,9,8,8,8,8,10,9,8,10,10,9,9,11,11,9,11,11,11,11,11,12,11,11,10,10,10,10,8,8,9,8,7,8,9,7,7,8,8,7,7,6,6,5,6,6,5,5,5,4,4,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,7,6,9,9,11,11,14,14,15,14,14,18,17,16,17,18,18,18,20,20,21,21,22,23,23,22,23,22,20,21,18,20,19,21,20,20,21,22,22,22,24,23,25,25,25,26,26,26,26,26,26,27,26,26,26,26,25,26,25,26,25,24,25,23,26,24,24,26,23,24,26,23,24,25,24,22,24,23,22,22,20,19,19,16,14,14,9,6,5,4,4,3,3,2,2,2,3,3,3,2,2,2,3,2,2,3,2,2,2,3,2,2,3,3,4,4,4,4,4,3,3,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,3,3,4,4,4,4,5,4,5,5,5,5,5,6,6,6,7,7,8,8,8,8,8,6,7,7,7,7,6,8,6,6,7,7,6,8,8,8,8,8,8,7,7,8,7,6,8,8,7,7,9,9,7,8,10,9,8,8,8,9,11,12,11,11,11,10,10,11,10,12,12,11,12,12,13,14,14,14,13,14,15,13,14,14,12,12,13,13,12,11,11,11,10,9,11,10,8,9,9,8,7,8,8,7,6,7,6,6,6,6,5,5,5,6,5,5,5,5,4,5,6,6,5,6,6,5,5,7,6,6,7,7,7,6,6,6,7,7,6,7,7,6,7,7,7,7,7,8,8,7,8,9,10,10,10,11,11,12,12,11,12,11,11,13,13,13,13,13,13,12,14,14,14,13,13,13,12,12,12,11,11,10,9,8,8,8,8,8,8,7,7,7,6,6,6,6,5,5,6,5,5,5,6,5,4,4,5,4,5,5,5,6,6,5,6,6,6,6,6,5,6,6,6,6,7,6,5,6,7,6,6,5,5,6,5,4,5,5,5,4,5,5,4,4,4,4,4,5,5,5,5,6,6,5,5,6,5,5,5,5,4,5,5,4,4,5,4,4,3,3,3,2,3,3,4,4,4,4,5,5,5,6,6,6,6,7,7,6,6,6,6,5,5,6,6,5,6,6,6,6,7,6,6,7,7,7,6,8,8,9,10,10,10,11,12,11,11,12,12,13,16,15,16,18,19,19,18,18,19,18,21,20,21,22,20,24,24,25,22,24,24,23,23,23,25,22,24,23,21,21,22,22,22,20,20,21,21,21,20,19,20,20],[29,29,29,29,29,29,29,29,28,27,27,27,28,27,27,27,28,28,27,28,27,26,27,28,27,27,28,27,28,29,27,28,29,29,27,29,28,28,29,29,29,28,28,28,28,28,27,25,27,25,24,24,24,24,23,22,21,20,18,18,15,14,11,10,9,8,7,7,7,7,6,6,6,6,7,7,7,8,9,8,7,9,9,7,9,10,10,11,11,11,13,13,13,13,13,14,12,13,15,14,15,15,14,14,16,16,16,15,15,16,15,15,14,15,13,14,13,12,12,13,14,11,11,12,14,12,11,14,15,12,13,14,12,12,13,14,15,15,14,14,13,13,15,14,13,13,14,13,12,13,13,10,11,10,12,13,12,13,12,12,10,10,10,11,10,9,9,11,10,9,10,10,9,9,11,11,9,10,11,10,11,9,10,12,10,9,11,11,10,10,10,11,9,11,12,13,14,14,11,13,13,13,12,13,13,12,13,12,12,12,14,12,10,13,12,10,11,12,11,9,10,11,9,8,9,9,8,7,8,8,7,7,7,8,9,8,9,9,8,9,9,8,8,9,8,8,8,8,8,8,8,8,7,7,8,9,10,10,8,7,7,8,7,7,8,8,7,8,9,7,8,9,9,8,9,10,10,10,10,10,9,10,8,8,9,8,7,7,8,7,7,7,7,6,6,7,6,6,6,5,5,5,5,5,4,5,5,4,4,4,4,3,4,4,4,4,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,8,10,11,12,13,15,15,15,16,17,16,17,18,19,18,17,21,21,21,21,23,23,24,23,24,21,20,22,20,19,20,22,21,19,21,23,22,23,25,24,26,26,26,27,27,27,26,26,26,27,26,27,26,26,26,27,25,26,26,25,26,23,26,25,25,27,24,26,27,22,24,26,25,23,24,22,23,21,20,18,17,14,14,12,9,6,5,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,4,3,4,4,4,4,4,5,5,5,6,7,7,7,6,7,7,5,6,6,6,6,6,6,6,5,7,6,6,7,7,6,6,7,7,6,6,7,7,6,6,7,7,6,7,7,7,7,8,7,7,7,7,8,9,10,11,10,9,9,9,10,9,10,10,9,10,11,13,13,14,13,13,14,13,13,13,12,11,11,12,11,10,9,9,10,9,9,8,8,7,8,7,7,7,7,6,6,6,6,6,5,5,5,5,4,5,5,4,4,5,4,4,4,5,5,5,5,6,5,5,6,6,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,7,8,8,9,8,9,10,10,12,11,9,11,10,10,12,13,12,12,13,13,11,13,12,12,12,11,12,11,10,10,10,9,9,8,8,8,8,8,7,7,7,6,6,6,5,5,6,5,5,5,5,4,4,5,4,3,4,4,4,5,5,4,5,5,5,5,6,6,7,6,5,6,6,5,6,6,6,5,6,6,6,6,5,5,5,5,5,5,5,4,4,4,5,4,4,4,4,5,4,5,5,5,6,5,4,5,6,5,5,5,5,5,4,5,4,5,4,4,4,3,3,3,2,3,3,3,4,4,4,5,5,5,6,6,6,7,6,7,6,5,6,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,8,9,9,10,10,11,11,10,11,13,13,14,15,17,19,20,19,18,20,20,19,23,20,22,22,20,25,23,22,23,24,23,24,24,23,23,22,23,22,19,21,22,22,20,22,22,20,21,22,19,20,22,18],[30,30,29,29,30,30,30,29,29,28,28,28,29,28,28,28,28,28,27,28,28,27,28,28,27,27,29,28,28,28,27,28,29,29,28,29,29,28,29,29,29,28,28,28,28,28,27,26,27,26,25,25,25,24,22,24,22,22,21,20,17,16,13,10,10,9,7,8,7,7,6,6,6,6,7,7,7,8,9,8,8,9,9,9,9,10,10,11,11,12,12,12,12,12,13,12,12,12,13,13,14,14,13,14,14,14,14,14,14,15,15,14,14,14,13,13,13,12,11,12,13,11,11,12,13,12,11,13,12,11,12,13,11,12,12,13,12,13,13,13,13,12,13,13,12,13,13,12,11,12,12,10,11,10,12,12,13,13,12,11,11,10,10,10,10,9,9,10,10,9,10,10,9,9,10,10,9,9,10,10,10,9,9,10,10,9,10,10,10,10,10,11,9,10,10,11,12,12,11,12,13,12,12,13,13,12,12,11,12,12,13,12,10,12,12,10,11,11,10,9,10,10,10,8,9,9,8,8,8,8,7,7,7,8,9,9,8,9,8,9,9,8,8,9,8,8,7,8,8,7,8,8,7,8,8,9,9,9,8,8,7,8,8,7,8,8,8,8,9,8,8,9,9,8,9,9,10,10,9,10,9,9,9,9,9,8,8,8,7,7,7,7,7,7,7,7,7,6,6,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,3,3,3,3,3,4,4,4,4,5,5,4,5,5,5,5,6,7,7,9,10,11,11,15,15,17,16,15,17,18,16,17,19,19,18,19,22,22,21,23,23,24,23,24,21,20,21,19,19,19,21,21,20,21,23,23,23,26,24,26,26,26,27,27,28,27,27,27,27,27,27,27,27,26,27,26,26,26,24,27,24,25,27,25,26,26,25,27,24,23,25,24,24,24,23,22,20,20,17,17,15,13,13,9,6,5,4,4,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,4,4,3,3,3,3,2,3,3,3,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,2,2,2,2,3,3,4,3,3,4,4,4,4,5,4,4,5,6,5,6,7,8,7,7,8,7,6,6,6,6,6,6,6,6,6,7,7,6,7,7,7,7,7,7,7,7,7,7,6,8,7,7,7,8,8,7,8,8,8,8,8,8,8,10,11,11,10,10,10,9,9,9,10,10,10,10,11,12,13,13,12,12,13,12,12,13,12,11,11,12,11,10,10,10,10,9,9,9,9,8,8,8,8,7,7,7,7,6,6,6,6,5,5,5,5,5,5,4,4,5,4,4,5,5,5,5,6,6,6,5,6,6,6,6,7,7,7,6,6,7,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,9,9,9,10,10,11,11,10,10,10,10,11,12,11,12,12,13,12,13,13,12,12,12,12,12,12,11,11,10,9,9,8,8,8,8,8,7,7,6,7,7,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,5,5,5,5,5,6,6,6,7,6,6,6,6,6,6,6,7,6,6,7,7,6,6,5,5,5,5,5,5,5,5,4,5,5,4,4,5,5,4,5,5,5,5,5,6,5,5,6,5,5,5,5,5,4,5,4,4,4,4,3,3,3,3,2,2,3,3,4,4,4,4,5,5,6,6,6,7,7,7,6,5,6,6,5,5,6,5,5,6,6,5,6,6,6,5,6,7,6,6,6,7,8,10,10,10,10,11,11,11,12,12,13,14,14,16,18,18,17,17,18,18,17,21,19,21,21,20,23,23,22,22,23,22,23,23,23,21,22,23,22,19,20,23,22,21,23,20,21,22,22,21,20,21,20],[28,28,28,28,28,28,27,28,28,26,26,26,27,26,26,26,26,27,26,26,27,26,26,27,26,26,27,27,27,27,26,27,27,28,27,28,27,27,28,28,28,27,26,27,28,27,26,25,26,24,24,24,23,23,22,21,20,22,20,18,16,14,12,10,9,8,7,7,6,7,6,6,5,6,7,7,7,8,8,8,8,9,9,8,9,10,10,11,11,11,11,11,11,12,12,11,11,12,12,12,13,13,13,12,13,13,13,13,13,14,14,13,13,14,12,13,11,12,12,12,12,11,11,12,12,12,11,12,11,10,11,12,11,11,11,13,12,12,12,12,12,12,13,12,12,12,12,12,11,11,11,10,11,10,12,12,12,12,11,11,10,10,10,10,10,9,10,10,10,9,9,9,10,9,10,10,10,10,10,10,10,10,9,10,10,9,10,10,9,10,10,11,9,10,10,12,12,12,11,12,12,12,11,12,12,12,12,11,11,12,12,11,10,12,11,10,11,11,10,9,10,10,9,9,9,9,9,8,8,8,7,7,7,8,8,9,8,9,9,9,9,8,8,8,8,8,8,8,8,8,8,8,7,8,8,8,9,9,8,7,7,8,8,7,8,8,8,8,8,8,8,9,9,9,9,9,9,10,10,10,9,9,9,9,9,9,8,8,8,8,8,7,8,7,6,7,7,6,5,5,5,5,5,5,4,4,5,3,4,4,4,4,4,4,4,4,3,3,3,3,3,4,4,4,4,4,4,4,5,4,4,5,7,7,8,10,11,10,14,16,16,14,14,17,16,14,17,18,17,17,20,20,20,19,21,21,22,21,22,21,19,20,19,19,19,20,21,19,20,22,21,22,26,23,24,23,25,26,26,26,25,26,25,26,26,25,26,25,25,26,24,25,24,24,25,22,25,24,24,26,23,24,26,23,24,24,24,23,23,22,22,21,20,18,16,15,13,13,9,6,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,4,4,3,3,3,2,2,2,2,2,3,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,2,2,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,6,6,7,7,7,7,7,6,6,6,6,6,6,6,6,6,7,7,6,7,7,7,7,7,7,7,7,7,7,6,7,8,7,7,8,8,7,8,8,8,8,8,8,8,9,11,10,10,10,9,9,9,10,10,9,10,10,11,12,12,12,12,13,13,12,12,12,11,11,11,12,11,10,10,10,10,9,9,9,9,8,8,9,8,7,7,8,6,6,7,6,5,5,6,5,4,5,5,4,4,5,4,4,5,5,5,5,6,6,5,5,6,6,5,6,7,6,7,6,6,7,7,6,7,7,7,7,7,7,7,7,7,8,7,8,8,8,8,9,10,10,11,10,10,10,10,10,11,12,11,11,11,12,12,12,12,12,11,12,12,11,11,11,10,10,9,8,8,7,8,7,7,7,6,6,7,7,6,6,6,5,5,6,5,4,4,5,5,4,4,4,4,5,5,5,5,6,5,5,6,6,6,6,6,6,6,5,6,6,7,5,6,6,6,5,5,5,5,5,4,5,5,5,4,5,5,4,4,4,5,5,5,5,5,6,5,6,5,5,6,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,2,3,3,3,4,4,4,5,5,5,6,6,5,6,6,7,6,5,6,5,5,5,6,5,5,6,6,5,6,6,6,6,6,6,6,6,7,7,7,9,9,9,10,11,10,10,11,12,13,15,14,15,18,18,17,16,19,18,17,21,19,21,21,20,24,23,22,23,24,23,22,24,24,24,21,22,23,21,20,22,22,21,22,20,20,21,22,20,19,20,19],[28,28,28,28,28,29,28,29,28,27,27,26,27,26,26,27,27,27,26,27,27,26,27,27,26,27,27,27,27,28,26,28,28,29,27,28,27,28,28,28,29,28,27,28,28,28,27,25,26,25,24,25,24,23,22,22,20,20,18,18,15,14,11,9,9,7,6,7,6,6,6,5,5,5,6,7,7,8,8,8,7,8,8,7,8,10,9,10,11,10,11,11,11,11,12,11,12,12,12,12,12,12,12,13,13,13,13,13,13,13,14,13,12,12,12,12,12,11,11,11,12,10,10,12,12,11,11,12,12,10,11,12,11,11,12,12,12,13,12,13,12,12,13,12,11,11,12,11,10,11,11,9,10,9,11,11,11,11,10,11,10,9,9,9,10,9,9,10,10,9,9,10,9,9,10,10,9,9,10,9,10,8,9,10,9,9,10,10,9,10,10,10,9,10,11,12,12,12,11,12,13,12,12,12,13,12,12,11,11,11,12,11,10,12,11,10,10,11,10,8,9,10,8,8,9,8,8,7,8,8,7,7,7,8,8,8,8,9,8,9,9,8,8,9,8,7,8,8,7,7,7,7,7,8,7,8,9,9,8,7,7,7,7,7,8,7,6,8,8,7,8,9,8,7,8,9,9,10,9,10,9,9,8,7,8,8,7,7,7,7,6,6,7,6,6,7,6,5,5,5,4,5,5,4,4,4,4,4,4,4,4,3,4,4,4,4,3,3,4,3,3,4,4,4,4,5,4,4,4,5,5,5,6,5,7,9,11,12,13,15,16,15,15,17,16,16,17,18,17,17,19,21,20,21,22,21,24,21,22,21,19,22,20,17,20,22,22,21,21,23,23,24,26,23,26,26,25,26,27,27,27,27,27,27,27,27,27,27,26,27,26,26,26,25,26,23,26,26,25,27,24,26,27,24,25,26,25,24,25,22,23,23,20,18,17,15,13,13,9,6,4,3,4,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,4,4,3,4,3,2,2,2,2,3,3,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,2,2,2,3,3,3,3,4,3,4,4,4,4,5,5,5,6,7,7,7,7,7,7,7,5,6,6,6,6,5,6,5,5,6,6,5,6,7,6,6,7,7,5,6,7,6,5,6,7,6,6,7,7,6,7,8,7,7,7,7,8,9,10,11,10,9,8,8,9,8,10,10,9,10,11,12,11,11,12,12,13,11,12,11,11,10,10,11,10,10,10,9,9,8,8,8,7,7,7,7,6,6,6,6,5,5,6,5,5,5,5,4,4,5,5,4,4,5,4,4,4,5,4,4,5,5,5,4,5,5,5,5,6,6,6,5,6,6,5,6,6,6,6,6,6,6,6,7,7,7,6,7,8,8,8,8,10,9,10,10,9,10,10,10,11,11,10,11,11,11,10,11,11,11,11,10,11,10,9,10,10,9,9,8,7,7,7,7,7,6,6,6,6,5,5,5,5,4,4,5,4,4,4,4,4,3,4,4,4,4,4,4,5,5,5,5,6,6,5,5,5,5,5,5,5,5,5,5,6,5,5,5,4,4,4,4,4,4,5,4,4,4,4,3,4,4,4,4,4,4,4,5,5,5,4,4,5,5,4,4,4,4,4,4,4,3,4,3,3,3,2,2,2,3,3,3,3,3,4,4,4,5,5,6,5,6,5,6,6,5,5,5,5,4,5,5,4,5,5,5,5,6,5,5,5,6,6,6,6,7,7,9,9,9,10,11,11,10,11,12,13,15,15,15,19,19,18,17,18,17,18,21,19,20,21,20,22,23,22,22,22,22,23,22,22,24,20,22,23,21,20,21,22,21,22,20,20,21,22,19,20,22,20],[29,30,29,29,29,29,29,29,28,28,28,28,28,27,28,27,28,28,27,28,28,27,27,28,27,28,28,28,28,28,27,28,29,29,28,29,29,28,29,29,29,28,28,28,28,28,27,26,27,26,25,25,25,24,22,22,21,21,20,18,16,14,11,9,8,7,7,7,6,6,6,5,5,5,6,6,7,7,7,7,7,8,8,7,8,8,8,9,10,10,10,11,11,11,11,11,11,11,12,12,11,13,12,12,13,14,14,13,14,13,14,13,12,12,11,12,11,10,10,10,11,10,9,11,12,10,10,12,11,10,10,11,9,10,11,12,11,11,12,11,11,10,11,12,10,11,11,10,10,10,10,9,9,8,10,10,11,11,10,10,9,9,9,9,9,8,8,9,9,8,8,9,8,8,9,9,8,8,9,8,9,8,8,9,9,8,8,9,8,8,9,9,8,9,9,10,11,11,9,11,11,10,10,11,11,11,11,10,10,10,11,10,8,10,10,9,9,9,9,7,8,9,8,7,8,7,7,7,7,7,6,7,7,7,8,7,7,8,7,8,8,8,7,7,7,6,7,7,6,6,7,7,6,6,7,7,8,8,7,6,6,7,6,6,7,7,6,6,7,7,7,7,8,7,7,8,8,8,8,9,8,8,7,7,7,7,6,7,6,6,6,6,6,5,5,6,5,5,5,4,4,5,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,7,6,7,10,11,11,14,16,15,14,15,17,16,15,17,18,17,18,19,21,22,21,23,23,24,22,24,21,21,22,20,19,20,22,20,20,21,24,23,24,26,25,26,26,26,27,27,26,26,27,26,27,26,27,27,27,26,27,27,27,26,25,27,25,26,27,25,26,25,26,27,25,24,26,24,24,23,23,22,21,21,18,17,15,13,12,9,6,4,3,3,2,2,2,2,1,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,3,3,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,6,6,6,6,6,5,5,5,5,5,4,5,5,5,5,5,5,5,6,5,5,6,6,5,6,6,6,5,6,6,6,6,6,6,6,6,7,7,6,7,7,7,8,9,9,9,9,8,8,8,8,8,9,8,9,10,10,11,11,10,11,12,12,11,11,11,10,10,10,9,8,8,8,8,7,7,7,7,6,7,7,6,6,6,6,5,5,5,5,4,5,4,4,4,4,4,3,3,4,3,4,4,4,3,4,5,5,4,4,5,5,5,5,6,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,6,6,7,7,8,7,8,9,9,10,9,8,9,9,9,10,10,10,10,11,11,10,11,11,11,11,10,10,10,9,9,9,8,8,7,7,7,7,7,6,6,6,6,5,6,5,5,5,4,4,4,5,4,4,4,4,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,4,5,5,4,5,5,6,5,5,5,5,6,5,4,5,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,5,5,4,4,4,4,3,4,4,3,3,3,3,3,2,2,2,2,3,3,3,4,4,4,4,4,5,5,5,6,5,6,5,4,5,5,4,4,5,4,4,5,5,4,4,5,5,4,5,5,5,5,5,6,7,8,9,9,10,11,9,10,11,13,13,14,15,16,19,18,18,17,18,18,17,21,19,20,21,20,23,22,22,22,23,21,23,23,21,21,22,22,21,19,22,23,22,20,22,22,21,22,23,19,20,21,18],[29,28,28,28,29,29,28,28,28,27,27,26,27,26,26,27,26,27,26,26,27,27,26,27,27,27,27,27,27,27,26,27,28,28,27,28,27,27,28,27,28,27,26,27,27,26,26,25,25,24,24,24,23,23,22,22,21,22,20,18,16,14,12,9,8,8,7,7,6,7,6,6,5,6,6,6,6,7,7,8,8,8,8,8,8,8,9,9,9,9,9,10,10,10,9,9,10,10,10,10,11,10,10,11,11,11,11,11,11,12,12,11,10,11,10,10,10,9,9,9,10,9,9,9,10,9,9,10,9,9,10,10,9,9,9,11,10,11,10,10,11,10,10,10,9,9,10,9,9,9,9,8,9,8,9,9,10,10,10,9,9,8,8,8,8,8,8,8,9,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,10,10,10,9,10,10,10,10,10,10,10,10,9,9,10,10,9,8,9,9,8,9,9,8,8,8,8,8,8,7,7,8,8,7,7,7,7,7,7,8,7,7,7,8,7,7,7,7,7,7,6,6,7,7,6,7,7,6,6,7,7,8,8,7,7,7,7,7,7,7,7,7,7,7,8,7,7,7,7,8,7,8,8,8,8,7,8,8,8,8,7,7,7,7,7,7,6,6,6,6,6,5,6,5,5,4,4,5,4,4,4,4,3,3,4,4,3,3,4,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,4,5,6,7,7,8,10,10,11,14,15,15,14,15,16,16,14,16,17,17,16,19,20,19,19,21,21,23,20,22,20,18,19,19,18,18,20,20,19,20,22,22,23,26,23,24,24,25,25,26,25,24,25,25,25,25,26,26,26,24,25,24,25,25,23,25,23,23,24,23,25,24,24,26,23,23,24,23,22,21,23,21,20,20,17,17,14,13,12,8,6,4,4,4,3,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,3,4,4,3,3,2,2,3,3,3,3,3,3,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,2,2,3,3,2,3,3,3,3,3,4,4,4,4,5,5,6,6,7,7,7,7,6,5,5,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,6,7,7,7,6,7,7,7,8,10,9,9,9,8,7,8,8,9,8,8,9,9,10,10,10,11,11,11,11,10,10,10,9,9,10,9,8,8,8,8,8,8,7,8,7,7,7,7,7,6,6,5,6,5,5,5,5,5,4,4,5,5,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,9,9,8,8,8,8,9,9,9,9,10,11,10,10,11,10,10,10,10,10,10,9,9,8,7,7,7,7,7,7,7,6,6,6,6,6,5,5,5,5,5,5,5,4,4,5,4,3,3,3,4,4,5,4,5,5,5,5,5,5,5,5,5,5,6,5,5,6,6,5,6,6,6,5,4,4,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,5,5,4,5,4,4,4,4,3,3,3,4,3,3,2,2,2,2,3,3,3,3,3,4,4,4,5,5,5,5,6,6,5,4,5,5,4,5,5,4,4,5,5,4,5,5,5,5,5,6,6,5,6,6,7,8,9,9,10,10,10,10,10,12,13,14,14,15,18,18,17,16,17,17,16,19,18,20,19,20,22,23,21,21,23,22,22,23,23,23,20,22,22,18,19,22,22,19,22,20,20,21,22,20,20,20,18],[27,28,27,27,27,28,27,27,27,26,26,26,27,26,26,27,26,26,26,26,26,26,26,27,26,26,27,26,26,27,26,27,27,28,26,27,27,27,27,27,27,26,26,26,27,26,26,24,25,24,24,23,23,23,22,22,20,21,20,18,16,14,11,10,9,7,6,7,6,6,5,5,5,5,6,7,7,8,8,8,8,8,8,8,9,9,9,9,10,10,10,11,11,10,11,11,10,10,12,12,11,11,12,11,11,12,12,11,11,12,13,11,11,11,10,10,10,10,10,10,10,9,10,10,10,10,10,10,10,9,10,11,9,10,11,11,12,11,11,11,11,11,11,11,10,10,11,10,9,10,10,9,9,9,10,10,10,10,10,9,10,9,9,9,9,9,9,9,9,9,9,9,9,8,9,9,9,9,9,9,9,8,8,9,9,9,9,9,9,9,9,9,9,9,10,10,11,11,10,11,11,11,11,11,12,11,11,11,11,10,11,10,9,11,11,9,10,10,9,9,8,9,9,8,8,8,8,7,8,8,7,7,7,7,8,8,8,8,8,8,8,7,8,8,7,7,7,7,7,7,7,8,6,7,8,8,8,8,8,7,7,7,7,7,8,8,7,8,8,8,8,8,8,8,8,9,8,10,9,9,8,8,8,8,8,8,8,7,8,8,7,7,7,6,6,6,6,6,5,5,4,4,5,4,4,4,4,3,4,4,4,3,4,4,4,4,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,6,6,8,10,11,11,14,16,16,14,14,17,16,15,17,19,17,17,20,21,19,21,22,20,22,20,23,20,18,19,18,18,19,20,20,19,20,21,22,22,25,24,24,24,25,26,26,26,26,26,26,27,26,26,26,26,25,26,25,26,24,25,25,23,25,24,24,26,22,24,26,24,24,24,24,22,23,21,22,21,20,18,18,14,12,12,8,7,5,4,3,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,4,3,4,4,4,4,4,4,4,3,3,2,3,3,3,4,3,3,3,2,2,2,2,2,1,1,1,1,1,0,1,1,2,2,2,3,3,3,3,4,4,4,4,5,4,4,5,6,5,6,6,6,7,7,7,7,6,6,6,6,6,5,6,6,6,7,6,6,7,7,6,7,7,7,6,6,7,7,6,7,7,7,7,7,8,7,7,8,8,7,7,7,8,9,10,10,10,10,9,8,8,9,9,9,9,9,10,11,11,11,11,11,12,12,11,11,10,10,10,10,10,9,9,9,9,8,8,8,8,7,8,8,7,6,7,7,6,6,6,6,5,5,6,5,4,5,5,4,4,5,4,4,5,6,5,5,6,6,5,6,6,6,6,6,6,6,7,5,6,7,6,6,7,7,6,7,7,7,6,7,7,8,6,7,8,8,8,8,9,9,10,10,9,9,9,9,10,10,10,10,10,11,10,11,11,11,10,11,10,9,10,10,9,9,9,8,8,7,7,7,7,7,6,6,6,6,5,6,6,5,4,6,5,4,4,5,4,3,4,4,4,5,5,5,6,6,5,6,6,6,6,6,5,6,6,5,6,6,6,5,6,6,5,5,4,4,5,5,4,4,5,4,4,4,5,4,4,4,4,5,5,5,6,6,6,6,5,6,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,2,3,3,3,4,4,4,4,5,5,5,6,6,6,6,6,7,6,5,5,5,5,5,6,5,5,6,6,5,6,6,6,5,6,6,6,6,7,7,8,8,9,9,10,11,11,10,11,12,13,14,14,15,17,17,17,16,17,17,16,19,18,19,19,19,22,21,21,22,22,22,21,23,22,22,20,22,22,19,20,21,22,20,21,20,21,20,22,20,19,19,18],[28,29,29,28,29,29,28,29,28,27,28,27,28,27,27,28,27,28,27,27,27,26,27,27,26,27,28,28,28,28,26,28,29,29,27,29,28,28,29,28,29,28,28,28,28,28,27,26,27,26,25,26,25,24,23,23,22,21,20,20,16,15,11,9,8,6,6,6,6,6,5,4,5,4,6,6,7,6,7,7,6,7,7,7,7,8,7,8,8,8,9,9,9,9,9,9,9,9,11,9,10,10,10,10,11,11,11,11,11,11,12,11,10,10,9,9,9,9,8,9,10,9,8,9,10,9,8,10,9,8,9,10,8,9,10,11,10,10,10,11,9,9,10,9,8,8,9,8,8,9,8,8,8,8,8,8,9,9,8,8,8,8,8,8,8,8,7,8,8,8,7,8,8,7,8,8,8,7,8,7,8,7,7,8,7,7,8,8,7,7,8,8,7,8,9,9,10,9,9,10,10,9,10,10,11,10,9,9,9,9,9,9,7,9,8,7,7,8,7,7,7,7,7,7,7,7,6,7,7,6,6,7,7,7,7,7,7,7,7,8,7,7,7,7,7,6,6,6,6,6,6,6,6,6,7,7,8,8,7,6,6,6,5,6,7,6,5,6,7,6,6,7,7,6,7,7,8,8,7,8,7,7,6,6,6,6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,19,18,18,17,18,17,18,20,19,20,20,21,22,22,23,22,21,22,23,22,22,24,21,22,23,19,21,23,22,21,23,22,21,22,22,19,19,21,19],[29,28,28,28,28,28,28,28,27,27,26,26,27,25,26,26,26,27,26,27,26,26,26,27,27,27,27,27,27,27,27,27,28,29,27,28,28,27,28,28,28,27,27,27,27,27,26,25,26,25,25,24,23,22,21,21,20,20,19,18,15,14,12,8,8,7,6,6,6,5,5,4,5,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,8,8,8,8,9,8,8,8,9,9,9,9,10,9,9,10,10,10,10,11,11,10,9,9,9,8,9,8,8,8,9,8,8,8,8,8,8,9,8,8,8,8,8,8,9,9,9,9,9,9,8,8,9,8,8,8,8,7,7,8,8,7,7,7,8,8,8,8,8,8,7,7,7,7,7,7,7,7,7,7,7,6,7,7,7,7,7,7,7,6,7,7,6,7,7,6,7,7,7,6,7,7,6,7,7,8,9,8,8,9,9,8,9,9,9,9,9,8,8,8,9,8,7,8,7,7,7,7,6,6,6,6,6,6,6,6,5,6,6,5,5,5,6,6,7,7,6,7,7,7,7,6,6,6,6,6,5,6,5,5,5,5,5,5,6,6,7,7,6,5,5,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,6,7,6,7,6,6,6,6,6,6,5,5,5,5,5,5,5,4,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,3,3,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,5,6,6,7,9,10,10,13,14,15,14,14,16,16,15,16,17,17,16,18,20,21,20,21,21,23,21,23,20,19,19,19,19,19,21,22,20,21,22,23,25,27,24,25,26,26,26,27,26,26,26,26,26,26,27,27,27,24,26,25,25,26,24,25,23,24,25,23,25,24,23,26,23,23,24,23,22,21,21,21,19,20,17,15,14,13,12,8,6,4,3,3,2,2,2,1,1,1,1,2,2,2,2,3,3,2,3,3,3,3,4,4,4,4,5,4,4,4,4,4,3,3,3,4,3,4,4,4,4,3,3,3,2,2,2,2,2,1,1,1,1,1,0,1,1,1,2,2,2,2,3,2,3,3,3,3,4,4,4,4,5,5,6,6,6,6,5,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,6,6,5,6,6,7,7,8,8,8,8,7,6,6,6,7,7,7,7,7,9,9,9,9,9,10,10,9,9,9,9,8,8,8,7,7,7,7,6,6,6,6,5,6,6,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,4,5,5,5,5,4,5,5,5,5,5,5,5,5,6,6,6,5,6,6,6,6,6,7,7,8,7,7,7,7,7,8,8,8,8,9,9,9,10,10,10,9,10,9,8,9,8,8,8,7,6,6,6,6,6,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,4,4,4,5,5,4,5,5,5,5,4,4,5,5,4,5,5,5,4,5,5,5,5,4,4,5,4,4,4,5,4,3,4,4,4,3,4,4,4,4,5,5,5,5,5,4,5,5,5,5,4,4,4,4,4,4,3,3,3,3,2,2,2,2,2,3,3,4,4,4,4,5,5,5,5,5,5,5,6,6,5,5,5,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,5,6,7,8,7,9,8,9,10,9,11,12,12,13,15,17,17,16,15,16,16,16,19,17,18,19,20,22,22,22,22,23,21,23,21,21,21,21,21,21,18,19,22,21,18,22,19,20,20,22,18,18,20,19],[29,29,29,28,29,29,28,29,28,27,28,27,28,27,27,27,27,28,27,27,28,26,26,28,27,27,28,28,28,28,27,27,29,29,28,29,28,28,29,28,29,28,28,28,28,28,27,26,27,26,25,25,26,23,22,24,22,21,20,19,16,15,11,10,8,7,6,6,6,5,5,4,5,4,5,5,6,6,6,6,6,6,6,6,6,7,7,7,8,8,8,9,8,8,9,8,8,8,9,9,9,9,10,9,9,10,10,9,9,11,11,9,8,9,9,9,9,9,8,8,9,8,8,8,8,8,8,9,8,8,8,8,8,8,9,10,9,9,9,9,8,8,9,8,8,7,8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,6,6,6,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,3,4,4,3,2,3,2,2,3,3,4,4,4,4,5,5,5,6,6,6,5,6,6,5,5,5,4,4,4,4,4,3,4,4,3,4,4,4,3,4,4,4,4,4,5,6,7,8,8,9,10,10,10,10,13,13,15,17,17,20,20,19,18,18,19,18,21,19,21,22,21,24,24,24,23,23,23,25,25,23,24,23,24,23,20,22,24,24,21,24,22,22,24,23,19,20,23,20],[28,28,27,28,28,28,28,27,27,26,26,25,26,25,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,26,27,28,28,27,27,27,28,27,27,27,27,27,27,27,26,26,25,24,24,24,23,23,24,21,21,21,20,19,19,16,14,12,9,8,7,6,6,5,5,5,4,4,4,5,5,5,5,5,6,5,6,6,5,6,6,6,7,7,7,8,8,7,7,8,8,7,8,9,8,8,9,10,9,9,10,10,9,9,11,11,9,8,9,8,8,8,7,8,7,8,7,7,8,8,7,7,8,7,7,7,8,7,7,8,9,8,8,8,8,7,7,8,7,7,7,7,7,7,7,7,6,7,7,7,8,8,8,7,7,7,7,7,7,6,6,6,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,6,6,7,7,8,8,7,8,9,8,8,9,9,8,8,7,7,7,7,7,6,7,7,6,6,6,6,6,6,6,5,5,6,5,5,5,5,5,4,5,5,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,4,4,4,4,4,4,5,5,6,6,5,5,4,4,4,4,5,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,5,6,6,7,10,10,10,13,14,15,14,14,16,16,15,16,17,18,17,19,21,21,21,22,23,23,21,24,20,20,20,19,19,20,21,22,21,22,23,25,26,26,25,26,27,27,26,27,27,27,27,27,27,27,27,27,27,26,27,26,26,26,25,26,24,24,25,25,26,25,24,26,23,24,24,24,23,22,23,21,20,20,17,17,16,13,13,8,6,5,4,3,3,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,5,5,6,6,6,5,5,5,4,4,3,4,4,4,5,6,4,5,5,4,4,3,3,3,3,2,2,2,2,2,2,1,1,0,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,5,5,6,6,5,4,4,3,4,3,3,3,3,3,3,3,3,3,4,4,3,4,4,3,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,6,6,7,8,8,8,7,6,6,6,6,6,7,6,6,7,8,9,9,9,9,9,9,8,9,8,8,7,8,7,7,7,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,5,5,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,9,9,8,10,9,9,9,9,9,8,8,8,8,7,7,7,6,6,6,6,5,5,5,4,5,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,4,4,5,5,4,5,5,5,4,5,5,5,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,4,5,5,5,5,5,4,4,4,4,4,3,3,3,3,2,2,3,2,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,4,4,4,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,4,5,6,7,7,8,8,8,9,9,10,12,12,14,15,17,18,15,14,16,17,15,18,16,17,19,18,19,21,19,19,21,20,21,21,20,20,20,20,19,17,19,20,20,19,20,19,18,20,22,18,16,18,18],[28,29,29,29,29,29,29,29,29,28,28,27,28,27,27,27,28,29,27,28,28,27,28,29,28,28,29,28,28,28,27,28,29,29,28,29,28,28,29,28,29,28,28,28,28,28,27,25,26,25,24,25,25,23,22,23,22,22,19,19,16,14,11,9,8,6,6,5,5,4,4,4,4,3,4,4,5,5,5,5,5,5,6,5,5,6,6,6,6,7,6,7,7,7,7,7,7,7,8,7,7,8,8,7,8,9,9,8,8,9,10,8,7,7,7,8,7,7,7,7,7,6,6,7,7,6,6,7,7,6,7,7,6,7,7,8,8,7,7,7,7,6,7,7,6,6,7,6,6,6,6,5,6,6,7,7,7,7,7,7,7,6,6,6,6,5,6,6,6,5,6,6,5,5,6,6,5,5,6,5,5,5,5,5,5,4,5,6,5,5,5,6,5,5,6,7,7,7,7,7,8,8,7,8,8,8,7,7,7,7,7,6,6,6,6,5,6,6,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,5,5,6,5,6,6,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,5,6,5,4,4,4,4,4,3,4,4,4,4,5,4,4,5,5,5,5,5,5,6,5,6,5,6,5,5,5,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,5,6,6,7,9,11,10,12,13,15,15,15,16,17,17,17,18,18,19,20,22,22,23,23,23,24,24,25,23,21,24,22,22,22,22,23,21,21,25,24,26,26,25,26,27,27,27,28,28,28,28,27,28,28,28,28,28,27,28,27,28,28,27,28,25,27,27,27,27,27,26,27,23,24,25,25,24,24,23,22,23,20,18,17,16,15,12,9,7,5,4,4,3,3,3,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,6,5,5,5,5,5,4,4,4,5,5,5,5,5,5,5,5,4,4,4,3,3,3,3,3,2,3,2,2,1,1,0,1,1,1,1,1,2,2,2,2,2,2,2,3,3,4,4,5,6,5,6,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,3,3,4,4,4,4,4,4,4,5,5,5,4,6,6,6,7,8,8,8,8,6,6,6,6,6,6,7,7,7,8,8,8,8,8,9,8,8,8,7,7,7,7,7,6,6,6,6,6,6,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,6,7,6,6,6,7,7,7,7,8,7,8,9,7,8,8,9,8,7,8,7,8,7,6,6,6,5,5,4,5,5,4,4,4,4,4,4,4,4,3,3,4,3,2,3,3,2,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,5,5,4,4,4,4,4,4,4,3,4,4,4,4,4,3,3,4,4,4,4,4,4,5,5,5,4,4,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,4,3,4,4,4,4,4,5,5,5,5,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,4,5,6,7,7,8,9,9,9,9,11,11,13,15,17,20,19,17,16,17,18,17,22,18,21,21,21,25,24,23,22,23,22,24,24,23,22,22,23,22,19,21,22,22,20,23,20,21,21,23,18,17,21,19],[28,28,28,28,28,29,28,28,28,26,27,26,27,26,27,26,26,27,26,27,27,26,27,28,27,27,28,28,27,27,26,27,28,28,27,27,28,27,28,28,28,28,27,27,28,26,25,25,26,25,25,25,24,23,22,22,20,21,20,19,16,14,11,8,7,6,5,5,4,4,4,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,7,6,7,6,7,6,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,6,5,5,5,6,5,5,5,6,6,6,6,6,6,6,5,5,5,5,5,5,6,5,4,5,5,5,5,5,5,5,5,5,4,5,4,4,5,4,4,4,5,4,4,5,5,4,5,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3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,6,6,7,8,8,8,8,10,11,12,16,17,19,20,17,16,19,18,17,20,18,19,22,20,23,23,23,21,22,23,24,23,23,23,22,22,22,19,21,23,22,19,21,20,20,21,22,18,17,20,19],[28,28,28,28,29,29,28,28,27,27,27,27,27,26,27,26,26,28,27,27,28,27,27,28,27,28,28,28,28,28,27,28,28,29,28,28,28,28,28,28,28,28,28,27,27,27,26,25,26,25,24,24,25,23,22,23,21,20,19,19,16,13,11,9,7,6,5,5,5,4,4,4,3,3,4,4,4,4,5,5,4,4,5,4,4,5,5,6,6,6,6,7,6,6,7,7,6,7,8,7,7,8,8,7,8,9,9,8,8,9,10,8,7,7,7,8,7,7,6,7,7,6,6,7,7,6,6,7,6,6,7,6,6,6,6,7,7,7,7,7,7,6,7,7,6,6,6,6,5,6,6,5,5,5,6,7,7,7,7,7,6,5,6,6,6,5,5,6,5,5,5,6,5,5,5,5,4,5,5,5,5,4,5,5,5,4,5,5,4,4,5,5,5,5,6,6,7,7,7,7,7,7,7,7,7,7,7,6,6,6,7,6,6,6,6,5,5,5,5,4,5,5,4,4,5,5,4,4,4,4,4,4,4,5,5,6,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,5,5,6,6,8,10,10,12,14,15,14,15,17,18,17,18,19,18,20,20,23,23,22,24,23,24,24,24,22,22,23,21,19,21,23,23,21,21,24,24,25,26,25,26,27,27,27,28,27,28,27,27,27,27,27,27,27,27,27,26,26,28,26,27,26,26,27,26,27,26,26,26,24,24,25,25,25,23,24,22,21,20,18,17,15,14,12,8,6,5,4,3,3,3,3,2,2,3,2,3,3,3,3,3,4,4,4,4,5,5,5,5,6,5,6,6,5,5,5,5,4,4,4,5,5,6,6,5,6,5,6,5,4,4,4,4,3,3,3,3,3,3,2,2,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,3,3,5,6,5,5,5,4,4,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,4,5,5,6,6,8,7,7,7,6,5,5,6,5,6,5,6,6,7,7,8,7,8,8,8,8,8,7,7,7,7,6,6,6,6,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,2,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,5,5,4,4,5,5,4,5,5,5,5,5,6,6,6,6,5,6,6,6,7,7,7,7,8,7,8,8,7,8,8,9,8,7,7,7,7,7,6,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,2,3,3,2,2,2,2,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,5,5,5,4,4,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,4,4,5,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,5,6,6,7,7,9,9,9,9,12,11,14,17,18,20,19,18,16,19,20,17,21,18,21,21,20,24,23,24,22,23,22,25,24,22,22,23,22,21,19,21,23,21,19,22,20,19,21,22,17,17,21,18],[28,27,28,27,28,28,27,27,27,26,26,26,27,25,26,25,26,26,26,27,27,27,27,27,27,27,28,27,27,27,26,27,28,28,27,28,27,28,28,27,27,27,26,27,26,26,25,24,24,24,23,22,22,21,19,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4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,5,6,6,6,6,7,6,7,7,7,7,8,7,8,8,8,7,7,7,7,6,6,6,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,3,4,4,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,4,4,4,5,4,4,4,4,4,4,4,3,3,3,3,3,2,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,4,4,4,4,4,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,4,5,6,6,7,9,8,8,8,10,10,13,15,16,18,19,17,14,18,19,16,21,17,20,21,19,22,22,22,22,23,22,23,23,22,22,21,22,20,17,19,21,20,18,21,19,19,20,21,17,16,20,17],[27,27,27,27,27,27,27,27,27,26,25,25,26,25,25,25,25,26,26,25,26,26,26,27,26,26,26,26,26,25,25,26,26,27,25,26,26,26,26,26,27,25,25,25,26,25,24,23,23,23,23,22,22,21,20,21,19,20,18,18,15,14,11,8,7,6,5,5,4,4,4,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,7,6,6,7,7,7,6,7,8,7,7,8,8,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,7,6,6,6,6,6,6,6,6,5,5,6,6,5,6,6,5,5,5,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,4,4,5,4,4,4,5,4,4,5,5,4,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,4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,4,4,5,4,4,4,4,4,4,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,6,6,7,8,9,8,8,9,10,12,13,14,17,18,16,13,17,18,15,20,15,18,19,18,21,21,19,20,21,20,21,21,21,17,19,20,20,15,17,21,21,16,21,18,19,19,21,16,15,18,18],[28,28,28,28,28,28,27,28,27,27,27,26,27,25,26,26,26,27,26,27,28,27,27,28,27,27,27,28,27,27,27,27,28,28,27,28,28,27,28,27,28,27,27,27,26,26,26,24,25,25,25,23,23,23,21,22,20,21,20,19,16,14,11,8,7,6,5,5,5,4,4,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,5,5,6,6,6,6,6,6,6,6,7,7,6,7,7,7,7,8,8,7,6,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,7,6,6,6,6,6,5,6,6,6,5,5,6,5,5,6,5,5,5,6,6,6,6,6,6,6,5,5,5,5,5,5,6,5,5,5,5,5,4,5,5,5,5,5,4,5,4,4,5,5,4,5,5,4,4,5,5,4,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,3,4,4,5,5,5,5,5,5,5,5,4,4,4,4,3,4,4,3,3,3,3,3,3,4,4,5,5,4,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,5,5,6,7,8,9,11,12,13,15,14,14,17,17,17,19,19,19,20,19,21,24,22,22,23,24,23,24,21,21,23,20,21,22,22,23,22,22,24,26,26,27,26,25,27,27,27,27,27,28,27,27,28,27,28,28,28,27,27,28,27,27,26,27,26,26,27,26,27,27,25,26,26,24,24,25,23,23,22,22,21,20,17,16,15,12,11,8,6,5,4,4,3,3,3,2,2,3,2,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,5,6,5,5,5,5,4,4,4,4,3,3,3,3,3,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,3,3,4,5,4,4,4,3,3,2,3,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,5,5,5,6,7,6,6,5,5,4,5,5,5,5,5,6,6,6,7,6,7,7,7,7,7,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,2,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,5,5,5,6,6,6,6,6,6,7,7,7,7,6,7,7,7,7,6,7,7,7,6,6,5,5,5,4,4,4,4,4,3,3,4,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,6,7,7,8,9,10,9,9,11,11,13,14,18,19,20,15,14,18,19,16,20,17,19,22,20,23,23,22,22,23,22,23,23,23,21,21,23,22,18,19,23,22,18,22,20,20,20,22,17,16,19,18],[28,28,27,28,28,27,28,28,27,27,26,26,26,25,26,26,26,27,27,27,27,27,27,28,27,27,28,27,28,28,27,28,28,28,27,28,27,28,28,28,28,27,27,27,27,26,25,23,24,23,22,22,22,21,20,20,19,18,17,17,15,13,11,8,7,7,6,5,5,4,4,3,3,3,3,4,4,4,5,4,4,4,5,4,4,5,5,6,6,6,6,7,6,6,7,7,6,7,7,6,7,7,8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,4,4,4,5,5,4,5,5,4,4,5,5,5,5,5,6,6,6,6,5,6,6,6,7,6,6,7,7,8,8,8,7,8,8,8,7,7,7,7,7,6,6,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,3,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,3,4,4,3,3,4,4,3,3,4,3,3,3,4,4,3,4,4,5,5,5,4,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,4,3,3,4,4,4,4,4,4,5,4,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,5,6,7,7,7,10,9,9,10,12,12,14,15,17,19,20,18,15,19,20,17,22,17,21,21,20,24,23,20,23,23,22,24,24,22,21,23,23,21,18,19,23,22,18,21,20,20,21,22,18,17,21,17],[27,27,26,27,27,27,27,27,27,26,25,25,26,25,25,25,25,25,26,26,26,26,27,26,26,26,26,26,26,26,26,27,27,27,26,26,26,26,27,26,26,26,26,26,26,25,25,23,24,23,22,21,22,21,20,20,19,19,17,18,15,13,11,9,8,7,6,5,5,5,4,4,4,3,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,6,7,8,7,7,9,8,8,8,9,9,8,9,10,10,8,7,8,7,8,8,7,7,7,8,7,6,7,7,7,7,8,7,6,7,7,6,7,7,7,7,7,7,7,7,6,7,7,6,6,7,7,6,7,7,6,6,6,6,7,7,8,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,5,5,5,6,5,5,6,6,5,5,6,6,5,6,6,6,7,7,6,7,7,7,7,7,7,7,7,7,7,7,7,6,5,7,6,6,6,6,6,5,5,5,5,5,5,5,4,4,5,4,4,4,5,5,6,6,5,5,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,5,5,5,5,5,4,4,4,4,4,4,4,3,4,5,4,4,5,5,4,5,5,5,5,5,6,5,5,5,4,4,4,4,4,4,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12,16,18,15,21,16,19,20,19,22,22,20,21,22,21,22,22,22,19,19,21,20,16,16,20,21,16,20,18,19,19,21,18,17,19,17],[28,28,27,27,28,28,27,27,28,26,26,25,26,26,25,26,26,27,26,27,27,26,27,27,26,27,27,27,27,27,26,27,28,28,27,27,27,27,28,27,28,27,26,27,26,26,25,23,24,24,23,23,24,22,21,21,20,21,19,19,16,14,12,10,9,7,6,6,6,5,5,5,4,4,5,5,5,6,6,5,5,6,6,5,6,6,6,7,7,6,7,8,7,7,8,7,7,7,8,8,8,8,8,8,8,9,9,8,8,9,9,8,8,8,7,8,8,7,8,7,8,7,8,7,7,7,7,7,7,7,7,7,6,7,7,7,7,7,7,7,7,7,7,7,7,6,7,7,7,6,7,7,6,6,7,7,7,8,7,8,7,7,7,7,7,7,7,7,7,7,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,6,6,5,6,6,7,7,7,7,7,7,7,7,8,8,7,7,7,7,7,7,6,6,7,6,6,6,6,6,6,5,6,6,5,5,6,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,4,5,5,4,4,5,4,4,4,4,5,6,5,4,4,4,5,4,4,5,5,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,4,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,3,3,3,4,4,3,4,4,4,5,5,5,5,5,6,6,7,8,10,10,11,13,14,15,14,14,16,17,16,17,18,18,19,19,20,21,21,22,21,23,22,23,21,20,21,20,19,20,21,22,20,22,22,24,25,27,23,24,25,25,25,26,25,25,25,25,25,25,26,26,25,25,25,25,25,25,24,25,24,24,25,24,26,25,24,25,24,23,24,23,22,22,22,20,19,18,17,15,14,12,11,9,7,6,5,5,4,4,3,3,3,3,3,3,3,3,4,4,4,5,5,5,5,6,6,6,6,7,7,7,6,6,5,5,4,4,4,5,5,6,7,6,6,6,5,5,5,5,4,4,4,4,4,3,3,3,3,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,2,3,3,4,5,5,4,4,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,6,7,8,8,8,7,6,6,6,6,6,6,6,6,7,7,8,8,8,8,9,10,9,9,8,7,8,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,7,7,8,7,7,7,7,7,7,7,7,8,8,9,9,9,8,9,8,9,8,8,9,8,8,7,7,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,4,5,5,5,4,5,5,5,5,4,4,4,4,4,3,4,4,3,4,4,3,3,4,4,4,4,4,5,5,5,6,5,5,6,5,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,4,4,4,4,4,5,5,5,5,6,5,5,5,4,5,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,6,7,7,7,10,10,8,8,12,13,13,14,16,18,19,16,13,17,19,15,20,16,20,22,20,23,23,22,21,23,23,23,24,23,21,21,23,22,19,18,21,22,19,21,20,21,21,22,18,16,20,18],[29,29,28,28,28,28,28,28,27,27,26,26,27,26,27,26,27,27,27,27,27,27,27,28,27,28,28,28,28,27,27,28,28,29,28,28,28,28,28,28,28,27,27,27,27,27,25,25,26,24,23,23,24,22,20,21,21,20,19,19,17,15,13,10,9,8,6,6,6,6,5,5,5,4,5,5,5,6,6,5,5,6,6,5,5,6,6,7,7,7,7,8,7,7,8,7,7,8,8,8,8,8,8,8,8,9,9,9,9,10,10,9,8,8,8,9,8,8,7,7,8,7,7,7,8,7,7,8,7,7,7,7,7,7,7,8,7,7,7,7,7,7,7,7,7,7,7,7,7,7,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5,5,5,5,5,5,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,5,5,5,5,5,5,4,5,4,4,4,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,3,3,4,6,7,7,7,10,8,8,10,11,12,13,15,17,18,19,17,14,18,19,15,21,17,20,21,20,23,22,20,22,22,23,22,23,23,21,21,22,22,18,18,23,22,19,21,18,20,22,23,17,16,21,18],[29,28,27,28,27,27,28,27,27,27,25,25,26,25,26,26,26,25,26,27,26,26,27,27,27,28,27,27,28,27,26,28,28,28,28,28,26,28,28,28,28,27,25,26,26,27,25,24,25,24,23,22,23,22,20,21,20,19,18,19,16,14,12,11,10,9,7,7,7,6,6,5,5,5,5,5,6,6,7,6,6,6,7,6,7,7,7,8,8,8,8,9,8,9,9,9,8,9,10,9,10,11,11,10,11,12,12,11,12,12,12,11,10,11,10,11,10,10,9,9,10,9,9,9,10,8,8,9,9,8,8,8,7,8,8,8,9,9,9,9,9,8,9,9,7,8,9,8,7,8,8,7,8,7,8,9,9,9,9,9,8,8,8,8,8,7,7,8,7,7,7,7,7,7,8,7,6,7,7,7,7,6,6,7,6,6,6,7,6,6,7,6,6,6,7,8,8,7,7,8,8,8,8,9,8,8,8,8,7,8,8,7,7,8,7,7,7,7,7,6,6,7,6,6,6,6,5,5,6,6,5,5,6,6,7,7,7,7,7,7,7,6,6,6,6,5,5,5,5,5,5,5,4,5,5,5,6,6,5,4,4,5,4,4,5,5,4,5,5,5,5,6,5,5,5,6,6,6,6,7,6,6,6,6,6,5,5,5,5,5,4,4,5,4,4,5,4,3,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,4,5,4,4,5,5,6,5,6,6,6,7,7,7,9,11,11,11,12,14,15,14,15,16,16,16,18,19,18,18,19,21,22,21,22,23,23,21,23,21,20,21,20,20,20,21,21,20,21,23,23,25,26,25,25,26,26,26,27,26,26,26,26,27,26,27,27,27,26,27,26,27,27,26,26,24,26,25,25,27,26,26,26,24,25,25,24,24,22,22,22,20,19,17,16,14,13,11,9,8,7,6,5,5,5,4,4,4,3,3,3,4,4,4,4,5,5,5,6,6,6,6,6,7,7,7,7,8,7,5,5,5,5,6,6,6,8,8,6,7,7,6,6,6,6,5,5,5,5,5,4,4,4,3,3,3,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,2,2,3,4,5,5,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,4,5,5,5,5,6,6,5,6,6,6,8,8,9,9,8,7,6,6,6,7,7,7,7,8,8,9,9,9,9,10,10,10,10,9,8,9,9,8,8,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,6,5,6,6,6,6,7,6,6,7,7,7,7,7,8,7,9,9,7,8,8,8,9,9,9,10,10,11,10,11,10,11,10,11,10,9,9,9,9,8,9,7,7,7,6,6,6,6,5,5,5,5,5,4,5,5,4,4,4,4,3,3,3,3,3,3,3,4,3,4,5,4,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,4,5,5,4,5,5,4,4,5,5,6,7,6,6,6,7,6,6,6,6,6,5,5,6,6,5,5,5,4,4,4,4,4,4,5,5,5,6,6,6,5,7,6,5,5,5,5,5,4,4,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,3,5,6,7,7,7,10,9,8,9,11,12,13,14,15,17,19,16,14,17,19,16,21,18,20,22,20,23,21,21,21,23,21,22,23,21,22,20,22,20,18,18,21,20,19,21,20,20,22,22,19,18,21,17],[28,27,27,26,27,27,27,27,27,26,26,25,26,25,26,26,26,26,26,26,27,26,27,27,26,27,27,27,27,26,26,27,27,28,27,27,27,27,28,27,28,27,26,27,26,26,25,24,25,24,23,22,23,23,21,21,21,20,18,19,16,15,13,11,10,9,8,8,8,7,7,7,6,6,7,7,7,8,7,7,8,8,8,8,8,8,9,9,9,9,9,10,9,10,10,10,10,10,11,10,11,11,11,10,11,11,11,11,11,12,12,11,10,11,10,10,10,9,10,10,10,9,9,9,9,9,9,10,9,8,9,9,8,9,8,9,9,10,9,10,10,9,10,9,9,9,10,8,9,9,9,8,9,8,9,9,10,10,9,10,9,8,9,9,9,9,8,9,9,8,8,8,9,8,8,8,8,8,7,8,7,7,7,7,8,7,7,7,7,7,7,7,7,7,7,8,9,9,8,9,9,9,9,9,9,9,9,9,9,9,10,9,8,9,8,8,9,8,8,8,8,8,8,8,7,8,7,7,7,7,6,7,7,7,8,8,8,8,8,8,8,8,8,7,7,7,7,6,6,6,6,6,5,5,6,6,7,7,6,6,5,6,5,5,6,6,5,6,7,6,6,6,7,6,6,6,6,7,7,8,8,7,7,7,7,7,6,7,7,6,6,5,6,5,6,5,5,4,5,5,5,5,5,4,4,4,4,3,4,4,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,8,8,8,10,10,11,11,13,13,15,14,15,16,16,16,18,19,18,18,19,20,21,21,22,23,23,22,23,21,21,22,20,19,20,21,21,19,21,22,23,23,26,24,24,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,25,26,26,26,25,23,25,25,24,26,25,25,25,23,24,24,24,22,22,22,20,20,19,17,16,14,13,12,10,9,7,6,6,5,5,5,4,4,4,3,4,4,5,4,5,5,5,5,5,6,6,7,7,8,7,8,7,7,7,6,5,5,5,6,6,7,8,8,7,7,8,7,6,6,6,6,5,5,5,4,4,4,4,4,3,3,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,2,3,3,5,5,4,4,3,4,3,4,4,4,5,4,4,4,4,3,4,4,4,4,4,5,4,4,5,5,4,5,6,5,5,6,6,6,6,7,7,6,7,7,7,8,9,9,9,8,7,7,7,8,8,8,8,8,9,10,10,10,10,11,11,11,11,11,11,9,10,10,9,9,8,8,8,8,8,8,7,7,7,7,6,6,6,6,5,5,5,4,5,5,4,3,3,3,3,3,3,3,2,2,2,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,7,7,6,7,8,8,7,8,8,8,8,9,9,9,10,10,9,9,9,9,10,10,10,10,10,11,10,11,11,11,11,11,11,10,11,11,10,9,9,8,8,7,7,7,7,6,6,6,6,6,6,5,5,5,4,4,4,4,3,3,4,3,3,3,3,4,4,4,5,5,5,5,5,6,6,5,6,6,6,6,6,7,7,6,7,7,7,6,6,6,6,6,6,5,5,5,5,5,5,5,4,5,5,5,5,6,6,6,7,7,6,6,7,7,7,7,6,6,6,6,6,5,6,5,5,5,4,4,4,4,4,5,5,5,6,6,6,5,6,6,5,6,5,6,5,4,4,4,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,4,4,5,7,8,7,7,10,9,7,9,11,12,12,15,14,17,19,14,13,17,18,14,21,17,20,21,20,23,22,20,21,23,21,21,22,21,21,20,22,20,19,18,21,21,20,21,18,20,20,22,18,17,20,18],[28,29,28,28,28,28,28,28,28,27,27,26,27,27,27,26,27,27,27,27,27,26,27,28,26,28,28,27,28,28,26,28,28,28,28,28,28,28,28,28,28,28,27,28,28,27,26,25,26,26,24,23,24,23,22,22,22,20,20,20,18,16,15,13,11,10,9,9,9,8,8,7,7,6,7,8,8,8,8,8,8,9,9,8,9,9,9,10,10,9,10,11,10,10,11,11,10,10,11,11,11,11,11,11,11,12,11,11,11,12,12,12,11,11,11,11,10,10,10,10,11,10,9,10,11,10,10,10,10,10,10,9,9,10,9,10,9,10,10,10,10,9,10,10,9,9,10,10,9,10,10,9,10,9,10,10,10,10,10,11,10,10,9,10,10,9,9,10,10,9,10,10,9,9,9,9,8,9,9,9,9,8,8,8,8,7,8,9,7,7,8,8,7,8,9,9,10,10,9,10,10,10,10,10,10,10,10,10,9,10,10,10,9,10,10,9,9,9,9,8,8,9,8,7,8,8,7,7,8,8,7,7,8,8,9,9,8,9,9,9,9,8,8,8,7,7,7,7,7,6,7,6,6,6,6,7,8,7,6,5,5,6,6,5,6,6,5,6,7,7,6,7,7,7,7,7,8,8,8,9,8,8,7,8,8,7,7,7,7,7,7,6,7,5,6,6,5,5,5,6,6,6,5,5,5,5,4,4,4,4,4,3,4,4,3,4,3,4,4,4,5,6,5,6,6,6,6,7,7,8,8,9,8,9,11,12,13,13,14,15,17,16,17,19,19,19,20,20,20,21,22,23,24,22,23,24,24,23,25,21,22,22,21,21,21,22,23,22,22,23,24,25,26,24,25,26,26,26,27,26,26,26,26,26,27,27,27,27,27,27,27,26,26,25,26,25,25,26,25,27,26,25,26,24,24,24,23,23,23,22,21,20,19,17,17,15,15,13,11,10,8,7,7,6,6,6,4,4,4,4,5,5,5,6,6,6,6,7,7,7,8,8,8,9,9,8,8,8,7,7,7,6,6,6,7,7,8,9,8,9,8,8,8,7,7,6,6,6,6,5,5,5,4,4,4,3,3,3,2,2,2,2,2,1,1,1,1,1,0,1,1,2,3,3,4,4,4,4,4,4,4,4,4,5,5,4,4,5,5,4,4,5,4,4,5,4,5,5,5,5,5,6,6,6,6,6,7,7,7,8,7,7,7,8,8,9,10,10,10,9,9,8,9,9,9,10,9,9,10,11,11,11,11,12,12,13,12,13,12,11,12,11,10,10,10,9,9,8,9,9,8,8,8,8,7,7,6,6,6,6,6,6,6,5,4,4,4,4,3,3,4,3,3,3,3,3,3,4,3,4,4,5,4,5,5,5,5,5,5,6,6,6,6,7,6,7,7,7,8,8,8,8,8,9,8,9,9,9,9,9,10,11,11,10,10,10,10,10,11,11,11,11,12,12,12,13,12,13,13,13,12,12,12,11,11,11,10,10,9,9,8,9,8,8,7,7,7,7,7,6,6,6,6,5,6,6,4,4,5,4,4,4,4,5,5,5,6,6,6,6,7,6,6,7,7,7,7,7,7,7,7,7,8,8,8,7,7,7,6,6,7,6,6,6,6,6,6,6,6,6,6,7,6,6,7,7,8,8,8,7,8,8,7,8,8,7,7,7,7,7,6,6,6,6,6,5,5,6,6,6,7,6,7,7,7,7,7,7,7,7,6,7,6,6,5,5,4,4,4,3,3,4,3,3,3,3,3,2,3,3,2,3,4,4,6,7,8,8,8,10,9,8,9,10,12,13,13,14,18,19,15,15,19,19,17,20,17,21,21,20,21,23,20,21,22,22,22,23,23,21,21,23,23,18,18,21,22,18,21,18,20,20,21,18,17,19,18],[29,28,27,28,28,27,28,27,27,27,26,25,27,25,27,26,27,26,27,28,27,27,28,28,27,28,29,28,29,29,28,29,29,29,28,29,29,29,29,29,29,29,28,28,28,28,27,26,27,26,25,24,25,23,23,23,23,21,21,22,19,17,15,14,13,12,10,11,11,10,9,8,8,8,9,9,9,10,10,10,9,10,11,10,11,12,12,13,12,12,13,14,13,13,13,13,12,14,14,14,13,14,14,13,14,16,15,14,15,16,16,15,14,15,13,14,14,14,12,12,14,12,12,12,13,11,11,12,12,10,12,11,10,11,11,12,11,12,12,12,12,11,13,12,11,13,13,11,11,13,13,10,12,12,12,12,14,13,13,13,13,12,12,13,13,10,11,12,11,10,11,12,11,10,11,11,9,10,10,10,10,9,9,10,9,8,10,10,9,8,10,10,9,10,10,11,11,11,10,11,11,11,12,12,12,12,12,12,11,11,12,12,10,12,11,10,11,11,11,9,10,11,9,9,9,10,8,9,9,9,7,8,8,9,9,9,9,10,9,10,10,9,9,9,9,8,8,8,8,7,7,7,6,6,6,8,8,8,7,6,6,8,7,6,8,7,7,8,9,9,7,9,9,8,9,9,9,10,10,10,9,10,9,9,9,9,8,9,8,8,8,8,8,6,7,7,6,6,6,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,5,4,5,5,5,6,6,6,7,7,8,8,8,9,9,9,10,11,10,12,13,14,14,15,16,17,16,16,19,19,19,21,22,21,20,21,23,23,23,25,25,25,23,24,23,22,24,21,20,21,22,21,20,21,24,24,25,26,25,26,26,27,27,27,27,27,27,27,27,27,28,28,27,27,27,27,27,27,27,27,26,27,27,26,27,26,26,27,24,25,26,25,24,23,24,22,21,21,19,18,16,15,13,12,11,10,9,8,8,7,7,6,6,5,5,5,6,6,7,6,6,7,7,7,8,8,8,8,9,9,8,8,9,8,9,8,7,7,7,8,8,9,10,9,9,9,8,9,8,8,7,7,8,7,7,7,7,6,6,5,4,4,4,3,3,2,3,3,2,2,1,1,1,1,0,1,2,3,3,5,5,5,5,4,4,4,5,5,5,5,6,5,6,6,5,5,6,6,6,6,5,6,6,6,6,7,7,7,8,8,8,9,8,9,10,9,8,9,10,9,11,11,12,11,10,10,10,11,11,10,11,11,11,12,13,12,14,13,13,15,15,15,14,14,12,13,13,13,12,12,11,11,10,11,11,10,10,10,10,9,9,8,9,8,7,7,7,8,7,6,6,5,5,5,4,4,4,4,3,3,4,4,4,4,5,5,5,6,6,6,6,7,7,8,8,8,8,9,8,8,9,8,9,10,10,9,10,10,10,10,11,11,12,11,11,14,12,14,13,11,12,12,13,14,14,14,14,15,15,14,15,14,16,14,15,14,13,14,14,12,12,12,11,11,10,10,10,9,9,9,9,8,8,9,8,7,7,8,7,7,7,6,6,6,5,5,5,6,6,6,7,7,7,8,8,8,8,8,9,9,8,9,9,9,10,9,8,10,10,9,9,8,8,8,8,8,8,8,8,8,8,8,8,7,7,8,7,7,8,8,9,9,9,9,8,9,9,9,9,9,9,8,8,9,8,8,7,8,8,7,7,7,7,7,7,8,7,8,8,7,8,8,8,7,7,7,7,8,6,6,5,5,5,4,4,4,4,4,3,4,4,3,4,4,4,3,4,4,4,7,8,9,9,9,11,10,8,10,11,13,14,15,15,18,19,15,15,20,19,16,22,18,22,22,20,24,22,21,23,22,22,22,24,22,20,21,24,21,18,19,23,22,19,23,19,21,21,23,19,18,20,18],[27,27,26,27,27,26,27,27,26,26,25,25,26,25,26,25,27,26,26,27,26,26,27,27,26,27,27,28,28,27,27,28,28,28,28,28,26,28,28,28,28,27,27,28,28,27,27,26,26,26,25,24,25,24,23,22,23,22,21,21,19,18,17,14,14,12,12,12,12,11,11,9,9,9,10,11,11,11,12,11,12,12,13,11,13,14,14,14,15,15,15,15,16,16,15,16,16,16,16,16,17,17,17,16,17,17,17,16,17,17,18,17,16,18,17,16,16,16,15,14,16,15,14,15,15,14,13,14,15,12,14,14,12,12,12,13,13,14,14,14,13,15,15,16,14,16,15,15,15,15,15,13,16,14,15,16,16,16,16,15,14,15,13,15,15,13,13,15,14,12,13,14,14,13,13,14,11,12,12,11,13,11,10,12,12,10,11,12,11,10,12,12,10,11,11,12,12,13,11,12,13,12,13,13,14,13,13,13,14,14,15,14,12,16,14,12,13,14,13,12,13,13,11,11,12,12,10,11,11,11,9,10,10,11,11,12,12,11,11,11,12,11,11,11,10,10,10,9,10,9,9,8,7,8,8,8,9,9,8,7,7,8,8,7,9,8,7,9,9,9,8,9,10,9,9,10,10,10,11,12,11,11,11,11,11,10,10,10,10,9,9,9,10,7,8,8,8,6,8,7,7,8,8,6,7,7,6,5,7,7,5,6,6,6,6,6,5,6,7,7,7,8,8,8,8,9,9,9,9,10,10,11,10,11,12,12,13,14,16,16,18,16,17,19,19,18,19,20,21,19,20,23,23,23,24,24,24,23,25,23,22,23,21,20,21,23,22,21,23,24,24,25,26,25,26,26,27,27,27,27,27,27,27,27,27,27,28,28,28,27,27,28,27,27,26,24,26,26,27,27,26,26,27,25,25,25,24,25,23,24,22,21,21,18,19,15,15,14,12,12,11,9,9,9,8,7,7,6,5,6,6,6,7,8,7,7,8,7,8,9,8,9,10,10,10,11,9,10,9,8,7,9,8,8,9,9,9,11,10,10,10,9,9,9,9,8,8,8,9,8,7,8,7,6,6,6,5,5,4,4,3,3,3,3,2,2,2,2,1,1,0,1,3,3,5,5,5,6,4,5,5,6,6,6,7,6,6,7,7,5,6,7,6,6,6,6,5,6,8,7,6,7,8,8,7,8,10,9,9,10,10,10,10,10,10,11,12,12,12,11,10,10,11,11,13,12,12,13,14,15,16,15,16,15,16,17,16,17,16,14,16,15,15,14,14,14,14,13,12,13,11,12,12,11,11,10,9,9,8,8,8,7,7,7,6,5,6,5,5,5,5,5,4,4,3,4,5,4,4,6,6,5,5,7,6,6,8,7,8,8,8,8,9,9,9,9,9,9,11,11,10,12,12,11,11,13,13,13,13,13,15,14,15,16,14,15,14,15,16,16,15,16,16,17,15,17,17,17,16,16,15,16,15,15,15,14,14,13,13,12,12,11,11,10,10,9,10,9,9,8,8,8,8,8,7,8,6,6,7,6,5,4,6,6,6,8,8,8,8,9,9,9,9,8,10,10,9,9,10,10,10,10,11,10,10,10,9,9,9,9,9,8,9,8,9,8,8,8,7,8,8,8,8,8,9,9,10,10,9,10,10,10,10,10,9,9,9,9,9,9,9,8,8,8,7,7,7,7,8,8,9,8,8,9,8,8,9,9,7,7,7,7,8,6,7,6,5,4,5,4,4,5,4,4,4,4,4,3,4,4,3,4,5,5,6,8,9,8,9,11,10,9,10,11,13,14,13,16,16,18,15,15,18,19,15,20,17,21,21,20,24,23,20,22,24,22,22,23,22,21,20,22,21,18,17,22,22,18,20,19,20,20,21,20,17,18,17],[26,26,26,26,27,27,27,27,27,26,26,26,27,26,26,26,27,27,27,27,27,28,27,28,28,28,28,28,28,28,28,29,29,29,29,29,28,29,29,29,29,29,29,29,29,29,28,28,28,27,28,27,26,26,26,25,25,26,24,23,22,23,20,19,19,16,19,17,17,18,18,16,17,14,17,17,18,19,18,18,16,18,18,17,19,19,20,19,19,20,20,20,21,22,20,20,20,20,20,19,22,20,19,20,21,20,19,20,21,20,20,21,20,22,20,19,20,20,18,19,19,21,18,18,19,19,17,19,19,16,17,18,17,16,17,17,17,18,18,18,18,20,19,19,19,21,20,19,20,20,19,20,20,19,20,21,20,19,19,18,19,20,19,19,20,19,19,20,21,19,18,18,19,18,17,18,16,16,15,15,18,16,15,15,18,14,14,16,16,14,15,17,15,15,15,16,17,18,15,17,18,18,17,17,18,17,19,18,19,19,19,18,17,19,18,17,19,19,17,18,18,18,17,18,17,16,15,17,17,16,15,17,16,15,17,17,17,16,16,16,18,17,16,17,16,16,15,15,15,13,13,13,12,12,11,12,13,12,11,12,12,14,14,11,14,14,12,15,15,15,14,15,17,14,16,15,15,15,17,17,17,17,17,18,16,16,16,16,16,14,17,15,16,14,15,14,14,13,15,14,14,14,15,14,15,14,12,13,12,11,8,10,10,9,8,8,9,10,12,11,13,13,13,13,13,14,14,15,15,17,15,16,16,17,16,19,18,18,21,21,22,21,20,22,22,22,22,24,23,23,25,26,25,25,26,25,27,24,26,25,24,24,24,22,24,24,24,22,23,24,26,26,26,26,26,27,27,27,28,28,27,27,27,27,28,28,28,28,27,28,27,28,27,27,27,26,27,27,27,27,27,27,27,26,26,26,26,26,25,25,24,23,23,21,21,18,19,17,17,15,17,13,14,14,13,11,11,9,9,8,7,9,9,8,9,10,10,9,11,11,10,11,11,13,11,12,9,10,8,10,9,9,9,9,10,10,11,13,12,12,14,13,12,12,12,10,11,12,11,10,11,11,11,10,10,8,9,8,8,7,8,6,5,5,6,5,5,4,3,3,1,0,1,3,5,5,5,7,7,7,7,9,10,10,13,11,10,11,13,11,11,12,12,11,11,13,11,12,13,13,12,13,14,13,13,14,15,14,14,16,16,16,15,15,15,15,17,15,15,17,15,15,16,17,18,17,17,18,19,20,20,19,20,20,19,19,19,20,20,19,20,20,20,19,20,20,19,19,19,19,18,17,18,18,18,16,17,16,15,15,15,13,13,13,13,12,14,11,11,10,9,9,9,8,7,8,10,8,9,13,12,10,11,12,12,11,13,12,13,12,13,14,14,14,14,17,16,14,16,16,17,17,18,18,18,17,19,18,19,20,19,20,19,20,21,20,21,20,19,20,20,19,20,21,18,19,21,20,20,20,19,21,19,19,19,20,18,18,17,19,18,18,19,17,18,17,17,17,15,14,15,14,13,13,13,14,12,11,13,12,9,9,10,10,11,13,13,13,12,13,12,14,13,13,14,14,15,14,15,16,17,16,15,17,16,16,16,15,17,15,15,13,15,13,13,13,13,13,12,13,13,12,13,13,12,15,14,17,15,14,15,15,16,14,17,14,14,15,13,13,14,14,14,13,12,11,11,10,11,11,14,12,13,11,12,10,12,12,11,11,11,12,10,10,10,8,7,9,8,5,6,7,6,5,6,6,6,6,6,6,5,6,8,7,8,9,10,9,9,10,10,9,10,11,13,14,15,15,17,21,17,15,18,21,18,22,18,22,21,22,24,24,22,23,24,24,22,23,24,21,20,24,23,19,18,22,24,21,22,17,20,19,22,21,16,18,18],[28,29,28,28,29,28,29,29,28,28,28,27,28,28,28,28,28,28,28,29,29,29,29,29,29,30,29,29,30,29,29,30,30,30,29,30,30,30,30,30,30,30,29,30,30,30,29,28,29,28,27,27,28,27,25,26,26,26,24,25,23,21,22,19,20,18,18,17,17,17,18,16,16,16,17,16,16,17,18,17,17,17,18,17,18,18,18,19,20,19,20,20,20,20,20,20,19,19,20,20,20,20,20,20,20,20,20,19,20,19,20,20,20,21,19,19,19,19,18,19,19,18,18,17,20,18,17,19,18,17,18,18,17,16,16,17,18,18,18,18,18,19,20,19,18,19,20,19,18,19,19,18,20,18,19,20,20,20,20,18,20,18,18,19,20,18,18,20,19,17,19,19,18,18,18,18,16,16,17,17,17,16,15,17,17,15,16,16,15,15,17,16,16,16,16,17,18,18,18,19,18,18,19,19,19,17,19,19,19,18,19,20,18,19,18,18,17,19,18,17,17,18,16,16,17,17,15,16,17,17,14,16,15,15,15,15,17,15,15,16,17,16,16,16,16,16,15,15,15,12,13,14,12,12,12,13,14,12,11,10,12,14,13,12,15,14,13,14,16,16,14,17,16,16,17,17,18,17,17,17,18,16,16,16,16,16,15,16,15,14,14,15,15,14,15,16,14,13,14,15,14,14,14,12,13,14,13,11,12,13,10,11,11,11,9,11,11,12,11,11,12,12,13,13,14,15,16,16,16,16,16,16,17,16,17,19,18,18,20,20,21,22,21,23,23,23,23,24,25,24,25,27,26,26,27,26,27,26,27,25,24,25,24,23,24,24,24,24,24,25,26,25,26,26,27,28,28,28,28,28,28,28,28,28,28,29,29,29,28,28,28,28,28,27,28,27,28,28,27,29,28,28,29,27,28,28,27,27,26,26,25,23,24,22,22,19,18,19,15,15,15,14,15,13,13,12,11,10,11,10,10,11,11,10,10,10,10,10,10,11,11,12,11,12,12,11,11,11,10,10,10,10,11,10,10,11,11,13,13,12,14,13,12,12,13,11,11,12,13,11,10,11,11,12,11,11,12,10,10,10,9,10,7,7,6,6,4,4,4,2,1,1,0,1,3,4,5,6,8,8,9,10,10,11,12,11,10,11,12,10,10,11,11,9,11,11,13,12,12,12,13,15,16,14,14,16,16,15,16,17,16,15,15,15,17,16,16,16,17,17,16,18,18,17,18,18,18,18,19,20,21,20,20,19,21,22,21,22,21,20,21,21,20,19,20,19,19,18,17,16,16,17,17,17,16,16,16,15,14,14,15,14,14,13,11,11,11,11,11,11,11,10,10,11,8,10,11,11,11,13,12,12,11,14,13,13,14,13,15,14,15,15,16,15,16,17,16,15,17,16,16,17,18,17,17,18,19,18,18,18,20,21,20,20,20,19,18,21,21,21,21,20,20,21,19,20,21,21,21,19,20,20,19,19,19,19,18,18,17,19,19,17,17,17,16,17,16,16,16,14,15,14,15,14,14,14,13,12,13,13,11,11,13,13,13,13,15,14,13,13,15,15,14,14,14,15,17,15,15,17,17,15,16,16,15,16,16,16,15,15,15,14,15,14,13,14,14,13,14,13,13,13,14,14,13,14,15,15,13,13,15,14,14,16,15,13,13,15,14,13,14,15,14,13,12,11,11,11,12,12,12,12,13,11,12,13,13,13,12,12,12,12,13,12,11,11,10,11,10,10,11,10,8,8,10,8,8,8,8,8,7,8,10,8,9,10,10,10,11,11,11,9,11,11,15,15,16,16,16,18,16,17,19,20,19,22,20,21,21,22,25,23,22,23,24,24,21,25,24,21,22,25,23,21,20,24,24,21,24,19,22,19,23,20,18,19,18],[28,28,28,28,29,29,29,29,29,27,28,27,28,28,28,28,28,29,28,28,29,28,29,29,29,29,29,29,29,29,29,29,29,30,29,30,29,29,29,29,30,30,30,29,30,29,29,28,29,29,28,28,28,28,27,27,26,27,26,26,25,25,23,22,22,20,21,21,20,22,22,19,21,18,20,21,20,21,21,22,21,21,22,23,21,23,24,23,23,23,23,23,24,24,23,24,24,23,23,24,24,24,23,23,23,23,23,22,23,22,23,23,24,24,24,24,22,23,22,22,22,22,21,21,22,22,21,22,22,20,21,22,21,20,20,20,21,21,23,21,22,23,22,22,22,24,23,22,23,24,22,22,24,22,23,24,23,23,23,22,23,23,22,22,23,22,21,23,23,22,21,22,22,21,21,22,20,21,21,21,21,19,19,21,20,18,20,21,20,18,21,20,19,19,20,19,21,21,19,22,22,21,21,22,22,22,22,23,23,23,22,22,21,23,22,20,22,23,21,21,21,22,20,20,21,20,18,20,21,20,18,20,19,20,19,21,20,19,19,20,21,19,19,20,19,19,18,18,18,17,18,18,17,14,14,17,17,15,13,14,15,18,18,15,18,18,16,17,19,19,16,19,19,18,19,19,20,19,21,22,19,21,19,21,20,19,19,21,19,17,18,19,19,17,18,18,17,16,19,17,17,17,19,16,15,17,15,16,15,17,15,15,16,15,14,15,15,16,16,14,14,15,16,16,17,17,18,18,19,19,18,19,20,20,21,23,22,21,24,23,25,25,24,24,25,25,26,26,25,26,26,27,27,28,28,27,28,27,28,26,26,27,27,24,26,26,26,26,26,26,27,27,27,27,28,28,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,27,28,28,29,29,29,29,28,27,28,28,28,27,27,27,26,25,26,23,24,21,21,20,18,17,20,18,19,18,17,16,14,14,14,14,14,13,15,14,13,13,14,13,14,15,15,14,16,16,16,16,14,13,13,14,14,13,14,14,14,14,16,18,16,17,19,19,16,17,17,14,16,16,16,14,15,16,15,16,14,17,14,16,12,14,12,11,9,9,8,7,7,7,6,4,5,3,1,0,2,4,4,6,9,10,11,14,14,15,16,15,15,14,15,15,13,15,15,13,14,15,15,15,16,15,15,16,18,17,17,18,19,18,18,20,20,20,20,21,20,20,21,19,20,20,18,20,21,21,22,21,21,23,23,23,24,23,23,24,24,24,23,23,24,22,22,23,25,22,22,23,23,23,22,22,22,21,23,20,20,20,19,19,18,18,18,16,16,16,15,14,15,15,15,15,17,15,12,14,10,13,14,14,13,17,16,14,14,15,16,14,15,15,16,17,17,17,18,18,19,20,20,19,21,20,21,20,21,22,23,22,22,21,23,23,22,23,23,24,24,23,24,24,24,25,23,24,23,25,23,23,24,23,23,23,22,24,23,22,23,22,21,20,20,22,22,22,22,22,21,20,19,21,20,17,18,19,18,16,16,16,15,15,15,15,13,14,15,14,16,16,15,16,17,16,16,17,18,16,19,20,21,18,19,20,21,20,20,21,19,20,20,20,20,20,19,18,20,18,17,17,18,16,16,16,17,17,18,18,18,18,18,20,18,17,18,19,18,19,20,17,18,20,18,18,17,19,18,17,16,15,14,16,14,16,18,17,18,16,17,16,17,17,14,15,14,16,15,14,12,13,12,12,12,10,12,12,9,8,9,11,8,9,10,9,7,9,11,10,11,12,11,10,10,11,9,9,11,13,12,14,14,16,19,20,17,20,20,21,19,24,21,22,24,24,25,25,22,24,25,24,22,26,25,23,22,26,24,21,20,23,25,22,24,19,22,19,23,21,20,20,20],[27,27,27,27,28,28,28,28,28,27,27,27,28,27,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,29,29,29,29,28,29,28,28,28,28,27,26,26,26,26,24,24,23,24,23,23,24,24,22,22,19,22,23,23,23,24,24,22,24,24,23,24,24,24,25,24,24,26,25,25,25,25,25,25,26,25,25,25,25,25,24,24,25,25,23,23,24,24,25,25,25,24,25,23,23,24,23,23,24,22,22,24,24,22,23,23,21,21,23,22,21,20,22,23,23,24,23,23,24,24,23,24,25,25,24,24,25,24,25,24,24,24,26,26,24,26,24,25,25,25,24,26,24,24,24,25,23,23,24,24,23,22,23,20,22,21,21,22,21,21,21,23,19,20,21,21,20,21,21,21,22,21,21,22,22,21,22,24,23,22,22,23,23,24,24,24,24,24,24,23,25,24,24,24,24,23,22,23,24,22,22,23,22,20,21,22,21,20,21,21,21,22,23,22,21,22,21,22,20,21,21,20,20,20,19,19,18,19,18,18,16,17,18,18,18,17,17,17,19,19,17,20,19,18,22,20,20,19,21,22,19,21,21,21,21,23,23,22,22,23,23,22,21,21,22,21,19,21,19,22,20,19,20,20,17,21,20,19,19,20,20,19,20,17,17,19,17,16,17,17,15,14,16,16,19,18,18,21,19,19,20,19,20,21,21,22,23,21,22,22,22,23,24,24,24,25,24,26,26,25,26,26,27,27,27,27,27,28,28,28,28,29,28,29,28,28,27,27,28,27,26,26,27,27,26,26,27,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,28,29,28,29,29,29,29,29,28,28,28,28,28,28,27,27,26,26,24,25,21,23,21,21,21,23,19,21,20,21,20,17,19,17,17,17,18,18,17,16,17,17,16,17,18,18,17,18,20,18,18,15,16,14,17,16,16,17,17,16,17,17,20,18,21,21,21,19,21,20,18,19,21,20,17,18,20,18,18,17,18,17,16,16,14,14,13,12,12,9,10,10,9,8,8,9,6,5,1,0,2,3,5,8,8,11,11,15,15,17,17,16,15,16,17,16,17,16,16,18,17,17,18,18,18,17,20,20,19,20,19,22,20,20,21,22,21,22,21,23,21,23,20,22,23,21,22,21,23,24,24,24,24,24,25,26,24,25,25,25,25,25,25,26,24,25,25,25,25,25,25,25,24,25,24,24,23,24,24,23,21,22,22,20,20,21,20,19,19,19,18,17,18,17,17,17,15,13,13,13,15,17,16,16,20,19,17,18,18,20,19,19,16,19,19,20,21,21,21,20,24,23,20,22,22,23,24,24,24,24,23,24,24,25,25,25,26,26,26,25,25,26,26,26,26,25,26,25,25,24,24,27,24,26,25,24,25,24,24,25,25,24,24,23,24,24,23,24,23,24,24,22,23,22,19,21,21,20,20,19,20,19,19,20,19,18,17,20,20,19,21,20,21,20,21,21,23,19,21,22,21,23,21,21,22,23,22,22,24,22,23,23,22,24,22,21,20,23,21,19,20,21,19,20,20,20,20,21,20,21,22,20,22,21,20,22,22,21,23,22,22,22,22,21,22,22,21,20,20,20,19,21,19,19,20,20,19,21,20,20,21,20,21,19,18,18,19,20,19,16,17,15,16,14,14,15,15,12,13,12,11,10,11,11,10,8,10,12,11,11,14,13,11,10,11,10,11,12,15,15,16,17,16,19,20,19,19,21,22,19,23,20,23,23,23,27,26,23,24,26,24,24,27,25,20,22,26,25,21,21,23,26,22,25,20,22,20,23,21,19,20,21],[29,29,28,29,29,29,29,29,29,29,28,29,29,28,29,28,29,29,29,29,29,29,30,30,29,30,30,29,30,30,29,30,30,30,30,30,29,30,30,30,30,30,29,30,30,30,29,29,29,29,28,28,28,28,27,28,28,27,27,26,27,25,26,24,24,24,26,23,25,24,25,22,23,22,22,24,25,24,25,25,23,24,25,24,23,25,25,25,26,26,25,26,26,26,26,26,25,26,26,26,26,26,26,25,26,26,25,25,24,25,26,26,26,26,26,26,24,25,24,24,25,24,24,24,25,23,23,25,24,21,23,25,21,21,22,22,24,25,25,25,24,25,26,26,24,26,26,24,24,26,25,23,25,26,25,25,26,26,25,25,27,26,26,26,26,24,25,26,24,24,25,25,22,23,24,23,20,23,22,22,23,20,20,23,22,19,22,22,20,20,22,22,20,22,22,23,22,23,21,24,24,23,24,24,25,24,25,25,25,24,26,26,24,26,25,22,25,25,22,20,23,24,21,20,23,21,19,22,23,21,20,22,24,23,23,24,23,22,22,22,22,24,23,22,21,21,20,20,21,19,20,19,17,17,18,19,19,18,16,18,18,20,19,19,21,20,21,21,20,20,20,22,22,21,23,23,23,22,24,24,21,23,21,24,23,20,20,22,20,19,20,21,21,20,21,22,20,20,23,22,22,22,23,21,22,22,20,19,20,18,16,19,18,17,14,17,17,20,20,21,22,23,23,22,22,24,24,23,23,25,23,24,23,23,24,23,24,24,24,24,26,26,25,27,26,27,26,27,28,27,28,29,29,28,29,29,29,28,29,28,27,28,27,25,27,27,27,26,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,30,30,30,30,29,30,29,30,29,29,29,29,29,29,29,30,30,29,30,28,29,28,28,28,28,28,27,26,26,24,26,22,23,22,23,23,24,23,23,24,24,24,21,22,20,19,19,21,21,21,20,22,21,21,20,22,21,22,21,22,20,21,19,20,17,19,18,19,21,20,19,22,19,21,22,23,23,23,22,23,24,23,22,23,24,22,21,23,23,21,20,19,19,16,15,17,13,13,14,12,11,11,11,10,7,9,9,6,5,4,2,0,2,3,6,7,9,12,12,14,16,15,15,14,17,14,14,19,18,15,18,20,21,21,21,19,22,21,21,20,22,23,22,21,23,24,22,22,23,23,23,23,23,22,23,24,22,23,24,23,24,24,24,24,25,26,26,25,26,26,26,26,26,26,27,26,26,26,26,26,26,25,26,25,25,25,25,25,24,23,24,23,21,21,21,22,21,21,22,21,20,20,20,19,17,17,17,15,15,15,15,14,18,17,18,21,20,21,22,20,22,21,21,21,21,22,24,21,22,24,24,24,23,24,25,25,23,26,26,25,24,26,26,26,25,25,26,26,26,26,26,25,25,26,26,26,26,26,26,25,25,26,26,26,26,26,25,26,25,26,25,25,26,25,25,25,26,25,24,24,25,23,22,24,23,21,22,23,22,21,21,23,22,21,22,22,22,21,23,21,22,23,24,23,22,24,23,24,23,21,25,25,25,23,25,24,23,24,25,24,25,24,25,23,24,25,24,21,24,25,23,21,24,23,23,22,24,23,23,22,23,24,23,24,23,23,23,23,24,24,24,23,24,24,22,25,24,24,23,24,24,24,23,22,22,24,22,22,24,23,22,24,22,22,22,22,20,22,22,21,20,19,20,20,19,15,17,19,16,16,14,17,13,12,16,12,8,9,14,13,12,14,14,12,12,14,12,12,13,13,15,16,17,19,20,22,19,19,22,22,21,24,22,23,24,24,25,26,24,25,26,25,23,26,26,24,23,26,25,22,22,24,26,24,24,21,24,23,24,22,20,21,21],[28,28,28,28,29,28,28,29,28,28,27,27,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,29,29,29,28,28,28,28,26,26,26,25,25,25,23,25,24,24,24,25,22,22,19,21,23,24,22,25,24,22,23,25,23,22,24,25,24,25,24,26,25,25,25,26,26,24,25,25,25,25,25,24,25,25,24,24,24,23,24,25,24,25,25,25,25,23,25,22,23,24,23,22,22,23,22,21,23,23,20,22,23,21,21,22,21,23,23,24,23,23,24,24,23,22,25,24,22,24,25,24,22,25,24,24,25,25,24,24,25,26,25,25,25,25,23,24,25,23,22,23,24,21,21,23,22,19,22,22,21,21,19,18,21,20,17,21,22,19,19,21,20,19,21,22,21,23,22,21,23,24,23,23,24,24,24,24,25,24,23,25,25,23,25,24,21,24,24,21,19,22,23,20,20,22,20,17,20,21,20,17,21,21,21,22,23,21,22,22,21,20,20,22,20,20,19,19,19,18,16,17,18,14,15,16,17,18,16,16,15,14,19,17,15,19,18,17,20,19,20,19,21,21,20,21,22,22,21,23,23,21,22,21,23,22,19,20,21,19,18,20,18,18,18,19,19,15,14,18,20,19,19,19,18,20,19,16,17,18,17,12,18,18,16,13,17,16,21,19,19,20,20,21,20,20,21,22,22,21,24,23,23,23,23,24,26,25,24,25,25,25,26,26,27,26,27,28,27,27,28,27,28,28,28,29,29,29,29,29,28,28,28,28,27,28,27,27,28,27,27,28,28,28,28,29,29,30,29,29,29,29,29,29,29,30,30,30,30,30,29,30,29,29,29,29,29,29,28,29,29,29,29,29,28,29,28,28,28,27,27,26,26,26,24,26,22,23,23,22,23,23,22,22,22,21,21,19,18,18,17,17,18,18,17,17,18,18,17,19,19,20,18,20,21,20,20,18,16,16,16,15,17,17,19,18,17,19,21,19,22,22,22,20,21,21,20,20,21,21,18,20,20,18,20,18,17,16,13,14,15,13,11,13,12,10,10,10,9,7,9,9,7,7,5,4,1,0,2,3,5,5,9,9,11,12,12,9,10,13,9,9,14,14,11,17,16,15,18,19,17,17,21,20,18,20,21,22,20,22,22,22,22,22,23,22,22,22,22,23,23,21,23,23,23,23,23,23,24,24,25,25,24,25,25,25,26,26,25,26,25,25,25,25,25,24,25,25,25,25,24,24,24,23,23,23,22,20,21,21,19,18,20,19,18,16,17,18,15,13,15,14,9,11,12,11,9,14,16,15,17,17,18,20,19,20,20,20,19,19,21,22,20,22,23,23,24,23,23,23,24,25,25,25,24,25,25,25,25,25,25,25,26,26,25,26,24,25,25,25,25,25,25,26,25,24,25,25,25,26,25,25,25,25,25,24,25,25,25,24,25,26,24,24,24,24,22,23,24,23,19,22,22,20,20,21,20,19,20,21,21,19,19,20,21,21,22,21,22,22,21,22,23,22,22,24,23,24,23,24,24,24,24,23,24,24,24,24,22,24,24,23,20,24,23,21,22,23,21,20,23,22,22,23,22,23,24,23,24,24,23,23,23,24,24,24,24,23,24,24,23,23,23,23,22,21,20,20,19,20,21,21,22,22,21,22,21,22,22,20,21,19,20,20,20,18,17,17,18,17,16,17,18,15,13,14,16,10,10,12,11,7,7,9,12,11,14,13,13,12,14,13,11,13,14,17,17,19,20,21,23,22,22,23,24,22,25,23,24,25,24,27,26,25,26,26,26,25,26,26,24,25,26,25,23,24,25,26,24,25,23,24,23,24,22,21,22,21],[29,29,29,29,29,29,29,29,29,28,28,28,29,28,28,28,29,29,28,29,29,29,29,30,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,29,28,27,28,28,27,27,26,26,25,24,23,22,21,21,21,20,21,21,18,19,16,18,20,21,19,21,21,18,20,22,20,19,21,21,22,23,22,23,24,23,23,23,24,21,24,24,23,23,23,23,22,22,23,22,21,22,22,23,23,22,23,22,22,21,21,20,22,22,22,21,20,21,20,20,21,22,19,20,21,20,19,20,19,21,22,22,23,21,22,24,22,20,24,23,20,21,23,22,19,22,22,22,22,24,22,22,22,23,22,22,23,23,20,21,23,20,19,20,22,18,19,21,20,18,20,20,18,20,18,16,20,19,17,19,21,18,17,20,19,20,19,20,20,21,21,20,21,22,21,21,22,22,21,21,21,22,21,23,23,21,22,22,20,21,23,20,18,20,21,18,17,20,18,16,17,18,17,15,17,18,18,19,19,18,19,19,19,18,18,17,17,16,14,14,16,14,14,13,15,13,13,13,14,15,13,14,12,13,15,14,14,14,17,15,17,18,18,16,19,18,18,19,20,21,20,20,21,19,21,17,20,19,18,17,18,17,16,17,16,15,16,17,16,13,14,14,16,16,16,16,13,16,14,14,13,14,13,9,14,13,10,9,13,14,16,14,15,16,16,16,16,17,18,19,18,19,20,19,19,20,19,21,22,22,21,23,23,24,24,25,26,26,26,27,27,27,27,27,28,29,28,29,29,29,29,29,28,27,28,27,26,27,27,27,27,27,27,28,28,28,28,29,29,29,29,29,29,29,29,29,29,30,30,30,30,29,29,29,29,29,29,29,28,29,29,29,29,29,29,29,28,29,29,28,27,27,27,26,26,25,23,24,22,21,21,20,20,20,18,18,19,18,17,16,16,15,16,15,16,17,17,16,16,17,17,18,18,19,18,19,19,19,20,18,17,16,15,15,15,16,16,17,17,18,19,19,20,20,20,19,18,19,18,18,18,18,16,16,17,16,16,16,16,14,9,11,13,9,8,10,11,7,8,10,7,6,8,9,7,7,5,6,3,2,0,1,3,4,6,7,9,10,9,8,10,12,10,10,13,13,11,14,14,15,15,16,15,15,18,18,17,17,19,19,17,19,20,19,18,20,19,20,20,20,20,20,20,19,20,20,19,20,21,20,21,21,22,24,24,22,23,23,23,24,24,24,23,23,23,24,22,23,22,23,21,21,21,21,20,20,19,19,19,17,18,16,16,16,17,17,16,15,15,14,14,11,12,10,9,9,10,10,9,13,13,11,14,15,15,15,17,17,16,17,17,17,17,19,18,18,20,21,20,19,19,21,21,20,22,23,21,22,22,23,22,22,22,23,22,23,24,22,22,22,22,23,24,24,23,24,23,23,23,23,23,24,24,22,23,23,22,22,22,21,21,21,22,22,21,19,20,20,19,18,19,19,16,17,19,17,17,17,17,16,16,17,17,16,16,17,17,17,18,19,18,18,20,21,20,19,18,20,20,21,19,20,21,20,20,21,21,20,20,19,18,19,20,19,17,19,20,18,17,20,18,17,18,19,19,20,19,19,20,20,22,20,20,20,20,21,21,21,20,20,20,19,19,19,19,19,18,17,17,16,17,16,18,18,18,19,18,19,20,19,20,18,20,17,20,17,17,16,15,16,16,15,15,15,16,11,12,12,12,9,9,9,10,6,6,10,9,9,11,13,10,11,13,13,11,13,13,17,17,17,18,22,23,19,21,24,22,21,24,22,24,26,24,27,27,25,26,27,27,26,27,28,26,25,27,27,23,24,26,27,25,26,24,25,24,26,23,20,22,22],[29,29,28,28,29,29,29,29,29,28,28,28,29,28,28,28,28,28,28,29,28,28,29,29,28,29,29,29,29,29,28,30,29,30,29,30,29,29,30,29,29,29,29,29,29,29,28,28,28,28,27,27,27,27,26,26,26,25,25,25,24,22,21,21,20,19,19,18,19,18,19,17,16,14,15,16,18,16,19,18,15,17,19,17,15,19,19,20,20,19,20,20,20,21,19,20,18,20,20,20,20,20,19,19,20,19,18,19,18,18,19,19,19,19,19,19,18,18,17,17,18,19,17,17,18,16,16,18,17,15,16,18,15,16,17,17,17,18,18,18,18,18,19,18,16,20,19,15,17,20,18,16,19,19,19,19,20,19,20,19,20,20,20,20,20,17,18,19,17,16,17,17,15,14,16,15,13,15,15,14,14,13,13,15,14,13,14,15,14,14,16,15,15,16,16,18,18,17,17,19,18,18,19,19,19,19,19,19,19,19,19,19,18,19,17,16,17,18,16,14,16,16,14,14,16,14,13,14,15,14,12,14,15,15,16,17,15,14,15,14,14,14,12,13,13,11,10,12,10,9,10,11,8,8,9,11,12,12,10,9,9,12,11,11,13,13,12,14,14,14,14,16,15,14,17,16,18,16,18,17,15,17,14,17,16,14,14,15,14,14,14,13,13,12,13,12,9,9,10,13,12,13,11,11,12,11,10,10,12,9,8,11,10,8,7,11,11,14,12,13,14,15,14,13,15,16,18,16,17,18,17,19,17,18,19,19,20,20,21,21,23,23,23,25,25,24,25,26,26,25,26,27,27,28,28,28,28,27,28,26,26,26,25,24,25,26,26,25,26,26,27,27,28,27,29,28,29,29,29,28,28,29,28,29,29,29,29,29,29,28,29,29,29,28,28,28,29,28,28,28,28,28,28,27,28,27,27,26,26,26,24,24,23,21,21,19,19,18,18,18,17,17,17,18,16,16,12,15,12,12,12,15,15,14,15,16,16,15,15,16,17,16,16,17,16,17,16,16,14,13,13,13,14,13,16,15,16,16,16,17,18,17,16,17,16,16,16,16,16,16,12,14,15,13,13,11,11,10,9,11,8,7,9,8,6,6,7,6,6,7,8,7,6,7,7,5,3,2,0,1,3,4,5,6,7,8,7,7,8,7,8,9,9,9,11,10,10,10,12,11,12,14,14,14,15,16,15,15,18,18,17,16,17,17,17,17,17,17,17,18,17,17,18,16,18,18,16,17,19,21,20,19,19,20,20,21,21,21,21,20,20,21,21,20,20,19,20,19,18,18,18,18,18,16,16,16,14,15,14,14,14,13,13,11,11,9,9,11,9,9,10,7,8,8,8,8,9,10,10,10,10,10,11,12,13,13,14,14,14,16,16,15,16,17,18,16,17,17,18,18,17,19,20,19,18,20,20,20,19,19,20,21,20,20,20,19,19,21,20,21,21,20,20,20,19,20,21,21,21,21,20,21,20,20,19,19,19,20,19,19,19,18,16,17,17,16,16,17,17,15,14,16,14,15,15,15,11,12,14,11,11,11,15,14,13,16,17,15,16,17,16,16,17,16,18,17,18,17,19,18,18,18,18,18,19,17,18,16,15,18,17,16,16,17,16,15,17,17,15,15,17,17,17,16,17,17,17,17,16,17,17,17,17,18,18,17,17,17,17,18,17,17,17,16,16,15,15,15,16,17,17,16,16,16,16,16,17,17,16,16,15,16,15,13,14,12,12,10,11,10,11,10,10,10,9,10,8,8,9,8,6,4,10,8,8,10,11,10,10,13,12,10,12,13,15,16,17,18,20,23,19,18,22,22,19,23,20,23,25,23,25,25,25,25,25,25,25,26,26,25,24,26,26,23,23,26,25,24,25,23,24,24,25,23,20,23,24],[28,28,27,27,27,27,28,27,27,27,27,27,27,26,27,27,27,27,27,27,28,28,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,28,28,28,28,28,27,27,28,27,27,27,27,26,25,26,25,25,24,24,23,21,20,18,18,17,17,16,16,15,15,14,12,10,12,13,14,12,14,14,12,13,16,13,11,15,15,16,16,15,16,16,16,16,16,16,14,16,18,16,16,17,18,16,17,17,17,16,16,17,18,17,16,16,15,18,15,18,15,16,16,14,15,14,15,13,14,14,14,13,16,14,12,14,14,15,16,14,15,16,15,14,16,15,13,16,15,13,13,16,14,12,14,14,15,16,16,16,16,17,18,15,16,17,15,13,14,16,13,12,13,14,12,12,13,13,10,12,13,11,12,11,11,12,12,10,12,13,12,11,13,12,13,14,13,15,16,14,14,16,16,15,16,16,16,15,15,15,16,14,16,16,14,16,14,13,13,14,13,12,13,13,12,12,12,12,9,11,11,9,8,11,10,12,13,13,13,12,12,13,12,10,9,10,9,9,9,9,8,9,9,8,6,8,8,10,10,10,9,7,7,9,10,10,10,11,9,11,12,12,11,14,13,12,13,13,14,13,14,14,12,13,12,13,12,12,12,12,11,10,12,10,9,10,10,8,7,6,8,10,9,10,9,8,10,8,8,8,9,8,7,9,8,7,8,8,9,12,11,11,12,13,11,11,11,14,14,14,14,16,15,16,16,17,18,19,19,18,20,20,21,21,21,23,22,23,24,24,24,25,24,25,27,27,27,27,27,27,27,26,25,27,24,24,26,25,25,25,25,26,27,26,27,26,28,28,28,27,28,28,28,28,28,28,28,28,29,28,28,27,28,28,27,28,27,26,27,27,28,28,27,27,27,26,27,26,26,25,24,24,22,23,21,20,21,18,19,17,17,16,15,13,14,14,14,12,11,12,12,11,11,12,12,12,13,13,13,14,15,15,15,15,16,17,16,17,14,13,13,12,13,12,12,14,13,13,15,16,15,17,17,16,15,15,15,14,13,16,13,12,12,13,12,11,11,11,10,7,8,9,8,7,7,7,6,6,6,6,5,6,6,6,5,6,6,5,4,3,1,0,1,2,3,3,6,4,4,5,6,5,6,7,7,7,9,9,8,9,11,10,10,11,11,11,12,12,13,12,12,14,14,13,13,14,13,14,15,15,15,14,13,13,14,13,14,14,13,14,15,16,17,17,16,18,18,19,17,18,18,17,17,17,17,16,17,16,16,15,15,14,14,14,14,14,13,12,12,12,11,11,11,12,12,9,9,10,10,7,6,7,7,5,5,7,6,5,7,8,8,9,9,9,10,12,12,11,13,11,12,12,12,12,12,13,13,14,14,13,14,14,14,15,16,16,15,16,17,16,16,15,17,16,17,17,15,15,15,17,18,17,17,17,17,17,17,17,17,18,18,18,17,17,18,17,17,17,16,16,16,16,16,14,13,14,14,13,13,14,13,11,12,13,12,12,13,13,10,11,14,11,10,11,12,11,12,14,13,13,14,13,13,14,13,13,14,13,14,13,15,16,15,15,15,16,16,15,14,13,14,15,14,13,14,13,13,13,14,14,13,14,14,14,15,14,14,16,15,16,16,16,15,15,15,16,16,15,16,15,15,16,15,14,14,14,13,12,13,14,13,14,14,14,16,14,15,14,15,17,14,14,12,14,13,12,12,12,11,11,10,9,10,9,9,7,8,9,6,6,5,6,4,5,7,6,8,9,12,10,10,11,12,12,11,12,16,16,18,18,22,22,18,19,23,22,18,24,20,22,24,24,26,25,25,24,26,25,25,26,26,24,24,26,26,22,22,25,25,24,25,22,24,24,24,22,20,23,24],[29,29,29,29,29,29,29,29,29,28,28,28,29,27,28,27,28,28,28,28,28,27,28,28,27,28,29,28,29,29,27,29,29,30,28,29,28,29,29,29,29,29,28,28,28,28,27,27,27,26,26,26,26,25,24,26,25,24,23,23,22,19,17,15,14,13,12,12,12,11,11,10,9,7,8,9,9,10,10,10,9,10,11,10,9,10,11,12,12,11,12,12,11,12,12,12,11,12,12,12,12,12,13,12,13,13,13,13,12,13,14,13,12,13,12,12,12,12,12,11,12,11,11,11,12,10,11,11,11,10,11,10,9,11,11,12,10,12,11,12,12,11,11,11,10,11,11,10,10,12,10,10,10,10,11,12,12,12,13,13,13,12,12,12,11,10,11,11,10,10,10,9,9,9,9,9,8,9,9,9,9,9,8,9,9,8,9,9,9,9,10,8,9,10,10,12,12,11,11,12,12,12,12,14,13,12,12,12,12,12,12,11,11,11,10,10,10,10,10,8,9,9,9,8,8,9,7,8,8,7,6,8,9,9,10,10,9,9,10,9,9,8,8,8,7,6,6,6,5,5,6,5,5,5,6,6,7,7,7,5,5,6,6,6,7,7,6,8,9,9,8,10,9,9,9,9,11,11,10,10,10,9,9,9,8,9,8,9,8,7,8,7,6,6,7,5,5,5,5,6,7,8,6,6,7,6,5,6,6,5,5,6,6,5,5,7,7,9,9,9,9,10,10,9,9,10,10,11,10,11,11,13,12,12,14,15,16,17,18,19,20,19,20,23,22,22,23,24,24,25,26,26,27,26,27,27,28,27,28,25,26,26,24,24,25,25,26,24,26,26,27,28,28,27,28,28,28,28,29,28,28,29,29,29,28,29,29,29,28,28,28,28,28,28,28,27,28,28,27,28,28,26,28,26,26,26,26,26,24,24,23,22,21,20,19,17,16,15,14,13,13,10,11,11,10,9,9,9,9,10,9,10,11,11,11,11,12,12,11,12,13,13,12,14,14,13,13,12,12,11,11,11,11,11,13,13,13,14,13,13,14,13,13,11,12,11,11,11,11,10,10,10,9,9,9,8,7,6,6,6,5,4,5,5,5,4,5,5,4,5,6,6,5,6,7,6,5,3,2,1,0,1,3,2,4,4,3,4,4,4,4,5,5,4,6,7,6,7,7,8,7,9,8,8,9,9,10,10,10,10,10,9,10,11,11,12,12,13,12,12,11,11,11,11,12,12,10,11,12,12,12,13,13,14,15,14,14,14,14,13,13,13,13,13,12,11,12,12,11,11,11,10,10,10,10,9,9,9,9,8,7,8,8,7,6,7,7,6,5,5,5,4,3,6,5,4,6,6,6,6,8,7,7,8,9,8,9,8,9,10,9,10,10,10,10,10,11,11,12,11,11,12,12,11,11,12,12,12,12,11,12,13,13,13,12,12,12,13,13,12,13,13,13,14,13,15,15,15,14,14,14,14,14,13,13,13,13,13,12,12,12,11,10,10,10,10,10,10,10,9,9,9,9,9,9,9,8,8,9,9,8,8,9,10,9,10,10,10,11,10,10,10,10,11,11,10,11,11,11,12,11,10,11,11,12,10,10,10,10,10,10,10,9,10,9,10,10,10,10,9,10,11,11,10,11,11,11,12,11,11,12,11,10,12,12,10,11,11,11,11,10,10,10,10,9,10,10,10,10,10,11,10,11,11,11,11,11,12,11,10,10,11,10,10,10,9,8,8,7,8,8,8,8,6,6,6,5,4,5,5,4,3,4,5,7,8,10,10,10,14,13,12,12,14,16,16,17,18,21,22,20,18,22,22,19,23,20,23,24,22,25,25,25,25,23,24,26,26,24,25,24,25,25,22,22,25,24,24,24,24,23,25,25,23,21,24,23],[27,27,26,27,27,27,27,27,27,26,26,26,26,26,26,26,26,26,26,27,27,26,27,27,27,27,27,27,28,27,26,28,28,28,27,28,27,28,28,28,28,28,27,27,27,27,26,26,27,25,26,25,26,25,24,25,24,24,23,22,20,19,17,14,14,12,11,11,11,10,10,10,8,7,8,9,9,8,9,9,8,9,9,9,8,9,10,11,11,9,11,11,10,10,12,11,9,11,12,11,10,12,12,10,10,12,12,11,11,12,12,12,11,10,10,11,10,11,11,10,9,9,9,9,9,9,9,9,9,8,9,9,8,8,9,10,10,9,10,10,10,9,10,9,8,9,9,9,9,10,9,9,9,9,10,10,11,10,10,12,11,10,10,10,10,9,10,10,9,8,9,9,7,7,8,8,7,7,7,7,8,7,7,7,7,6,7,7,7,7,8,7,8,8,8,10,10,10,10,11,11,11,11,12,12,11,12,11,11,9,11,10,9,9,9,8,9,8,8,8,8,8,7,7,7,7,6,6,7,6,5,6,7,8,8,8,8,8,8,7,6,6,6,6,6,5,6,6,4,4,5,4,4,4,5,5,6,7,6,4,4,4,4,4,6,6,6,6,7,7,8,8,8,9,9,8,9,9,9,9,8,8,8,8,7,7,8,8,6,6,6,5,5,5,6,6,4,4,5,6,6,6,5,5,6,6,4,6,6,5,5,5,6,4,4,5,6,7,6,7,8,8,8,8,9,8,10,11,10,10,11,12,12,12,14,14,15,16,19,18,20,18,19,21,20,21,22,22,21,23,23,23,25,25,25,25,26,25,26,24,24,25,24,23,25,24,25,24,25,25,26,26,27,26,27,27,28,27,28,27,27,28,28,28,28,28,28,28,27,27,27,28,27,27,27,26,26,27,27,28,27,27,27,25,25,26,26,24,23,23,21,22,20,18,18,16,15,15,14,12,12,10,10,10,9,9,8,8,8,7,8,8,9,9,9,9,11,11,11,11,12,12,12,14,14,13,12,11,10,10,10,9,10,11,11,10,12,14,12,14,14,13,12,11,12,11,10,11,10,10,9,9,8,8,7,7,7,5,5,6,5,5,5,5,4,5,5,4,4,5,5,5,5,6,6,5,5,5,3,2,1,0,1,2,2,3,2,2,3,3,3,4,5,4,5,5,5,6,6,6,7,8,8,8,8,8,9,9,9,10,9,9,9,10,9,10,11,11,12,11,10,10,10,9,10,10,8,10,11,12,12,12,12,13,14,14,13,13,13,12,13,13,12,12,12,10,11,11,10,10,10,10,9,9,9,9,8,8,9,7,6,7,7,6,5,6,6,5,5,5,5,4,4,5,5,4,5,6,5,6,6,7,7,8,9,8,8,8,8,10,9,10,10,10,9,10,10,10,11,11,10,12,11,11,10,13,12,11,11,10,12,11,13,12,10,10,10,12,12,11,12,13,12,13,13,13,13,14,13,14,13,13,13,13,13,12,12,11,12,11,11,11,9,10,9,10,9,9,10,8,9,9,8,9,9,8,7,9,9,8,7,8,8,9,9,10,9,10,11,10,10,11,10,10,11,10,11,9,11,11,11,10,12,11,12,11,10,10,9,10,10,10,10,9,10,10,10,10,10,11,10,10,11,10,11,12,11,12,11,11,11,11,11,11,11,11,11,11,12,12,11,10,11,11,9,10,9,10,10,10,11,10,11,11,11,11,12,12,10,11,9,12,9,9,9,8,8,9,7,6,7,7,6,6,6,6,5,5,4,4,4,3,4,4,6,7,9,9,10,12,12,12,11,12,15,16,17,19,19,21,18,18,22,21,19,23,20,21,24,23,24,24,25,25,25,25,25,25,26,26,25,25,26,23,23,24,25,24,24,22,23,23,23,21,20,22,23],[29,28,28,28,28,28,28,29,28,27,28,27,28,26,26,26,28,28,27,28,28,26,28,28,27,28,28,27,28,27,27,28,28,28,27,28,27,27,28,28,28,28,28,28,27,27,27,26,27,26,25,24,25,24,23,24,23,22,22,21,19,18,15,12,11,10,9,9,8,8,7,6,6,6,5,6,6,5,6,6,5,6,6,6,5,6,7,8,8,7,8,8,7,7,9,8,8,8,9,8,8,9,9,8,9,10,9,9,9,10,10,9,9,8,8,9,9,8,8,8,8,7,7,7,7,7,6,7,7,6,7,7,6,6,7,8,8,8,7,8,8,7,8,7,6,7,8,7,7,7,7,6,7,7,7,8,8,8,8,9,8,7,7,8,7,6,7,7,7,6,7,6,6,6,7,6,6,5,6,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,7,8,8,8,8,8,8,9,9,9,8,9,8,8,8,8,8,7,7,7,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,4,5,6,6,7,7,6,6,6,6,5,5,5,5,4,4,4,4,4,3,4,4,3,3,4,5,5,6,4,4,3,4,4,4,4,5,5,5,5,5,6,6,6,6,7,6,7,7,6,7,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,3,3,4,4,4,5,4,4,5,4,4,4,5,4,4,5,5,4,5,5,6,6,6,7,7,7,7,7,7,7,8,8,8,8,9,9,10,10,12,13,13,14,16,15,17,16,18,19,18,19,20,21,21,22,22,23,24,24,25,25,25,25,25,24,24,25,23,23,24,24,25,24,25,25,27,26,27,26,27,26,27,27,28,28,27,28,28,28,27,28,28,27,27,27,27,28,27,26,27,27,27,27,26,27,26,26,26,26,26,25,25,24,23,22,21,21,19,18,18,16,15,14,12,10,10,9,8,8,7,8,7,7,7,7,7,8,8,8,8,9,8,9,10,10,11,11,11,12,13,11,11,10,9,9,9,8,9,9,10,10,11,12,12,11,11,11,10,9,10,9,8,9,9,8,8,8,7,7,7,7,7,5,5,5,5,5,5,5,4,4,5,4,4,5,6,5,5,6,6,5,4,4,4,2,1,1,0,1,1,3,1,3,3,3,2,4,5,4,5,5,6,4,5,6,5,5,5,6,6,6,6,6,6,7,7,6,7,7,7,8,9,9,9,8,8,7,7,7,7,8,7,7,8,8,8,9,9,9,10,11,10,9,9,9,9,9,9,8,9,7,7,7,7,7,7,6,6,6,6,6,5,5,5,5,4,5,5,4,5,4,5,4,4,4,4,3,3,5,4,4,6,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,7,7,8,8,8,8,7,8,8,9,8,7,7,7,8,9,8,9,9,10,10,9,10,10,10,10,11,10,10,9,10,9,9,9,8,9,8,8,7,6,6,7,6,6,7,7,5,6,6,6,5,6,6,6,5,6,7,6,6,6,6,7,7,7,7,7,7,8,8,7,7,7,7,8,7,8,9,8,8,8,8,8,7,8,7,7,7,8,6,7,7,7,7,7,7,7,7,8,8,8,8,7,9,9,9,9,9,9,8,9,9,9,9,9,9,8,8,8,8,8,8,7,8,8,7,8,8,8,8,9,8,8,8,9,9,9,8,7,9,7,8,7,6,7,7,6,6,6,5,5,5,5,4,4,5,4,4,4,4,4,4,5,7,8,9,10,11,11,12,11,13,15,15,16,18,20,21,18,19,21,20,19,22,20,22,25,23,23,25,26,24,23,25,24,24,25,25,24,25,25,23,24,24,25,24,24,23,24,23,24,23,21,23,24],[27,27,27,27,28,28,28,28,28,26,26,26,26,25,26,26,25,27,25,27,27,26,27,27,26,27,27,27,27,26,26,27,28,28,26,27,26,27,27,27,27,27,25,26,26,26,25,23,24,23,23,23,24,22,20,22,21,20,19,20,17,15,13,11,9,8,7,7,6,6,5,5,4,4,4,4,5,4,5,5,4,4,5,4,4,5,5,5,6,5,6,6,6,5,6,6,6,6,6,6,6,7,7,6,7,7,7,7,7,8,8,7,6,6,6,7,6,6,6,6,6,5,5,6,6,5,6,6,6,5,6,6,5,6,6,6,6,6,6,6,6,5,6,6,5,5,6,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,4,5,5,4,5,5,4,4,5,5,5,4,4,4,4,4,4,4,5,4,4,5,5,4,5,5,6,6,6,6,6,6,6,7,8,7,7,7,6,6,6,6,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,5,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,4,4,4,5,4,3,2,3,2,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,3,3,2,2,2,3,3,3,3,3,3,3,2,3,3,3,3,3,4,3,3,4,4,5,4,5,6,6,4,5,5,6,6,6,6,6,7,7,8,8,10,11,12,12,15,15,16,16,17,19,18,17,19,20,20,20,21,23,23,23,24,24,25,24,25,24,22,23,22,22,22,22,24,23,23,24,25,26,27,25,27,27,27,26,27,27,26,26,26,26,26,27,27,26,26,26,26,26,26,26,26,25,27,26,25,26,26,25,26,23,24,25,24,23,22,21,20,19,18,16,15,14,12,12,11,9,9,7,7,6,6,6,5,6,5,6,6,6,7,7,7,8,9,8,8,9,9,9,10,11,11,10,10,9,9,8,7,8,8,8,9,9,10,11,10,11,11,10,9,8,9,9,7,8,7,7,6,6,6,5,5,5,4,3,4,4,3,3,4,4,3,4,4,4,4,4,5,5,6,7,7,5,5,4,3,3,2,2,1,0,1,2,1,1,1,2,2,2,3,3,3,3,3,4,3,3,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,7,8,8,8,7,6,5,5,5,6,6,5,5,6,7,7,8,7,8,8,9,8,8,8,7,7,7,6,6,6,5,6,5,5,5,5,5,4,4,5,4,4,3,4,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,3,3,3,4,3,3,4,4,4,4,4,5,5,4,4,5,5,5,5,5,5,5,5,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,7,8,8,9,8,9,8,9,8,8,8,8,7,7,7,7,6,6,5,5,5,5,5,5,5,5,5,4,4,5,4,4,5,5,4,4,5,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,6,6,5,6,6,6,6,6,6,6,6,6,7,7,7,7,6,7,8,7,7,7,7,7,7,6,7,7,6,6,6,6,6,7,6,7,7,6,7,6,7,7,7,7,8,7,7,7,7,7,6,6,6,5,6,6,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,5,6,7,8,9,11,10,11,11,14,14,16,17,19,20,21,19,17,20,21,18,22,19,22,22,21,24,24,24,24,23,24,25,24,22,25,24,22,24,22,23,23,23,23,24,22,21,23,24,20,20,22,22],[27,28,28,28,28,28,28,28,28,27,26,25,27,25,27,26,26,27,26,27,27,26,27,27,26,27,28,27,28,27,25,27,28,28,27,27,27,27,28,27,27,27,27,26,27,27,26,25,26,24,24,24,25,22,21,23,23,21,21,20,18,16,13,9,8,7,6,5,5,4,4,3,3,3,3,3,3,3,4,4,3,3,4,3,3,4,4,4,4,4,5,5,4,4,5,5,4,5,5,5,5,5,5,5,6,6,6,6,6,6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,4,4,4,5,4,5,4,4,5,5,5,5,4,4,5,5,5,5,5,5,5,6,6,6,6,7,6,7,6,6,6,7,6,6,6,5,5,4,4,3,3,4,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,4,4,4,4,4,4,3,4,4,4,3,4,4,4,4,5,5,5,5,5,6,6,6,5,6,6,5,6,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,6,6,6,5,6,6,5,5,4,6,5,4,4,4,4,3,3,3,3,3,3,3,2,2,3,2,2,3,3,2,2,3,4,6,7,7,9,10,9,11,10,12,13,14,16,17,19,18,16,17,20,18,18,21,19,21,22,21,23,23,23,22,23,23,24,23,23,24,23,22,25,22,24,24,23,24,23,23,24,23,24,22,20,24,24],[28,28,28,28,28,28,28,28,27,27,27,26,26,26,26,25,26,27,26,26,27,26,26,26,26,26,27,27,27,26,26,27,27,28,26,26,26,27,27,26,27,26,27,26,26,25,24,23,24,23,23,23,23,22,20,22,21,19,19,19,16,15,12,9,8,7,6,5,5,4,4,3,3,2,3,3,3,3,4,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,6,5,6,6,6,6,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,4,5,5,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,4,5,5,5,5,5,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,4,4,5,5,5,5,5,5,5,5,5,5,4,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,3,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,4,4,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,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21,20,23,22,22,22,22,21,24,22,22,22,23,22,22,20,22,23,21,21,22,21,21,22,23,20,20,23,22],[28,28,28,28,28,28,28,28,27,27,27,26,27,26,27,26,26,27,26,26,27,27,26,27,27,27,27,27,27,26,27,27,27,28,27,27,27,27,27,27,27,27,26,26,26,26,25,24,25,24,24,23,22,22,20,21,20,21,19,18,16,14,11,8,7,6,5,4,4,4,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,4,5,5,5,5,5,6,6,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,3,4,4,4,4,4,5,4,4,4,4,4,4,4,3,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,6,6,7,9,10,10,13,13,15,13,15,17,16,16,18,18,18,19,20,21,23,22,23,23,25,24,25,22,22,24,22,22,22,23,23,22,23,23,26,25,26,24,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,26,27,26,27,26,26,25,25,26,25,25,26,25,26,24,24,24,24,23,22,21,20,19,18,16,15,14,12,10,8,7,6,5,4,4,4,4,3,4,3,3,4,4,4,5,5,5,5,5,6,6,6,7,6,7,7,7,7,6,6,5,6,5,5,5,6,6,7,7,7,6,6,7,6,5,5,5,5,5,5,4,4,4,4,3,3,3,3,2,2,2,2,2,2,3,2,2,3,3,2,3,3,4,4,5,5,5,4,4,3,2,2,2,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,5,6,6,6,4,4,3,3,3,4,4,3,4,4,4,5,5,5,5,6,6,5,5,5,5,5,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,5,6,6,5,5,5,4,4,4,4,3,3,3,3,3,3,3,2,2,3,3,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,3,3,3,4,4,4,4,4,4,4,5,4,5,4,5,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,3,4,5,6,7,8,9,9,9,12,11,14,16,18,18,20,18,17,19,21,16,22,18,20,21,21,22,22,24,22,21,21,23,23,21,24,23,22,23,22,22,22,22,22,21,22,21,22,23,21,21,23,22],[27,27,27,27,28,27,27,27,27,26,26,25,26,25,25,25,25,27,26,26,27,26,26,27,26,26,26,26,26,25,26,26,26,27,26,26,26,26,26,26,26,26,25,26,26,26,24,23,23,23,22,22,22,21,20,21,20,19,19,17,15,14,11,8,7,6,5,4,4,4,4,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,5,4,4,4,5,5,4,4,4,4,4,3,4,4,3,3,4,3,3,4,4,3,3,4,4,4,3,4,4,3,3,4,3,3,3,4,3,3,4,3,3,3,4,4,4,4,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2,2,3,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,3,4,4,3,3,4,4,4,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,4,3,4,4,4,4,4,4,5,5,5,5,4,5,5,4,4,4,5,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,4,5,6,7,8,9,9,10,9,12,12,15,17,18,19,19,16,17,19,19,17,21,18,19,21,20,21,23,22,21,22,23,24,22,23,22,22,22,24,20,22,22,22,22,22,21,21,22,23,22,20,21,22],[28,28,28,28,28,28,27,28,27,27,27,25,26,25,26,25,25,27,25,26,26,25,25,26,25,26,26,26,26,25,25,25,26,27,25,26,25,25,25,25,26,25,25,25,24,24,23,22,23,22,21,21,22,19,18,19,19,17,17,17,14,13,10,8,7,5,4,4,4,3,3,3,2,2,2,2,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,4,3,3,4,3,3,4,4,3,3,4,4,4,4,4,5,4,4,5,6,5,4,4,4,4,4,4,4,4,4,3,3,4,4,3,3,4,3,3,3,3,3,3,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,4,3,3,3,4,4,3,4,4,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,1,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,1,2,2,1,1,1,2,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,3,3,3,3,3,4,4,4,5,5,5,7,8,9,9,11,13,13,12,14,16,15,15,17,17,17,18,18,20,21,20,21,22,23,22,23,22,21,23,20,21,21,21,23,22,23,22,25,24,27,24,25,26,26,25,25,25,26,25,26,25,25,26,26,26,25,25,27,26,26,25,26,24,25,26,25,25,25,24,25,23,22,23,23,22,21,19,19,18,17,15,14,13,11,9,8,6,5,5,4,3,4,4,3,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,7,6,7,7,7,6,5,5,5,5,5,5,6,6,7,7,6,6,6,6,5,5,6,5,4,5,5,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,5,5,4,4,3,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,5,5,5,4,3,3,3,2,3,3,3,3,3,4,4,4,4,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,6,5,5,5,5,5,5,5,4,4,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,4,4,5,4,4,4,4,4,4,4,3,4,4,4,3,4,4,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,4,4,6,6,8,8,9,10,9,12,12,15,16,17,19,19,17,16,19,19,17,20,18,20,21,20,23,22,23,22,22,23,24,22,22,24,23,22,23,22,23,23,22,23,22,22,22,22,24,21,20,23,23],[29,28,28,28,28,28,28,27,27,26,27,26,26,25,26,25,25,27,25,25,26,26,25,26,26,25,26,26,26,25,25,26,26,27,25,26,26,26,26,25,26,25,25,25,24,24,23,22,23,23,22,21,22,21,18,19,18,18,17,17,13,12,10,7,6,5,4,4,4,3,3,2,2,2,2,2,3,2,3,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,4,4,3,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,3,3,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,6,8,9,9,11,12,13,12,12,14,15,14,16,17,16,16,17,19,20,19,21,21,22,22,23,21,20,22,20,20,21,21,22,21,21,21,23,24,27,23,24,25,25,25,25,25,25,25,25,25,25,26,25,26,26,25,26,26,26,25,25,24,24,25,25,25,25,24,25,23,22,23,24,22,21,19,19,19,17,15,14,13,11,10,7,6,5,4,4,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,5,5,5,5,5,4,5,5,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,5,4,4,3,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,5,5,4,3,2,2,2,3,3,3,3,3,3,4,4,4,4,5,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,4,5,5,5,5,4,5,5,5,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,3,2,2,3,3,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,2,3,4,5,6,7,8,9,9,9,13,12,15,16,17,19,19,19,18,19,20,17,21,17,21,21,20,24,23,23,22,23,21,25,23,22,24,23,22,21,20,23,22,21,21,20,22,20,23,22,21,21,23,22],[28,28,28,28,28,27,28,28,26,27,26,25,26,25,25,25,26,27,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,25,26,25,26,25,25,26,26,25,25,25,25,24,23,23,23,22,21,21,21,19,19,18,20,17,17,14,13,10,8,7,6,5,4,4,4,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,4,5,5,5,5,6,6,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,4,4,3,3,4,4,4,4,5,4,5,4,4,4,4,4,3,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,4,4,3,4,4,4,4,4,4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,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,4,4,4,4,4,4,4,5,5,5,4,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,6,6,7,9,9,9,8,13,14,14,16,17,18,19,16,17,18,18,16,21,18,20,21,21,24,23,22,20,23,22,23,23,23,22,21,22,24,20,20,21,22,22,21,21,21,22,23,21,19,21,22],[28,28,27,27,27,27,27,27,27,26,26,24,26,25,25,25,25,26,25,26,27,26,26,26,26,26,27,26,27,25,25,26,26,27,26,26,25,26,26,26,26,25,25,25,26,25,24,23,23,23,21,22,22,20,18,20,19,18,18,18,15,13,11,8,7,6,5,5,5,4,4,3,3,3,3,3,4,4,4,4,3,3,4,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,3,4,4,4,4,4,4,4,4,3,4,4,3,4,4,4,3,4,4,3,4,5,5,5,5,5,5,5,5,5,5,4,5,4,5,4,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,3,3,4,4,3,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,3,2,2,3,3,2,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,2,3,3,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,6,6,7,9,10,10,12,13,14,12,13,15,16,15,17,17,17,18,19,20,21,21,22,21,24,22,23,22,21,23,22,21,22,22,23,23,22,22,25,24,26,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,26,26,26,25,25,25,25,26,25,26,25,25,23,24,23,23,22,21,20,19,19,17,15,15,13,12,10,9,7,6,5,5,5,5,4,4,4,4,4,5,5,5,5,5,6,6,6,6,7,7,7,7,8,8,7,8,7,7,6,5,6,6,6,7,7,7,8,7,8,7,7,7,6,6,6,5,5,6,5,5,5,4,4,4,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,5,5,6,6,5,4,3,3,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,1,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,5,6,6,4,4,3,3,3,3,3,3,4,4,5,5,5,5,5,6,6,6,6,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,5,6,6,6,6,6,6,6,5,6,6,6,5,5,5,4,4,4,4,3,3,3,3,3,3,3,2,2,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,4,3,3,4,4,3,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,5,5,6,5,5,6,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,5,5,5,4,5,4,4,4,4,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,4,5,7,7,8,9,10,10,9,13,14,15,17,17,20,19,17,18,20,19,17,21,17,19,20,20,23,23,21,22,22,22,23,23,22,24,23,22,23,21,22,23,23,22,23,22,22,23,24,21,21,23,23],[28,28,28,28,28,28,28,28,27,27,27,27,27,25,26,26,25,27,25,26,26,26,26,26,26,26,27,26,27,25,25,26,27,27,26,27,26,26,26,26,26,26,25,25,25,25,24,22,24,23,21,20,21,20,18,20,19,17,17,18,16,13,11,8,7,6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,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,3,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,4,3,3,3,3,3,3,4,3,3,4,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,4,4,5,4,4,5,4,5,5,5,5,4,5,5,4,4,4,4,4,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,4,6,7,7,9,10,11,11,11,14,14,16,16,17,19,19,20,18,19,20,19,21,19,21,21,22,24,24,23,23,22,23,25,22,22,25,24,22,23,23,24,23,22,24,22,23,22,24,24,23,22,24,24],[28,28,28,28,28,28,28,28,27,27,26,25,26,25,26,25,26,26,25,26,26,26,26,26,26,27,26,26,27,26,26,27,27,27,26,27,26,26,27,26,27,26,25,25,25,25,24,23,23,23,22,21,22,21,18,20,18,18,16,17,15,13,11,8,8,7,6,5,5,4,4,4,3,3,3,3,4,3,4,3,3,3,4,3,3,3,4,4,4,4,4,5,4,4,5,4,4,5,5,5,4,5,5,5,5,6,6,6,6,6,7,6,5,5,5,6,5,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,4,4,4,4,4,4,4,5,5,5,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,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3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,4,5,7,7,8,10,11,10,11,14,13,15,17,18,19,20,18,18,20,21,18,22,18,22,21,21,24,24,20,22,23,23,24,22,22,24,22,23,22,21,22,22,21,22,22,22,22,23,23,21,20,22,22],[27,27,26,26,27,25,26,27,24,25,25,23,26,23,24,24,25,25,24,25,25,24,25,25,25,26,26,25,26,26,25,26,26,27,25,26,25,25,26,25,26,25,25,24,24,23,23,22,22,22,20,20,21,20,18,18,18,17,17,16,14,13,11,9,8,7,7,7,6,5,5,5,4,4,4,4,5,4,4,5,4,4,5,4,4,4,4,5,5,5,5,5,5,5,6,5,5,5,5,5,5,6,5,5,6,6,6,6,6,7,7,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,4,5,5,5,5,5,4,4,5,5,5,4,5,5,4,4,5,5,4,5,5,5,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,4,4,5,4,4,4,4,4,4,4,5,5,5,5,4,5,5,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,3,4,4,4,3,4,4,5,5,6,5,5,5,5,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,4,4,3,3,2,2,2,2,2,3,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,4,3,3,3,3,3,3,3,3,3,4,4,3,3,4,4,4,4,4,5,5,5,5,4,5,6,5,5,6,6,7,7,8,9,10,10,10,11,12,13,12,12,14,14,14,15,16,17,16,16,18,19,18,20,20,20,21,22,20,19,20,20,19,19,20,22,19,19,21,22,23,24,23,23,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,26,25,24,25,25,24,24,25,25,25,24,23,25,23,24,23,23,23,21,21,19,19,18,16,16,14,12,11,9,8,7,7,6,6,6,6,5,5,5,5,5,5,5,5,6,6,6,6,7,8,7,7,8,8,8,8,7,7,7,6,6,6,6,6,7,7,8,8,8,8,8,8,7,7,7,7,6,6,7,6,5,6,6,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,4,6,7,6,5,4,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,2,2,2,2,2,3,2,3,3,3,3,4,4,4,4,4,5,6,6,6,5,4,3,4,4,4,4,4,5,4,5,5,6,5,6,7,7,7,7,6,6,6,5,5,5,5,4,4,4,4,4,4,4,4,3,4,3,4,3,3,3,3,2,3,3,2,2,3,2,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,4,3,4,4,4,4,5,4,5,5,5,5,5,5,5,5,5,6,5,6,6,5,5,5,6,6,6,6,6,7,6,7,7,7,7,7,7,7,6,7,7,6,7,7,6,6,5,5,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,5,5,5,5,5,5,5,5,5,4,4,5,4,4,5,5,4,4,5,5,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,6,6,5,6,5,6,5,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,3,4,6,7,7,8,10,10,10,10,14,15,15,16,17,18,19,16,18,19,18,15,20,16,20,21,18,20,22,20,20,21,21,21,22,21,21,21,22,23,19,21,22,22,22,22,22,22,22,22,21,19,21,22],[27,28,27,26,28,27,27,28,26,26,26,24,27,24,26,24,26,27,24,26,26,24,25,26,25,26,26,26,26,26,25,26,27,27,26,27,27,26,27,26,27,26,26,25,25,25,23,21,23,22,20,20,21,19,18,18,18,16,17,17,15,13,11,9,8,7,6,6,6,5,5,5,4,4,5,4,5,5,5,4,4,5,5,3,4,4,4,5,5,4,5,5,5,6,6,5,5,6,6,6,7,7,6,6,7,7,7,7,7,7,8,7,7,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5,4,5,4,5,5,6,6,5,5,6,6,6,6,6,6,6,7,6,7,7,6,7,6,7,7,5,6,7,6,6,6,6,5,5,4,5,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,4,3,3,4,4,3,4,3,4,4,3,4,5,4,4,4,5,4,5,5,5,4,4,4,4,4,4,4,4,3,4,4,4,4,5,5,5,5,5,6,6,5,5,6,6,5,6,5,5,5,6,5,5,6,5,5,5,5,5,5,6,5,5,5,5,6,6,5,5,5,5,5,5,5,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,4,6,7,8,9,10,11,12,10,14,15,16,17,16,19,17,18,17,20,19,18,21,18,20,20,19,22,23,21,23,23,22,23,23,22,23,22,22,22,20,21,23,22,22,23,23,23,23,25,22,20,23,25],[28,28,28,28,28,28,28,27,28,27,27,27,27,26,27,26,27,27,27,27,27,27,27,27,26,27,27,27,27,27,26,27,27,28,27,27,27,27,27,27,27,27,26,26,26,25,24,24,24,23,22,21,22,20,19,20,19,18,17,18,15,12,10,8,7,6,5,5,5,4,4,3,3,3,3,3,4,4,4,3,3,4,3,3,3,4,3,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,7,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,5,4,4,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,5,5,4,4,4,5,5,4,5,5,5,6,6,6,7,8,9,10,10,13,14,12,13,15,15,14,16,18,18,18,20,21,22,22,23,23,24,24,23,23,22,23,21,22,22,22,23,23,24,24,25,25,27,26,26,26,27,27,27,27,26,27,27,27,27,27,27,27,27,26,27,27,27,27,27,26,26,27,26,26,26,25,26,24,24,24,24,24,23,21,21,20,18,17,16,15,13,11,9,8,7,6,5,5,5,4,5,4,4,4,4,5,5,5,5,6,6,6,6,7,7,8,7,8,8,8,8,7,7,6,6,6,7,6,7,7,8,9,8,8,8,8,7,7,6,6,6,6,6,5,5,5,5,5,4,4,3,3,3,3,3,3,3,3,3,2,3,3,3,3,4,4,5,6,6,6,5,5,4,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,4,6,6,6,4,4,3,3,2,3,3,3,3,4,4,4,5,4,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,3,4,3,4,4,4,5,4,4,4,4,5,5,5,5,5,6,5,6,6,6,5,5,6,6,5,5,6,6,5,5,5,4,4,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,3,2,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,4,6,8,8,9,11,10,11,11,13,15,16,18,19,21,21,21,20,21,22,20,22,20,23,22,22,25,25,24,24,24,24,25,24,24,26,25,23,25,24,25,24,24,24,23,24,22,25,24,23,24,25,25],[28,28,27,27,28,26,28,27,25,26,26,24,26,23,26,23,26,25,24,26,25,24,27,26,25,26,26,26,27,26,25,27,27,28,27,27,27,27,27,27,27,27,26,26,26,25,24,22,23,22,20,20,21,20,18,18,18,16,16,16,14,12,10,8,7,6,5,5,5,5,4,4,3,3,3,4,4,4,4,4,4,4,4,3,3,4,3,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,6,6,6,6,6,7,7,6,6,5,6,6,6,6,6,6,6,5,5,5,6,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,3,3,4,4,5,5,6,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,2,2,2,2,2,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,5,5,4,4,4,5,5,4,5,5,5,6,6,6,7,8,8,9,10,12,12,11,12,13,14,14,15,16,17,17,17,20,20,19,21,22,22,22,22,22,20,22,20,20,21,21,22,21,21,23,24,25,26,25,25,27,26,26,25,26,26,26,26,26,26,26,27,27,26,26,27,26,26,26,26,25,26,26,26,26,26,25,26,24,25,24,24,23,22,21,21,19,19,17,16,15,12,11,9,8,6,6,5,5,5,5,4,5,4,4,5,5,5,5,6,6,6,6,6,7,7,7,7,7,7,7,8,7,7,6,6,6,6,6,7,7,8,8,7,7,7,8,7,6,6,6,6,6,6,5,5,5,5,5,5,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,6,6,6,5,4,3,4,3,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,3,3,3,4,6,6,6,4,4,2,3,2,3,3,3,3,3,4,4,5,4,5,5,5,5,5,4,4,4,4,4,3,4,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,3,3,2,3,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,3,4,4,3,4,3,4,4,4,5,4,4,5,4,5,5,5,5,5,6,5,6,6,5,6,6,6,6,5,5,6,5,5,5,5,5,4,4,4,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,3,3,4,4,3,3,4,4,4,4,4,5,5,5,4,5,5,4,4,4,4,4,5,4,4,5,4,4,4,4,4,5,5,5,5,4,5,5,5,5,4,4,4,5,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,3,2,2,3,5,6,7,8,8,11,10,10,10,13,15,15,15,17,19,18,18,18,20,20,17,23,17,23,21,20,25,23,21,24,24,23,24,25,23,22,24,24,24,21,23,23,24,23,24,24,23,23,24,21,21,24,24],[28,28,27,27,28,26,28,28,26,25,26,23,26,23,25,22,25,26,24,26,26,26,26,27,25,26,26,25,26,26,26,27,27,27,26,27,27,26,27,26,27,26,26,25,25,25,23,21,22,22,20,20,21,18,17,18,17,16,16,15,13,11,10,7,6,6,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,5,5,4,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,3,4,4,4,3,4,4,3,3,4,4,3,4,4,3,3,4,4,4,4,4,4,5,5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,2,2,2,2,2,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,5,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,5,4,4,4,4,5,5,5,4,4,5,4,4,4,3,3,4,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,6,7,9,9,10,10,10,13,13,15,16,18,18,17,17,17,19,18,17,21,17,21,20,20,23,24,20,21,23,22,22,23,23,23,22,23,23,21,21,23,22,23,23,23,23,22,25,22,21,25,26],[28,28,28,28,28,28,28,27,27,26,26,26,26,25,26,25,25,27,26,25,26,26,25,26,26,26,26,26,27,26,25,26,26,27,26,26,26,26,27,26,27,26,26,26,25,25,24,23,23,22,22,22,21,20,19,19,18,17,17,16,14,11,9,6,5,5,4,3,4,3,3,3,2,2,2,2,3,3,3,3,2,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,5,5,5,5,5,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,1,1,2,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,4,4,3,4,4,4,4,4,5,6,7,8,9,10,13,12,11,13,14,15,14,16,17,17,18,19,20,21,22,21,23,24,23,24,23,21,23,22,21,22,22,23,22,23,23,26,24,27,25,26,25,26,26,26,26,26,26,26,26,26,26,26,26,27,26,27,26,27,26,26,26,26,26,26,25,26,26,25,24,23,23,24,23,22,20,19,19,18,16,15,14,12,10,8,6,5,4,4,4,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,7,6,6,6,6,6,6,5,5,5,5,6,6,6,7,7,6,6,6,6,6,5,6,5,5,5,5,4,4,4,4,4,3,3,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,4,5,5,4,4,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,2,2,2,3,3,4,5,6,6,5,3,2,2,2,2,2,3,3,3,3,3,4,3,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,2,1,1,2,2,1,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,2,1,2,1,2,2,1,1,2,2,2,2,2,2,3,2,3,3,2,2,3,2,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,4,4,4,5,4,4,4,5,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,2,2,3,2,2,2,3,2,2,3,3,2,3,3,3,3,3,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,4,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,3,4,3,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,4,5,7,7,9,9,10,10,11,13,13,15,15,16,19,18,19,18,19,20,19,21,19,23,22,22,24,24,23,23,23,23,25,22,23,25,23,22,24,22,23,23,24,24,22,24,23,24,24,24,22,24,25],[28,28,28,28,28,28,28,27,28,27,26,26,26,25,26,25,26,27,26,27,26,27,27,26,26,27,26,26,27,26,25,27,27,27,27,27,27,26,27,26,27,26,26,26,25,25,24,23,24,23,23,21,22,20,19,20,19,18,17,16,14,12,9,7,5,5,4,4,4,3,3,3,3,2,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,2,2,3,2,2,3,2,2,2,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,5,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,1,1,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,4,4,3,4,4,4,5,4,5,6,6,7,9,9,11,12,11,13,14,15,14,15,16,17,18,18,21,22,21,22,23,23,24,24,23,22,24,22,22,22,22,24,23,23,24,25,25,28,25,26,26,26,26,27,27,27,27,27,27,27,27,27,27,26,26,27,27,27,27,26,26,26,26,25,26,26,25,26,24,24,24,25,23,23,21,21,20,19,17,15,15,12,10,8,7,6,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,6,5,5,6,7,6,7,7,7,7,8,6,7,6,5,6,5,6,7,7,8,7,7,7,7,7,6,6,6,6,5,5,5,5,4,5,4,4,4,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,5,5,4,3,3,3,3,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,3,3,4,6,6,6,4,3,2,2,2,2,2,3,2,3,3,4,4,3,4,4,4,4,4,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,2,1,1,1,2,1,1,1,2,2,2,2,2,2,2,2,2,2,3,2,3,3,2,2,3,2,3,3,3,3,3,4,3,3,3,3,3,4,4,4,4,4,4,5,5,4,4,4,5,5,4,4,5,5,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,2,2,3,3,3,3,3,4,4,3,3,4,4,3,4,4,3,3,4,3,3,4,4,3,3,3,4,4,4,4,4,4,3,4,4,4,4,4,4,4,3,3,3,4,4,3,3,3,3,3,3,3,2,2,2,3,2,2,2,2,2,2,2,2,2,3,4,5,6,7,9,9,10,10,10,13,14,16,16,17,20,20,20,18,21,20,20,23,20,24,23,23,25,24,23,25,24,24,25,24,25,26,25,23,26,23,24,24,23,24,24,24,24,25,26,24,23,25,24],[28,28,27,27,28,27,28,28,26,26,26,23,26,23,26,24,26,25,24,26,25,24,27,27,23,26,27,25,26,27,24,27,28,28,27,27,27,28,28,27,28,27,27,27,26,25,24,23,23,23,20,20,20,20,18,19,19,17,16,16,14,12,10,7,6,5,4,4,4,3,3,3,3,2,3,3,3,3,3,3,3,3,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,5,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,4,3,3,3,3,3,3,3,3,3,3,3,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3,3,3,3,3,4,4,3,3,4,4,3,3,4,3,3,4,4,3,4,3,3,3,3,3,3,4,4,4,4,3,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,7,7,9,9,9,10,10,12,13,15,15,15,18,19,19,16,18,18,20,22,19,23,21,21,25,24,22,23,25,22,24,24,24,23,23,23,24,20,22,23,24,24,23,24,24,23,25,24,22,23,25],[28,28,28,28,28,27,28,28,27,26,27,25,27,25,26,24,26,27,25,27,26,25,27,27,25,27,27,26,27,27,25,26,27,28,26,27,27,27,27,27,27,26,26,26,26,25,25,23,23,22,21,21,21,20,19,19,18,18,17,16,14,11,9,6,5,5,4,3,4,3,3,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,2,3,3,3,4,3,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,4,4,3,4,4,4,5,4,5,6,8,8,9,10,12,12,12,12,13,14,14,15,16,17,17,17,19,21,20,20,21,23,22,23,23,21,23,21,21,22,22,24,21,23,22,26,24,27,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,26,26,26,26,25,25,25,26,26,26,26,25,25,24,24,24,23,22,21,20,19,18,17,16,14,12,10,8,6,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,5,5,5,5,6,6,6,7,6,6,7,6,6,5,5,6,5,5,5,5,4,4,4,4,3,4,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,3,4,4,4,5,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,3,2,4,5,5,5,4,3,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,1,1,1,1,1,1,1,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,2,2,3,3,2,2,3,2,2,3,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,3,3,4,3,3,4,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,7,6,8,9,9,10,10,14,13,16,17,18,18,18,18,17,19,18,19,23,19,22,21,22,24,24,24,23,24,23,25,23,24,24,23,23,25,22,22,24,24,24,23,23,24,23,26,24,22,24,25],[28,28,28,28,28,28,27,27,27,26,27,26,26,25,25,25,25,26,25,26,26,26,26,26,26,26,26,25,27,26,24,26,26,26,26,26,26,26,26,26,26,26,26,26,25,24,24,22,23,22,21,21,21,20,18,19,18,16,17,16,13,10,8,6,5,4,3,3,3,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1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,3,3,3,3,3,3,4,3,4,4,3,4,3,4,4,3,3,4,4,4,3,3,3,2,2,2,2,2,2,2,1,1,2,1,1,1,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,4,5,6,6,8,9,10,10,10,14,15,16,18,18,20,20,19,18,20,20,20,23,21,23,23,22,25,25,24,24,25,25,25,25,24,25,24,24,25,24,25,25,24,25,24,24,24,24,26,25,24,25,25],[28,28,28,28,28,28,28,27,27,27,26,25,26,25,27,25,27,27,25,27,26,25,27,26,25,27,27,25,27,27,25,27,27,27,26,27,27,27,27,27,27,27,26,26,26,26,25,23,24,22,22,21,21,20,18,19,19,17,16,16,13,10,8,6,5,4,4,3,3,3,3,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,3,2,2,2,2,2,2,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,3,3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,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,6,6,8,9,10,10,10,13,14,16,17,18,20,20,19,18,19,20,20,23,21,23,22,22,26,25,24,25,25,24,25,25,25,25,23,25,25,22,23,24,24,25,24,24,25,24,26,24,23,24,25],[28,27,27,26,28,27,28,28,26,26,25,22,26,23,25,23,25,25,23,26,24,23,25,25,23,25,26,23,25,25,23,26,27,27,25,27,26,26,26,26,26,26,25,26,25,25,23,21,22,21,20,19,19,19,16,18,18,15,15,15,12,10,8,6,5,5,4,3,4,3,3,3,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,4,4,3,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,3,3,4,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,3,3,4,4,3,3,4,4,5,4,5,6,6,7,8,9,10,10,10,11,12,12,12,13,14,15,15,15,17,20,18,19,21,21,20,23,19,20,22,21,20,20,21,22,20,19,22,23,23,26,23,24,24,24,25,25,25,25,24,25,25,25,26,26,26,26,26,26,26,25,25,25,24,25,25,24,25,24,23,24,23,23,23,22,21,20,18,20,18,17,15,14,14,11,9,7,6,5,4,4,4,4,4,3,4,3,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,4,4,4,5,5,5,5,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,3,4,5,5,5,3,2,2,1,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,2,1,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,1,2,1,2,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,3,3,3,3,3,3,3,4,3,4,4,3,4,3,4,4,3,3,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,4,4,3,3,4,4,3,4,3,3,3,4,3,3,4,3,3,3,3,3,3,4,4,3,4,3,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,3,4,5,6,6,7,8,8,9,9,12,12,14,15,16,17,18,17,15,17,17,18,20,17,21,19,21,24,22,22,23,24,21,23,23,22,23,21,23,22,21,20,22,23,22,22,22,23,22,24,23,19,22,25],[28,28,28,27,28,28,28,27,27,26,26,25,26,24,25,24,25,25,24,25,25,24,25,25,24,26,26,24,26,26,24,26,26,27,26,27,26,26,26,26,27,26,26,26,25,25,23,22,24,22,20,21,21,19,18,20,19,17,16,16,13,10,8,6,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,4,3,3,4,4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,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,2,2,2,2,2,1,2,1,1,1,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,3,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,4,5,6,6,7,9,8,9,10,12,13,15,16,16,19,19,18,17,18,18,19,21,19,23,21,22,24,24,23,23,24,23,23,24,23,24,22,23,24,22,22,23,24,24,24,24,24,23,25,24,21,24,25],[28,28,28,28,28,28,28,27,27,27,26,26,26,24,26,24,26,26,25,26,26,25,26,26,25,27,26,24,27,26,24,26,26,26,26,26,26,26,26,26,26,26,26,26,25,25,24,23,23,23,22,21,21,20,18,20,18,17,17,16,13,11,8,6,5,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,1,2,1,1,1,2,1,1,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,3,3,4,4,3,3,4,4,4,4,4,5,6,7,7,9,12,12,11,11,14,13,13,15,16,15,16,18,19,20,20,22,22,24,23,24,24,23,24,22,22,23,23,24,23,24,24,26,25,27,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,26,27,27,26,27,27,26,25,26,26,25,26,25,25,25,24,23,23,23,22,21,20,20,19,18,16,14,14,11,10,8,7,5,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,5,6,6,6,7,7,7,7,7,8,7,7,6,6,6,6,7,7,7,8,7,6,7,7,7,6,6,6,6,5,6,5,4,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,5,5,6,6,6,5,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,3,5,5,6,4,3,2,2,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,3,3,3,3,3,3,4,4,4,4,3,4,3,4,4,3,3,4,4,4,4,3,3,2,2,2,2,2,2,2,1,1,2,2,1,1,2,1,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,4,4,4,4,4,3,4,4,4,4,4,4,4,3,4,3,4,4,3,3,3,3,3,3,3,2,2,3,3,2,2,3,3,2,3,3,3,2,3,4,5,6,6,8,9,10,10,11,14,15,17,19,19,21,21,20,19,20,21,21,24,22,24,23,23,26,25,24,25,26,25,25,25,25,25,24,25,25,23,24,25,24,25,25,24,25,24,26,24,23,25,24],[28,28,28,27,28,28,28,27,26,26,26,25,27,24,25,24,26,26,25,26,25,25,26,25,24,26,26,24,26,25,23,26,27,27,25,27,25,26,26,25,27,26,25,25,25,25,23,21,22,22,20,19,20,19,16,18,18,16,15,16,14,11,9,7,6,5,4,4,4,3,3,3,2,2,2,3,3,3,3,2,2,3,2,2,2,2,2,2,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,6,5,5,4,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,3,4,3,3,3,4,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,3,4,3,3,3,4,3,3,4,4,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,2,2,3,3,2,2,3,3,3,3,3,4,5,5,4,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,4,4,3,3,4,4,3,4,4,4,5,4,5,6,6,7,8,9,11,11,12,12,13,13,14,15,16,15,16,17,18,20,19,21,22,24,22,23,23,23,25,21,21,22,23,23,22,22,24,25,25,26,25,25,26,25,26,26,25,26,25,26,25,26,26,26,26,26,26,26,26,27,25,26,24,25,26,25,26,25,24,25,23,22,23,21,21,22,19,20,18,17,16,14,13,11,10,8,7,6,5,5,4,4,4,4,4,4,5,4,4,5,5,5,5,6,6,7,7,7,7,7,7,8,7,8,7,7,6,6,6,6,7,7,7,8,7,7,7,7,7,6,6,6,6,6,6,6,5,5,5,4,4,4,4,3,3,3,3,4,3,3,4,4,3,4,4,4,4,5,5,5,6,6,6,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,2,2,3,5,4,6,5,3,2,2,1,2,2,2,2,2,3,3,3,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,1,2,2,1,1,2,1,1,1,1,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,3,2,2,2,3,2,3,2,2,3,2,2,3,3,2,3,3,3,3,3,3,2,2,3,3,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,4,4,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,6,7,6,8,10,10,9,11,12,13,15,17,18,20,20,19,16,18,19,20,22,19,23,21,21,25,24,23,24,25,23,24,25,24,23,24,25,24,21,21,24,23,24,24,23,25,23,26,24,21,23,25],[28,28,28,28,28,28,28,28,27,27,26,25,27,24,26,24,26,26,25,26,25,24,26,26,24,26,27,24,26,26,24,26,27,27,26,27,26,27,27,26,27,26,26,25,25,25,23,22,23,22,21,21,20,20,18,19,18,17,17,16,14,11,9,7,6,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,6,5,5,4,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,3,4,3,3,4,4,4,4,4,4,4,4,3,4,4,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2,2,3,3,3,3,3,3,2,3,3,2,3,3,3,2,3,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,5,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,6,7,7,8,10,10,10,11,12,13,15,16,18,19,19,19,17,18,19,20,22,19,22,21,21,24,24,23,24,24,22,24,24,23,24,23,24,24,22,23,25,24,24,24,23,23,24,25,25,22,23,25],[28,28,28,28,28,28,28,28,28,27,27,26,27,24,26,25,26,26,25,26,25,25,26,26,24,26,27,25,27,26,24,27,27,28,26,27,27,27,27,27,27,27,26,26,26,25,23,23,24,23,23,22,22,21,20,20,19,18,18,17,15,12,10,7,6,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,4,3,4,4,4,4,5,4,4,5,5,5,5,6,6,6,6,6,7,7,6,5,5,5,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,4,4,4,4,4,4,5,4,4,4,5,4,4,4,5,4,4,5,5,4,4,4,4,4,3,3,4,4,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,4,4,4,5,5,5,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,5,5,5,4,5,5,4,5,5,5,5,5,6,7,9,9,10,11,14,14,13,14,15,15,14,17,16,16,18,19,19,20,21,22,23,25,24,25,25,22,24,22,22,24,24,24,23,24,24,26,25,27,26,26,26,27,27,27,27,27,27,27,27,26,27,27,27,27,27,28,27,27,27,27,26,26,26,26,26,26,26,26,24,23,24,24,23,22,20,19,20,18,17,17,15,13,12,10,8,7,6,6,6,6,5,5,5,5,6,6,6,6,7,7,7,7,7,8,8,9,8,9,9,10,9,9,9,9,8,8,8,8,8,9,9,10,10,9,9,9,9,8,8,8,7,7,8,7,6,6,6,6,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,6,6,7,7,7,7,7,7,6,5,5,5,4,4,4,3,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,2,2,3,5,5,6,5,3,2,2,2,2,2,3,2,3,3,3,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,3,4,4,4,4,4,4,5,4,4,4,4,5,4,4,4,5,5,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,5,5,5,4,4,5,5,4,4,4,4,4,4,4,4,5,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,4,4,4,4,4,5,4,4,4,4,4,4,6,6,8,8,9,11,12,12,12,14,16,17,18,18,21,20,21,20,20,21,21,23,21,23,23,24,25,25,25,24,25,24,25,25,25,26,24,24,26,25,24,26,26,25,26,24,24,24,26,25,23,25,26],[28,27,28,28,28,28,28,28,28,27,27,26,27,26,26,25,26,26,25,27,26,25,27,26,25,26,26,25,26,26,24,27,27,27,26,27,26,26,26,26,27,26,25,26,26,25,24,23,23,23,23,20,21,21,19,20,19,18,17,18,15,13,11,9,7,7,6,6,6,6,6,5,6,5,5,6,5,6,5,5,5,5,5,4,4,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,8,8,8,8,9,9,8,10,9,9,10,10,8,8,8,9,9,9,9,9,9,8,8,9,8,8,8,8,8,7,8,7,6,7,7,8,7,6,6,7,7,6,6,7,6,6,7,7,6,7,7,7,6,7,7,8,7,7,8,7,7,7,8,8,7,7,8,8,7,8,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,5,6,5,5,5,5,5,4,5,5,5,6,6,5,6,5,5,5,6,6,6,5,4,5,4,5,5,4,4,5,4,4,5,5,5,5,5,5,6,5,6,6,6,6,6,6,7,8,8,9,8,8,8,9,8,7,8,8,8,8,7,7,8,7,7,6,6,6,6,6,7,7,7,6,6,6,5,5,4,4,5,4,4,4,3,3,3,3,3,3,3,4,4,3,4,3,3,3,3,3,3,4,4,4,4,5,6,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,9,9,8,8,8,7,7,7,7,7,7,7,8,7,8,8,8,9,9,10,12,14,14,13,13,16,16,15,16,17,17,18,19,20,21,21,23,24,25,24,26,25,23,25,23,22,24,25,26,24,25,25,27,27,28,27,27,27,28,27,28,28,28,28,28,28,28,28,28,28,28,27,28,27,28,28,27,27,27,27,27,27,26,26,26,25,24,25,23,22,22,22,22,21,20,19,18,17,14,14,12,10,9,8,8,8,8,8,9,8,9,9,9,9,9,9,10,10,10,10,10,10,12,11,11,11,11,12,12,11,11,11,10,10,11,11,11,11,12,12,10,12,11,12,10,10,10,9,10,10,10,9,9,9,9,8,9,8,8,8,8,8,8,8,8,8,8,8,8,9,8,8,9,9,9,11,10,10,10,10,8,9,8,8,7,7,7,6,6,6,5,6,6,5,5,5,5,4,4,4,4,4,4,3,3,3,2,2,2,2,1,1,1,0,1,2,2,3,6,6,7,6,4,3,3,2,3,3,3,3,4,5,5,5,6,6,6,5,5,5,5,4,4,4,4,3,3,3,3,2,3,2,2,3,3,2,2,3,4,3,3,4,4,4,4,6,5,5,6,6,6,6,7,6,7,7,7,6,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,3,4,5,5,5,5,5,5,6,6,6,6,7,6,6,7,7,6,6,6,6,6,6,5,6,6,5,6,6,5,5,4,3,4,4,3,3,4,3,3,4,4,3,4,5,4,4,5,5,4,5,6,6,6,6,5,5,5,5,5,4,5,5,4,4,4,5,4,3,4,4,3,4,4,4,4,5,5,5,5,4,4,5,4,4,5,5,5,4,6,5,5,6,6,6,5,6,7,6,6,6,6,6,5,6,6,6,7,6,6,7,7,6,6,7,8,8,9,8,7,8,7,8,7,7,7,7,7,7,7,7,7,6,7,7,6,6,6,7,6,6,7,7,6,7,7,7,6,7,8,7,7,7,7,7,7,8,9,11,10,12,14,13,14,14,16,17,19,20,19,23,22,23,20,21,22,22,24,22,24,23,23,26,26,25,25,26,25,26,26,26,26,25,26,26,24,24,26,26,25,27,25,25,25,26,25,23,26,26],[28,28,28,28,28,29,28,27,28,27,27,26,27,25,26,25,26,27,24,26,26,24,26,26,24,26,27,24,26,26,24,27,27,27,25,28,26,27,27,27,28,27,26,26,26,26,24,24,26,23,22,22,24,21,19,22,21,18,19,19,17,15,13,11,10,9,9,8,8,7,8,8,8,8,7,7,7,8,7,8,7,7,8,6,7,7,6,6,6,7,8,8,7,8,9,9,9,10,10,10,10,10,11,11,11,11,12,12,12,12,11,11,10,10,11,11,11,11,11,11,11,10,11,11,11,10,10,11,10,10,11,10,9,10,10,11,10,9,9,10,9,9,9,9,9,9,10,9,8,10,9,9,9,8,9,10,9,10,9,10,9,9,10,10,9,9,10,10,9,9,10,10,9,9,10,9,9,10,10,9,9,8,9,9,8,8,9,8,7,8,8,8,7,8,8,8,9,8,8,9,8,8,8,9,8,8,7,7,7,6,8,8,6,7,8,7,7,8,8,7,7,8,7,7,7,8,8,8,8,8,8,8,9,9,10,10,9,10,11,11,9,10,10,10,9,9,9,9,8,9,9,8,7,8,9,9,9,9,9,7,7,7,7,7,7,6,5,6,6,4,6,6,5,4,5,6,6,6,6,6,5,5,4,5,5,5,4,5,6,6,7,7,7,7,8,8,7,7,7,8,8,8,8,8,9,9,9,9,10,10,9,10,11,10,10,11,11,12,11,10,10,10,10,9,9,9,10,9,9,9,10,10,10,10,11,10,11,12,14,15,16,15,15,17,17,17,17,17,18,19,20,22,22,21,24,25,26,25,26,25,24,26,25,23,24,25,25,24,24,26,27,26,28,27,27,28,27,27,28,28,28,28,28,28,28,28,29,28,28,28,29,28,28,28,28,27,27,28,27,28,27,27,28,25,25,26,26,24,24,22,23,22,21,19,20,18,16,15,13,12,11,10,11,11,10,11,9,11,10,11,11,11,12,12,12,13,13,13,13,13,14,14,14,15,15,15,15,14,14,12,13,13,14,13,14,14,17,16,15,15,15,16,14,14,13,13,13,13,14,12,12,12,12,11,10,11,10,10,9,10,11,9,10,10,10,10,10,11,11,11,11,11,12,13,13,12,12,12,11,10,10,10,9,9,8,8,8,8,7,7,8,7,6,7,7,6,6,6,5,6,5,5,4,4,3,3,3,2,2,2,1,1,0,1,2,3,5,6,7,7,5,4,4,4,4,6,5,5,6,7,8,9,7,7,9,8,7,9,8,6,6,6,5,5,5,5,5,4,5,5,3,4,5,3,3,5,5,3,4,5,5,5,5,6,6,6,7,7,7,7,8,8,9,9,8,7,8,7,7,7,7,6,6,5,6,6,5,5,4,6,5,4,4,5,5,3,4,5,4,4,5,5,4,3,5,5,4,5,6,5,6,7,8,7,7,7,9,8,8,9,9,10,9,9,10,9,9,10,8,9,9,8,8,8,8,8,8,8,7,6,5,7,5,4,5,6,4,4,6,5,4,5,6,6,5,8,7,7,8,7,8,8,9,8,7,8,9,7,7,9,8,7,6,6,8,7,7,5,6,6,6,7,5,6,7,7,7,8,6,7,7,7,6,7,7,7,7,8,8,9,9,8,9,8,10,10,10,9,8,9,8,8,10,8,9,9,10,8,9,10,9,9,9,10,10,10,10,10,10,9,10,10,10,10,10,9,11,11,9,9,9,9,9,8,8,9,9,8,9,9,9,7,9,9,9,8,9,9,9,9,10,9,9,9,11,12,12,12,14,15,15,16,16,17,19,19,19,20,24,22,23,22,23,22,23,25,24,24,26,24,26,26,26,26,27,26,27,27,27,27,25,27,27,25,26,27,27,26,26,26,26,27,27,25,25,26,27],[29,29,28,29,29,29,29,28,28,28,27,27,28,27,27,27,27,27,25,26,26,26,26,26,25,26,26,25,26,26,25,27,27,27,26,28,27,27,27,27,28,27,26,26,27,26,24,23,25,24,21,21,24,22,20,22,21,19,20,20,19,15,14,12,10,11,12,9,10,9,9,10,10,10,11,9,9,10,9,8,9,10,9,7,9,10,7,10,10,10,10,12,11,12,13,12,13,14,13,13,15,14,14,15,16,15,16,17,16,16,16,15,14,15,15,15,16,16,16,15,15,15,15,16,16,15,15,16,14,14,15,15,12,15,14,16,15,14,13,14,14,13,13,14,14,13,14,13,12,14,13,13,12,13,13,13,13,14,12,14,13,11,12,12,13,12,12,13,13,12,14,14,13,14,15,13,13,15,15,15,13,13,14,14,14,14,12,12,13,13,12,11,12,12,12,13,12,12,12,12,11,12,11,11,11,10,9,10,10,10,11,11,10,11,11,12,11,12,12,12,11,12,13,11,12,12,12,9,12,12,12,12,11,12,13,13,13,14,14,14,14,13,14,15,14,12,13,14,12,12,12,13,13,12,13,13,14,13,12,12,12,12,12,13,11,11,10,11,11,8,10,9,8,8,8,8,10,10,8,9,9,8,7,7,8,10,7,8,10,9,9,10,12,11,11,11,12,13,11,11,11,11,12,14,14,12,13,15,13,13,14,16,14,15,16,17,15,16,15,15,14,13,13,13,12,11,13,11,11,12,13,12,12,12,13,11,13,13,15,16,16,16,17,17,18,19,19,19,20,22,21,24,24,23,25,26,27,26,27,26,25,27,26,24,26,26,27,26,26,27,28,28,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,29,29,29,28,28,28,28,28,29,28,28,28,27,28,26,26,27,26,25,25,23,23,23,22,21,21,19,19,17,15,15,15,13,15,15,14,15,15,15,15,15,15,16,16,17,16,16,17,17,16,16,18,16,17,17,16,17,17,17,17,16,16,16,17,16,17,18,19,18,17,17,17,18,16,16,15,16,17,16,16,16,16,15,16,15,16,15,14,14,14,15,15,14,15,16,16,14,16,15,16,16,16,16,17,17,17,16,16,17,16,15,16,14,14,14,14,13,14,13,12,13,12,12,12,13,12,11,11,11,9,11,11,9,8,8,7,6,6,6,6,4,3,2,1,0,1,3,5,6,8,8,7,6,7,6,7,7,8,8,8,10,11,10,9,10,11,11,10,12,11,8,8,9,9,8,9,9,7,6,6,7,4,5,5,5,4,6,7,6,6,7,9,8,8,10,10,11,11,12,13,14,14,13,15,15,14,13,14,13,12,12,12,11,10,10,12,11,9,10,8,9,10,10,7,10,6,5,6,5,5,7,5,7,7,5,5,6,7,9,8,7,9,8,10,11,9,11,11,11,11,13,12,12,11,12,12,12,13,13,12,12,12,11,9,11,9,10,10,9,8,7,6,7,6,5,7,7,6,5,7,7,7,7,9,8,8,10,10,10,10,11,14,12,13,11,11,10,10,10,10,11,10,9,9,9,11,9,8,8,10,7,7,9,8,7,9,8,9,8,8,9,10,9,8,10,10,9,10,12,10,10,11,12,12,11,12,14,11,10,13,14,10,10,13,11,11,13,13,10,12,15,12,11,13,14,14,15,15,15,15,13,15,13,15,13,14,13,12,15,12,12,11,13,13,14,13,14,14,11,14,14,16,15,15,14,15,15,14,14,15,15,16,15,16,15,15,16,17,17,18,19,19,21,20,20,22,22,23,22,25,24,25,24,24,24,25,27,25,26,27,25,27,26,28,27,27,26,28,28,27,28,27,28,27,26,27,28,28,26,28,26,27,27,28,27,26,28,28],[29,29,28,29,28,29,29,28,28,28,27,27,28,26,27,26,27,27,26,27,26,24,26,26,24,26,26,24,25,26,24,27,27,27,26,27,26,26,26,26,27,26,26,26,26,26,24,23,25,23,24,22,22,23,21,22,21,20,21,21,19,16,15,14,12,12,12,12,11,13,12,12,13,12,11,12,13,12,13,11,12,14,13,11,11,12,10,11,11,12,14,14,13,16,15,15,16,16,16,15,16,17,16,16,17,16,17,17,17,16,17,17,17,16,17,18,17,17,17,17,17,16,17,17,16,15,16,17,15,16,17,15,16,17,16,17,15,16,15,15,15,16,16,16,16,16,16,15,16,15,15,15,16,15,15,16,16,15,15,16,15,16,15,16,16,16,15,16,17,15,15,16,16,15,16,15,14,16,16,16,15,16,16,16,17,16,14,15,16,16,13,13,14,15,15,13,13,13,11,14,13,9,10,13,10,9,10,11,10,10,13,10,10,13,14,12,13,14,15,12,13,16,15,13,15,15,16,14,15,15,16,15,15,14,16,15,15,17,16,17,15,15,16,16,16,15,16,16,15,16,16,15,16,15,15,14,16,15,15,16,14,14,13,15,14,11,10,11,10,10,12,9,9,10,8,9,9,9,11,9,9,9,10,10,11,11,11,11,11,11,11,12,15,14,13,14,14,14,13,13,14,14,13,14,14,14,14,16,14,15,15,15,15,16,15,16,15,17,16,15,15,15,14,15,14,13,14,13,15,14,14,12,12,12,13,14,14,14,14,17,16,17,18,19,18,18,18,20,21,20,22,23,23,24,26,25,27,24,26,26,24,27,25,24,25,26,26,26,26,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,28,28,28,28,28,28,27,28,28,28,28,28,27,28,26,26,27,26,26,27,24,25,25,23,23,21,21,20,18,17,17,16,13,14,15,16,15,14,16,17,16,17,16,17,17,16,16,17,17,15,17,18,17,16,17,17,17,18,16,17,17,17,16,16,17,17,18,20,19,18,18,18,17,16,16,15,16,17,16,16,16,16,17,15,16,15,16,14,15,14,14,17,15,17,16,16,16,16,16,16,16,17,16,16,17,16,15,17,18,16,17,16,17,17,15,15,14,15,15,14,15,15,16,14,15,16,11,13,10,10,13,15,10,10,11,8,8,9,7,6,7,6,4,3,1,0,1,4,6,9,7,8,10,8,7,9,10,9,9,10,11,11,12,10,10,11,11,11,12,10,9,10,9,9,8,8,8,9,7,9,9,8,7,9,8,6,9,9,8,9,10,12,10,11,11,12,11,13,14,14,15,14,14,15,15,15,14,14,14,14,12,12,13,10,12,14,10,9,9,9,10,9,9,8,9,6,6,6,7,6,6,6,7,6,6,7,7,6,9,8,10,11,12,13,13,12,14,15,14,15,16,16,14,15,16,15,15,15,14,13,14,14,11,11,13,11,12,12,11,10,8,7,10,8,7,9,9,7,7,9,10,9,9,10,10,10,11,13,11,11,13,13,14,14,13,14,13,13,11,9,13,12,10,11,10,11,9,7,9,10,7,7,11,7,7,11,10,11,11,7,10,12,10,8,11,12,9,12,13,13,13,12,13,13,11,12,13,11,12,12,13,12,10,12,11,11,13,12,11,13,13,12,13,14,15,13,15,14,15,14,14,15,13,14,13,14,14,14,15,14,15,14,15,14,13,13,15,15,15,13,14,15,14,16,15,16,16,16,16,17,17,15,15,16,15,16,16,17,17,18,19,19,20,20,22,23,22,23,23,26,26,26,25,25,26,25,27,25,26,27,25,27,26,27,28,28,27,28,28,28,28,28,28,28,26,27,28,28,28,28,28,27,28,29,28,27,28,28],[30,29,29,29,29,29,29,28,28,28,28,26,28,26,27,27,27,27,25,27,25,24,26,25,23,25,26,24,25,25,24,26,27,27,25,27,26,27,27,26,27,26,26,26,26,26,24,23,25,24,21,22,24,22,19,22,22,20,21,23,21,18,18,18,15,17,17,16,17,16,17,16,17,19,18,17,19,19,18,16,17,19,17,15,16,18,13,17,14,17,18,18,18,20,18,18,19,21,20,19,21,20,20,21,22,21,22,23,22,21,22,22,22,21,22,22,21,22,21,22,22,22,23,23,22,22,23,22,21,21,22,21,20,21,21,21,20,19,19,20,21,19,19,20,20,20,20,20,19,20,20,21,20,20,20,21,20,20,20,22,22,19,20,22,20,19,21,21,20,20,21,21,20,21,21,20,20,20,21,22,21,20,19,20,20,20,19,19,19,19,18,16,18,18,18,17,16,18,15,16,15,14,13,15,14,14,14,12,13,15,16,15,15,17,18,16,17,19,19,17,17,19,20,17,19,20,19,17,19,19,18,19,18,19,20,22,21,20,20,21,22,21,21,22,21,21,20,21,20,20,20,20,19,19,18,19,19,19,18,18,18,20,18,18,18,16,15,15,15,12,14,14,12,11,11,12,13,13,12,12,12,14,13,13,15,15,12,15,16,15,14,17,20,19,18,19,18,19,18,19,17,18,19,18,18,19,19,18,20,19,19,21,20,20,21,20,21,21,20,19,20,19,18,17,18,18,17,16,17,17,17,18,17,17,17,17,18,18,17,19,19,20,20,20,20,21,21,21,23,23,23,25,26,25,27,28,28,27,28,27,26,27,28,26,27,27,28,27,27,27,27,29,29,28,28,28,28,28,28,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,28,29,29,29,29,28,28,29,28,28,28,27,26,26,24,26,25,24,24,23,23,21,20,20,19,19,18,19,19,20,19,19,20,19,21,19,20,22,22,19,22,23,22,20,21,23,22,21,23,23,21,23,22,23,21,22,22,24,23,24,23,25,24,23,24,23,23,23,22,20,20,23,21,21,21,21,20,21,21,21,22,17,20,17,19,22,19,20,20,21,19,20,21,22,20,21,21,22,22,21,21,21,22,22,20,20,19,20,19,20,18,19,19,18,17,17,17,16,17,17,16,17,16,15,14,15,12,12,11,9,8,9,8,7,7,7,5,5,2,1,0,1,6,7,7,7,8,9,9,11,12,12,12,12,16,16,16,15,14,16,17,14,18,16,13,14,16,13,12,15,15,12,11,14,11,9,9,13,9,9,11,13,10,11,13,15,12,14,16,16,15,16,17,18,17,18,18,18,18,19,18,18,17,18,18,16,17,17,14,16,17,12,13,11,11,11,10,9,9,8,7,7,8,8,9,8,11,11,9,10,12,12,15,14,16,15,15,18,18,17,20,19,19,19,19,19,19,18,18,19,18,19,19,17,18,19,17,15,17,16,16,16,15,14,14,12,14,11,9,13,13,9,8,12,13,8,11,14,12,11,15,15,15,15,16,16,17,17,17,17,17,18,16,14,16,16,12,12,11,15,12,10,11,15,10,9,15,13,12,15,14,16,16,13,14,16,14,13,15,16,14,14,17,16,17,17,16,17,15,16,20,17,16,18,18,15,14,19,17,15,18,18,17,18,18,16,17,17,17,17,18,20,19,18,19,18,18,18,16,18,17,18,20,18,19,16,19,18,18,17,19,18,18,19,19,18,19,18,17,18,19,18,18,19,18,20,20,21,18,20,20,19,21,22,22,23,24,24,24,25,25,26,25,28,27,28,27,27,27,27,28,27,28,29,28,29,28,29,29,29,28,29,29,29,30,29,29,29,29,29,29,29,29,29,29,28,29,29,29,28,29,29],[29,29,29,29,29,29,29,28,28,27,27,26,27,25,26,26,26,26,25,26,25,24,26,25,25,26,26,25,26,26,26,27,27,28,27,28,27,27,27,27,28,27,26,27,28,27,26,25,26,25,24,24,25,24,22,24,25,23,24,24,23,21,21,19,19,19,19,18,19,19,20,20,20,21,19,20,21,19,20,19,21,20,20,17,18,19,15,18,16,18,20,19,20,21,24,21,22,24,24,23,25,24,24,25,25,24,25,24,24,23,24,24,25,23,23,24,24,25,25,25,25,23,25,25,24,24,25,25,23,22,24,24,21,23,23,22,24,22,21,24,23,22,24,24,23,22,24,24,22,23,24,23,22,23,23,23,24,23,23,23,24,21,23,24,22,21,24,23,21,23,24,24,22,23,24,22,22,24,24,25,22,22,23,24,22,22,22,22,20,21,23,20,19,20,20,19,20,20,17,18,18,16,16,17,17,15,16,15,16,17,18,17,16,18,20,18,18,21,21,19,20,23,22,20,21,23,22,21,22,23,21,22,22,23,23,24,24,25,24,25,22,24,25,25,23,24,24,23,22,24,24,22,23,23,21,22,23,22,21,20,21,21,21,21,21,18,18,18,17,12,14,15,15,13,13,13,15,16,13,15,15,14,15,14,16,16,13,16,18,17,17,21,21,22,20,22,22,21,22,22,20,22,23,21,22,23,24,24,25,24,25,25,24,25,24,24,24,24,24,23,24,23,24,21,19,22,23,19,21,22,21,21,18,20,19,19,20,19,18,19,20,21,21,21,22,22,22,21,23,24,25,25,26,26,27,28,28,26,28,28,26,27,27,27,27,27,27,27,27,28,29,28,28,29,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,29,29,30,30,29,29,29,29,29,29,29,29,28,29,29,28,29,28,28,28,27,27,27,26,26,25,25,24,22,23,22,23,22,22,23,24,23,23,23,25,24,24,24,24,24,23,24,24,24,22,24,24,23,23,25,24,23,24,23,24,24,24,24,24,25,25,24,26,25,24,25,25,24,25,24,24,24,25,25,24,24,24,23,24,24,24,24,23,23,21,23,24,23,24,24,25,24,24,23,24,24,23,23,22,23,22,23,23,25,24,24,24,23,24,23,23,21,23,23,20,19,22,21,19,19,19,19,19,17,16,16,18,15,14,14,13,10,11,10,9,8,10,8,6,7,4,1,0,2,4,5,7,11,12,11,12,13,17,14,15,18,19,19,16,16,19,18,17,19,18,15,16,18,15,12,15,16,13,11,15,13,10,13,14,13,11,14,14,13,13,16,17,17,17,19,19,19,19,21,20,21,22,22,23,23,21,22,20,20,22,21,20,19,19,18,17,18,14,14,16,17,14,11,14,13,10,9,12,10,9,11,11,13,11,11,13,14,13,17,14,17,17,18,20,19,20,21,22,21,22,22,23,22,23,21,21,22,20,19,19,20,20,17,17,20,19,18,18,18,15,16,14,17,14,11,15,16,11,13,16,16,12,15,19,19,18,18,21,19,18,19,19,21,20,21,20,19,21,19,19,19,17,17,15,17,18,14,13,16,17,13,15,16,15,15,16,17,18,18,17,16,18,18,17,17,19,18,17,20,20,19,19,19,19,17,19,20,17,18,19,19,16,17,21,18,18,21,20,19,21,22,20,21,21,22,21,23,23,22,23,22,21,21,22,20,20,21,20,21,20,21,18,20,21,21,20,22,22,21,21,22,21,21,21,23,22,23,23,24,23,22,24,24,24,23,23,22,22,23,24,23,23,25,25,25,26,26,27,25,28,27,28,28,28,28,27,29,28,28,29,28,29,29,30,29,30,29,30,30,29,30,29,30,30,29,29,30,30,29,29,29,29,29,30,30,29,29,29],[29,29,29,29,29,28,29,28,27,27,27,26,27,24,26,26,26,26,24,26,25,24,25,25,24,25,26,25,26,26,26,27,28,27,27,28,27,28,28,28,28,27,27,27,28,28,26,25,27,26,24,25,26,25,23,26,26,24,25,26,25,22,23,22,21,22,22,20,21,21,21,21,21,24,22,22,21,22,22,20,22,22,20,19,20,22,16,20,17,21,21,21,23,23,23,22,22,25,25,24,25,25,25,26,26,25,26,26,26,26,26,27,27,26,27,27,25,26,26,27,27,26,27,27,26,26,27,26,25,25,26,26,24,25,25,25,26,23,24,25,26,22,24,25,24,23,25,24,22,24,24,24,24,24,25,24,25,25,24,26,26,23,24,25,24,24,25,26,24,25,25,25,25,25,25,24,24,26,26,27,25,24,25,25,24,24,24,23,23,23,24,21,22,22,22,22,22,21,19,19,20,15,16,17,18,15,16,17,17,18,20,18,17,23,22,21,21,22,22,21,21,23,23,21,23,24,24,21,23,24,23,24,23,25,24,26,25,25,25,26,27,26,26,26,26,25,26,25,25,25,25,24,24,24,23,24,24,24,23,24,23,24,23,23,23,20,20,21,21,15,17,16,15,13,12,13,14,16,15,16,15,15,16,15,18,19,17,19,20,20,20,22,23,23,22,23,23,24,24,24,23,23,24,23,23,24,24,24,25,25,25,27,26,26,26,26,27,26,25,25,25,25,24,22,23,23,24,21,23,24,22,24,21,22,22,19,22,23,19,22,22,23,23,24,24,24,24,24,26,26,26,27,28,28,28,29,29,28,29,28,28,28,29,28,28,29,29,28,28,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,30,30,29,30,29,29,29,29,28,28,27,28,28,27,27,27,26,26,25,25,24,25,25,25,26,26,25,25,26,24,26,26,25,27,27,25,27,27,27,26,26,27,26,25,26,27,26,27,27,27,25,27,27,27,27,27,27,28,28,28,28,28,27,27,27,26,25,27,26,27,26,26,26,25,25,25,27,22,25,23,24,26,25,24,26,26,24,25,26,26,25,26,26,25,26,26,26,26,26,26,26,26,25,26,24,25,23,24,24,22,22,23,22,21,22,22,21,22,19,18,19,19,15,13,16,15,11,11,12,10,8,10,9,8,8,6,3,1,0,2,3,6,8,11,10,12,15,16,16,16,19,20,20,17,18,20,20,19,20,20,17,18,19,15,13,16,18,13,11,14,16,11,13,16,13,13,17,19,15,18,20,20,20,21,21,22,22,22,23,23,23,23,24,24,24,24,24,23,22,24,23,23,22,22,20,21,20,15,16,18,18,16,14,16,16,14,12,16,14,14,15,16,17,14,12,17,17,14,18,14,19,20,18,21,22,21,23,22,22,22,23,23,23,23,22,22,22,22,23,21,21,21,20,18,20,19,19,20,19,19,19,19,21,18,14,19,19,16,18,20,19,17,20,22,21,20,21,22,21,22,22,24,23,24,23,23,23,24,21,22,23,22,18,21,19,21,20,16,20,21,19,18,20,18,19,20,22,20,21,19,21,21,22,21,22,22,21,21,23,23,23,22,22,22,20,22,25,22,22,23,24,21,20,26,23,21,24,24,22,22,25,23,22,22,25,24,25,25,25,24,25,25,25,25,22,24,23,23,24,23,24,22,26,24,24,24,24,23,23,24,24,24,24,23,23,24,24,23,24,24,23,25,24,25,24,25,23,23,25,25,26,25,27,27,27,28,27,28,28,29,29,29,28,29,28,29,29,29,29,30,28,29,29,30,29,30,29,30,30,30,30,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30],[29,29,29,29,29,28,28,28,27,27,27,26,27,26,26,26,27,28,25,27,27,25,27,27,25,26,27,26,26,27,27,28,28,29,28,29,28,28,28,28,29,28,28,28,28,28,27,25,27,26,24,26,26,26,24,26,26,24,25,27,26,24,24,23,23,23,23,23,22,24,22,25,22,24,22,23,22,22,22,22,22,23,21,20,20,21,17,19,17,20,22,22,22,23,23,23,24,24,24,23,26,25,25,26,27,25,25,26,26,24,25,26,26,26,26,26,26,27,27,26,27,26,26,26,26,25,27,26,25,24,25,25,23,23,24,23,23,21,22,23,24,22,23,24,22,23,24,23,21,25,24,23,23,25,24,24,25,24,25,25,26,23,25,26,25,24,25,25,23,25,26,26,23,26,26,24,24,26,25,25,23,22,22,23,22,22,21,21,21,20,22,20,19,20,21,20,20,18,16,19,18,15,14,17,16,15,15,15,16,17,18,16,15,19,20,19,21,21,21,19,20,22,23,20,23,23,22,21,23,24,23,24,24,24,25,26,26,26,26,26,26,26,26,26,25,25,25,25,23,24,23,23,22,23,21,23,24,22,21,20,20,21,20,20,20,20,19,18,18,16,15,15,13,11,13,11,14,15,12,16,15,13,16,17,17,15,16,20,20,19,20,21,21,22,22,22,22,22,23,23,23,23,24,22,24,24,25,25,26,25,25,27,26,26,26,27,26,27,26,25,26,25,24,23,23,25,26,22,23,24,25,25,22,23,23,23,24,24,22,23,23,25,26,25,26,27,26,26,27,27,26,27,29,28,28,29,29,28,29,29,29,29,28,28,29,29,29,29,28,29,30,29,30,30,29,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,28,29,28,29,28,28,28,27,27,26,25,26,24,24,25,25,26,26,26,24,26,24,26,25,26,26,27,25,27,26,26,25,25,26,25,25,26,25,24,25,25,26,25,24,25,26,26,26,26,27,26,25,27,26,25,26,25,24,26,27,26,26,26,26,25,26,26,26,27,23,25,22,26,26,24,25,26,26,24,26,26,26,25,25,25,24,25,24,24,24,24,25,24,25,25,24,24,24,21,23,22,21,22,22,20,20,21,19,17,20,17,14,16,18,15,16,17,14,11,12,14,12,9,12,11,11,12,8,7,4,2,0,2,3,6,9,11,12,13,16,16,15,18,18,18,18,17,18,20,19,20,19,16,18,19,15,15,16,17,15,15,18,16,14,16,17,17,18,19,16,18,20,19,19,19,20,21,21,20,21,22,22,23,23,22,23,23,24,23,23,22,22,22,21,19,18,18,20,20,16,16,19,19,18,16,18,20,13,16,21,17,16,18,18,19,17,19,18,18,19,18,17,18,21,20,20,22,22,24,23,23,23,24,23,24,23,23,23,21,22,22,20,21,20,20,20,20,21,21,21,21,20,21,18,22,18,18,20,21,18,18,21,19,18,20,20,20,20,20,22,20,21,21,23,23,24,20,21,23,24,20,21,23,22,21,21,19,21,20,21,20,22,18,19,22,21,20,22,22,22,22,22,24,22,22,21,23,22,21,23,23,23,23,24,24,24,22,24,25,23,24,24,24,22,23,26,24,24,25,25,24,24,27,25,23,23,26,24,26,26,25,25,26,26,25,26,24,24,25,25,25,23,24,20,22,24,24,23,24,25,23,22,24,23,22,24,23,22,22,23,24,22,23,24,24,24,22,23,23,23,23,24,24,25,26,26,25,25,26,27,26,28,27,28,27,28,27,27,29,28,27,29,27,28,28,30,29,29,28,30,29,29,30,29,29,29,29,29,29,29,29,29,29,29,30,30,29,29,30,29],[29,29,29,29,29,29,29,29,28,27,28,27,28,26,27,26,27,27,26,28,27,26,27,27,26,26,27,27,27,28,26,28,28,29,28,29,28,29,29,28,29,29,28,28,29,29,27,26,28,27,25,26,27,26,24,27,26,25,26,27,26,23,24,22,24,23,24,24,24,25,23,24,24,23,21,24,24,22,23,23,21,22,22,20,17,20,19,20,19,18,21,20,20,22,23,22,22,24,24,22,24,24,24,22,24,24,23,24,24,22,23,24,24,24,25,25,24,25,25,25,25,24,25,25,24,22,25,25,23,22,24,23,21,21,22,21,21,18,21,23,22,20,22,22,20,23,24,23,22,23,24,22,24,23,23,24,25,24,23,25,25,23,25,26,23,23,26,25,22,24,25,24,22,24,25,22,24,25,24,24,22,22,22,22,21,20,20,21,19,19,20,18,14,17,18,17,18,13,13,14,14,12,11,15,14,13,15,13,14,16,16,14,15,18,18,15,16,19,18,16,20,21,20,20,22,23,22,23,24,23,23,24,23,23,24,25,23,25,24,25,23,24,25,23,24,25,25,23,23,24,23,22,22,23,20,21,21,19,21,19,20,19,18,18,18,16,17,15,16,13,14,14,12,10,11,8,12,11,9,12,12,14,14,16,17,17,16,20,16,17,17,21,20,20,23,23,22,23,23,23,25,24,24,24,25,25,24,26,25,25,24,26,26,25,26,25,26,25,25,25,25,25,24,22,22,24,25,24,23,24,24,25,24,23,23,24,23,24,23,23,24,24,24,25,25,25,26,25,26,27,27,27,28,28,28,29,30,29,30,29,28,29,28,27,28,29,28,29,28,28,30,29,30,30,30,29,29,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,29,29,30,29,28,29,28,28,28,27,27,27,25,25,24,24,25,25,24,23,25,26,24,25,25,26,25,25,25,25,25,23,26,25,24,24,24,26,25,24,25,24,24,24,24,24,23,24,24,25,24,25,25,26,26,26,25,26,23,25,24,24,24,25,25,25,24,25,25,26,25,25,26,24,24,23,25,26,25,25,25,25,23,24,24,24,23,24,24,22,23,23,22,23,24,24,23,23,23,23,23,22,22,23,23,20,21,23,20,19,22,18,16,18,15,15,14,17,14,13,13,14,11,13,14,12,9,14,13,12,12,10,8,7,5,2,0,1,4,7,9,13,12,12,14,14,18,17,18,18,17,19,20,20,21,18,15,18,19,19,17,20,20,16,16,22,14,14,19,19,15,15,21,20,16,20,17,19,21,20,20,20,21,23,23,21,24,23,22,24,24,23,23,23,23,21,20,21,21,17,18,18,17,16,15,17,20,15,15,19,21,15,16,21,16,17,18,19,19,19,21,18,20,21,21,21,19,21,22,23,21,22,23,22,24,24,23,24,24,24,24,22,23,22,22,21,22,22,20,21,22,21,21,22,22,22,22,20,22,23,21,20,20,20,22,20,18,22,20,21,21,22,21,20,21,21,23,24,23,24,20,21,23,23,19,21,22,21,19,20,19,21,18,18,20,22,20,18,22,22,22,23,23,24,22,21,24,24,22,22,25,24,21,23,25,23,24,24,24,24,22,23,25,22,24,24,23,22,22,26,24,24,24,25,24,24,25,25,25,25,25,24,25,24,24,25,25,26,24,24,23,23,23,23,23,23,23,19,22,23,23,23,23,23,22,22,23,23,21,22,23,22,21,22,24,22,21,24,22,23,22,22,21,21,22,23,22,22,24,26,24,26,26,27,26,28,27,28,27,28,27,27,29,27,28,29,27,28,28,30,29,29,28,30,29,29,30,30,29,29,28,29,30,30,28,29,29,29,30,29,29,28,29,29],[29,29,29,29,29,28,29,29,27,27,27,25,27,26,27,26,27,28,26,28,27,26,27,27,27,26,27,26,27,28,26,28,28,29,28,28,28,28,28,28,29,28,28,28,28,27,26,24,27,25,24,24,25,24,23,25,24,22,23,23,22,19,19,18,18,19,18,17,16,18,16,17,17,17,16,17,16,17,16,15,14,16,14,14,13,12,12,14,14,13,14,14,12,16,14,13,14,17,16,14,17,16,16,15,18,17,18,19,18,17,18,19,18,19,18,18,18,20,20,20,20,17,19,20,17,16,18,18,15,16,16,15,13,16,15,17,15,13,14,15,13,13,14,15,13,13,16,16,14,15,17,15,15,17,16,17,16,17,18,19,18,17,18,19,17,17,18,19,17,18,18,18,16,18,17,16,16,18,17,17,16,15,15,14,14,14,14,13,12,12,13,13,10,12,13,13,14,11,10,12,11,8,11,12,11,10,10,8,10,10,11,9,8,12,12,10,10,12,12,11,12,16,14,13,15,17,15,15,16,17,15,17,17,17,18,19,18,19,20,19,19,19,20,18,18,18,18,18,17,18,16,16,16,16,15,16,15,14,15,13,14,13,12,12,12,10,11,11,9,9,10,9,6,7,8,7,9,8,7,8,8,8,7,9,11,9,10,12,13,11,13,15,13,15,15,16,15,17,17,18,18,18,18,18,19,18,19,19,20,20,20,22,19,20,21,21,21,22,20,21,20,20,19,18,18,17,21,18,17,18,19,21,16,18,19,19,21,20,18,20,20,21,21,23,22,23,24,24,24,24,25,25,27,26,27,27,27,27,28,26,27,27,25,26,27,27,28,27,26,28,29,29,30,28,29,29,29,29,29,29,29,29,29,28,29,29,29,29,29,28,29,29,29,29,29,28,29,29,28,29,29,28,29,29,29,29,28,27,28,26,27,26,25,24,23,23,22,21,21,19,18,20,20,21,20,21,19,22,22,22,23,22,21,23,21,21,21,22,20,19,21,20,19,20,19,20,21,22,20,21,21,19,21,20,20,20,22,22,20,23,21,21,21,20,17,20,22,20,20,21,20,19,20,20,20,22,18,20,18,21,22,19,20,21,21,20,21,20,20,21,20,19,20,19,18,18,19,20,20,20,20,19,18,18,16,16,17,16,15,16,17,13,12,15,13,13,14,13,12,10,11,11,9,9,11,8,7,10,9,6,8,10,11,9,8,7,7,5,3,1,0,1,4,6,7,6,7,10,9,13,12,14,13,13,13,14,14,14,13,14,14,13,12,12,13,12,12,12,11,10,9,11,11,10,12,11,11,10,13,12,12,13,14,15,13,15,16,15,16,17,17,16,19,19,19,16,16,16,14,15,13,13,13,12,14,14,12,12,12,15,13,11,12,13,10,11,12,11,12,13,15,13,13,12,14,13,14,14,15,13,15,15,15,16,15,17,16,16,16,16,16,17,17,17,18,16,17,16,14,17,15,15,16,15,16,16,15,16,15,16,15,18,14,14,16,16,14,16,16,14,12,15,15,13,14,15,15,14,15,15,18,16,19,14,16,17,15,13,14,15,14,13,13,14,15,13,13,15,15,14,14,15,14,14,15,15,16,16,16,16,17,15,16,17,16,16,17,18,17,17,18,19,19,16,20,21,19,19,21,18,16,16,21,18,17,19,20,18,19,22,19,18,19,22,19,21,20,21,20,22,22,19,21,20,18,19,19,21,17,19,16,17,18,17,17,19,19,16,17,19,18,16,19,19,17,15,20,19,16,18,20,18,17,17,18,17,18,19,20,22,22,22,21,22,23,22,25,25,26,26,25,26,26,26,26,29,26,26,28,26,29,28,28,27,29,28,29,29,29,29,28,28,29,27,27,28,28,28,29,28,28,29,29,28,28,29,30],[28,29,28,28,29,28,29,28,27,27,27,26,27,25,26,25,27,27,25,27,26,24,26,26,25,26,27,25,27,26,24,27,27,28,27,27,27,27,28,27,28,27,27,26,27,27,25,24,25,24,22,23,24,22,21,23,22,20,20,20,19,17,16,14,13,12,12,11,10,11,9,10,10,9,8,10,8,8,7,8,9,7,7,6,5,5,5,6,5,5,7,6,7,7,7,7,8,8,8,8,8,8,9,9,9,10,10,10,10,11,11,11,9,9,10,10,10,11,11,11,11,9,10,10,9,10,10,9,9,10,9,8,7,8,8,9,8,7,8,8,8,7,7,8,8,7,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,10,10,8,9,10,8,9,9,9,8,9,10,9,8,9,10,9,9,8,8,9,8,8,8,8,8,7,6,7,6,6,6,6,6,6,6,5,6,6,6,5,6,5,5,5,4,4,4,5,4,5,5,6,5,5,7,7,6,7,8,8,7,9,9,9,8,8,9,8,9,9,10,11,11,10,10,11,10,10,10,11,11,9,10,10,10,9,10,9,8,9,9,10,9,8,8,8,7,7,8,7,7,8,6,6,7,7,5,6,7,3,4,4,3,6,4,3,4,3,3,4,4,4,5,5,6,6,6,6,7,7,7,9,9,8,8,9,9,10,10,10,10,10,11,11,11,11,12,12,12,12,13,13,12,13,11,11,12,12,12,11,13,11,11,12,12,11,12,12,12,13,12,13,13,15,15,16,17,18,18,18,20,19,19,20,21,22,22,22,23,25,25,25,25,27,25,27,24,25,25,23,24,25,24,24,25,25,25,27,26,28,26,28,27,27,28,28,27,28,28,27,27,28,27,28,27,28,28,28,28,28,27,28,26,27,28,27,28,28,26,28,26,26,27,26,26,25,24,25,23,24,22,22,20,18,17,15,14,12,13,13,12,12,12,11,12,13,14,14,14,12,14,14,13,13,13,13,13,14,14,14,15,15,15,16,14,14,14,15,13,14,12,15,14,17,16,15,15,16,14,14,12,13,14,13,14,13,13,12,12,13,12,12,13,12,12,12,12,13,11,12,13,14,12,13,13,12,12,13,12,13,13,13,13,13,13,12,12,11,12,10,10,9,8,10,10,8,9,10,7,7,8,6,6,7,5,5,6,6,4,4,5,6,5,3,5,4,3,4,5,5,6,6,6,7,6,5,3,1,0,1,2,3,3,3,4,4,5,5,6,5,6,7,7,7,7,6,6,6,6,6,5,6,5,4,5,5,3,4,5,4,5,5,5,6,6,5,6,6,7,7,7,8,8,8,8,9,9,9,9,10,10,10,8,8,9,8,7,7,7,6,6,6,6,5,4,5,7,5,6,5,7,5,6,7,6,7,8,7,8,8,7,8,8,8,7,8,7,7,8,7,7,7,8,8,8,8,7,8,9,8,8,9,8,8,8,8,9,9,8,9,9,10,10,9,10,8,9,8,9,7,7,8,8,8,7,9,7,7,8,8,8,8,8,9,8,8,9,9,10,9,9,8,10,9,8,9,8,8,8,8,8,8,8,8,10,9,9,9,9,9,9,9,10,9,9,10,9,10,10,10,11,9,10,11,9,10,9,10,10,10,10,10,11,10,12,10,11,11,10,11,11,11,11,12,11,12,12,11,10,12,12,11,12,11,12,12,11,12,11,11,12,10,11,12,11,10,10,9,10,9,9,9,9,10,9,9,9,11,9,10,9,10,10,10,11,9,10,11,10,10,10,11,12,14,13,16,16,15,17,17,18,19,20,20,21,24,24,23,23,24,24,23,27,24,25,26,24,27,25,27,27,27,25,27,27,27,28,26,27,27,25,25,27,26,26,27,26,26,28,27,26,25,27,27],[29,29,28,28,28,28,29,28,27,27,27,26,27,25,26,25,27,28,26,27,26,26,27,27,25,27,28,26,28,26,26,28,28,29,28,28,28,28,28,28,29,27,27,27,28,27,25,24,25,24,22,22,22,21,19,22,21,19,20,18,17,15,13,10,10,9,8,8,7,7,6,6,6,6,5,6,5,5,5,5,5,4,4,3,3,4,3,4,3,4,5,5,4,5,5,6,6,6,6,6,7,6,7,7,8,7,9,9,8,9,9,8,7,7,8,8,8,9,8,9,9,7,8,8,8,7,8,8,7,7,8,7,6,7,7,7,7,6,6,6,5,6,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,5,6,7,6,6,7,6,6,6,7,6,6,6,7,6,7,7,7,8,6,6,7,6,6,6,6,6,5,6,6,5,5,5,5,6,5,5,5,5,5,5,4,4,4,4,3,3,4,3,4,3,4,4,4,5,4,4,5,4,4,5,6,5,6,6,6,5,5,6,6,6,7,8,8,9,8,8,8,8,7,7,8,7,7,7,7,7,7,7,7,6,7,7,7,7,7,7,7,6,6,6,6,6,5,5,6,5,4,3,4,3,3,3,3,2,3,3,2,3,3,3,3,2,3,3,3,4,5,5,5,5,6,7,5,6,7,7,6,6,6,6,7,7,7,7,8,7,8,8,8,9,8,9,9,9,9,8,8,9,8,8,8,8,8,8,8,8,8,9,9,9,9,9,10,12,12,12,15,16,16,15,15,18,16,17,17,19,18,19,20,21,22,22,23,23,26,25,25,23,23,25,24,22,24,24,25,24,23,24,26,26,27,25,27,26,26,27,27,27,27,26,27,26,27,27,27,27,27,27,27,27,28,27,27,27,27,27,27,27,27,26,27,24,25,25,25,24,24,22,22,21,21,19,19,17,16,14,12,11,10,9,9,10,8,9,8,9,10,9,10,10,10,10,11,11,11,11,11,11,12,12,11,13,14,13,13,12,12,11,11,11,11,12,13,13,14,14,13,13,12,12,12,11,11,11,11,11,10,10,9,9,9,9,10,9,8,9,9,8,8,8,10,8,9,8,9,8,9,9,8,9,9,11,10,10,10,9,9,8,9,8,8,7,7,7,6,7,7,7,7,6,7,6,5,6,5,5,4,5,5,4,3,3,4,3,3,3,4,2,3,4,4,5,5,5,7,6,6,4,2,1,0,1,1,4,2,3,3,4,4,4,4,5,6,6,5,5,5,5,6,5,4,4,4,3,3,3,3,2,3,3,3,3,3,4,3,4,5,5,5,5,5,5,7,6,6,7,7,6,7,7,7,8,7,7,8,6,7,7,6,6,5,6,5,5,4,5,6,5,6,5,5,5,5,5,5,6,6,6,5,5,5,5,5,5,5,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7,8,7,7,7,6,6,5,4,4,5,5,5,5,5,5,6,5,6,6,7,6,7,6,6,7,6,8,7,7,6,6,7,7,6,6,6,6,6,5,6,6,6,6,7,6,6,6,6,6,6,7,6,6,7,6,7,6,7,6,7,6,7,8,7,8,8,8,7,8,8,9,8,8,8,7,7,8,8,8,7,8,8,8,8,9,8,8,8,8,8,8,9,8,9,9,8,9,8,9,9,8,8,9,9,8,7,6,8,8,7,7,7,7,7,7,7,7,6,7,8,8,7,7,8,7,7,7,7,9,8,9,10,11,12,13,13,13,14,14,15,16,18,20,19,21,21,22,21,21,22,22,24,22,23,25,23,25,25,26,25,25,24,27,26,25,27,25,26,26,25,25,26,26,26,25,25,25,26,26,26,23,25,26],[28,28,29,28,28,29,29,28,29,28,27,26,28,26,26,25,27,27,26,27,26,26,27,26,26,27,27,26,28,27,26,28,28,28,27,28,28,28,28,28,28,27,26,27,27,27,25,24,26,24,22,23,24,22,20,23,21,19,20,19,17,14,13,9,9,7,6,6,5,6,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,2,2,3,3,3,3,4,3,4,4,4,5,4,4,5,5,4,5,5,5,6,6,6,6,7,7,6,5,5,6,6,6,6,6,6,6,5,5,5,5,5,5,6,5,5,5,5,5,5,5,6,5,5,4,4,5,5,4,5,5,4,4,5,5,4,4,5,5,4,4,4,5,5,5,5,5,4,5,4,5,4,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,4,4,4,4,4,4,3,4,4,5,5,4,4,4,4,4,4,4,4,3,3,3,2,3,3,3,3,3,3,3,3,3,4,4,3,4,4,3,4,5,5,4,4,5,5,5,5,5,6,6,6,6,6,6,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,4,3,3,3,3,3,2,3,2,3,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,5,6,6,6,6,6,7,6,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,7,7,7,7,7,8,7,8,11,11,12,14,16,17,16,16,19,19,18,19,20,20,20,21,22,24,23,23,25,26,26,26,24,25,25,24,25,26,25,25,26,25,25,27,26,27,26,27,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,27,27,26,27,27,27,27,27,26,27,27,26,26,25,24,25,22,22,22,20,19,19,16,15,14,11,10,9,8,8,8,7,8,7,8,8,8,8,8,9,9,9,9,10,10,9,10,10,10,10,11,11,11,11,11,10,11,10,10,10,10,11,11,12,13,10,11,10,10,10,9,9,9,9,9,8,8,8,8,7,8,8,7,7,7,7,7,7,7,7,7,8,7,7,7,7,7,7,8,8,9,9,9,8,8,7,7,6,6,6,5,5,5,5,5,5,5,5,4,4,4,4,5,5,5,3,3,3,4,3,5,3,2,2,3,2,2,2,3,3,4,4,5,7,6,6,5,3,1,1,0,1,2,2,2,2,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,3,2,1,2,3,2,2,3,3,3,3,4,3,5,4,5,5,6,4,5,5,5,5,5,5,6,6,5,5,5,5,4,5,4,4,5,4,4,4,4,3,4,4,4,4,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,3,4,3,3,4,3,4,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,5,5,5,5,6,5,6,5,4,5,4,4,4,3,4,4,5,4,4,4,4,4,4,5,5,5,5,5,4,5,6,6,5,5,5,5,5,5,5,5,5,5,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,5,6,6,6,6,7,7,7,7,7,7,7,7,7,6,6,7,6,6,7,7,6,6,7,7,6,8,7,8,8,7,8,7,7,7,7,7,7,7,7,6,6,7,6,6,6,6,6,6,6,6,6,5,5,6,6,5,6,6,6,6,6,6,6,6,8,9,10,10,12,13,13,13,14,14,16,17,19,20,23,22,22,21,22,23,22,24,21,24,25,24,25,26,26,25,25,25,26,25,25,27,25,25,26,24,24,26,27,26,26,26,25,27,26,25,23,25,26],[28,28,28,28,28,28,28,28,28,27,27,26,27,25,26,25,27,27,26,28,27,25,28,27,25,27,28,25,27,27,25,27,28,28,26,28,27,27,27,26,28,26,26,26,27,26,24,23,25,23,20,22,23,20,19,22,21,19,20,20,17,15,12,9,9,9,7,7,6,6,7,6,6,5,5,5,5,5,4,4,4,4,3,3,3,3,2,3,2,3,3,3,3,4,4,4,4,5,4,5,6,5,5,6,6,6,7,8,7,8,8,7,6,6,6,7,7,8,7,8,7,7,7,7,6,7,7,6,6,6,6,6,5,5,6,6,5,5,4,5,5,4,4,5,5,4,5,5,5,5,6,6,5,5,5,5,5,5,6,6,5,5,6,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,6,6,5,5,5,5,5,5,5,4,5,5,4,4,4,4,6,5,5,4,5,5,4,4,5,4,4,4,3,2,2,3,3,3,3,3,3,3,3,4,4,4,5,5,4,5,6,6,5,6,6,5,6,6,7,7,8,7,7,8,7,7,7,7,7,7,6,7,6,6,6,6,6,6,6,6,7,6,6,6,5,5,5,4,4,5,4,4,4,4,3,3,3,3,2,3,3,3,3,2,2,2,2,2,2,3,3,3,3,4,4,5,5,6,5,6,6,6,6,6,6,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,9,9,8,8,8,8,8,7,7,7,8,7,8,8,8,8,9,8,10,12,12,11,16,15,16,15,16,17,18,17,18,19,18,20,20,21,23,22,23,24,25,25,25,24,24,25,23,23,25,24,25,24,23,24,26,26,27,26,26,27,27,26,27,27,27,27,27,27,26,28,28,27,27,27,28,28,28,27,27,27,27,27,27,27,27,27,27,26,26,26,26,24,24,23,23,21,21,20,19,18,15,14,12,10,10,8,8,8,9,8,8,8,9,9,8,9,10,10,9,10,11,10,10,11,12,11,12,13,13,12,13,11,12,11,10,11,11,12,12,12,14,14,13,14,13,12,11,11,10,10,11,11,10,9,9,9,9,8,9,8,8,8,7,8,8,8,7,8,8,7,8,8,9,8,8,9,9,10,10,10,9,9,8,8,7,7,7,7,7,6,6,6,5,5,6,5,5,5,5,5,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,3,3,4,4,5,6,6,6,5,3,2,1,1,0,1,2,2,2,2,3,3,3,4,4,4,4,5,3,3,4,4,3,3,4,3,2,2,3,2,2,3,3,3,3,3,4,3,4,4,5,4,4,5,5,5,5,6,5,6,6,6,7,7,6,6,5,5,5,5,5,4,4,4,4,4,3,4,4,4,4,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,5,5,4,5,5,5,5,5,6,5,5,6,5,6,5,6,5,6,6,6,6,6,5,5,5,4,4,4,5,5,4,5,5,5,4,5,5,5,5,5,6,5,5,5,6,6,6,6,5,6,6,5,5,6,6,5,5,5,6,5,5,5,5,5,5,6,6,5,6,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,8,8,7,7,7,7,7,8,7,7,7,8,7,7,8,7,7,7,7,7,8,8,8,8,8,8,7,9,8,8,8,8,8,7,7,6,7,7,7,7,7,7,6,6,7,6,6,6,7,6,6,7,7,7,6,7,6,7,7,8,9,10,10,12,14,13,13,15,17,18,19,20,21,22,22,23,22,22,22,23,25,23,25,25,24,27,26,26,25,26,25,28,27,26,27,27,26,27,26,27,26,26,26,27,26,27,27,27,26,25,25,26],[29,29,29,29,29,29,29,29,28,28,28,27,28,27,27,27,28,28,27,28,27,27,28,28,27,28,28,26,28,27,26,28,28,28,27,28,28,28,28,27,28,27,26,27,27,26,24,23,24,23,21,22,22,20,20,21,20,18,20,20,18,15,13,11,10,10,9,8,8,8,8,7,8,7,7,7,6,6,6,6,6,5,5,4,3,3,3,3,3,3,4,3,3,4,5,4,5,5,5,5,6,6,6,6,8,7,8,8,9,9,9,9,7,7,8,9,9,9,10,10,9,9,9,9,8,8,8,8,7,7,7,6,6,6,6,6,6,5,4,6,5,5,5,6,5,4,6,6,5,6,6,7,6,7,6,6,6,7,7,7,7,6,8,8,7,7,8,7,8,9,9,8,8,9,8,7,9,9,8,7,7,7,7,6,6,6,5,5,5,5,5,4,4,5,5,5,6,5,5,6,5,5,4,5,5,4,4,4,2,2,2,3,2,3,4,4,4,4,4,4,4,6,6,5,6,8,7,7,7,9,8,9,9,9,9,10,10,9,10,10,9,10,10,10,10,9,9,10,10,9,8,8,9,8,8,8,7,7,7,7,7,6,6,6,5,5,5,5,4,4,4,4,3,3,4,3,4,3,3,3,3,3,3,3,3,4,4,4,5,5,6,7,7,7,7,8,8,8,9,8,7,9,9,8,9,9,10,10,10,11,11,12,11,11,10,10,11,11,11,11,10,10,10,10,9,9,10,9,9,10,10,10,10,10,11,13,13,14,13,16,16,16,16,17,18,19,20,20,21,20,22,23,25,24,25,25,27,25,26,25,25,26,24,23,25,25,25,25,25,25,27,26,27,26,28,28,27,28,28,28,27,28,28,27,27,28,28,27,28,27,28,28,28,28,27,26,26,27,27,27,27,27,27,26,26,26,26,24,25,23,23,23,22,21,20,17,16,15,14,13,11,11,11,11,11,11,10,11,10,11,11,12,12,11,11,12,13,12,12,13,14,13,13,15,14,13,14,12,13,12,12,12,13,13,14,14,16,15,15,15,14,15,14,13,13,13,13,13,12,12,12,11,11,11,11,11,10,11,10,10,11,10,10,10,12,10,10,10,11,10,10,11,10,11,11,11,11,11,11,11,9,10,9,8,9,8,8,8,8,8,8,7,7,7,7,6,5,5,5,5,5,5,4,4,4,3,3,3,3,3,3,3,4,4,5,5,7,6,7,7,4,3,3,1,1,0,1,1,2,2,3,4,4,4,5,5,5,5,4,3,5,4,3,3,4,3,3,3,3,3,2,3,3,3,3,4,4,4,5,6,6,5,5,7,7,6,7,8,8,8,9,8,9,9,9,8,8,8,7,7,6,6,5,5,6,5,5,5,5,6,5,4,5,5,5,4,5,5,5,5,5,6,5,5,5,5,5,5,4,4,5,5,6,5,5,4,6,6,5,6,6,7,7,6,7,7,7,7,6,8,6,6,6,7,8,7,7,7,6,6,5,6,5,5,5,6,5,5,6,6,5,6,6,6,6,6,7,7,7,8,8,8,9,8,7,9,8,7,7,8,7,6,7,7,8,7,6,7,7,7,6,7,7,7,8,7,8,7,7,8,8,7,8,8,8,7,8,8,9,8,10,9,8,8,9,10,10,8,10,9,9,8,10,9,8,11,9,9,9,10,9,9,10,10,10,10,10,10,10,9,10,10,10,9,9,9,10,10,9,8,8,9,9,8,8,9,9,8,8,9,8,8,8,9,9,9,9,10,9,9,10,9,9,9,10,10,11,11,13,14,14,14,14,16,17,18,19,19,22,22,21,20,21,21,21,24,22,23,23,22,26,25,25,24,26,23,26,26,25,26,26,26,26,24,25,26,26,26,27,26,25,26,26,25,23,25,26],[29,29,29,29,29,29,29,29,29,29,28,28,28,27,28,27,28,29,26,29,28,26,28,28,26,27,28,26,27,28,26,27,28,29,27,28,27,27,28,27,29,27,27,27,28,28,25,25,26,24,22,24,24,22,22,24,22,20,22,22,21,17,16,13,13,12,12,11,10,10,10,9,9,7,7,8,7,6,6,6,6,6,5,6,5,5,3,4,3,4,5,4,4,6,6,6,6,7,7,7,7,8,8,8,9,9,10,11,10,11,11,10,9,9,9,9,10,11,11,11,11,10,10,10,10,9,9,9,8,8,9,8,7,8,8,8,8,7,7,8,8,6,7,7,6,6,7,7,6,7,6,6,7,7,7,7,7,8,8,7,7,7,8,8,8,7,8,8,7,8,9,7,7,9,9,7,8,9,9,9,7,6,7,7,7,7,7,7,7,6,7,7,6,6,6,7,8,7,6,7,6,6,5,6,6,5,4,4,3,2,4,4,3,4,5,4,6,6,5,5,5,6,6,6,6,8,6,6,7,8,8,8,9,10,9,10,11,10,11,11,9,10,10,10,9,10,10,9,9,9,10,8,9,9,8,8,8,7,8,7,7,7,7,6,6,6,6,6,5,5,6,5,4,5,6,4,6,4,4,3,4,3,4,3,6,4,5,7,5,6,6,6,7,8,7,8,8,8,9,9,9,10,11,10,11,11,11,11,13,13,12,14,14,13,13,14,14,14,14,13,14,13,12,11,11,11,12,12,12,13,12,13,14,13,14,15,15,16,16,17,18,19,20,22,21,22,23,24,24,24,26,26,26,26,27,27,28,27,28,28,26,27,26,25,27,27,27,27,27,27,28,28,29,28,29,28,28,28,28,28,28,28,28,28,28,29,29,28,29,29,29,29,29,28,28,28,28,29,28,28,28,28,29,28,27,28,27,24,26,23,24,24,22,21,22,19,20,18,17,16,16,14,13,12,14,14,12,14,13,14,13,14,14,15,15,15,15,15,15,15,17,16,17,17,17,17,16,15,15,15,15,15,15,16,16,17,17,17,17,17,17,17,16,15,15,15,15,16,15,14,14,15,15,13,14,14,12,12,11,14,15,13,12,14,14,12,14,13,13,12,13,14,13,14,14,13,13,12,13,13,12,12,10,10,10,8,10,10,8,9,10,8,8,8,8,7,7,7,7,6,6,6,5,5,6,5,5,5,6,5,6,6,6,6,6,7,8,8,8,7,5,4,3,3,2,1,0,1,2,2,3,4,4,4,5,5,6,5,4,4,5,4,4,4,5,4,4,5,4,4,5,6,5,5,5,6,5,5,7,6,6,6,7,8,8,8,8,9,9,10,10,10,12,12,11,11,10,11,9,9,8,9,7,7,8,8,7,6,7,8,7,6,7,8,8,7,7,8,9,8,7,9,8,7,7,8,7,6,6,5,6,5,5,5,5,6,6,6,6,6,7,8,8,6,8,8,6,8,8,9,7,7,8,9,8,8,9,8,9,9,7,6,8,7,7,7,8,8,8,7,7,8,8,8,8,10,9,9,10,10,12,11,12,11,10,11,11,10,10,11,10,9,10,10,12,10,9,10,10,11,10,11,11,10,10,11,10,9,10,11,11,10,11,12,11,11,12,12,11,11,12,13,12,11,13,13,14,11,13,13,12,11,13,14,11,13,13,12,12,14,14,11,12,13,13,13,14,13,12,13,12,12,12,13,12,13,14,14,12,12,10,12,13,11,12,13,13,11,11,13,11,11,11,12,12,10,13,12,11,11,14,11,11,11,12,12,13,13,14,16,16,16,16,18,19,20,22,21,24,25,23,22,24,24,24,26,24,25,26,24,27,27,27,26,27,26,27,27,27,28,27,27,27,25,26,27,27,27,28,26,27,27,28,26,24,27,26],[27,28,28,28,28,28,28,28,28,27,27,27,27,27,27,26,28,28,26,28,27,26,28,28,26,27,28,26,27,28,26,27,28,28,27,28,28,27,28,27,28,27,27,26,27,26,23,24,25,23,22,23,23,20,21,22,20,19,20,20,17,15,13,10,10,9,7,7,7,6,7,6,6,6,5,5,4,4,5,4,4,4,3,3,3,3,3,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,6,7,7,7,8,8,7,7,6,7,7,7,7,7,7,8,6,6,7,7,6,6,7,6,6,6,6,5,6,6,6,6,5,5,5,5,4,5,5,4,4,5,5,4,5,5,5,5,5,5,5,5,6,6,6,6,5,6,6,5,5,6,5,5,5,6,5,5,6,6,5,6,6,6,6,5,5,5,5,4,5,5,5,4,4,5,4,4,4,4,5,5,4,4,5,4,4,4,5,4,4,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,6,5,6,7,7,7,8,7,7,8,7,7,7,7,7,6,6,7,6,6,6,7,5,6,6,6,7,6,6,6,5,5,5,5,5,4,3,4,4,3,3,4,3,3,3,4,3,3,3,3,2,2,2,2,2,3,3,3,3,3,4,4,4,4,5,5,5,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,9,9,9,9,9,9,10,9,9,10,9,8,8,8,8,9,9,9,9,9,9,11,9,11,12,12,13,15,16,16,16,16,19,19,18,20,20,20,21,22,23,24,25,25,25,26,25,26,26,25,26,24,23,25,25,25,25,25,25,27,26,28,26,27,28,27,27,27,27,28,28,27,27,27,28,28,27,27,27,28,28,28,28,27,26,27,27,27,28,27,27,27,25,25,26,25,24,24,22,22,22,21,19,19,17,16,15,12,12,11,10,10,9,10,9,9,10,9,10,10,11,11,11,11,11,12,12,12,12,13,13,14,15,14,14,14,13,13,12,11,12,12,12,14,13,15,15,14,15,14,14,13,12,12,12,12,12,12,11,11,11,10,9,10,10,8,8,8,10,10,8,8,9,9,9,9,9,9,9,10,10,10,11,12,11,10,10,9,9,8,8,7,7,6,6,7,6,6,6,6,5,5,6,5,5,5,5,4,4,5,4,4,4,4,3,3,3,4,3,3,3,4,5,5,6,9,8,7,7,4,3,3,2,2,1,1,0,1,1,2,3,3,3,3,3,3,4,3,3,4,3,3,3,3,2,2,3,3,2,2,3,3,3,4,4,4,4,5,5,5,4,5,5,5,5,6,6,6,6,7,7,8,8,7,6,7,7,6,6,6,6,5,5,6,5,5,5,5,6,5,5,5,5,5,4,4,5,5,5,4,5,4,5,4,4,4,4,4,3,3,4,4,3,4,4,5,5,4,4,5,5,5,5,6,5,5,5,5,6,5,5,5,6,6,6,6,6,6,5,4,5,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,8,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,7,6,7,6,6,6,7,7,7,7,7,7,7,7,8,7,7,8,8,8,8,7,8,9,8,8,9,10,10,8,9,9,9,8,9,8,8,9,9,9,8,9,9,8,8,9,9,9,9,10,9,9,9,9,10,9,9,9,10,10,9,9,8,10,9,8,9,9,9,8,8,8,8,7,8,8,7,7,8,8,7,8,9,8,7,8,9,10,11,11,12,14,15,13,14,16,18,19,20,20,23,23,22,21,22,22,22,24,23,24,25,24,26,26,26,25,26,25,27,26,26,27,26,26,27,25,25,26,27,26,27,26,26,27,27,26,24,26,26],[28,28,28,28,28,28,29,28,28,27,27,26,28,26,27,26,27,28,25,28,27,25,27,27,25,25,27,25,26,27,25,26,29,28,25,28,27,25,27,25,27,25,25,24,26,26,21,22,24,22,19,21,22,19,18,22,19,17,18,18,16,14,12,9,9,8,7,7,6,5,6,5,5,4,4,4,4,4,4,3,3,3,3,2,2,3,2,2,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,5,6,6,6,7,7,6,6,6,6,6,7,6,7,7,6,7,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,4,4,4,4,4,4,4,5,4,4,5,4,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,6,5,5,6,5,6,6,6,6,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,3,3,3,2,2,2,2,2,3,3,3,3,3,3,4,3,3,4,4,4,5,5,4,4,5,5,5,5,6,6,7,7,7,6,7,6,7,6,6,6,6,6,6,6,6,6,5,5,5,6,6,6,6,6,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,7,6,6,7,7,7,9,8,8,8,8,9,9,8,8,8,8,8,7,7,8,8,7,7,8,8,8,8,9,10,12,12,12,14,15,15,14,15,16,16,16,18,18,18,19,20,21,22,22,24,24,26,24,25,25,24,25,23,22,24,24,23,24,24,25,26,26,27,26,27,27,26,27,27,27,27,27,27,27,27,27,27,27,27,27,28,27,27,27,27,25,27,27,27,27,26,26,26,25,24,26,25,23,23,23,22,21,21,20,18,16,15,14,12,10,10,8,9,8,8,8,8,9,9,10,9,10,10,10,10,10,12,10,11,11,13,12,11,13,13,13,13,12,12,11,11,11,12,12,13,14,13,14,13,14,13,12,13,12,11,10,11,11,10,10,10,10,10,8,9,9,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,10,11,11,10,10,10,8,8,8,7,7,6,6,6,6,6,5,6,6,6,5,5,6,5,5,5,4,4,4,4,4,4,3,3,3,3,4,3,3,3,4,4,4,5,6,7,6,6,4,3,2,2,2,2,1,1,0,1,1,2,2,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,5,5,5,6,6,6,6,6,7,7,6,7,6,6,6,6,6,5,6,5,5,5,4,4,4,5,5,4,4,5,4,4,4,4,4,5,4,4,4,4,4,4,4,4,3,3,3,3,4,3,3,3,4,4,3,4,5,5,5,4,5,5,4,4,4,5,5,5,4,5,5,5,5,5,5,4,4,4,3,4,4,4,4,4,5,4,4,5,5,5,5,6,5,6,6,6,7,7,7,6,6,7,6,6,6,6,6,6,6,7,7,6,5,6,6,6,5,6,5,5,6,6,6,6,5,6,6,5,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,7,7,8,7,7,7,7,7,7,7,7,8,7,7,7,7,7,8,8,8,8,8,9,8,8,8,8,8,9,9,8,8,8,8,8,7,8,8,7,7,7,8,7,7,7,7,7,7,8,8,7,7,7,7,7,7,8,9,10,11,12,13,13,13,14,15,16,18,19,18,21,22,21,20,21,21,22,24,21,23,24,22,26,24,25,25,26,24,26,26,24,26,25,26,24,23,24,25,26,25,27,25,25,26,26,25,23,24,25],[28,28,28,28,28,28,28,28,27,27,26,26,27,26,27,26,27,27,26,28,26,26,27,27,26,27,27,26,27,27,25,27,28,28,26,28,27,27,28,27,27,26,26,26,26,25,22,22,24,20,20,20,22,19,18,21,18,18,18,16,15,13,11,9,9,8,7,7,7,6,6,6,6,6,5,5,5,5,5,5,5,4,3,3,3,3,3,3,2,4,4,3,3,4,5,4,4,5,5,5,6,6,6,6,6,7,7,7,7,7,7,7,6,6,6,7,7,7,7,7,8,7,7,7,6,7,7,7,6,7,6,6,5,6,6,6,5,4,4,5,5,4,5,5,5,4,6,5,4,5,6,6,5,6,5,5,6,6,6,6,6,6,6,6,6,5,6,6,6,7,6,6,6,6,7,6,7,7,7,7,6,6,6,6,5,6,6,5,5,6,6,5,5,6,5,6,5,5,5,5,5,4,4,4,4,4,4,2,2,2,2,3,3,3,3,3,3,3,4,4,4,5,5,5,5,6,6,5,6,6,6,6,6,7,7,7,7,7,8,7,7,7,8,8,7,7,8,7,7,7,7,7,7,7,7,7,7,7,7,6,6,6,5,5,6,5,5,6,4,4,5,5,4,4,5,5,5,5,3,3,3,3,3,2,3,4,4,3,4,5,5,5,6,6,6,6,7,7,6,7,6,7,7,7,7,7,8,8,8,9,9,10,10,10,10,10,11,11,10,9,10,9,9,8,8,8,9,8,8,9,9,9,9,10,11,11,12,12,13,14,14,13,14,17,16,16,18,18,17,19,20,22,23,22,25,24,26,24,26,24,24,24,23,22,24,24,23,24,24,24,26,25,27,26,27,27,27,27,27,27,27,27,26,27,27,27,27,27,27,27,28,27,27,27,26,27,26,27,26,27,27,26,27,25,24,25,25,23,24,23,20,21,19,19,18,17,15,15,12,12,10,9,9,9,10,10,9,11,10,11,11,11,13,12,12,12,13,13,13,14,14,14,14,15,16,15,14,14,14,13,13,13,14,14,15,15,16,16,16,16,15,15,15,14,13,13,13,13,13,12,12,11,11,10,10,11,9,10,8,10,10,10,10,11,10,10,10,10,10,10,11,11,11,12,12,12,11,10,10,9,9,9,9,8,8,7,7,8,6,6,7,7,6,6,7,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,3,4,4,4,5,6,9,8,7,6,5,4,3,3,2,2,2,1,1,0,1,1,2,3,4,5,4,4,3,3,3,4,2,2,3,2,2,2,3,2,3,3,3,3,3,4,4,4,5,5,5,5,5,5,6,6,6,7,7,7,7,8,8,9,7,8,7,7,7,7,7,7,6,5,6,6,6,5,5,6,5,5,5,5,5,4,5,5,5,5,5,5,5,4,5,5,4,4,3,3,4,4,4,4,4,4,5,5,5,5,6,5,5,6,5,5,6,5,5,5,5,5,5,5,6,5,6,6,6,5,4,5,4,4,5,5,5,4,6,5,5,5,6,6,6,6,7,6,7,7,7,8,8,8,7,8,7,6,6,7,7,6,7,6,7,6,6,6,6,6,6,6,6,6,7,7,7,6,6,6,7,6,6,7,7,6,7,8,8,8,8,8,8,8,8,9,9,8,9,8,8,7,8,8,8,8,8,7,8,9,8,7,8,8,9,9,10,10,9,9,9,9,10,9,9,9,9,10,9,9,8,9,9,9,9,9,9,8,8,9,8,8,9,9,8,8,9,9,9,8,9,8,8,8,9,9,11,11,13,13,14,14,14,16,17,19,20,19,22,21,22,21,21,21,21,23,23,23,24,22,24,25,25,25,26,24,27,26,25,26,25,25,26,25,25,26,25,26,25,26,25,26,25,25,23,24,25],[29,29,28,28,29,29,29,29,28,27,27,27,28,27,27,27,27,28,26,28,27,25,27,27,25,26,28,26,26,27,25,26,28,28,26,27,27,26,27,26,28,26,26,25,26,25,22,23,24,22,20,22,22,20,19,21,19,18,19,19,17,16,14,12,11,10,11,10,9,9,9,9,8,8,8,7,7,7,6,6,6,6,5,4,4,4,4,4,3,3,4,5,4,5,5,5,5,6,6,6,6,7,7,7,8,8,8,9,9,10,10,9,8,8,8,9,10,10,10,10,10,9,10,9,9,9,8,9,7,8,8,7,7,8,7,8,6,6,5,6,6,5,6,6,6,6,6,6,5,6,7,6,6,6,7,6,7,7,7,7,7,6,7,7,7,7,7,8,7,8,8,8,8,8,8,8,9,9,8,8,8,8,8,7,7,7,7,7,6,6,7,6,6,6,6,6,6,6,6,6,4,5,6,6,4,5,4,4,4,2,4,3,3,4,4,5,4,4,6,5,5,6,6,6,6,8,8,7,8,8,8,8,9,9,9,9,9,9,10,10,9,10,10,9,10,9,10,10,9,10,10,9,9,9,9,9,9,9,9,9,8,8,8,8,7,7,8,6,6,5,7,6,6,6,6,6,6,5,5,3,4,4,5,4,4,5,5,5,6,6,7,7,8,9,8,8,9,9,9,9,9,9,9,10,10,10,11,11,11,11,12,14,12,12,12,14,15,13,13,13,13,12,12,11,10,11,12,11,10,11,12,11,11,12,12,14,14,14,15,15,16,16,18,18,18,18,20,21,20,21,23,24,24,24,26,26,27,26,27,26,25,26,25,24,25,26,25,26,26,25,27,27,28,26,28,28,28,27,28,28,28,28,28,28,27,28,28,28,27,27,28,28,28,28,27,27,27,26,28,28,28,27,27,26,26,26,27,24,24,24,23,23,22,20,21,19,17,17,15,14,13,13,12,13,13,13,13,14,14,14,14,14,16,16,15,15,17,15,15,17,18,16,17,17,18,17,18,17,17,16,17,16,17,17,18,18,17,18,19,18,17,17,18,17,15,16,17,16,16,16,15,14,14,14,13,15,13,13,11,14,13,13,13,13,13,13,14,13,13,12,14,14,14,15,14,13,14,14,13,12,12,12,11,10,10,10,10,10,8,9,10,9,9,9,9,8,8,8,7,8,8,8,6,6,8,5,6,7,7,6,4,6,5,7,6,6,8,7,9,7,6,5,4,4,3,3,2,2,1,1,0,1,2,3,3,4,4,4,4,3,4,4,3,3,4,4,3,4,4,4,4,5,5,5,6,6,5,6,8,7,7,9,9,8,9,9,9,9,9,10,10,10,11,11,11,10,10,10,10,9,10,10,9,8,9,9,8,8,8,10,8,7,8,8,8,7,8,8,8,8,8,7,7,7,7,7,6,6,5,5,5,5,6,5,5,5,6,6,6,6,6,6,7,6,6,7,7,7,6,6,6,6,7,7,8,8,7,8,8,7,6,7,6,7,7,7,7,8,9,8,9,9,9,10,10,9,10,10,10,10,11,11,11,11,11,11,10,10,10,10,10,10,9,10,10,9,10,10,10,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,11,11,11,11,12,11,11,11,10,11,12,11,11,11,11,10,10,11,10,11,11,11,10,12,12,11,11,11,12,12,13,13,13,13,12,13,12,12,12,12,12,12,12,12,12,11,12,11,11,12,12,12,11,11,12,11,12,12,12,12,11,13,12,11,11,13,11,11,11,12,12,14,14,15,16,17,16,17,18,20,20,22,21,23,23,23,23,24,22,23,24,24,24,26,24,26,26,27,26,27,26,27,26,27,28,27,27,28,27,27,27,28,28,28,28,27,28,27,27,25,26,27],[27,28,27,27,27,27,27,27,27,26,26,25,26,25,26,25,25,27,24,26,26,24,26,26,24,25,26,25,25,26,24,25,27,28,25,26,26,25,27,26,26,25,25,24,25,23,21,21,22,20,19,20,20,18,18,19,18,17,18,18,16,15,13,12,11,11,11,10,10,10,10,10,10,10,9,9,9,9,8,8,8,7,7,6,6,5,5,5,4,4,5,5,4,5,5,5,5,6,6,6,7,7,6,7,8,7,8,8,9,9,9,9,9,9,10,10,10,10,10,11,10,10,10,9,9,9,9,8,8,8,8,7,7,8,7,7,6,5,5,6,6,5,6,6,6,5,6,7,6,6,8,8,8,8,7,7,7,8,8,9,8,8,9,9,8,10,8,10,9,9,9,9,10,9,9,9,10,10,9,9,8,8,8,7,8,8,7,6,6,7,6,5,6,6,6,6,5,5,6,6,5,5,6,6,4,6,5,4,3,3,2,4,3,3,4,5,4,5,6,6,6,7,8,8,8,10,10,9,9,10,10,10,9,10,10,11,10,10,10,10,10,11,10,10,11,11,10,11,10,10,10,11,10,10,9,9,10,10,9,9,9,9,10,9,8,8,9,7,7,7,8,6,6,7,7,6,6,5,6,4,5,4,6,5,5,6,7,6,7,9,10,9,10,11,10,10,11,10,10,11,11,11,11,11,12,12,13,13,12,13,14,16,14,14,14,15,17,14,15,14,14,14,13,13,12,12,13,13,12,12,12,12,12,13,13,12,13,14,14,14,14,14,16,16,16,18,19,18,19,21,22,22,24,24,24,26,26,25,26,25,24,26,24,23,24,25,25,25,25,24,27,27,28,26,27,28,28,27,28,28,28,28,28,28,27,27,28,27,27,27,28,27,27,28,27,27,26,27,27,27,27,26,26,26,25,26,26,22,24,23,22,23,20,21,20,19,17,18,16,15,14,14,13,14,14,15,14,14,15,16,16,16,16,16,15,17,18,17,16,18,19,17,17,18,18,17,18,18,18,17,18,18,18,18,19,19,19,19,19,18,17,17,18,16,16,17,17,16,17,17,15,15,15,15,15,16,15,14,14,15,14,15,15,15,15,15,16,15,15,14,15,15,15,15,15,15,14,15,15,13,13,12,13,11,12,12,12,11,9,11,11,11,9,10,10,9,9,9,9,8,9,8,7,8,8,7,6,8,7,6,5,7,6,6,7,6,8,7,8,7,6,5,5,5,4,3,3,3,3,1,1,0,1,1,3,4,3,4,4,3,3,4,3,3,4,4,4,4,4,6,5,5,6,6,8,8,7,9,10,9,10,10,11,10,11,11,10,11,12,11,11,12,11,13,12,12,13,12,11,11,12,10,10,10,10,9,9,8,10,10,8,9,10,9,8,9,9,8,8,8,8,8,7,8,8,7,6,6,6,6,6,6,7,6,7,7,7,7,6,7,8,7,7,6,6,5,5,5,5,6,6,6,6,7,7,8,8,9,8,8,7,9,8,8,9,10,9,10,10,9,11,11,10,13,11,10,11,12,11,12,12,11,11,11,12,13,11,10,11,10,10,10,10,11,10,9,10,11,10,10,11,10,9,10,10,11,11,11,10,11,11,12,11,11,11,11,11,11,12,11,12,12,12,10,11,13,11,11,12,12,10,10,11,11,11,13,12,11,13,14,11,12,12,13,13,14,14,14,14,13,14,13,13,13,12,13,12,13,12,12,10,12,12,12,12,12,13,12,12,13,13,12,12,13,13,12,13,14,12,11,14,13,12,12,13,11,14,14,16,16,18,17,18,19,19,20,21,21,23,23,23,23,24,22,22,25,24,24,26,24,25,24,27,25,26,25,27,27,26,28,26,26,26,27,26,27,27,26,27,27,26,27,27,25,24,25,26],[29,29,28,29,29,29,29,29,29,28,28,27,28,27,27,27,27,28,26,28,27,26,28,27,26,26,27,26,27,26,25,27,27,27,26,27,26,26,27,25,27,24,25,23,25,24,21,22,23,20,19,21,20,19,17,20,19,17,17,17,16,14,12,11,10,10,9,9,9,9,9,8,8,8,7,7,7,7,6,6,6,6,5,5,5,5,5,5,4,4,4,4,5,6,6,6,6,7,6,6,7,8,7,7,8,8,8,8,9,9,8,8,8,8,9,8,9,9,10,9,9,9,8,9,9,9,9,8,8,8,8,7,7,7,7,7,6,6,6,6,6,6,6,7,6,6,7,7,7,7,7,7,8,7,7,7,7,7,7,7,7,7,7,8,7,7,8,8,7,8,8,8,8,9,9,8,9,9,8,9,8,8,8,7,7,7,7,7,7,7,6,6,6,7,6,6,6,5,5,6,6,6,5,6,4,4,4,4,4,4,3,4,5,5,5,6,6,5,7,6,6,7,8,7,8,8,8,7,8,8,8,8,9,10,9,9,9,9,9,9,9,9,9,10,9,9,9,10,9,9,9,9,9,10,9,10,10,9,9,9,9,9,8,7,8,8,8,7,7,7,7,6,6,6,6,6,6,5,5,5,5,5,5,6,5,6,6,7,7,8,7,8,8,8,9,9,9,9,10,10,9,10,10,10,10,10,10,10,10,11,11,13,12,13,12,13,13,13,12,12,11,11,10,10,10,11,11,10,10,10,11,11,11,11,12,12,14,13,15,14,14,14,15,16,15,17,17,16,18,20,21,21,23,22,24,24,26,24,25,24,24,24,23,23,25,24,24,25,24,24,26,27,27,26,27,28,27,27,28,28,28,27,27,26,27,28,28,27,27,27,27,27,28,26,27,27,27,26,27,27,27,25,27,26,25,27,26,23,25,22,23,22,21,20,19,18,17,17,15,13,11,12,11,11,11,12,11,11,14,13,12,14,14,14,14,15,16,15,15,14,18,16,17,17,16,16,18,17,17,15,15,16,17,16,19,18,16,18,18,18,17,17,18,16,14,14,15,14,14,15,13,14,13,12,15,13,11,11,10,11,12,12,11,12,12,12,12,13,15,13,14,14,15,15,15,13,14,13,13,12,12,12,11,11,11,10,9,11,9,10,11,9,9,10,10,9,8,8,8,8,8,7,7,7,8,8,6,7,7,7,6,5,6,7,7,6,8,7,8,7,6,5,4,5,4,4,5,4,3,2,2,1,0,1,2,3,3,4,3,2,4,3,2,4,3,4,3,4,4,4,5,5,6,7,7,7,6,7,7,7,8,9,8,8,9,9,9,10,10,10,10,10,10,11,11,11,11,10,10,9,9,10,9,9,9,10,9,9,9,8,9,8,9,9,8,7,7,7,7,7,7,6,7,7,7,6,6,5,5,4,4,5,5,5,5,6,6,6,6,7,7,7,6,5,6,5,5,6,6,5,5,6,5,5,7,7,7,7,7,7,6,6,7,7,7,7,7,8,7,8,9,8,9,9,10,9,9,10,10,10,9,10,10,10,11,10,11,12,10,10,10,11,10,9,9,9,8,9,9,9,8,9,8,8,8,9,9,8,9,9,10,10,10,10,10,10,10,9,10,11,10,10,11,10,10,11,10,10,11,10,9,10,10,10,10,10,10,10,10,12,10,10,10,12,11,12,12,12,11,11,11,11,12,10,10,11,12,12,11,12,12,12,11,11,12,11,10,10,12,11,11,12,11,11,11,11,11,12,10,10,13,11,12,11,12,12,14,14,15,16,17,17,18,20,20,21,23,22,26,24,25,25,25,24,25,25,25,26,28,26,27,27,29,27,27,26,29,28,27,28,28,27,28,28,28,28,28,28,28,28,27,28,28,28,27,27,27],[29,29,28,29,29,29,29,29,29,28,28,27,28,27,28,27,28,28,27,28,27,26,28,27,26,27,28,26,27,28,25,27,28,28,26,28,27,26,27,26,27,26,26,25,26,24,23,23,25,22,21,22,23,20,21,22,20,19,21,20,17,15,14,12,11,11,10,10,10,10,10,9,9,8,9,10,9,9,8,7,8,8,6,6,6,7,5,5,4,5,6,5,5,6,8,7,7,8,9,8,8,9,8,8,9,10,9,9,9,10,10,9,9,9,9,9,10,10,10,11,10,9,10,10,9,9,9,9,8,8,9,8,7,8,8,8,8,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,10,8,7,9,9,8,9,9,9,9,9,9,9,10,9,9,9,8,9,9,10,9,9,9,9,10,9,10,9,8,8,8,8,8,8,7,7,7,7,7,6,7,7,7,7,7,6,7,6,5,6,6,5,6,5,4,3,4,4,4,4,5,5,5,5,6,7,6,7,7,7,9,9,8,9,9,9,8,9,9,9,10,11,10,9,10,11,10,9,10,11,10,10,11,11,10,10,10,10,9,9,10,10,9,9,10,10,9,9,9,8,8,7,8,8,8,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,6,6,8,7,8,8,9,9,8,9,9,9,9,10,10,9,10,10,10,11,12,11,10,11,13,12,14,14,14,14,14,15,14,13,13,13,13,12,12,11,12,12,11,12,12,12,12,12,12,13,13,12,13,15,16,16,15,16,19,18,18,21,20,20,22,23,24,25,24,27,26,27,25,27,26,25,27,23,23,27,25,25,26,25,26,28,26,28,28,28,29,29,28,28,28,28,28,28,28,28,29,29,29,29,28,29,29,28,28,27,28,27,29,28,29,28,28,28,26,25,26,27,24,24,23,23,22,22,21,19,18,17,18,15,15,14,12,12,11,13,13,12,14,13,16,14,15,16,16,16,16,18,16,16,17,18,17,17,18,20,18,18,18,18,17,17,17,18,18,19,20,20,20,20,19,19,17,18,18,16,17,18,17,16,16,16,15,13,14,14,15,13,13,12,15,15,14,15,15,15,14,15,15,15,14,15,16,15,16,16,16,15,15,14,13,14,13,12,11,12,10,11,12,9,10,11,9,9,10,10,8,9,8,7,7,7,7,7,7,7,6,6,6,7,6,6,6,7,6,7,8,11,10,9,8,7,5,5,6,4,4,4,4,3,2,3,1,1,0,1,2,5,4,3,2,4,4,2,5,5,6,4,5,6,5,7,8,8,8,6,7,7,7,8,8,8,8,9,9,9,9,9,10,10,11,11,10,13,12,12,11,10,11,11,10,10,9,9,8,9,9,8,8,8,9,8,7,8,8,7,7,8,7,8,7,8,8,8,7,8,7,7,6,8,7,7,9,8,8,7,7,8,8,7,7,8,8,7,7,8,7,7,8,6,7,7,6,7,8,7,7,8,8,8,8,8,7,7,8,8,9,8,8,9,8,8,8,8,9,9,9,10,10,10,10,11,11,11,12,10,12,11,9,10,10,10,8,10,9,9,10,9,9,9,9,9,9,9,9,10,11,10,9,9,10,10,9,10,10,10,10,11,10,12,11,12,11,11,11,10,12,11,11,10,11,11,10,11,11,12,11,11,11,12,13,11,10,11,11,12,12,13,13,12,12,12,12,13,13,12,13,13,14,12,11,10,12,13,12,12,13,13,10,12,14,12,11,12,13,12,12,13,13,11,12,12,12,12,12,13,13,15,15,17,17,19,18,19,20,22,22,23,22,25,23,25,24,25,24,23,25,25,25,27,25,26,27,27,26,27,25,28,27,27,28,27,27,27,27,27,27,28,27,28,28,27,27,28,27,26,27,26],[28,28,27,27,28,28,28,28,28,27,27,26,28,27,27,26,27,27,25,27,26,24,26,27,25,25,27,25,25,26,24,25,27,27,25,27,26,25,26,25,26,25,25,24,24,23,21,22,23,20,20,21,21,19,18,20,18,18,18,18,16,15,13,12,12,11,12,12,10,12,10,11,10,9,10,11,9,9,9,9,8,8,7,7,7,6,5,5,4,5,5,6,5,6,7,7,7,8,9,8,9,9,9,9,10,10,10,10,10,11,10,10,10,11,11,10,11,12,12,12,12,11,12,12,11,10,11,10,10,9,10,9,9,9,9,10,9,9,8,8,8,8,8,9,8,8,8,9,8,8,9,8,9,9,8,8,9,9,9,9,9,8,9,9,9,10,9,10,10,10,10,11,12,11,10,10,10,11,10,11,10,10,10,9,9,9,9,8,9,9,8,7,9,8,8,8,8,7,8,8,7,6,7,7,6,6,5,5,4,4,4,6,5,6,7,7,6,7,8,9,7,9,9,9,10,10,9,11,10,10,10,11,11,10,11,11,12,11,11,11,11,12,12,12,12,12,12,11,11,12,11,10,11,11,11,10,10,10,11,10,10,10,10,10,9,10,10,9,9,9,9,8,8,8,8,8,7,7,7,5,7,5,7,6,7,8,9,8,9,9,11,11,10,10,10,10,11,12,12,13,12,11,12,13,13,13,15,15,14,14,16,17,15,16,18,16,18,16,15,16,14,14,13,13,13,12,14,13,12,12,13,13,12,13,13,14,13,14,14,14,14,15,16,16,16,16,18,18,18,21,21,21,23,22,23,24,25,25,25,24,24,24,25,23,24,24,25,24,24,25,26,26,27,26,26,27,27,27,27,27,26,26,26,26,27,27,27,26,27,27,27,27,27,26,26,26,25,27,26,27,26,25,27,25,23,25,26,22,23,23,20,22,20,20,20,19,18,17,16,15,14,15,14,16,14,15,17,17,20,17,17,17,18,18,18,18,20,17,17,19,21,18,19,21,21,20,20,19,20,18,19,19,19,18,20,21,21,21,21,20,19,19,19,19,17,18,20,18,18,18,17,16,17,16,19,18,17,17,15,17,16,17,17,16,17,17,17,15,18,16,16,16,16,17,16,17,16,16,16,14,16,14,15,14,12,12,13,13,11,12,13,12,11,12,11,11,11,11,10,10,10,10,8,8,9,8,8,8,8,8,7,8,8,9,7,8,10,9,10,9,8,8,7,6,5,5,4,4,4,3,3,2,2,1,0,1,2,4,2,3,4,4,4,5,4,5,5,7,6,8,8,8,7,8,9,10,8,9,10,10,10,11,11,11,12,12,12,12,12,13,14,13,15,16,15,13,14,12,12,13,12,12,12,11,11,11,9,11,11,11,10,10,11,11,9,11,10,10,10,9,9,9,9,9,10,9,9,7,8,7,7,8,8,7,7,7,8,8,7,7,8,9,8,7,7,7,6,4,5,5,6,6,6,7,8,8,9,10,9,10,8,10,8,9,10,11,10,11,11,11,11,12,11,12,13,12,13,12,13,14,14,13,14,12,14,13,12,12,13,12,12,13,12,12,11,12,12,12,11,12,11,11,11,12,11,11,11,11,12,12,12,13,14,13,13,14,13,13,13,13,13,13,13,13,13,15,12,12,14,13,12,13,12,11,13,13,13,12,13,15,12,13,13,15,15,17,15,15,15,14,15,13,15,14,14,13,13,14,13,14,11,14,13,14,13,14,15,12,13,14,15,14,14,15,14,14,16,16,14,14,16,15,15,14,15,13,16,17,18,18,19,20,20,20,22,22,23,22,25,24,25,24,25,24,24,26,26,25,27,26,25,25,27,26,26,26,27,27,27,28,27,27,27,27,27,27,27,27,28,28,27,27,27,26,25,26,26],[27,28,27,28,28,28,28,27,28,27,26,26,26,26,26,26,26,26,25,26,25,24,26,25,24,26,26,25,26,26,24,26,27,27,26,26,25,26,26,26,26,25,25,24,25,24,21,22,23,20,21,21,20,19,19,19,17,17,17,17,15,13,11,10,8,8,8,7,7,7,7,7,7,7,7,7,7,6,6,5,6,6,5,4,5,5,5,3,4,4,4,4,5,5,6,5,6,6,6,6,7,7,7,7,8,8,7,8,8,9,8,8,8,8,8,8,8,8,9,9,9,9,8,8,8,8,8,8,7,7,7,7,7,7,7,8,7,7,6,6,6,6,6,6,6,6,6,6,6,7,7,6,7,6,6,6,7,7,7,7,7,6,7,7,6,7,7,6,8,7,7,8,8,7,7,7,8,9,8,8,7,8,8,7,7,7,7,7,7,7,7,6,7,6,6,7,6,6,7,6,6,7,6,6,5,6,5,5,5,5,4,5,5,5,5,6,6,5,6,6,7,6,6,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,9,8,8,8,9,8,9,9,9,9,9,9,8,8,9,9,9,9,9,8,8,8,8,8,7,7,7,7,7,7,7,6,6,6,7,7,6,6,6,6,5,5,6,6,5,5,5,6,6,6,6,7,7,6,7,7,7,8,8,8,8,7,8,8,8,9,9,9,10,10,10,10,12,11,12,13,12,12,13,12,12,12,12,11,10,10,9,9,10,9,8,9,9,9,9,10,10,10,11,12,13,13,13,14,15,16,15,16,17,16,17,19,19,19,21,21,22,23,24,24,25,23,22,24,24,22,24,24,24,25,24,23,26,25,26,25,26,27,27,27,27,26,26,26,26,26,27,27,27,27,28,27,28,26,27,27,25,26,26,27,27,27,27,26,26,24,24,24,25,22,22,22,20,20,19,19,17,16,15,15,14,13,12,11,10,11,11,11,11,12,12,13,12,12,14,15,14,14,16,14,14,15,16,15,16,18,18,16,17,15,17,16,16,17,16,16,17,17,18,17,16,17,16,14,15,15,15,13,15,15,14,13,14,13,12,13,13,13,12,11,11,12,12,12,12,13,12,13,13,13,13,13,13,14,14,14,15,15,14,14,13,11,12,11,11,10,9,9,10,10,8,9,9,9,9,9,8,8,8,8,7,7,7,7,6,6,6,6,5,5,6,5,5,5,5,6,6,6,8,8,8,8,7,6,6,5,5,5,5,4,4,4,3,2,3,2,1,0,1,1,1,1,2,2,3,3,3,4,4,4,4,5,4,5,5,5,5,5,5,6,6,6,6,6,6,7,8,7,8,8,9,9,9,9,11,11,10,10,10,10,9,9,9,8,8,7,7,8,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,5,4,4,4,4,3,5,4,5,6,6,6,5,5,5,5,5,6,5,5,4,4,4,4,4,4,4,4,5,6,6,6,7,6,6,5,6,5,5,6,7,6,6,6,6,6,6,7,8,7,8,8,8,8,9,9,9,9,8,8,9,8,8,8,8,8,7,7,8,8,7,6,7,7,7,6,7,7,6,7,7,7,7,6,7,8,8,8,8,8,8,8,9,9,9,9,10,9,8,9,9,9,8,9,9,8,9,9,8,8,9,9,8,10,10,9,8,10,10,10,11,11,11,11,11,10,9,11,10,11,11,10,11,10,9,9,9,11,10,9,10,10,8,9,11,10,10,10,11,11,10,11,12,10,10,11,11,11,11,12,12,14,15,17,16,17,16,17,18,19,21,21,19,23,21,22,22,22,22,22,25,24,24,24,24,25,24,24,23,24,23,24,26,25,25,23,25,24,25,24,26,26,25,26,26,24,24,25,24,23,23,25],[28,28,27,28,28,28,28,27,27,27,26,26,27,26,27,26,27,27,26,27,26,25,27,26,25,26,26,24,25,26,23,26,27,26,25,26,25,25,26,25,25,23,24,23,23,22,21,21,22,20,19,20,20,19,19,20,18,18,18,17,15,13,10,9,7,7,6,6,6,5,6,5,5,5,5,5,5,5,5,4,5,4,4,3,4,4,4,3,4,4,4,5,5,4,5,6,5,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,7,7,7,7,8,8,9,9,9,7,8,9,7,8,8,8,7,8,8,7,7,8,8,8,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,6,6,6,6,6,6,6,5,5,6,6,5,6,6,6,6,7,7,7,7,7,7,7,8,8,7,7,7,7,7,6,6,7,7,6,7,7,6,6,7,7,7,7,6,6,6,6,5,6,6,5,5,5,4,5,5,4,4,5,5,5,5,4,5,5,5,5,6,6,5,5,6,6,5,6,6,6,6,7,7,7,8,8,8,9,8,8,7,9,8,7,8,8,8,7,8,8,7,7,8,8,8,8,8,8,7,7,7,6,6,6,6,6,6,6,5,6,6,6,5,6,6,6,6,5,5,5,4,5,4,4,5,5,4,5,6,5,5,6,6,6,6,7,7,6,6,6,7,7,7,7,8,8,7,8,9,9,10,10,11,11,11,12,11,10,9,9,8,8,8,7,8,8,7,7,8,8,7,8,9,9,10,11,11,13,14,13,13,14,15,14,16,18,17,17,20,21,19,23,22,22,24,25,24,26,24,23,25,24,22,24,24,24,25,24,25,27,25,26,27,26,27,28,27,27,27,27,27,27,27,27,27,28,27,27,26,27,27,27,27,26,26,25,27,26,27,27,26,26,26,24,25,24,22,22,22,21,20,19,18,17,16,14,14,12,11,10,10,9,10,10,10,10,11,10,12,11,11,12,13,12,14,14,13,13,13,16,14,15,16,17,17,15,16,16,15,14,16,14,16,17,16,17,18,16,17,14,15,15,14,13,12,14,13,12,12,12,12,11,11,11,12,10,9,9,10,10,10,10,11,10,10,10,12,12,11,12,13,13,13,14,14,13,13,12,12,11,11,10,9,8,8,8,8,7,7,9,8,7,7,8,8,7,6,6,6,6,6,5,5,5,5,4,5,5,4,4,4,4,5,5,6,9,7,7,6,6,5,5,4,4,4,4,3,3,3,4,3,3,2,1,1,0,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,7,7,8,8,9,8,9,8,8,7,8,7,7,7,7,6,6,7,7,6,6,6,6,5,5,5,6,5,5,5,5,5,5,5,5,4,4,4,3,3,3,3,3,3,4,3,3,4,4,4,5,5,5,5,5,5,4,4,4,3,3,4,4,4,3,4,5,5,5,5,5,4,4,4,4,4,5,5,4,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,8,7,7,8,7,6,7,7,7,7,7,6,7,6,6,6,6,5,6,6,5,6,6,6,6,5,6,6,6,6,6,7,7,7,7,7,7,7,8,8,7,8,9,10,8,7,8,8,7,8,7,7,7,8,7,7,9,7,7,7,8,8,9,10,10,8,9,9,8,10,9,9,9,10,10,9,9,8,10,9,9,9,10,9,7,8,10,8,8,10,10,8,9,10,10,9,10,11,10,10,9,11,11,12,14,15,16,17,17,19,19,20,21,22,22,23,22,23,23,23,22,24,25,25,26,25,24,26,26,26,25,26,25,27,26,26,27,26,26,25,26,28,26,26,27,27,27,26,26,27,25,24,24,26],[28,28,27,28,28,28,29,27,28,27,26,26,27,27,27,26,27,26,26,27,26,25,27,26,25,26,26,25,26,26,25,26,27,27,26,27,26,25,26,26,27,25,25,24,25,24,22,22,24,21,21,22,21,19,20,21,18,17,19,18,15,13,11,9,8,7,6,6,6,5,6,5,5,5,5,4,5,4,4,4,4,4,3,3,3,3,3,2,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,6,6,6,7,7,7,7,7,6,6,6,6,6,6,7,7,7,7,6,6,7,6,6,6,6,6,6,6,6,5,6,7,7,6,5,5,5,5,5,5,5,5,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,5,6,6,6,6,7,6,6,5,5,6,6,5,5,6,6,5,5,5,5,5,6,6,6,6,5,5,6,6,5,5,5,5,5,4,4,4,3,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,6,7,7,7,6,7,7,7,6,7,7,6,6,7,6,6,6,7,7,7,7,7,7,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,3,4,3,3,4,4,4,4,5,5,4,5,5,6,5,6,6,6,5,6,6,6,7,7,7,7,8,8,9,8,9,9,10,10,10,10,10,9,9,9,8,8,8,7,8,8,8,7,8,8,8,9,9,9,10,10,11,13,14,14,13,15,15,14,15,18,17,17,19,21,20,21,22,23,23,25,22,25,24,24,25,24,22,24,25,24,25,25,25,27,25,27,27,27,28,27,27,27,27,28,28,27,27,27,27,27,27,28,27,28,28,28,27,26,27,27,27,27,27,28,27,27,26,25,25,25,24,23,23,22,21,20,19,18,16,15,14,12,10,10,9,9,9,9,9,9,10,10,11,11,10,11,12,12,13,14,12,12,14,15,13,15,16,16,14,15,15,15,14,13,15,14,15,16,17,16,16,16,16,15,14,14,13,13,12,13,13,13,11,11,11,10,11,10,10,8,8,9,9,9,9,9,10,10,10,10,12,11,11,12,13,12,13,13,13,12,12,11,10,10,9,8,8,7,7,7,7,6,7,7,7,6,7,7,6,6,6,5,5,5,5,5,4,5,4,4,5,5,4,3,4,4,5,5,6,7,7,7,7,6,5,4,4,3,3,3,3,3,2,3,3,3,2,2,1,1,0,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,5,4,5,5,5,5,6,6,6,6,6,7,7,7,7,8,8,7,7,7,7,7,7,7,6,5,6,6,6,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,3,3,3,2,2,3,3,2,3,3,4,4,3,4,4,4,4,4,4,3,3,3,3,4,4,3,4,4,5,5,5,5,5,4,4,4,3,4,5,5,4,5,5,5,6,6,5,6,6,6,6,7,7,7,7,7,8,7,7,7,8,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,6,5,6,6,6,7,7,7,7,7,7,8,7,8,8,8,8,7,8,8,8,8,8,7,7,8,7,7,8,8,7,8,8,8,7,8,8,8,8,9,10,8,9,9,8,9,9,8,9,9,9,8,8,8,8,8,8,8,8,8,7,8,9,9,8,8,9,9,8,9,9,8,9,10,9,9,9,10,10,12,13,16,16,16,15,18,19,19,21,22,23,24,23,24,24,24,23,25,25,25,25,25,25,27,26,26,25,26,25,27,26,26,28,26,27,26,26,26,26,26,26,27,27,26,26,27,25,26,25,25],[29,29,29,29,29,29,29,29,28,28,28,27,28,27,28,27,28,28,27,28,27,26,27,27,26,27,27,26,27,27,25,27,28,28,27,27,26,26,27,26,27,26,26,25,25,24,22,23,23,21,21,21,20,19,18,20,18,18,19,17,15,13,10,8,7,7,6,5,6,5,5,5,5,5,4,5,4,4,4,3,4,3,3,3,3,3,3,2,2,3,3,3,3,3,3,4,4,4,4,5,5,5,5,6,5,6,7,6,7,7,6,6,5,6,6,6,6,6,7,7,6,6,6,6,6,7,6,6,6,6,6,6,5,6,6,6,6,5,4,5,5,4,5,5,4,4,5,5,5,5,5,5,5,4,5,4,4,5,4,5,4,5,5,5,5,4,5,5,5,5,5,5,5,5,6,5,6,6,6,6,5,5,6,6,5,5,5,5,5,5,6,4,5,5,5,5,5,5,4,5,5,5,5,4,4,4,4,3,3,3,3,4,3,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,7,6,6,7,7,6,6,7,6,6,6,6,6,6,6,6,5,6,6,6,6,7,7,6,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,5,6,6,6,6,6,7,7,7,7,8,8,8,9,9,9,9,10,10,9,9,8,8,8,8,8,7,7,7,7,6,7,8,7,8,8,9,9,10,11,12,13,14,13,15,15,15,16,18,17,17,20,21,21,23,22,24,24,26,24,26,24,23,25,24,23,24,25,24,24,25,24,27,26,27,27,27,28,28,28,27,27,28,28,28,28,28,28,28,27,28,27,28,27,27,28,27,27,27,27,27,28,27,26,27,26,24,25,26,23,24,22,21,22,21,19,19,15,15,14,11,10,9,8,8,9,9,8,8,10,9,11,10,10,11,12,11,12,14,13,12,14,14,14,14,15,16,15,15,15,15,14,14,14,14,15,15,16,16,16,16,15,14,14,14,13,13,12,13,12,11,12,11,11,9,9,9,10,8,8,8,9,9,8,9,10,10,9,9,11,9,9,11,12,11,12,12,12,11,10,9,9,8,8,7,7,6,7,6,7,6,6,6,6,5,6,6,5,5,5,5,5,5,4,4,4,4,3,3,4,4,3,3,3,4,4,4,4,7,6,7,6,5,4,3,3,3,3,3,3,3,2,3,2,3,3,3,1,1,1,0,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,4,3,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,7,7,7,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,4,4,5,4,4,4,5,4,4,4,4,4,4,4,4,3,3,2,2,2,3,3,2,3,3,3,4,3,4,4,4,3,3,3,3,3,3,3,3,3,4,3,4,5,4,4,4,5,4,4,4,3,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,6,6,7,6,7,6,6,7,7,6,6,6,6,5,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,5,6,6,6,6,7,7,6,7,7,7,7,7,8,8,7,7,7,7,7,8,6,6,7,7,7,7,8,7,7,7,7,7,8,9,9,8,8,9,8,9,8,8,8,9,9,8,7,7,9,8,8,7,8,8,7,7,8,8,7,8,8,8,7,8,8,7,8,9,8,7,8,9,10,11,12,14,14,16,15,17,18,20,21,22,21,23,23,25,23,24,23,23,25,25,24,27,25,26,26,28,26,27,26,27,28,27,28,27,27,27,26,28,27,27,27,28,28,27,27,27,27,26,25,27],[29,29,28,28,28,29,29,28,28,27,27,27,28,27,27,27,28,27,26,28,27,25,28,27,25,27,27,25,26,26,24,27,27,28,26,27,27,26,27,25,27,25,25,25,25,25,22,22,24,22,21,22,22,21,19,21,19,18,17,17,14,12,10,8,6,6,5,5,5,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,5,5,5,5,5,6,5,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,5,6,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,4,4,5,5,5,5,5,4,5,5,4,4,5,4,5,3,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,6,6,6,6,6,6,5,6,6,5,5,6,6,5,5,6,5,5,5,6,6,5,6,6,6,5,5,5,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,4,3,3,4,4,3,4,5,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,8,8,8,8,7,7,7,7,6,5,6,6,5,5,6,6,6,6,7,8,9,8,9,11,12,12,13,13,14,14,14,15,16,16,18,19,19,21,21,23,23,25,22,25,22,21,25,22,21,23,24,24,24,23,25,25,26,26,25,27,27,27,27,27,27,27,27,26,26,26,27,27,27,27,27,27,27,27,26,27,26,27,27,26,27,27,26,27,24,24,24,24,22,23,20,21,20,20,18,16,14,13,12,10,9,8,7,7,7,7,7,7,7,7,8,8,8,9,9,8,9,10,9,9,11,11,10,11,13,13,12,13,11,12,11,10,11,10,11,11,12,13,13,12,11,11,10,11,10,10,8,10,10,9,8,9,9,7,8,7,7,7,6,7,7,7,6,6,8,7,7,7,8,7,7,9,9,9,10,10,10,9,9,8,8,7,7,6,6,6,5,6,6,5,6,6,6,5,5,6,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,2,3,3,4,4,4,6,6,6,7,4,4,3,3,2,3,3,3,2,2,2,2,2,2,2,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,5,6,6,5,5,5,4,4,4,5,5,4,4,4,4,4,4,4,4,3,3,4,4,3,3,3,3,3,3,3,3,2,2,2,2,3,3,3,3,3,4,3,3,3,4,4,4,4,3,3,3,3,3,3,3,4,3,4,5,5,4,4,4,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,5,6,6,6,5,6,6,6,6,6,6,6,5,6,5,5,6,6,5,6,7,6,5,6,7,6,7,7,7,7,7,7,6,7,7,7,7,8,7,7,7,6,7,7,6,6,7,6,6,6,7,7,6,6,7,6,6,7,7,6,7,7,7,7,7,8,8,10,10,11,13,14,12,14,15,18,18,19,18,22,21,21,22,21,21,22,24,24,24,24,21,26,25,25,24,25,24,26,25,25,26,24,25,24,25,25,25,26,27,26,25,26,24,25,26,24,24,26],[28,28,27,28,28,28,28,27,28,27,27,27,27,27,27,27,27,27,28,28,27,26,27,27,26,27,27,25,26,26,24,27,27,27,26,27,26,25,26,25,27,26,25,24,25,24,20,23,23,20,19,22,21,19,20,21,18,18,18,17,14,12,10,8,6,6,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,6,5,5,5,5,5,4,5,5,5,5,5,6,5,5,5,6,5,5,5,5,4,5,5,5,4,5,5,6,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,3,4,3,4,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,5,4,5,5,5,5,4,4,5,5,4,4,5,4,4,4,5,4,4,5,5,5,5,5,5,5,5,4,5,4,4,4,3,3,3,3,3,3,3,3,4,3,3,3,4,3,3,3,4,3,3,4,4,3,4,4,4,4,4,5,5,5,5,5,6,5,5,5,6,5,4,5,5,5,4,5,5,4,5,6,6,5,6,6,6,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,3,3,3,3,3,4,3,3,4,4,4,4,4,5,4,4,4,5,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,7,7,7,6,6,6,6,5,5,6,5,5,6,5,6,6,6,7,8,9,10,12,12,12,12,13,14,13,14,16,16,16,17,20,19,21,21,22,23,25,23,25,24,22,25,23,22,24,24,22,24,23,24,26,23,26,26,26,27,26,26,27,26,26,26,26,26,26,27,27,27,27,27,28,26,27,26,26,26,26,26,26,26,27,26,27,25,23,23,23,21,21,20,19,19,18,17,16,14,13,12,10,9,7,7,6,6,7,7,6,7,7,8,7,8,8,8,8,9,10,9,9,10,12,10,12,12,12,11,12,11,12,10,10,11,10,11,12,12,12,13,11,11,11,10,10,9,9,9,9,9,8,8,8,8,7,7,7,7,6,6,6,7,7,6,6,7,7,7,7,8,7,8,8,9,9,10,10,9,9,9,8,8,7,7,6,6,5,5,6,5,4,5,6,5,5,5,5,5,5,5,4,4,4,4,4,3,4,3,3,3,3,3,2,3,3,4,4,5,7,6,6,6,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,6,6,5,5,5,6,5,5,5,4,4,4,5,4,4,4,4,4,4,3,4,4,3,3,4,3,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,5,4,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,6,5,6,6,5,6,5,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,3,4,4,4,4,4,4,4,5,4,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,6,5,5,6,5,5,6,6,6,6,7,7,7,6,6,6,7,6,7,7,7,7,7,6,6,7,7,7,6,6,6,6,6,7,6,6,7,6,6,6,7,7,6,7,7,6,7,6,8,8,10,10,12,13,13,13,15,16,18,19,20,21,22,21,21,21,22,20,23,24,24,25,25,23,25,25,26,25,25,24,27,26,25,26,26,25,25,25,26,26,26,25,26,27,25,25,26,24,24,24,24],[28,28,28,28,28,28,29,28,28,27,26,27,27,26,26,27,26,26,26,27,26,26,26,26,25,27,26,26,28,26,25,27,27,28,27,27,26,27,27,27,27,26,26,25,26,25,23,22,24,21,22,21,22,20,19,20,18,17,18,17,14,12,10,7,6,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,4,4,4,5,5,5,5,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,5,5,4,4,3,4,4,3,3,4,3,3,4,3,3,3,4,3,3,3,4,3,3,4,4,3,3,3,3,4,3,3,4,4,3,3,4,4,4,4,4,4,4,5,4,4,4,4,4,4,3,4,4,4,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,3,2,3,3,2,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,6,6,6,6,7,8,9,9,11,13,13,13,14,14,14,14,16,16,16,17,20,19,20,21,23,23,24,23,24,22,21,24,21,21,23,23,23,22,22,23,26,24,27,25,26,27,27,26,27,27,27,27,27,27,27,28,28,27,27,26,28,27,27,27,26,26,26,26,26,27,26,26,26,25,25,25,24,23,22,21,22,19,19,17,17,15,13,12,9,8,7,6,6,6,6,6,6,6,6,7,7,7,8,8,8,9,10,9,9,10,11,10,10,12,12,11,12,11,11,11,10,10,10,10,11,12,12,12,12,11,10,10,10,9,9,8,9,9,8,8,8,7,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,7,7,7,7,8,8,9,9,9,8,7,7,6,6,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,4,4,4,6,6,6,5,4,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,4,4,4,4,4,4,4,4,3,4,4,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,4,4,4,3,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,4,5,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,3,4,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,5,5,5,5,5,6,5,5,5,6,5,5,5,5,5,6,6,6,6,6,7,6,6,6,6,6,7,6,6,6,6,6,6,6,6,6,6,5,5,6,6,5,6,5,5,5,6,6,5,5,6,5,5,6,7,7,9,10,11,13,13,12,14,15,16,19,19,19,22,21,23,22,23,21,22,24,23,24,24,24,26,26,26,25,25,25,26,26,26,28,26,26,26,25,26,26,25,25,26,25,25,26,27,25,23,25,26],[29,29,29,29,29,29,29,28,29,27,27,27,28,27,28,26,28,28,26,28,27,25,28,27,25,27,28,26,27,28,25,27,28,28,26,27,27,26,27,26,27,26,26,25,26,25,23,22,24,22,22,22,22,21,20,21,20,19,17,18,15,12,9,7,6,5,4,5,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,4,4,4,5,5,5,5,5,5,4,4,5,4,4,5,4,4,4,4,4,4,4,5,5,4,4,3,4,4,3,3,4,3,3,3,4,3,3,4,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4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,4,4,4,4,3,3,4,4,4,3,4,4,3,3,4,4,3,4,4,4,4,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,5,5,6,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,5,6,6,6,6,6,6,6,6,6,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,7,8,9,9,10,12,13,11,13,14,16,17,19,19,22,21,21,21,22,22,22,24,22,23,24,23,27,26,26,24,26,25,26,26,25,27,25,26,27,25,25,26,27,26,26,26,26,26,27,25,23,24,25],[28,28,28,28,28,29,28,28,28,27,27,26,27,27,27,26,26,27,25,27,26,25,27,27,25,27,27,25,26,26,24,27,27,27,26,27,25,26,26,26,26,25,25,25,25,25,22,22,22,21,20,21,21,20,18,20,19,18,16,16,15,12,9,7,6,5,4,4,4,3,3,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,5,4,5,5,5,5,5,5,4,4,5,5,5,5,6,6,5,5,5,5,4,5,5,4,4,5,5,4,4,5,5,5,4,4,4,4,4,3,3,4,3,3,4,4,3,3,4,3,3,4,4,3,3,4,4,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,4,4,5,4,4,5,4,4,4,5,5,5,5,5,5,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,4,4,4,4,4,5,4,5,5,5,6,6,6,6,6,6,6,6,6,6,5,5,5,4,5,5,4,4,5,5,5,5,6,6,7,9,9,10,11,12,11,13,14,13,14,15,16,16,17,20,19,21,21,22,23,25,23,25,23,23,24,23,21,24,24,23,24,23,24,25,24,26,25,27,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,26,27,27,26,25,26,26,25,26,26,25,26,24,24,24,23,22,22,19,20,19,17,17,15,13,12,11,10,8,7,6,5,5,6,6,6,6,6,7,7,7,7,7,7,8,9,8,8,9,9,9,9,10,10,11,10,9,10,9,9,9,9,9,9,10,11,11,10,11,10,9,9,9,8,8,8,8,7,7,7,7,6,6,6,6,5,5,5,5,6,5,5,6,6,6,6,7,6,6,7,7,8,8,8,8,8,7,7,6,6,6,5,5,5,4,4,5,4,4,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,3,3,4,6,6,6,5,4,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,0,1,2,1,1,1,1,1,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,4,4,4,4,4,4,4,4,3,3,4,3,3,3,4,3,3,3,3,3,2,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,4,4,4,3,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,4,4,4,4,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,4,5,4,4,5,5,4,5,5,5,4,4,5,5,6,6,6,6,6,5,5,6,6,6,6,6,6,6,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,6,6,6,6,6,7,8,9,11,11,12,11,12,15,15,17,19,18,22,21,20,20,21,21,22,24,22,24,24,21,26,24,25,24,25,24,26,25,24,26,25,25,24,24,24,26,26,25,26,26,25,25,25,25,23,25,25],[28,28,27,28,28,29,28,27,28,27,26,27,27,26,26,27,27,27,27,27,26,25,27,26,25,27,26,26,27,26,24,27,27,28,27,27,27,27,27,27,28,25,25,25,26,26,22,23,24,21,21,22,22,19,19,20,18,18,17,17,15,13,10,7,6,5,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,4,4,5,4,4,4,4,4,4,4,4,3,4,4,4,3,4,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,5,5,5,5,6,6,8,9,10,11,13,12,13,14,15,14,15,16,18,18,17,20,20,20,21,23,22,24,24,25,23,23,24,22,21,24,23,23,23,23,23,26,23,26,25,26,26,26,26,26,27,27,27,27,27,26,27,27,26,27,26,27,26,27,27,26,27,26,26,26,26,26,26,27,25,24,24,24,22,21,21,19,19,18,17,16,14,12,11,9,7,7,5,5,5,6,5,5,6,6,6,6,6,7,7,7,7,8,7,8,8,9,9,9,10,10,10,10,9,10,9,8,8,8,8,9,10,10,11,10,10,9,8,8,8,7,7,8,7,6,6,7,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,7,8,8,8,7,7,6,5,5,5,4,4,4,4,4,4,3,3,4,3,3,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,4,6,6,6,6,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,4,4,3,3,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,5,4,4,4,4,5,5,5,5,6,5,5,5,5,6,5,5,6,5,6,5,5,6,5,5,5,5,5,4,5,5,5,4,5,5,4,5,5,5,5,5,5,5,5,5,6,7,8,9,10,11,11,11,12,14,15,17,19,18,21,21,21,20,21,19,23,23,22,24,23,24,26,25,26,24,25,24,26,25,25,27,25,24,26,24,25,24,26,26,25,26,25,26,25,25,23,24,25],[29,29,29,29,29,29,29,28,29,28,28,28,28,27,27,27,27,28,26,28,27,26,28,27,26,28,27,26,28,27,26,28,28,28,27,28,27,27,28,27,28,26,26,26,26,25,23,23,24,22,22,22,21,20,20,20,18,18,17,17,15,12,10,7,6,5,4,4,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,4,4,4,4,4,4,4,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,3,4,3,3,2,3,3,2,2,2,2,2,2,2,3,2,2,3,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4,5,5,4,4,5,4,4,4,4,5,5,5,6,6,5,5,5,5,5,5,5,6,6,6,5,5,5,6,5,5,5,5,4,4,5,4,4,5,5,4,4,5,5,4,5,5,5,4,5,6,7,8,9,10,11,11,11,12,14,15,17,19,19,22,22,21,20,21,21,20,23,22,22,24,22,25,25,25,25,26,25,26,25,26,27,25,25,26,24,25,26,26,26,26,25,25,25,25,24,23,25,25],[29,28,28,28,28,28,28,27,28,27,26,26,26,25,26,26,26,26,25,26,25,24,26,26,24,25,26,24,26,25,24,26,27,26,26,26,26,26,26,25,26,24,25,24,25,25,22,22,24,22,20,21,22,21,19,20,20,18,16,17,14,12,9,6,6,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,4,3,3,3,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,4,4,4,4,4,4,4,3,4,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,4,5,4,4,4,3,4,4,3,4,4,4,4,4,5,6,8,8,8,11,12,12,12,12,13,13,14,15,16,16,17,18,18,21,21,21,23,24,23,24,22,22,23,22,21,22,23,23,23,23,23,25,23,25,25,25,25,26,26,26,26,26,26,26,25,26,26,26,26,26,26,26,25,26,26,25,26,25,25,25,26,25,25,25,23,23,23,23,23,21,20,20,18,18,17,15,14,11,10,8,7,6,5,5,4,5,5,4,5,5,5,5,5,6,6,6,6,7,6,6,7,7,8,8,8,8,8,8,8,8,7,7,7,7,7,8,8,9,9,8,8,8,7,7,7,7,6,6,6,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,7,7,7,6,6,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,3,3,4,6,5,6,5,3,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,1,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,3,3,3,3,2,3,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,3,3,4,4,4,5,5,4,5,4,4,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,3,3,4,4,4,4,4,4,4,4,5,6,7,7,9,10,10,9,11,12,13,14,16,16,19,18,19,18,18,19,18,21,19,21,21,20,23,22,24,22,24,22,24,23,23,24,22,23,23,22,23,24,24,24,24,24,24,24,24,24,21,22,25],[28,28,28,28,28,29,28,27,28,26,27,27,27,27,26,26,26,27,25,27,26,24,26,26,23,26,26,24,26,25,24,26,27,27,25,27,25,26,27,26,26,25,24,25,25,25,21,22,23,21,19,21,22,18,18,20,18,17,17,17,15,12,9,7,5,5,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,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3,3,3,3,3,2,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,2,3,3,4,4,3,3,3,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,4,4,3,3,4,4,3,3,4,4,4,5,5,5,4,4,4,5,5,4,4,5,5,4,4,4,5,4,4,4,4,4,3,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,5,6,7,8,9,10,10,10,11,12,13,15,18,17,20,18,19,18,19,18,19,21,19,21,22,20,24,23,24,23,25,24,26,23,24,25,23,23,23,22,23,23,24,23,24,23,23,24,23,23,21,23,24],[28,28,27,28,27,29,28,27,28,27,27,27,26,26,27,26,27,26,26,26,26,25,26,26,24,26,26,25,27,26,24,26,26,27,27,27,26,27,27,26,27,26,25,25,25,25,23,22,24,21,21,21,22,19,19,20,19,17,17,18,14,12,10,7,6,5,3,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,2,2,2,3,2,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,3,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2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,3,4,5,6,6,7,8,10,10,9,11,12,13,15,17,17,20,20,19,17,19,19,20,22,20,22,22,23,25,24,24,23,25,24,25,24,24,26,23,24,25,24,22,25,25,24,24,24,23,25,24,24,21,24,23],[28,28,28,28,28,28,28,27,28,27,27,27,26,26,26,25,26,27,25,26,26,25,26,26,24,26,26,25,27,26,24,26,27,27,27,27,27,27,27,27,27,26,26,26,26,25,24,23,24,22,22,22,21,20,19,20,18,17,16,16,13,11,8,6,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,3,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,2,2,2,3,2,3,3,3,3,3,2,2,3,2,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,3,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,3,3,3,4,3,3,4,4,4,4,5,6,7,8,8,11,11,12,11,13,14,13,14,16,16,17,19,20,19,22,21,21,23,24,22,23,22,21,22,21,22,22,22,23,24,22,21,25,23,26,25,25,25,25,26,26,25,25,25,25,25,26,25,25,25,26,26,26,25,25,25,25,25,25,25,24,25,24,24,25,24,23,23,24,22,21,20,19,19,17,15,15,13,11,9,7,6,5,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,8,8,8,7,7,7,6,6,6,7,7,8,8,8,8,7,7,6,6,7,6,6,6,6,5,5,5,5,4,4,4,4,3,3,3,3,4,3,3,4,4,4,4,4,4,5,5,5,5,6,6,6,5,5,4,4,3,3,3,3,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,1,1,1,1,2,2,2,3,5,5,5,5,3,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,2,3,4,3,3,3,3,3,2,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,3,3,2,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,3,3,4,3,3,4,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,5,5,7,7,8,10,10,9,11,12,13,14,16,16,20,19,18,17,18,19,19,22,19,21,21,21,24,23,23,24,25,24,26,24,25,25,23,24,24,22,22,25,26,24,24,24,23,24,24,24,20,23,25],[28,27,28,28,28,28,28,27,27,27,26,26,26,25,26,24,26,26,24,26,25,23,26,25,23,26,26,24,26,26,23,26,27,26,25,27,26,26,27,26,26,25,25,25,25,25,23,22,24,22,20,21,22,20,17,20,19,16,17,16,13,11,9,6,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3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,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,2,3,3,2,2,3,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,4,4,4,4,4,4,4,3,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,6,6,8,9,9,9,10,11,12,14,15,16,18,17,18,16,18,16,17,20,19,21,20,20,23,23,22,22,23,22,23,23,22,23,21,22,21,21,20,22,22,22,22,23,24,23,24,22,20,22,23],[28,27,28,28,27,29,28,27,28,27,26,28,27,26,26,25,25,27,25,26,27,25,27,26,25,27,27,25,27,26,25,27,27,27,27,27,27,27,27,27,27,27,26,26,26,26,23,24,25,23,21,22,23,20,18,20,20,16,17,17,14,13,9,7,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,3,3,2,2,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,3,3,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,4,4,5,6,8,8,10,12,13,13,14,16,15,15,17,17,17,17,19,19,20,20,21,22,24,24,24,21,21,22,21,22,23,22,23,22,22,21,25,24,26,24,25,25,25,25,26,26,25,25,25,26,26,26,26,25,26,26,26,25,26,26,25,26,26,26,25,25,24,25,26,25,25,23,24,22,21,19,20,19,17,16,15,13,11,9,7,6,5,4,3,3,4,4,3,4,3,4,4,4,5,5,5,5,6,5,6,6,6,6,6,6,7,7,7,7,7,6,6,6,6,6,6,7,7,7,7,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,6,6,6,5,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,1,1,1,2,2,2,3,3,5,5,6,4,3,2,2,2,1,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,4,3,3,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,3,2,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,7,7,8,9,9,9,10,12,12,14,15,17,18,18,18,16,17,18,18,21,19,22,20,22,24,23,22,22,23,23,24,22,23,24,22,22,23,22,22,23,24,23,23,23,23,23,23,23,20,23,23],[28,28,28,28,28,29,27,27,28,27,26,27,26,26,26,26,26,27,26,26,27,26,26,26,26,26,26,26,27,26,26,27,26,28,27,27,26,27,27,27,27,27,26,26,26,25,23,23,23,22,22,21,21,19,18,20,18,17,17,17,14,12,9,6,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,1,1,2,2,1,2,2,1,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,4,4,5,6,7,9,9,11,13,13,12,14,15,15,15,17,17,16,17,19,20,20,20,21,21,23,23,24,21,21,22,21,21,23,22,23,22,22,22,25,23,26,25,25,25,26,26,26,25,25,25,25,25,26,26,26,26,26,26,27,25,26,26,25,25,25,26,25,25,24,24,25,24,24,23,24,24,22,21,21,19,17,17,15,14,11,9,7,5,4,4,4,3,4,3,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,7,6,7,6,7,7,7,6,6,6,5,6,7,6,7,7,6,6,6,6,6,6,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,5,5,5,5,5,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,2,2,2,2,3,6,5,7,4,3,2,2,1,1,2,2,1,2,2,2,2,2,2,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,1,2,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,2,2,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,2,3,3,2,2,3,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,3,3,3,3,3,4,5,6,6,8,9,9,9,10,11,12,14,16,17,19,20,19,17,18,19,19,22,19,22,21,22,24,24,22,22,24,24,24,23,23,24,22,23,25,22,21,24,25,24,24,24,23,24,24,23,21,24,25],[28,28,28,28,28,28,28,27,28,27,27,26,26,25,26,24,26,27,25,26,26,25,26,26,25,26,27,26,27,26,25,27,27,28,27,28,27,27,27,27,28,27,27,26,26,25,23,23,24,22,22,21,22,20,19,20,18,17,17,16,13,11,8,6,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,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2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,4,3,4,3,3,4,4,3,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,2,2,3,3,3,3,3,4,5,6,6,7,9,9,9,10,12,13,14,17,17,19,19,18,17,19,18,18,20,19,20,22,20,23,23,23,23,23,23,24,23,23,25,24,23,24,22,22,24,24,23,24,24,23,24,24,23,21,24,24],[28,27,27,27,27,28,27,27,27,26,26,26,26,24,25,23,25,26,24,25,25,23,26,25,24,26,26,25,27,26,25,26,26,27,26,27,26,26,26,26,26,26,26,25,25,24,23,23,23,22,21,21,21,19,17,18,17,16,16,15,13,11,8,6,5,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,3,2,2,2,3,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,4,5,6,7,8,9,11,12,11,13,14,14,13,14,16,16,16,17,17,19,19,20,20,21,22,22,20,21,23,21,20,21,21,23,21,22,21,24,23,25,24,24,24,24,25,25,24,25,24,24,24,24,25,25,25,25,25,26,24,25,25,25,25,24,25,24,24,24,23,24,23,22,21,21,22,20,19,19,17,16,15,13,13,10,9,7,5,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,6,6,6,6,6,6,6,7,6,6,5,5,5,5,5,6,6,7,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,2,2,2,2,3,2,2,3,3,3,3,3,3,3,4,4,4,5,5,5,5,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,3,3,5,5,5,4,3,2,2,1,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,1,2,2,1,1,2,2,1,1,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,3,3,3,4,4,3,3,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,4,3,3,3,3,4,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,2,2,2,3,2,2,3,3,3,2,3,4,5,5,6,7,9,9,9,10,11,12,14,15,16,17,17,18,16,16,18,18,20,19,21,19,21,23,23,22,22,24,22,22,21,22,23,20,21,22,20,21,22,22,22,23,22,21,23,23,23,20,22,22],[28,27,27,28,28,28,27,27,28,26,26,27,26,26,26,25,25,26,25,25,26,25,26,26,26,26,26,26,26,26,25,26,26,27,26,26,26,27,27,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3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,4,4,4,3,3,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,4,4,3,3,3,3,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,2,2,3,2,2,3,3,3,2,3,4,5,6,6,7,9,9,9,10,11,12,15,15,17,18,18,18,17,17,18,19,20,19,22,20,22,24,24,23,23,24,23,22,22,23,24,21,22,23,21,21,23,23,22,23,22,23,22,23,22,20,23,24],[28,28,28,28,28,28,27,27,28,26,27,27,26,26,26,25,26,27,26,26,27,26,26,26,26,27,27,26,27,26,26,26,27,27,27,27,27,27,27,26,27,26,26,26,26,25,23,23,23,22,22,21,21,19,18,20,18,17,18,17,14,11,9,6,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2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,3,3,3,3,3,3,3,3,4,4,3,4,3,3,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,2,3,3,2,2,2,2,2,2,3,2,2,2,3,2,2,3,4,5,5,6,7,9,9,9,10,12,12,14,15,16,18,18,17,16,17,18,18,21,19,21,21,21,24,24,23,22,24,22,23,23,24,23,22,22,24,22,22,24,24,23,24,21,23,23,24,23,21,23,25],[28,28,28,28,28,28,27,27,26,26,27,26,26,24,25,23,25,26,24,25,26,25,25,26,25,26,26,26,27,26,25,26,26,26,26,27,26,27,27,27,26,26,26,26,25,25,24,23,23,22,22,22,21,20,18,20,19,17,17,17,13,11,8,6,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,7,8,8,11,12,13,11,13,14,13,14,15,16,17,18,18,19,21,20,20,21,22,23,23,21,21,22,20,21,20,21,22,22,21,21,23,23,26,24,23,23,24,24,24,24,24,24,25,24,24,24,24,24,24,25,26,24,25,25,25,25,24,25,24,24,24,24,25,23,22,22,22,22,20,19,18,18,17,15,14,13,11,9,7,5,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,5,5,5,4,5,6,6,6,6,5,5,6,5,5,5,5,4,4,5,4,3,4,4,3,3,3,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,4,4,4,5,5,4,4,4,3,3,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,3,3,3,6,5,6,4,3,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,2,1,2,1,1,1,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,5,6,7,9,9,10,10,12,13,14,16,16,18,19,17,17,18,17,19,21,18,21,21,21,23,23,21,22,23,22,23,23,23,22,22,23,22,21,22,22,23,21,22,22,21,23,24,21,20,23,23],[28,27,28,28,28,28,27,27,27,27,26,26,26,25,26,24,26,27,25,26,26,25,26,27,25,27,27,26,27,26,25,27,27,27,27,27,27,27,27,27,27,26,26,26,25,25,24,23,24,22,22,22,22,20,19,20,18,17,17,17,14,11,9,6,5,5,3,3,2,2,2,1,1,1,2,2,2,2,2,2,2,2,2,1,2,2,2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,1,1,2,2,1,2,2,2,2,1,1,2,1,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,4,3,4,4,3,3,4,4,3,4,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,2,3,3,3,3,3,3,3,3,4,3,4,3,4,4,3,4,3,4,3,3,3,3,2,2,2,3,2,2,2,2,2,2,3,2,2,3,3,2,2,3,4,5,6,6,7,9,9,9,10,12,12,14,15,16,17,18,18,17,16,18,20,20,19,21,20,21,23,23,22,22,23,22,23,22,22,23,21,22,22,21,22,22,22,23,22,21,21,22,24,22,21,23,23],[28,27,28,28,28,28,28,27,28,26,26,27,26,26,26,25,26,27,26,26,26,26,26,26,26,27,27,26,28,26,26,27,27,28,27,27,27,27,27,27,27,26,26,26,26,25,24,23,24,23,22,22,22,20,18,20,19,17,17,17,14,12,9,7,6,4,3,3,3,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,4,4,3,3,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,1,2,2,1,1,2,2,1,2,2,2,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4,6,5,7,8,9,8,9,11,12,14,15,15,18,18,17,16,16,18,18,20,19,22,20,21,23,24,23,22,23,22,23,22,22,24,21,22,24,22,22,23,22,23,22,21,21,22,24,23,19,22,23],[28,28,28,28,28,27,27,27,26,26,26,26,26,24,25,24,25,26,25,25,26,26,25,26,26,25,26,26,26,26,25,25,26,26,26,26,26,26,26,26,25,25,25,25,24,24,23,22,23,22,22,21,21,20,18,19,18,17,17,16,14,11,9,6,5,4,3,3,3,2,2,2,1,1,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,2,2,2,2,3,2,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,7,8,8,11,12,13,12,13,14,14,14,16,16,17,18,18,20,21,20,21,21,22,22,22,21,20,21,20,21,21,21,22,21,21,21,24,24,26,23,23,24,25,24,24,24,24,24,24,24,24,25,24,25,25,25,25,25,25,24,25,25,24,25,24,24,24,24,25,24,23,23,24,22,21,20,19,18,17,16,14,12,10,9,7,5,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,6,6,6,6,6,6,6,5,5,5,4,5,4,5,6,5,6,6,5,6,5,5,5,5,5,4,4,4,4,3,3,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,4,4,4,4,4,3,3,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,3,3,3,5,5,7,4,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,2,1,2,1,1,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,3,3,3,3,4,3,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,5,7,8,9,9,9,13,12,14,15,16,18,18,16,15,17,18,18,20,18,20,20,20,23,23,23,21,23,22,22,22,23,22,21,22,23,20,21,22,22,23,22,21,21,21,23,21,20,23,24],[29,28,28,28,28,28,27,28,27,27,27,26,27,24,25,24,26,26,25,26,27,26,26,27,26,27,27,26,27,26,25,26,27,26,26,27,26,26,27,26,26,26,25,25,25,25,23,22,23,22,21,21,21,20,18,19,18,16,16,15,13,10,8,6,5,4,3,3,3,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,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3,4,3,4,3,3,3,4,4,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,5,7,8,9,10,10,13,13,14,16,17,18,18,17,17,18,17,19,20,19,22,20,22,24,23,23,22,23,22,23,23,21,23,22,23,22,21,21,21,20,22,22,22,21,22,23,21,21,22,22],[28,28,28,28,28,28,27,27,28,26,26,26,26,25,26,26,26,27,26,26,28,27,27,27,27,27,27,27,28,27,27,27,27,28,27,27,27,27,27,27,27,26,26,26,25,25,25,23,24,23,22,22,21,20,19,19,18,18,17,16,13,11,8,6,5,4,3,3,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,2,2,2,2,2,3,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,1,1,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,3,3,2,3,3,3,3,4,4,5,6,8,8,11,11,12,11,12,14,13,14,15,15,16,17,18,17,19,20,20,21,22,22,23,22,22,23,20,20,22,22,24,22,22,23,25,25,27,26,25,26,26,26,26,26,26,26,26,27,26,27,26,26,26,26,27,26,27,26,25,26,25,26,26,26,25,25,25,25,23,24,24,23,21,20,19,19,17,14,13,11,10,8,6,5,4,3,3,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,5,5,5,4,4,4,4,5,5,6,5,5,5,5,5,4,4,4,4,3,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,4,3,3,3,2,2,2,2,1,1,1,2,1,1,2,2,1,2,2,2,1,2,2,1,1,1,1,1,1,1,1,1,1,2,1,2,2,3,2,3,4,4,5,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,3,3,3,3,3,3,4,4,3,3,3,4,3,3,3,3,4,3,3,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,5,7,8,8,8,9,12,12,15,17,16,18,19,18,16,16,18,20,21,20,21,21,21,23,23,23,23,23,22,23,23,22,22,20,22,22,20,21,23,21,23,22,22,22,22,23,23,20,22,22],[27,27,28,27,27,28,27,27,28,26,26,26,26,25,26,25,25,27,26,26,27,27,26,27,27,26,26,27,27,26,26,27,27,27,26,27,26,26,27,26,27,26,25,26,25,25,25,23,23,23,22,22,21,20,19,20,19,18,17,17,14,12,8,6,5,4,3,3,3,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,5,5,5,4,4,3,3,4,4,4,4,4,4,3,3,4,4,3,3,4,3,3,3,4,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,4,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,2,3,3,2,3,3,3,2,2,2,3,2,2,2,3,2,2,3,2,2,3,3,3,4,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,1,1,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,3,3,3,3,3,3,3,4,4,4,6,7,9,9,11,12,14,12,13,14,14,14,16,17,18,17,19,19,20,20,21,21,23,22,23,22,21,23,21,20,22,22,23,22,22,23,25,24,26,25,25,26,26,26,26,25,25,25,25,25,26,26,26,26,26,26,26,26,26,25,26,25,25,26,25,25,25,24,26,24,24,23,24,24,22,21,20,20,18,16,14,12,10,9,7,5,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,6,6,6,6,6,6,5,5,5,4,4,4,5,5,5,6,6,5,5,6,5,5,4,5,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,3,3,3,2,2,2,2,1,1,1,1,1,1,1,1,1,2,2,2,1,2,2,1,1,2,1,1,1,2,1,1,2,2,2,2,2,3,3,3,4,4,5,4,3,2,2,2,2,2,2,2,3,3,3,4,3,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,3,3,4,4,4,3,3,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,5,7,8,8,8,9,12,12,15,16,16,18,19,17,16,16,19,18,21,18,21,20,21,23,24,23,21,22,23,23,22,22,22,20,21,23,20,21,22,22,23,22,21,22,21,23,21,20,22,22],[28,28,28,28,28,28,27,28,26,27,27,25,26,25,26,24,26,27,25,25,26,25,25,27,26,26,26,26,26,26,26,25,26,26,25,26,26,26,26,25,26,26,25,25,25,24,23,22,22,23,21,21,21,19,17,19,18,16,17,17,14,10,8,6,5,4,3,3,3,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,2,3,3,2,2,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2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,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,4,5,5,6,7,8,9,9,9,14,12,14,17,17,18,18,18,17,17,18,19,20,18,21,21,21,23,23,23,21,22,22,23,22,21,23,21,22,22,21,22,22,21,22,21,21,20,22,23,20,20,22,22],[28,28,28,28,28,27,27,27,26,26,26,26,26,24,26,24,26,27,25,25,27,26,25,27,26,26,27,27,27,26,26,26,27,26,26,26,26,26,26,26,26,26,25,25,25,25,24,22,23,22,21,21,21,19,18,19,18,17,16,16,13,10,8,6,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,5,4,4,3,3,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,2,2,3,3,2,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,1,1,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,2,3,3,3,2,3,3,3,3,3,4,5,7,7,7,10,12,13,11,12,13,13,13,15,15,17,17,17,18,20,20,20,21,22,22,23,22,21,22,21,19,20,21,22,21,21,22,24,25,25,25,25,26,26,26,26,25,26,26,25,26,25,26,25,25,26,25,26,25,26,26,25,25,24,26,25,25,25,24,25,24,23,23,23,22,21,20,19,17,17,15,12,11,9,8,6,5,4,3,3,2,2,3,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,4,4,4,3,4,4,4,5,5,4,5,5,5,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,3,3,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,1,1,1,1,1,1,1,1,1,2,1,1,2,2,2,2,2,3,3,3,4,5,5,3,3,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,3,4,4,4,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,2,2,2,2,2,2,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,5,7,8,8,9,9,13,12,14,16,16,18,18,18,16,16,18,18,19,19,21,19,20,23,22,22,21,22,21,23,22,20,21,20,21,21,19,21,22,20,21,21,21,19,20,22,19,20,22,20],[27,26,27,27,27,27,26,27,27,25,25,26,25,24,24,25,24,26,25,24,26,26,25,26,26,26,25,26,25,26,25,26,26,26,25,26,26,25,25,25,25,24,24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,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,4,4,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,5,6,7,7,7,8,10,10,12,13,15,17,17,18,15,16,16,17,18,17,19,18,20,22,22,22,21,21,21,22,20,21,21,19,20,21,18,20,22,20,20,19,20,20,20,20,19,17,21,18],[27,27,27,27,27,27,26,26,27,26,26,26,25,24,25,25,25,26,26,25,26,26,25,26,26,26,26,26,26,26,25,26,26,26,26,26,26,26,26,26,26,26,25,25,25,24,24,23,23,23,22,22,21,20,19,20,19,17,17,17,14,12,9,6,5,4,3,3,3,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,4,4,3,3,4,4,4,4,4,4,3,3,4,4,3,3,4,3,3,3,3,3,3,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,4,4,3,4,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,2,3,3,3,2,2,2,3,2,2,2,3,2,2,3,3,2,3,3,3,4,3,3,4,4,3,3,4,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,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2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,3,4,5,5,7,7,8,8,8,11,10,12,15,15,18,18,17,15,16,17,17,19,17,19,19,19,22,22,22,21,21,21,23,22,21,22,19,19,21,19,20,21,21,21,20,20,19,21,21,19,18,21,21],[28,28,28,28,28,28,27,27,27,26,27,26,26,25,26,25,25,27,25,25,26,26,25,26,26,25,26,27,26,26,25,25,26,26,25,26,25,25,26,25,26,25,24,24,24,24,23,22,23,23,21,21,21,19,17,19,17,16,16,16,13,11,8,6,5,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,4,4,3,3,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,4,3,3,4,4,3,3,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,3,2,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,2,2,3,3,3,3,3,3,4,4,4,5,7,7,8,10,12,13,12,12,13,14,14,15,17,17,17,17,18,20,19,20,21,21,21,21,20,19,21,20,19,20,20,21,20,21,21,23,23,26,24,24,24,25,25,26,25,25,24,24,25,25,24,25,25,26,26,26,25,26,24,25,24,24,25,24,24,24,23,23,22,21,22,23,23,20,20,19,18,16,15,13,12,10,8,7,5,4,4,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,4,4,4,4,3,4,4,4,5,5,4,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,4,4,4,4,3,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,2,3,3,4,4,5,5,4,3,2,3,2,2,3,3,2,3,3,4,4,4,4,4,4,4,4,3,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,3,4,5,6,8,8,8,10,9,13,11,14,16,16,17,19,17,17,17,18,17,20,17,20,21,20,23,22,22,22,21,21,22,22,20,21,20,21,20,19,21,21,20,20,20,21,19,21,21,19,19,20,20],[28,27,28,28,28,28,27,27,27,26,26,25,26,25,26,25,25,27,26,26,27,26,26,27,26,26,26,26,26,26,26,26,27,27,25,26,25,26,26,25,25,24,25,26,24,24,23,22,23,23,22,22,22,20,18,19,18,17,16,16,13,11,8,6,5,4,4,3,3,2,2,2,2,2,2,2,2,2,3,2,2,2,3,2,2,2,3,3,3,3,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1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,4,5,5,5,5,4,5,5,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,2,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,3,4,5,5,6,7,7,8,8,10,11,12,14,15,18,17,17,14,17,17,15,18,15,18,18,19,21,21,20,20,21,19,22,20,20,20,19,20,20,16,18,20,19,18,19,18,18,20,21,17,17,20,17],[27,27,27,27,28,28,27,27,27,26,26,26,26,25,26,25,26,26,26,26,26,26,26,26,26,26,27,26,26,26,25,26,26,27,25,26,26,26,26,26,26,25,25,25,25,25,24,22,24,23,22,21,22,20,19,20,19,18,17,17,14,12,9,7,5,5,4,3,3,3,3,2,2,2,2,2,3,3,3,3,3,3,3,2,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,6,5,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,2,3,3,2,3,3,3,4,4,4,4,4,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,3,3,4,4,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3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,8,8,8,8,10,10,12,14,14,18,18,17,15,16,18,16,18,17,19,19,19,22,22,21,21,20,21,23,21,21,21,21,20,21,18,20,21,20,20,20,19,18,21,21,18,18,20,19],[28,28,28,28,28,28,27,28,27,26,26,26,26,25,26,26,26,27,26,26,27,26,26,26,26,26,26,27,26,26,25,26,26,26,25,26,25,25,26,25,26,25,24,25,25,24,24,22,23,23,22,22,22,21,20,20,19,20,18,18,15,13,10,8,6,5,4,4,4,3,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,6,5,6,6,5,5,5,4,5,5,5,4,5,5,4,4,4,5,4,4,5,4,4,5,4,4,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,5,5,4,5,4,4,4,4,4,3,4,4,4,3,4,4,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,4,3,3,3,4,3,4,4,5,5,5,4,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,3,3,4,4,4,3,3,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,1,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,5,5,6,8,9,11,12,13,14,13,14,15,15,16,18,18,18,18,20,19,21,21,22,21,23,22,22,21,20,22,21,19,21,21,22,20,21,21,24,24,26,24,24,25,26,25,25,25,26,25,25,26,25,26,26,26,26,25,26,26,26,25,25,24,24,25,25,25,25,24,25,23,23,22,24,23,21,21,20,18,18,15,14,13,10,10,7,6,5,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,5,6,6,6,6,6,6,6,6,6,5,5,5,4,4,4,5,5,6,6,6,6,6,5,5,5,5,5,4,4,4,4,3,3,3,3,2,2,2,1,1,2,2,1,1,2,2,2,2,2,2,2,3,3,4,4,6,4,4,4,3,3,2,2,2,2,2,2,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,4,4,4,6,6,6,5,4,3,3,3,4,4,4,4,4,4,5,5,5,5,6,6,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,5,6,5,6,5,5,6,5,5,5,5,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,3,2,2,3,3,3,3,3,3,3,3,4,4,5,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,4,5,6,7,8,9,10,11,10,13,12,15,17,18,19,20,18,17,18,20,18,20,19,21,22,20,22,23,23,22,21,23,24,22,20,23,21,21,22,20,21,21,22,21,22,21,20,21,22,19,19,22,21],[28,28,28,28,28,28,27,27,28,26,26,26,26,25,25,26,24,27,26,25,27,26,26,27,26,26,27,27,26,26,25,26,27,27,25,26,26,25,26,25,26,25,24,25,25,24,24,22,24,22,22,21,21,20,18,20,18,19,18,17,14,13,10,7,6,5,4,4,4,3,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4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,5,5,5,5,5,5,4,4,4,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,4,4,3,4,3,3,3,3,3,3,3,3,3,2,2,2,3,3,3,3,3,3,3,4,3,3,3,4,3,3,3,3,3,3,2,2,2,2,2,2,2,1,2,2,1,1,1,2,1,1,2,2,1,1,2,3,4,6,6,7,9,10,10,9,11,12,12,15,15,18,17,16,15,17,18,15,19,17,21,20,21,23,22,22,21,20,21,23,22,21,21,20,21,21,19,20,20,20,19,20,20,20,22,22,19,16,20,19],[27,27,27,27,28,27,26,27,26,25,26,25,26,24,25,25,25,26,25,25,26,25,25,26,26,26,27,27,26,26,26,26,27,27,26,27,26,26,26,26,26,25,25,25,25,25,24,22,23,22,23,21,21,20,19,19,18,18,16,17,14,13,10,7,6,5,4,4,4,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,4,5,5,4,5,5,5,5,5,5,5,5,6,6,6,6,7,7,6,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,5,5,4,5,4,4,4,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,3,3,4,3,3,4,4,3,3,3,3,3,3,3,3,4,3,3,4,3,3,3,4,4,5,5,4,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,4,4,3,3,3,2,2,2,3,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,6,7,8,9,11,12,13,12,13,14,13,14,16,17,16,17,18,19,21,20,21,21,22,23,23,21,19,21,19,20,20,21,23,20,22,22,24,25,27,25,26,27,27,27,27,27,27,26,27,27,27,27,27,27,26,27,27,26,27,26,26,25,25,26,25,26,26,24,26,24,23,23,24,23,21,21,21,18,18,15,14,13,10,9,7,6,5,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,6,5,5,5,5,5,5,4,4,4,4,5,5,6,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,2,2,2,1,2,1,1,1,2,2,2,2,2,2,2,2,2,3,3,5,5,5,5,4,3,3,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,5,6,5,4,4,3,3,3,4,4,4,4,4,5,5,5,5,5,6,6,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,5,4,4,4,4,4,5,5,5,5,5,5,6,6,5,6,6,6,6,5,5,6,5,5,5,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,3,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,4,4,3,3,3,3,3,3,2,2,2,2,2,2,1,1,2,1,1,1,2,1,1,2,2,2,2,2,4,5,6,6,8,9,9,10,9,11,12,14,16,17,19,19,17,16,19,19,17,21,17,21,20,20,23,23,20,21,21,22,24,21,21,21,22,21,20,19,19,21,21,19,22,20,19,21,22,18,18,21,19],[28,29,28,28,29,28,28,28,27,27,26,26,26,25,26,25,25,26,25,25,26,26,25,26,26,26,26,26,27,26,26,26,27,27,26,26,25,26,26,26,26,25,25,25,25,25,24,22,23,23,22,21,21,20,17,18,17,17,16,16,13,11,9,7,6,5,4,4,4,3,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,5,5,5,5,6,6,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,4,4,3,3,4,4,4,4,5,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,3,3,3,3,3,3,4,4,4,5,6,7,8,8,11,11,12,11,12,12,14,14,14,16,15,16,17,18,20,19,20,20,21,21,22,20,18,20,20,19,19,20,23,20,22,21,23,25,27,24,25,26,27,26,26,26,26,26,26,26,26,27,26,26,26,26,26,26,26,25,25,25,25,25,25,25,25,25,25,23,22,22,23,22,20,20,19,17,18,15,14,13,10,9,7,5,4,3,3,3,3,3,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,5,6,5,5,5,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,3,3,4,4,5,4,3,3,2,2,2,2,2,2,1,1,2,1,1,1,2,1,1,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,5,5,5,4,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,3,4,6,6,7,9,9,10,9,12,11,14,14,15,18,18,17,16,17,18,16,21,17,21,20,21,24,24,22,21,21,22,24,22,22,20,21,22,22,18,20,22,23,21,22,21,22,22,24,20,19,22,21],[29,28,28,28,28,28,27,28,27,27,26,26,26,25,26,25,26,26,25,26,26,25,25,27,26,26,26,26,26,26,26,26,27,27,25,26,26,26,26,25,26,25,25,26,25,24,23,23,23,23,22,22,22,22,20,20,19,19,18,17,14,12,9,7,5,5,4,4,4,3,3,2,2,2,2,2,3,3,3,3,2,3,3,2,2,3,3,3,3,3,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,4,4,4,4,4,4,4,4,3,4,3,3,3,4,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,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2,2,3,2,2,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,2,3,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,2,2,4,5,6,6,7,9,10,10,9,13,12,15,17,18,18,19,17,17,18,18,17,21,18,22,22,21,23,23,22,21,22,22,24,22,22,21,22,22,22,19,21,22,22,20,21,21,21,21,23,20,19,22,21],[27,28,28,28,28,28,27,27,27,26,26,27,26,25,26,24,26,27,26,26,26,26,26,27,26,26,26,27,27,26,26,26,27,27,26,26,27,26,26,26,26,25,25,25,25,24,23,23,23,22,22,21,22,20,18,20,18,18,17,16,13,11,9,7,5,5,4,3,3,3,3,2,2,2,2,2,3,3,3,3,2,3,3,2,2,3,3,3,3,3,4,3,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,3,2,2,3,3,3,4,4,3,4,4,4,3,3,3,3,3,2,3,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,6,7,7,10,12,12,10,12,14,13,14,15,16,15,16,17,19,21,20,20,20,21,22,22,20,20,22,21,20,20,20,23,22,22,23,25,25,27,25,25,26,26,27,27,27,26,27,26,26,27,26,26,26,26,27,27,26,27,26,26,27,25,26,26,26,26,24,25,24,22,23,24,23,22,21,20,19,18,16,14,12,10,9,7,5,5,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,4,4,4,4,4,4,5,5,5,5,5,5,5,4,4,4,4,3,4,3,3,3,3,3,2,2,2,2,1,1,1,1,1,1,2,2,1,2,2,2,2,2,3,3,4,5,5,5,4,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,2,2,1,1,2,1,1,2,2,2,1,2,2,2,2,2,2,2,3,3,3,4,5,5,5,4,3,2,3,2,3,3,3,3,3,4,4,4,4,4,4,5,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,2,3,3,2,2,3,3,3,3,3,3,4,4,3,3,3,3,4,4,4,4,4,5,4,5,5,5,5,5,5,5,4,5,5,5,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,3,5,5,6,7,9,9,9,9,12,13,13,16,16,20,20,18,17,19,19,18,21,18,21,21,20,23,24,22,22,22,22,24,22,22,22,21,21,22,19,22,21,22,20,21,21,21,21,22,20,19,21,20],[28,28,28,28,28,28,28,28,27,28,26,27,27,25,27,25,26,26,26,26,26,27,26,27,27,27,28,28,28,27,27,27,28,28,27,27,27,27,27,27,27,26,26,26,26,25,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4,4,4,4,4,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,3,3,3,3,3,3,3,4,4,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,3,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,2,2,2,2,2,4,5,7,7,9,9,9,11,10,12,13,15,15,17,19,19,17,17,18,19,17,20,16,20,20,19,23,23,22,20,21,22,24,22,21,22,20,21,22,19,20,21,20,20,21,20,21,22,23,19,20,22,21],[27,28,27,28,28,28,28,28,26,26,26,25,26,24,26,24,26,26,25,26,26,26,26,27,26,26,26,27,26,26,26,26,27,27,26,26,26,26,26,26,26,26,26,26,25,25,24,22,23,23,22,21,20,20,18,18,18,17,16,16,13,11,9,6,5,5,4,4,3,3,3,2,2,2,2,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,4,3,3,4,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,6,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,3,4,4,3,4,4,3,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,2,2,3,3,2,3,3,3,4,3,3,3,4,3,3,3,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,2,2,2,3,2,2,3,3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,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,4,5,6,7,8,10,10,10,10,13,13,15,16,16,17,18,18,17,18,18,16,20,17,21,19,21,23,24,21,21,22,21,22,21,22,22,21,22,22,20,20,21,22,22,21,21,21,22,23,22,19,21,23],[28,28,28,28,28,28,27,27,27,27,27,26,26,24,26,24,25,26,26,25,26,26,25,26,26,26,27,27,27,27,25,26,27,27,26,27,26,26,27,26,26,26,26,25,25,25,23,23,24,23,23,22,22,20,19,19,18,17,17,18,14,12,9,7,6,5,4,4,4,3,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,4,4,3,3,4,4,4,4,5,5,5,4,4,4,4,4,3,4,4,4,3,4,4,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,4,4,4,3,4,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,3,3,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,3,3,4,3,3,4,4,4,4,4,4,5,7,8,8,10,12,13,12,13,14,15,14,15,17,17,18,19,21,21,21,21,21,22,22,23,21,20,21,20,22,21,21,23,21,22,22,25,25,27,25,25,26,26,25,26,25,26,27,26,27,26,27,27,26,26,26,27,26,27,26,26,26,25,26,25,26,26,25,25,24,23,24,24,23,22,21,20,20,18,16,15,14,11,10,8,6,5,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,6,6,6,6,6,5,5,5,4,4,4,4,5,5,6,6,5,5,6,5,5,4,5,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,4,4,5,5,4,4,3,3,2,2,2,2,2,2,1,2,1,1,1,2,1,1,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,4,5,5,5,4,3,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,2,2,3,3,3,3,3,3,4,4,4,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,3,3,3,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,1,2,2,1,1,2,1,1,1,2,2,2,2,2,4,5,6,7,8,9,10,10,10,12,14,14,16,15,18,20,17,17,18,19,19,21,19,21,22,21,24,24,22,22,23,23,24,23,23,23,24,22,23,21,23,24,22,22,23,22,22,23,24,22,21,24,23],[28,28,28,28,28,28,27,28,28,27,27,27,27,25,26,25,26,27,26,27,27,27,27,27,27,27,28,27,28,27,26,27,27,27,27,27,27,27,27,27,27,27,26,26,26,26,25,23,24,24,22,20,21,20,19,19,19,18,17,16,13,11,9,7,5,5,4,3,4,3,3,2,2,2,2,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,4,4,4,4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,1,1,1,1,1,1,1,2,2,2,2,2,2,3,2,3,3,2,2,3,3,3,3,3,3,4,4,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,4,5,5,5,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,1,2,2,1,2,2,2,1,2,2,2,2,2,3,5,6,6,8,9,10,11,10,13,14,14,16,17,19,20,19,17,19,19,19,21,19,22,21,21,24,24,22,23,23,22,24,22,22,23,22,23,23,22,22,22,22,22,23,22,22,23,23,22,21,24,23],[28,28,27,28,28,27,28,27,26,27,25,25,27,22,27,22,26,25,25,27,25,26,27,27,25,26,27,26,27,26,25,27,27,27,26,26,26,26,27,26,26,26,26,25,24,24,24,23,23,23,22,20,20,20,18,18,17,17,16,15,13,11,9,7,6,5,5,4,4,4,3,3,3,3,3,3,3,3,4,3,3,4,4,3,3,4,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,5,5,6,6,5,6,7,7,6,5,5,5,6,5,5,5,5,6,5,5,5,5,5,5,5,5,4,5,5,4,4,5,5,5,4,4,5,4,4,4,4,4,4,5,4,4,5,5,4,4,4,5,5,5,5,5,5,5,4,5,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,4,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,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10,13,14,15,15,17,18,19,17,17,18,19,19,24,18,22,21,21,24,24,21,22,24,23,22,23,23,21,21,22,22,21,21,23,23,22,23,22,22,22,24,21,21,24,23],[27,27,27,27,28,26,28,27,25,26,25,23,26,22,25,22,26,25,23,26,24,24,26,26,24,25,26,24,26,25,25,26,26,27,26,26,26,26,26,26,26,25,25,25,24,24,23,22,22,21,20,20,20,18,17,17,17,16,15,15,12,10,8,6,5,5,4,4,4,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,4,4,4,4,4,4,4,5,5,5,4,5,5,5,5,5,6,5,5,4,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,4,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,3,3,4,4,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,4,3,3,3,3,4,3,3,4,4,4,4,5,5,6,6,7,8,9,11,11,10,11,12,12,13,13,15,16,16,17,18,21,19,19,21,22,21,22,22,19,20,20,20,19,21,23,20,21,21,24,24,27,25,24,24,25,26,25,25,24,25,25,25,26,25,26,25,26,26,26,25,25,25,25,25,25,25,25,25,24,24,24,23,24,23,24,22,22,19,20,19,18,16,15,13,11,9,7,6,5,4,4,3,4,4,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,6,5,6,5,5,4,4,4,4,4,5,5,6,6,5,5,6,5,5,5,5,4,4,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,5,5,4,4,3,3,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,1,1,1,1,1,1,2,1,1,2,2,2,2,2,2,2,3,3,3,4,5,6,5,4,3,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,1,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,2,2,3,3,3,3,3,3,3,4,4,3,3,4,4,4,4,4,4,5,5,5,5,4,5,5,5,5,4,4,5,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,4,6,7,8,9,10,10,10,9,12,13,14,14,14,17,17,15,16,16,18,17,21,17,21,20,19,24,23,21,22,23,22,21,22,21,23,21,22,21,20,20,22,22,21,22,21,22,23,23,21,20,22,24],[28,28,28,28,28,28,28,27,27,27,27,26,26,25,26,25,26,27,25,27,26,26,27,27,26,27,27,25,27,27,25,26,27,27,27,27,26,27,27,27,27,26,26,26,26,26,25,23,24,23,22,21,21,19,18,19,18,17,17,16,13,10,8,6,5,4,4,3,3,3,3,2,2,2,2,2,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,5,5,4,4,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,3,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4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,5,6,6,7,9,10,10,9,12,13,15,16,17,18,19,17,17,18,20,19,22,20,23,21,22,25,24,23,23,24,23,23,24,24,24,22,23,25,22,22,23,23,24,23,22,24,23,25,23,22,24,25],[28,28,27,28,28,27,28,27,26,26,26,25,26,23,26,23,26,24,24,26,24,24,27,25,24,27,26,25,27,26,25,27,26,27,26,26,26,26,26,26,26,25,26,25,25,25,24,23,23,22,22,20,20,20,18,18,17,17,16,15,13,11,9,6,6,5,4,4,4,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,5,6,6,7,6,5,5,5,5,5,5,5,5,5,5,4,5,5,4,5,5,5,4,5,4,4,4,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,5,5,4,5,5,4,4,5,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,5,4,4,5,4,4,4,4,4,3,3,3,3,3,3,3,2,2,3,3,3,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,4,4,3,3,3,4,4,3,3,4,4,4,4,4,5,7,7,7,10,11,12,11,11,13,13,12,14,15,15,15,16,18,19,19,21,20,22,22,22,22,21,22,21,21,22,22,23,21,23,23,25,25,27,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,26,27,26,26,26,25,26,26,25,25,25,25,24,23,23,23,22,21,21,19,18,18,15,14,14,11,9,7,6,5,4,4,4,4,3,3,3,3,3,3,4,4,4,4,4,5,4,5,6,6,6,6,6,6,7,6,6,6,5,5,5,5,5,6,6,7,7,6,6,6,6,6,5,5,5,4,5,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,5,5,4,4,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,1,2,1,1,2,2,2,2,2,2,2,3,3,3,4,7,6,6,4,4,3,3,2,3,3,3,3,3,4,4,4,4,4,5,5,5,4,4,4,4,4,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,1,1,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,2,3,3,3,3,3,4,4,4,4,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,7,6,8,10,10,10,10,12,14,15,14,17,18,19,20,15,18,20,20,22,18,23,22,21,24,24,23,23,25,22,24,23,23,23,23,22,23,21,22,23,22,22,22,22,22,23,24,21,22,23,24],[28,27,27,27,27,26,28,27,24,26,24,22,25,20,25,22,25,24,22,25,23,24,26,25,24,25,25,25,26,24,24,26,27,27,26,27,25,26,26,26,26,25,25,26,25,25,24,22,23,22,21,19,20,20,18,18,18,17,15,15,13,11,9,7,6,6,5,5,4,4,4,3,3,3,3,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,6,5,5,5,6,6,6,6,7,7,6,6,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,3,4,4,3,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,3,3,4,4,3,4,4,5,5,5,5,6,8,8,9,11,11,13,11,11,12,13,12,13,15,16,15,16,18,19,18,20,22,22,21,23,21,21,22,21,20,20,22,23,20,20,22,24,25,27,25,25,25,25,26,25,25,25,25,26,25,26,26,26,26,26,26,26,25,26,26,26,25,25,26,24,25,25,24,25,24,24,24,23,22,21,20,21,19,18,16,16,14,12,10,8,7,6,5,4,4,4,4,3,4,3,4,3,4,4,4,4,4,5,5,5,5,6,6,6,6,6,7,6,6,6,5,5,5,5,6,6,6,6,7,6,6,6,6,6,5,5,5,5,5,5,4,4,4,4,4,3,3,3,2,2,2,3,3,2,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,4,4,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,7,6,6,5,3,3,3,3,3,3,4,4,4,5,4,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,5,6,6,6,5,6,6,5,5,5,5,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,3,3,3,3,3,3,4,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,3,3,3,3,4,4,4,3,4,4,4,4,4,3,3,4,3,3,3,4,3,3,3,3,3,4,4,3,4,3,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,5,6,8,8,10,11,11,11,11,13,15,16,16,17,18,19,17,16,18,18,18,23,18,23,23,19,25,23,23,24,24,23,23,24,23,22,23,24,24,21,22,23,25,22,24,23,22,25,25,22,23,24,24],[27,28,27,27,28,28,28,27,26,26,26,23,26,23,26,23,26,25,23,27,24,23,27,25,24,26,26,25,26,26,24,27,27,27,27,27,26,27,27,26,27,26,26,26,26,25,24,23,23,23,22,21,20,18,18,19,18,17,16,16,13,11,10,7,6,5,5,4,4,4,4,3,4,3,4,4,4,4,4,4,4,4,4,3,3,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,5,6,6,6,6,6,7,7,6,6,5,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,5,5,5,4,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,4,4,5,5,5,5,4,4,4,4,4,4,4,4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,3,3,3,4,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,4,4,3,4,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,5,6,8,7,9,10,11,10,10,12,14,16,16,17,18,18,17,17,18,18,19,23,19,23,21,20,25,24,22,24,25,23,23,25,25,24,22,24,24,22,21,24,24,24,24,23,23,23,25,24,21,24,25],[28,28,27,27,28,27,28,27,26,26,26,23,26,22,26,23,27,25,23,26,24,22,26,25,23,26,26,24,26,26,24,26,27,28,26,27,26,27,26,26,27,25,25,26,25,24,24,21,23,22,21,20,20,20,17,18,18,17,16,15,13,11,9,6,5,5,4,4,4,3,3,3,3,3,3,3,3,4,4,3,3,4,3,3,4,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,6,6,5,6,6,6,6,6,6,6,5,5,5,6,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,4,4,4,5,4,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,5,4,4,4,5,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,5,6,7,8,10,11,12,11,10,12,11,13,14,15,14,15,16,19,19,20,21,20,23,22,22,22,21,22,21,19,21,21,22,21,20,22,23,24,26,25,25,24,25,26,25,25,25,25,26,25,26,26,26,26,26,27,26,26,27,25,25,23,25,26,25,25,24,23,25,22,22,22,22,21,20,17,19,18,17,15,14,14,11,10,8,7,5,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,6,6,6,5,6,6,7,6,7,7,6,6,6,6,6,6,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,6,6,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,3,3,3,4,6,6,6,5,3,3,3,3,3,3,3,3,4,4,4,5,5,5,5,5,4,5,4,4,4,4,4,3,3,3,3,3,3,3,2,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,3,2,3,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,3,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,2,3,2,2,3,3,2,2,3,3,3,3,3,3,3,3,5,6,8,7,9,10,10,11,10,13,13,15,18,17,18,19,18,16,18,18,19,22,20,21,23,21,24,23,24,24,24,21,24,23,23,24,23,23,24,21,22,24,25,23,24,23,24,23,25,23,23,24,26],[28,28,28,28,28,28,28,27,27,26,26,26,26,25,26,24,26,26,25,26,26,25,26,26,26,26,26,25,27,26,25,26,26,26,26,27,26,27,27,27,27,26,26,26,25,25,25,24,24,23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,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,3,3,3,4,3,4,4,4,4,5,4,5,5,4,5,4,5,4,4,4,4,4,4,4,3,3,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,1,2,2,1,1,2,2,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,3,4,5,6,6,8,9,9,10,10,13,14,15,16,16,19,18,17,18,18,18,19,22,21,25,23,23,26,25,24,24,24,23,25,24,24,25,24,23,24,22,23,24,23,24,23,23,24,25,25,24,22,24,24],[29,28,28,28,28,28,28,27,27,27,26,26,26,25,26,25,26,26,25,27,24,25,26,26,26,27,26,26,27,26,25,26,26,27,27,27,27,27,27,27,27,27,26,27,26,26,25,24,24,23,23,22,21,21,20,19,18,17,17,16,13,12,8,6,5,4,3,3,3,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,5,5,5,5,5,5,5,5,5,4,4,5,5,4,5,5,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,3,3,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,4,4,4,3,4,4,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,4,4,4,3,4,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,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3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,4,5,6,5,8,8,9,9,10,12,13,15,17,17,20,20,20,17,19,20,19,23,21,23,23,22,25,24,25,24,24,23,25,25,24,25,24,24,24,22,22,24,24,23,23,24,22,25,25,23,22,25,25],[28,28,27,27,28,27,27,27,25,26,25,23,26,23,25,23,25,25,24,26,24,22,26,25,23,25,25,24,26,25,23,26,27,27,26,27,26,27,26,26,27,25,25,26,26,25,25,22,24,23,21,21,21,20,19,19,18,17,16,15,13,11,8,6,5,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,3,2,2,2,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,3,4,3,3,4,3,3,3,4,3,4,4,4,5,5,5,8,10,12,11,11,10,12,12,12,13,14,14,15,15,19,20,18,21,21,23,21,23,22,21,22,20,18,21,22,22,21,21,23,24,24,26,25,25,26,26,26,27,26,27,26,26,26,26,27,27,27,27,26,26,26,26,25,26,24,26,25,24,25,25,24,26,23,24,23,23,22,22,19,20,19,18,16,14,13,11,9,7,5,4,4,4,3,4,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,6,6,5,5,5,5,4,4,5,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,5,5,4,4,4,3,4,3,3,3,3,3,3,2,3,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,3,3,4,6,6,6,4,3,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,2,1,1,1,2,1,1,2,2,2,2,2,1,2,2,2,1,2,2,1,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,5,6,6,7,8,8,9,10,12,12,14,16,16,18,19,17,16,17,18,19,21,20,23,21,20,24,24,22,22,24,21,23,23,22,23,21,24,23,20,21,24,23,23,23,22,23,22,23,23,22,23,24],[28,28,28,27,27,28,28,27,27,26,26,25,26,25,26,24,26,25,25,26,25,24,26,25,24,26,26,24,26,26,24,27,27,27,26,27,26,27,27,26,27,26,26,26,26,25,25,23,24,22,23,22,22,21,18,20,18,17,17,17,14,11,9,6,5,4,3,3,3,2,2,2,2,2,2,2,2,3,3,2,2,3,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,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1,1,0,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,1,2,2,1,1,2,2,1,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,3,3,2,2,2,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,5,6,6,8,9,8,9,10,14,14,15,18,17,20,20,19,17,19,19,20,22,20,24,22,22,25,25,24,24,25,23,24,24,24,23,23,25,25,21,22,25,24,24,24,24,25,24,26,24,22,24,26],[28,28,29,28,28,29,27,27,28,27,27,26,26,25,25,25,25,26,26,26,27,27,25,26,26,27,27,26,27,27,24,26,27,27,26,27,26,27,27,27,27,26,26,26,26,25,24,24,24,23,24,22,21,21,20,20,19,19,19,17,14,11,8,5,4,4,3,3,3,2,2,2,2,2,2,2,2,3,3,2,2,3,2,2,2,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,5,5,4,4,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,4,3,3,4,4,3,3,4,3,3,3,4,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,3,3,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,2,3,3,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2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,18,17,20,19,19,17,19,19,20,23,21,24,23,22,25,25,24,24,25,24,25,25,25,25,24,24,24,22,23,25,24,24,24,24,25,24,27,25,22,25,25],[28,29,29,28,28,28,28,27,27,27,26,26,27,25,26,25,26,26,25,26,25,26,26,25,25,27,26,25,27,26,25,27,27,28,26,28,26,27,27,26,27,27,26,27,26,26,25,22,24,23,22,21,22,22,18,20,20,19,18,17,14,11,8,5,4,4,3,3,3,2,3,2,2,2,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,6,5,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,5,4,4,4,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,4,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,4,4,4,4,3,3,3,2,2,3,2,2,2,3,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,3,2,2,3,3,2,2,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,4,3,4,4,3,4,4,3,3,3,3,3,3,3,4,3,3,3,5,4,5,5,7,9,12,12,10,9,11,13,11,13,14,14,15,15,18,19,20,22,22,22,23,24,24,23,24,22,20,21,23,24,21,23,25,26,27,28,27,27,27,27,27,27,27,27,27,27,27,27,28,27,28,27,27,27,28,27,27,27,25,26,26,26,26,26,25,26,23,23,24,23,22,22,19,21,18,18,16,14,13,10,8,7,6,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,5,5,5,6,6,6,6,6,6,6,6,5,5,5,5,6,6,6,6,6,6,6,6,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,4,5,4,5,6,5,5,5,4,4,3,3,3,3,3,2,2,3,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,4,6,6,6,5,3,3,3,2,3,3,3,3,3,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,4,3,3,3,4,4,4,4,4,4,5,5,5,5,4,5,4,4,4,4,4,4,5,4,4,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,3,3,2,2,3,3,2,2,2,2,2,3,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,4,5,6,6,7,9,9,9,10,13,14,16,17,17,19,19,19,17,18,19,20,23,21,23,22,22,26,25,23,24,26,23,24,25,24,24,23,25,24,22,22,25,24,24,24,23,24,23,26,23,21,23,24],[27,27,27,26,27,27,27,26,26,25,25,23,26,23,25,24,24,24,23,25,23,23,24,24,23,24,24,22,24,23,22,24,26,25,24,26,25,25,25,25,25,24,24,25,25,25,24,21,23,22,19,19,21,20,17,18,18,17,16,16,14,11,8,6,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,5,6,6,6,6,6,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,4,5,5,4,4,4,4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,3,3,2,2,2,2,2,2,2,2,1,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,2,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,6,6,6,7,9,8,9,10,11,12,14,15,15,18,18,18,15,17,16,17,20,18,21,19,20,23,23,20,22,23,20,23,24,23,21,21,23,21,19,18,22,22,22,22,21,23,21,23,23,19,22,23],[27,28,28,28,28,28,28,28,28,27,27,26,27,25,26,25,26,26,25,25,25,25,25,25,24,26,26,25,26,25,23,26,26,27,26,26,25,26,26,26,26,26,25,26,26,25,23,23,23,22,22,21,20,20,18,20,18,17,17,16,15,12,9,6,5,4,3,3,3,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,7,6,5,5,5,6,5,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,4,4,5,4,4,5,4,4,4,4,4,4,4,4,4,4,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,4,5,4,4,4,4,4,4,4,4,4,4,3,3,4,4,3,3,4,4,3,3,4,4,3,3,4,3,3,3,4,3,3,4,4,3,3,4,4,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,3,4,4,4,4,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,4,4,3,4,4,5,6,8,7,11,12,12,11,12,13,13,12,14,14,13,14,17,17,17,19,20,20,23,21,23,22,22,22,21,20,22,22,24,21,22,23,26,25,27,25,25,25,26,25,26,25,25,25,26,26,26,26,26,26,26,26,27,26,27,26,25,25,26,25,25,25,24,24,25,22,22,22,21,21,20,18,19,18,16,15,14,12,10,9,7,6,5,4,4,3,4,4,3,4,4,4,4,4,4,5,4,4,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,6,5,6,6,6,7,7,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,4,3,3,3,4,3,4,4,4,4,4,5,5,6,6,6,6,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,5,6,6,5,4,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,1,2,2,2,2,2,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,2,2,2,2,2,1,2,2,2,2,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,4,3,3,4,4,3,3,3,4,4,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,4,4,3,4,5,6,7,7,8,9,9,10,10,12,13,15,17,17,20,20,19,18,19,18,19,22,19,23,23,23,24,26,24,23,24,24,24,25,25,24,23,25,25,22,22,25,25,25,25,23,24,24,26,25,22,24,25],[28,28,28,28,28,29,28,28,28,27,27,27,27,25,26,26,26,27,25,26,26,26,25,26,25,26,27,26,27,26,25,27,27,27,26,27,26,27,27,26,26,26,26,26,25,25,24,23,23,22,22,21,21,20,19,20,19,18,18,18,15,12,9,6,5,4,3,3,3,2,3,2,3,2,3,2,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,4,5,4,4,5,4,4,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,3,4,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,4,5,5,5,4,4,4,4,4,4,4,3,3,4,4,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,4,3,3,3,4,5,5,6,9,8,11,13,11,12,14,12,11,13,14,12,13,16,16,16,17,20,20,22,22,23,23,22,22,21,22,23,23,25,22,23,24,26,26,28,27,27,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,26,26,26,26,25,25,24,24,25,22,22,22,21,21,20,18,19,17,17,15,13,12,10,9,7,6,4,4,4,3,4,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,7,7,7,6,6,6,5,6,5,6,7,6,7,7,6,6,6,6,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,6,6,6,6,5,4,4,4,4,3,3,3,3,3,3,3,2,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,6,7,5,4,3,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,2,2,1,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,3,3,2,2,2,2,2,2,2,1,1,1,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,3,3,3,2,2,3,2,2,2,2,2,3,3,3,2,3,3,3,4,4,3,3,3,3,3,3,3,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,6,7,7,8,10,10,10,11,13,14,15,18,17,22,20,19,18,20,19,20,22,21,23,23,23,25,24,24,25,25,25,25,25,25,25,24,25,25,23,23,26,25,25,26,23,25,25,26,24,22,24,25],[29,29,28,28,28,29,28,28,28,27,26,26,27,25,27,25,26,26,24,26,25,24,26,25,23,26,26,24,27,25,23,27,27,27,26,27,26,27,26,26,26,25,25,25,24,25,23,22,21,22,20,20,21,21,19,19,19,18,17,17,16,12,10,6,6,5,4,5,4,4,3,3,3,3,3,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,9,8,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,7,6,6,6,6,7,7,7,6,6,6,6,6,6,6,5,6,6,5,6,6,5,6,6,6,6,6,6,6,6,6,5,6,6,5,5,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,5,5,6,5,5,5,5,5,5,5,5,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3,3,3,3,3,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,4,4,5,5,4,4,4,3,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,6,7,8,8,9,10,10,10,11,13,14,15,17,18,20,19,20,18,19,19,19,22,20,21,22,21,24,24,22,24,25,24,26,26,25,25,23,25,23,21,21,24,25,23,23,22,22,24,25,23,21,24,25],[28,28,28,28,28,28,28,28,28,27,27,27,27,25,26,25,27,27,25,26,25,24,26,26,24,26,26,24,26,26,24,27,27,27,26,27,26,26,27,26,27,26,25,25,25,25,23,22,23,21,20,19,21,20,17,18,18,17,17,17,15,12,10,8,6,6,5,5,5,5,5,6,6,6,6,6,5,6,6,6,6,6,6,6,6,5,5,5,6,6,6,7,7,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,8,8,8,9,9,9,10,9,9,8,9,9,9,9,8,9,9,9,9,9,8,8,9,10,9,9,8,8,8,8,8,8,8,8,8,8,8,8,8,8,7,8,8,8,7,8,8,8,8,7,8,7,7,7,8,8,8,8,8,8,9,8,8,8,8,8,8,8,8,8,8,8,8,8,7,8,8,8,8,7,8,8,8,9,9,8,8,8,8,8,7,8,7,7,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,7,8,8,8,8,8,8,8,8,9,8,9,9,8,8,8,8,8,8,7,7,8,8,8,8,8,8,8,8,7,7,7,7,6,7,7,7,6,6,6,5,5,6,6,6,6,6,6,6,5,5,5,5,6,5,5,6,6,6,6,7,7,7,7,7,7,7,6,6,7,7,7,8,7,8,8,8,7,8,9,8,8,8,7,8,7,8,8,7,7,7,7,7,6,6,7,6,6,7,6,7,7,7,8,9,9,10,14,12,12,12,14,14,13,14,14,14,16,16,17,18,18,19,20,22,21,23,20,21,22,21,20,22,23,23,21,21,23,25,24,27,25,25,25,26,26,26,26,26,26,26,26,26,26,26,27,25,26,26,26,26,25,25,24,25,25,23,25,23,22,24,22,21,22,20,19,20,18,19,19,17,16,15,14,13,11,10,8,7,6,6,7,7,7,7,7,7,8,7,7,8,8,9,8,10,9,9,10,10,10,10,9,10,10,10,10,10,9,9,9,10,9,10,10,10,11,10,10,10,10,10,9,9,9,9,9,9,8,8,8,7,7,8,8,7,8,7,7,8,7,8,8,8,8,8,8,8,8,8,9,9,9,9,10,9,9,9,9,9,8,8,9,7,7,7,8,7,7,7,7,7,7,6,6,6,5,5,6,5,5,5,5,4,4,4,4,3,4,4,4,3,3,4,4,7,8,9,7,5,5,5,5,5,6,5,5,5,6,6,7,6,6,7,7,6,6,6,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,7,7,7,6,6,6,5,6,6,5,5,5,4,4,4,4,4,3,3,3,3,4,3,2,2,2,1,0,1,1,2,2,3,3,3,3,4,4,4,5,5,5,6,5,6,6,6,7,7,7,7,7,7,7,7,6,7,6,6,6,6,6,6,6,5,5,4,4,3,4,4,4,4,4,4,4,3,4,4,4,4,5,4,4,4,5,4,4,5,5,5,4,4,4,4,4,3,4,3,3,3,3,3,4,3,2,3,3,2,2,3,2,3,3,4,4,4,5,4,4,4,4,4,4,4,4,5,4,4,5,5,4,4,5,6,5,4,5,5,5,4,5,4,4,5,5,5,6,5,5,6,6,6,6,7,7,7,7,5,6,5,6,6,6,5,6,6,6,5,5,6,6,5,5,6,5,5,5,6,6,5,7,6,7,7,7,8,7,7,8,8,8,8,9,10,11,11,12,13,13,12,13,14,15,17,18,18,21,20,21,19,20,20,20,22,21,22,22,22,24,24,23,24,25,23,24,25,24,24,23,25,24,22,22,25,24,23,24,23,23,24,25,23,22,24,24],[28,28,28,28,28,28,28,27,28,27,27,27,27,26,26,26,26,27,26,25,26,25,25,26,25,25,26,25,26,26,24,26,27,27,26,28,27,27,27,27,27,27,26,26,25,24,23,23,23,23,22,20,21,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3,3,4,3,3,3,3,3,4,4,3,3,3,4,4,4,4,4,4,5,5,4,5,5,5,5,6,6,6,6,6,5,5,6,5,4,4,5,4,4,4,4,4,4,3,3,3,3,2,2,2,2,1,1,0,1,1,2,2,1,2,2,2,3,3,3,4,4,4,4,5,5,4,5,5,6,5,6,6,5,6,5,6,5,5,5,5,5,5,6,5,4,3,3,2,2,2,2,2,2,3,2,2,2,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,4,4,4,4,3,3,3,3,2,2,3,2,2,2,2,2,2,3,2,2,2,2,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,4,4,4,5,4,4,4,4,3,4,4,4,4,5,4,4,4,5,5,6,6,6,6,5,5,5,6,5,6,5,6,6,5,5,5,6,5,5,6,6,6,5,6,6,6,6,6,7,7,6,7,7,7,6,7,7,7,7,8,8,10,10,11,12,12,12,13,14,15,16,18,18,20,19,20,19,20,19,20,22,20,22,22,21,24,25,23,23,25,24,24,24,24,25,23,24,23,22,23,25,24,23,24,22,23,24,25,23,21,23,24],[29,29,29,29,29,29,29,29,29,28,28,29,28,28,27,28,27,28,27,27,28,26,27,27,26,27,28,27,28,27,26,28,28,28,28,28,28,28,28,28,28,27,26,27,26,25,24,22,24,23,23,21,22,22,19,20,20,19,18,18,16,14,11,8,6,5,4,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,3,3,3,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,8,6,7,6,7,7,7,7,7,8,6,6,7,7,7,6,7,7,6,6,7,6,6,7,7,7,7,6,6,6,6,6,6,6,5,6,6,5,5,6,5,5,5,6,5,6,6,6,5,5,4,5,5,5,4,5,5,5,5,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,5,6,6,7,7,7,6,7,7,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,5,5,4,4,5,5,4,4,5,5,4,5,5,6,6,6,6,6,6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,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,6,6,7,6,6,7,6,7,6,6,7,6,8,9,10,10,11,12,13,11,13,15,16,17,19,19,22,21,21,20,22,21,21,24,22,23,24,22,24,25,26,24,25,25,26,25,25,27,25,25,25,24,24,26,25,23,25,25,24,26,26,24,23,25,24],[28,28,28,28,28,29,28,28,28,27,27,28,27,27,26,27,27,28,27,27,27,25,27,26,25,27,27,26,27,27,25,27,27,28,27,27,27,28,27,27,27,26,26,26,25,25,24,23,23,22,23,22,21,21,19,19,19,19,17,16,14,12,9,6,6,4,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,5,4,5,5,5,5,6,6,6,6,6,7,6,7,7,7,7,7,6,6,6,6,6,7,6,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,6,6,6,6,6,5,5,6,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,5,5,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,5,5,5,6,5,5,6,6,5,5,6,5,5,6,6,6,6,6,6,6,6,6,6,6,5,6,5,5,5,4,5,5,5,5,5,4,4,5,5,4,4,5,4,4,4,5,4,4,4,5,4,4,5,5,6,6,6,6,6,6,6,5,6,6,6,5,6,6,5,5,5,5,5,6,6,6,6,6,6,5,5,5,4,5,5,4,4,4,5,4,4,4,4,4,4,4,5,5,4,4,4,4,3,3,4,4,3,3,4,4,3,4,4,4,4,4,4,4,4,4,3,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,5,7,8,7,11,12,11,9,11,14,12,11,13,13,13,15,17,17,18,19,21,21,23,23,24,22,22,23,21,21,23,22,24,22,22,23,26,25,27,26,26,26,26,26,27,27,26,26,27,27,27,27,27,27,27,27,27,27,27,25,26,24,26,26,23,25,23,22,26,22,21,23,22,21,21,19,18,18,17,16,15,13,12,10,8,7,6,5,5,4,5,5,6,6,6,6,6,6,6,7,6,7,8,7,7,8,9,8,8,9,9,8,9,8,9,8,8,8,8,8,9,9,9,9,9,9,8,8,8,7,7,7,7,7,7,6,6,6,6,5,6,5,5,5,5,5,5,6,5,5,6,6,6,6,7,6,6,7,7,8,8,8,7,7,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,2,2,3,3,4,5,6,6,6,5,4,4,3,4,4,4,4,4,4,5,5,4,4,5,5,4,4,4,3,3,3,3,3,2,3,3,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,3,4,4,4,5,5,5,5,5,5,4,4,5,4,3,3,4,3,3,4,3,3,3,3,2,2,2,2,2,2,2,2,1,1,1,0,1,1,1,1,1,2,2,2,3,3,3,3,3,4,4,3,4,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,3,3,4,3,3,3,3,3,3,3,3,4,4,4,3,4,4,4,5,5,5,5,5,4,4,5,5,5,5,5,5,4,5,4,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,8,9,9,10,11,11,11,12,14,15,16,17,19,21,20,20,19,20,19,20,22,22,22,23,22,24,26,25,23,25,24,25,25,24,26,25,24,24,24,24,24,24,24,24,24,24,24,26,23,23,24,25],[27,27,27,28,27,28,28,27,28,26,27,27,26,26,26,26,27,27,26,26,26,24,26,26,24,26,27,24,26,26,23,26,27,27,26,26,26,26,26,26,26,25,25,25,25,24,23,22,21,21,20,20,20,19,18,17,18,17,17,16,15,12,10,7,6,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5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,2,2,2,2,2,2,1,1,1,0,1,1,1,1,2,2,2,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,5,4,3,3,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,3,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,3,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,4,3,3,3,4,4,5,5,5,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,5,6,5,5,6,6,6,6,7,8,8,9,10,11,12,11,13,13,15,16,16,17,19,18,18,18,19,18,18,21,19,21,22,21,24,23,22,22,23,23,23,23,24,25,22,23,23,22,22,22,23,22,23,22,22,24,24,23,21,23,24],[28,28,28,28,28,29,28,28,28,27,28,28,28,27,27,26,27,27,26,27,27,25,27,27,25,27,27,26,27,27,25,28,28,28,27,28,27,28,27,27,28,27,26,26,26,25,24,23,23,23,23,22,21,21,19,19,19,19,18,17,15,13,10,7,6,5,3,3,2,2,2,2,2,2,2,2,2,3,3,2,2,3,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,5,5,5,4,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,3,4,4,3,3,3,4,4,4,4,4,4,3,3,3,4,3,3,3,4,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,4,5,5,5,4,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,4,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,2,2,3,3,2,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20,19,18,20,20,19,23,20,22,23,21,24,24,25,24,25,24,26,25,25,26,24,25,25,23,23,25,25,24,26,24,24,25,26,24,22,24,24],[29,29,29,29,29,29,29,29,29,28,28,28,28,28,27,28,27,28,27,27,28,27,27,27,26,27,27,27,27,27,26,27,28,28,28,27,27,28,27,27,27,27,26,26,25,25,24,22,23,23,22,21,21,22,19,20,20,19,19,18,15,13,10,7,7,5,3,5,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,6,5,6,6,6,6,6,7,7,7,7,6,5,6,5,6,6,6,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,5,5,6,5,5,5,5,5,5,5,4,5,5,4,4,4,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,5,5,6,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,6,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,6,8,8,9,11,13,14,13,12,14,14,14,16,16,16,16,18,19,18,21,21,23,24,23,25,24,24,24,23,24,24,24,25,24,25,25,27,27,28,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,27,27,27,27,26,27,25,25,27,23,23,24,23,22,22,20,19,20,18,16,15,14,11,10,8,7,6,4,4,4,5,5,5,5,5,6,6,6,6,7,7,7,8,7,8,9,9,9,9,9,9,9,10,9,9,8,8,8,8,8,9,9,9,10,9,9,9,8,8,7,7,7,7,7,6,6,6,6,6,6,6,5,5,6,5,5,6,5,5,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,6,7,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,2,3,2,2,2,3,3,4,6,6,6,5,4,4,3,3,3,4,4,3,4,4,4,5,4,4,4,4,4,4,4,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,4,3,4,4,4,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,3,3,2,2,1,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,4,3,3,3,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,4,4,4,3,4,3,3,4,4,4,4,4,3,3,4,4,4,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,6,6,5,5,6,7,8,10,10,11,12,12,12,12,14,15,16,19,19,21,21,21,19,20,20,20,23,22,22,23,23,25,25,25,24,25,24,26,24,25,26,25,25,25,24,24,25,25,24,25,24,25,26,26,24,22,25,25],[28,27,28,28,28,28,28,28,28,27,27,27,27,27,27,27,27,28,27,28,27,26,27,27,26,27,27,27,28,27,26,28,28,28,27,28,27,27,28,27,28,27,26,26,27,25,24,23,24,23,22,23,22,20,21,21,19,19,19,18,15,13,10,7,6,5,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,6,6,5,6,6,6,6,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,5,6,6,6,5,6,5,5,5,5,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2,2,2,1,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,4,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,4,4,4,4,3,4,4,3,4,4,3,4,4,4,3,4,4,4,5,5,5,5,5,4,4,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,8,10,10,12,12,12,12,13,14,16,17,17,17,20,18,20,19,19,19,20,21,20,21,23,23,23,24,24,22,23,22,24,24,24,26,24,23,25,23,23,23,23,24,23,23,23,24,25,25,21,24,25],[28,28,28,28,28,29,28,28,28,27,28,27,27,27,27,27,27,28,26,27,27,25,27,27,24,26,27,25,27,27,24,27,28,28,26,27,26,26,27,26,27,25,24,25,26,25,22,23,23,21,20,21,21,17,18,19,17,17,17,17,15,12,10,8,6,5,3,3,3,3,3,3,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,5,5,5,5,5,6,6,6,6,7,7,7,7,7,8,8,7,6,6,6,7,7,7,7,7,7,6,7,7,6,6,7,7,6,7,7,6,6,7,7,7,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,6,5,5,5,5,5,5,5,5,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,6,6,6,6,6,5,6,6,6,7,7,6,6,6,6,6,6,6,6,6,5,5,5,4,5,5,4,4,5,5,4,5,5,5,4,5,5,5,4,5,6,5,5,5,5,5,5,6,6,7,7,6,7,7,6,6,7,7,7,7,6,7,7,6,6,6,6,7,6,7,7,7,7,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,5,4,5,4,5,5,5,5,5,5,5,5,4,5,5,6,6,6,6,6,7,7,7,7,7,7,7,7,8,7,7,7,7,6,6,5,5,5,5,4,5,5,5,5,6,5,6,8,8,8,10,13,12,11,12,14,14,14,15,16,16,16,19,19,19,20,21,22,24,22,24,22,22,24,21,21,22,24,23,22,23,24,25,24,26,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,25,24,25,25,24,26,24,24,25,23,21,22,21,20,20,18,18,18,16,17,15,14,13,11,9,8,7,6,5,6,7,6,7,7,7,8,7,8,8,8,8,9,9,8,8,10,10,10,10,11,11,10,11,10,11,9,9,9,10,10,11,11,12,12,11,11,10,9,9,9,9,8,9,9,8,8,8,8,7,7,7,7,7,7,6,7,7,7,7,7,7,7,7,8,7,7,8,9,9,9,9,9,9,9,8,8,8,7,7,7,6,6,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,4,4,4,4,3,4,3,3,3,3,3,4,5,7,7,8,7,5,5,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,3,4,3,3,3,3,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,4,4,4,4,5,4,5,5,5,5,5,6,6,6,6,6,6,6,6,5,6,5,5,5,5,4,5,5,5,4,4,4,4,3,3,3,3,3,2,3,3,2,2,1,1,1,1,1,0,1,1,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,5,5,4,3,2,2,2,2,2,2,2,3,2,2,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,3,4,4,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,4,5,5,5,5,5,6,6,5,5,5,5,4,5,4,4,5,4,4,4,5,4,4,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,6,7,7,6,6,6,6,6,6,6,7,6,7,7,7,7,7,7,7,7,7,7,7,7,9,10,11,11,12,13,14,12,14,15,17,17,18,19,21,19,21,19,20,20,21,24,22,24,23,23,26,25,25,24,25,25,26,25,25,25,24,25,26,24,24,25,25,25,25,25,25,25,26,25,23,25,24],[28,28,28,29,28,29,28,28,28,28,27,27,27,27,27,27,27,28,27,27,26,26,26,26,25,26,27,26,27,27,25,27,28,28,27,27,27,27,27,26,27,26,26,26,26,25,23,23,24,22,22,21,21,18,19,19,17,17,17,18,15,13,11,8,6,6,5,5,5,6,5,6,6,7,6,6,5,5,4,4,5,4,3,4,4,4,3,3,4,4,4,5,4,5,5,5,6,6,6,7,7,7,7,8,8,8,8,9,8,9,9,8,7,8,7,8,8,8,8,9,8,7,8,9,7,8,8,8,7,8,8,8,8,8,9,9,8,8,7,7,7,7,7,7,7,6,7,7,6,6,7,7,6,6,6,6,5,6,6,6,6,5,7,6,6,6,7,6,7,7,7,7,7,7,7,8,8,8,8,8,8,8,7,8,8,8,8,8,8,7,7,7,8,8,7,8,8,8,8,8,7,7,8,8,7,6,6,6,6,6,5,6,6,5,6,7,5,6,6,6,6,7,7,7,6,7,8,7,6,7,7,6,7,7,8,8,8,8,8,8,8,8,9,8,9,8,8,9,8,8,8,8,8,8,8,8,9,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,5,5,6,6,5,6,7,8,7,8,8,8,8,7,9,8,7,8,8,8,8,9,8,8,8,8,9,9,9,10,9,10,9,10,9,9,9,8,8,9,7,7,7,7,7,6,7,7,7,7,7,8,8,10,10,11,13,12,12,14,15,14,15,15,17,17,17,18,19,21,20,23,23,24,23,25,22,23,24,23,22,23,23,24,23,23,24,25,24,27,25,26,26,26,26,27,27,27,27,27,27,27,27,27,26,27,26,27,27,27,27,26,25,26,26,25,25,25,24,27,23,22,24,23,20,21,19,20,20,18,17,17,16,15,14,11,10,8,8,7,9,9,8,9,9,9,10,10,10,10,10,10,10,11,10,11,12,13,11,11,13,13,12,13,12,12,11,11,11,12,11,13,13,14,14,13,12,12,11,11,11,10,10,11,11,10,10,10,10,9,9,10,9,9,10,9,9,10,10,9,9,9,10,10,10,10,10,10,10,10,11,11,11,11,11,10,10,10,9,9,9,9,8,8,9,9,9,9,9,8,8,8,7,8,7,6,7,7,7,7,6,6,6,7,6,6,5,5,4,4,4,5,6,8,8,8,8,7,6,6,6,5,5,5,4,5,5,5,5,5,5,6,5,5,4,4,4,4,3,4,3,2,2,3,3,2,3,3,3,4,5,5,6,7,6,6,6,7,7,8,8,8,7,7,8,8,8,8,8,9,8,9,8,9,7,8,8,8,7,7,7,7,7,8,6,7,6,6,6,5,5,5,4,4,4,4,3,3,3,2,2,3,1,1,0,1,2,2,3,4,4,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,7,7,5,4,3,3,2,3,3,3,4,6,5,4,6,6,5,5,6,7,6,6,8,8,7,7,8,7,8,7,8,7,7,7,6,6,6,6,5,5,5,4,5,4,4,4,4,4,3,3,4,4,5,5,5,4,6,6,5,5,6,6,6,6,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,5,7,6,6,7,7,6,6,7,8,7,9,9,9,9,8,8,8,8,8,8,8,8,9,9,8,7,10,9,8,8,8,9,8,8,9,9,9,9,9,9,9,9,10,10,9,9,9,10,9,10,11,12,12,15,15,16,15,16,16,19,19,20,20,22,21,22,22,22,21,22,24,24,24,25,25,25,26,27,25,26,25,27,26,25,28,25,26,26,26,25,25,25,25,25,26,25,26,26,26,24,25,25],[28,28,29,28,29,29,28,28,29,28,28,28,28,28,28,27,28,28,27,28,28,26,28,28,25,28,29,26,28,28,25,28,29,29,27,28,28,27,28,27,28,26,26,25,26,25,21,23,24,21,20,22,22,18,18,20,18,17,18,18,16,14,11,8,7,6,5,4,4,4,4,5,4,4,4,4,3,4,3,3,3,3,2,2,3,3,2,2,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,6,6,5,5,6,7,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,5,5,6,5,5,5,5,4,5,5,4,4,5,4,4,4,5,5,4,5,4,5,5,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,5,4,5,5,6,6,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,7,7,7,6,6,6,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,4,4,4,4,3,3,3,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,7,7,7,7,7,7,7,8,7,8,7,8,7,7,6,6,6,6,5,6,6,6,6,7,7,8,11,10,11,12,15,14,15,15,17,17,17,18,19,18,18,21,21,21,23,23,23,26,24,26,23,23,25,24,22,24,24,25,24,25,25,26,25,28,26,27,26,26,27,26,27,26,26,27,27,27,27,27,27,27,27,27,27,27,27,26,26,27,27,27,26,26,26,26,24,23,24,24,23,23,20,21,21,19,19,17,15,14,13,11,9,8,7,7,7,7,7,7,8,8,8,8,9,8,9,9,9,10,9,9,10,11,10,11,12,12,11,12,11,11,10,10,11,11,10,12,11,13,13,12,12,11,11,10,10,9,9,9,9,9,8,8,8,7,7,8,7,7,7,7,7,7,7,7,7,8,7,8,8,8,8,8,9,9,10,10,10,9,10,9,8,7,7,7,6,6,6,6,6,6,7,6,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,4,4,6,7,7,8,7,5,4,4,4,4,4,4,3,4,4,4,4,5,4,4,4,3,4,3,4,3,2,3,3,2,2,3,2,2,3,2,2,3,3,3,3,3,3,4,4,5,4,4,5,5,5,5,5,6,6,6,7,6,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,4,5,4,4,4,4,4,4,3,4,4,3,3,3,2,2,2,2,2,1,0,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,3,4,4,5,5,4,4,3,2,2,2,3,2,3,3,3,3,4,3,4,4,4,4,4,5,5,5,5,6,7,6,6,6,6,6,6,7,6,6,6,5,5,5,5,4,4,4,4,4,3,4,3,3,4,4,4,4,4,4,4,5,4,5,5,5,5,5,6,6,6,7,7,6,6,7,6,7,6,6,6,6,6,5,5,6,6,5,6,6,5,5,6,6,6,7,7,7,7,7,7,7,7,8,7,7,8,8,7,7,7,8,7,7,7,7,7,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,8,9,10,11,12,13,14,14,13,14,16,16,18,20,20,21,22,22,20,21,22,22,24,22,24,24,24,25,26,26,24,25,24,25,25,24,26,24,25,26,24,24,26,26,26,26,26,25,26,26,25,23,25,26],[29,29,29,29,29,30,29,29,29,29,28,29,29,28,28,29,28,29,28,29,29,28,28,28,27,28,28,27,29,27,27,28,28,29,28,28,28,28,28,28,28,27,26,26,26,25,23,23,25,22,22,22,23,19,20,21,19,17,19,19,17,15,12,10,8,7,6,6,5,5,5,5,5,5,5,4,4,5,3,3,4,4,3,3,4,3,3,2,4,4,4,4,5,4,4,5,5,5,5,6,7,6,6,7,7,7,7,8,8,8,7,7,6,6,5,6,7,7,8,7,7,7,7,7,7,8,8,8,7,8,8,7,8,7,8,8,8,8,7,7,7,7,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,4,4,4,5,5,5,5,5,5,5,5,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,7,8,7,7,7,8,7,7,6,6,6,6,6,6,5,6,6,6,6,6,6,6,5,6,6,5,6,6,6,5,5,6,6,5,6,6,6,7,7,7,7,7,7,7,7,8,7,7,7,8,8,7,7,7,7,7,7,8,8,8,8,7,7,7,7,7,7,7,7,6,7,6,6,6,6,6,6,6,6,5,6,5,5,6,5,5,5,5,5,5,5,5,6,5,6,6,7,6,6,7,6,7,7,7,7,8,7,7,8,8,8,8,9,8,9,9,9,9,9,9,9,8,9,8,8,7,8,7,7,7,7,7,7,7,8,8,9,11,11,12,13,14,15,15,17,17,17,16,18,19,18,20,21,22,21,22,24,24,26,25,26,25,24,25,24,23,25,25,25,25,25,26,27,26,28,27,27,27,27,27,27,27,27,27,27,27,28,27,28,27,27,27,28,27,28,27,27,26,27,26,26,27,26,26,27,25,24,25,24,22,23,20,20,20,18,18,18,15,14,13,11,10,9,8,8,9,9,8,9,9,9,10,11,9,10,11,10,11,11,11,11,11,12,12,13,13,13,14,13,13,12,12,11,11,11,12,12,12,14,14,12,13,12,11,10,11,10,10,11,11,10,10,10,9,9,9,9,9,8,8,8,9,9,9,9,10,10,10,10,10,9,9,10,10,10,12,11,10,11,11,10,10,9,9,8,8,8,8,8,8,8,8,8,7,7,7,7,6,7,7,6,6,7,6,6,6,6,5,6,5,4,5,4,3,4,4,5,5,7,8,8,7,6,6,6,5,5,5,5,5,5,5,6,5,5,5,6,5,4,4,4,4,3,3,3,3,3,4,3,3,2,3,3,3,4,4,4,4,5,5,4,5,6,6,6,6,7,7,7,7,7,8,7,8,8,8,8,8,8,7,8,7,7,7,6,6,6,6,6,5,6,6,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,2,1,1,0,1,2,2,2,2,3,3,3,3,4,4,3,4,4,4,4,5,4,4,5,4,5,5,5,6,6,5,5,4,3,3,3,3,3,4,4,4,4,5,5,6,5,6,7,6,6,8,7,6,7,8,7,8,7,7,7,8,7,6,7,7,6,6,6,6,5,5,5,6,5,5,5,5,4,5,5,5,5,5,5,6,6,6,7,7,7,7,7,7,7,8,8,8,7,8,9,8,8,8,7,7,7,7,7,7,8,7,7,7,8,7,7,8,8,7,9,9,9,9,9,9,8,9,9,9,9,9,9,9,9,7,10,9,8,9,9,9,8,8,9,8,8,9,9,8,9,9,9,8,9,9,8,8,9,11,11,12,12,13,15,15,14,15,17,18,19,22,21,23,23,23,22,23,23,22,25,23,24,25,24,25,26,26,26,26,25,27,26,27,28,26,26,27,24,25,26,27,26,27,26,25,27,27,26,23,25,26],[28,28,28,28,28,29,28,28,29,27,27,27,27,27,27,27,27,28,27,27,27,27,27,28,27,27,28,26,28,27,26,28,28,29,28,28,27,28,28,27,28,26,26,26,26,24,23,23,24,21,22,21,21,20,19,20,18,17,18,18,15,14,11,8,7,6,5,5,5,4,4,4,4,3,4,3,3,3,2,2,2,2,2,2,2,2,2,1,3,2,2,3,3,3,3,3,4,3,4,4,4,4,4,5,5,5,5,5,5,6,5,5,4,4,4,4,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,6,6,5,5,5,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,4,4,4,4,4,5,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,3,3,4,4,3,3,4,4,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,6,6,7,6,6,6,5,5,6,6,5,5,6,6,6,7,7,8,11,10,10,12,13,14,14,14,16,15,15,16,17,17,18,19,20,21,22,22,23,24,23,25,23,22,23,22,23,23,23,24,24,24,23,25,25,27,25,26,26,26,26,26,27,26,26,26,26,26,26,26,26,26,27,27,27,27,26,26,26,26,27,26,27,26,25,27,24,24,25,23,22,22,20,19,19,18,18,17,15,14,13,10,9,7,7,7,7,6,6,6,7,7,8,7,8,8,9,8,9,10,9,9,10,11,10,10,12,13,12,12,11,12,11,10,10,10,10,11,11,13,13,12,11,11,9,10,10,8,8,9,9,7,8,8,7,7,7,7,7,6,6,6,7,6,6,7,7,7,7,7,8,7,8,8,9,9,10,10,10,9,8,7,7,7,6,6,5,5,5,5,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,4,4,5,7,7,7,6,5,4,4,3,3,3,3,3,3,3,4,4,3,4,4,4,3,3,3,3,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,4,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,5,5,5,5,5,5,5,4,4,4,4,5,4,4,4,4,4,3,3,4,4,3,3,4,3,3,3,3,3,2,3,2,2,2,1,1,0,1,1,1,2,2,2,2,2,2,2,2,3,3,4,4,3,4,4,4,4,3,4,4,5,4,4,4,3,2,2,2,2,2,3,3,3,3,3,4,3,4,4,4,4,5,5,5,5,5,6,5,6,6,5,6,5,5,5,5,5,4,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,6,6,6,5,6,5,6,6,6,6,6,6,6,6,6,6,7,6,6,7,6,7,6,6,6,7,6,7,7,7,7,6,7,7,6,7,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,6,6,6,8,9,10,11,12,13,13,13,14,15,16,18,19,19,21,21,21,20,21,20,21,24,22,23,23,23,25,25,25,23,24,23,24,24,23,26,22,23,24,23,24,24,24,24,25,25,24,25,25,23,22,24,25],[28,28,28,29,29,29,29,29,29,28,28,28,28,28,28,28,28,29,29,29,28,28,29,29,28,28,28,28,28,28,27,28,29,29,27,28,27,28,28,27,27,27,26,26,26,26,24,23,24,22,22,22,22,19,20,21,18,19,19,19,17,14,12,10,8,6,6,5,5,4,5,4,5,4,4,4,3,3,3,3,3,2,2,2,2,3,3,2,3,3,3,3,3,3,3,4,4,3,4,4,4,4,5,5,5,5,6,6,5,6,6,5,4,4,4,5,5,5,5,6,5,4,5,6,5,5,6,6,5,5,6,6,5,6,6,7,6,6,5,5,5,5,4,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,4,4,3,4,4,4,4,4,5,5,5,5,5,6,5,5,6,5,5,6,6,5,5,6,6,6,6,6,7,7,7,7,7,7,7,6,7,7,6,7,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,6,6,5,5,6,5,5,5,6,6,5,5,6,6,5,6,6,5,6,6,6,6,7,7,7,6,6,6,5,5,6,5,6,6,6,5,6,6,5,5,6,6,6,6,5,5,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,5,6,5,6,6,6,6,7,7,7,7,7,8,8,8,8,8,9,8,8,8,8,8,7,8,7,7,6,7,6,6,6,7,7,7,8,9,11,13,12,14,16,15,17,17,18,18,18,19,19,19,21,22,23,23,24,24,25,26,25,27,26,25,27,24,26,26,25,27,25,25,26,27,27,28,26,28,27,27,27,28,27,28,28,27,28,27,28,28,28,27,27,28,28,28,28,28,28,28,28,26,28,27,26,28,25,25,26,26,24,23,21,21,20,19,18,18,15,15,14,12,10,9,8,8,8,9,8,9,9,9,10,10,10,10,10,10,11,11,11,11,11,12,12,12,12,13,13,13,12,13,11,12,11,12,12,12,12,13,14,12,13,12,12,11,11,11,10,10,10,10,10,9,9,9,8,9,9,8,8,8,9,9,9,9,9,9,9,9,10,9,9,10,11,10,11,11,10,10,10,8,9,8,7,7,6,7,7,7,7,6,7,7,7,6,7,7,6,7,6,6,6,6,6,5,5,5,5,5,4,5,4,4,4,4,5,5,6,7,7,8,7,6,5,5,4,4,4,4,3,4,5,5,5,5,5,5,5,4,3,3,3,3,3,3,3,2,2,3,3,2,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,6,6,6,7,7,7,7,7,7,8,7,7,7,7,7,7,6,7,6,5,6,6,6,6,6,6,5,5,5,5,5,4,4,5,5,4,4,4,3,4,3,3,3,2,2,2,1,0,1,1,1,2,2,2,2,2,2,3,3,3,4,4,4,4,4,4,5,3,4,4,5,5,5,4,4,3,3,3,3,3,4,4,4,4,5,4,5,5,6,6,6,6,7,7,7,7,8,7,7,7,7,8,8,7,6,7,7,6,7,7,7,6,5,6,6,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,7,7,7,8,7,8,7,8,7,8,9,8,8,8,8,7,7,8,7,7,8,8,7,8,9,7,6,7,8,8,9,9,9,8,9,9,8,9,9,9,9,9,9,9,9,8,10,8,8,9,8,8,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,10,11,12,12,13,14,15,14,15,17,18,19,21,21,23,23,23,22,23,22,23,26,25,25,26,25,26,26,27,25,26,25,27,26,26,28,26,26,27,26,27,26,26,26,27,27,26,27,27,26,25,26,26],[28,27,27,27,27,28,28,27,28,26,26,25,26,25,25,26,26,27,26,27,27,26,26,27,26,26,26,26,27,26,26,27,27,28,27,27,27,27,27,26,27,25,25,25,26,24,22,22,23,20,22,20,20,19,19,20,18,18,17,17,15,13,10,8,7,6,5,4,4,4,4,4,4,4,4,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,4,4,4,4,4,4,5,5,5,5,4,5,5,4,4,5,5,4,5,5,5,4,5,5,6,5,5,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,4,4,5,5,4,5,5,5,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,5,5,5,4,4,4,4,4,4,4,4,3,3,4,3,3,3,4,3,3,4,4,3,4,4,4,4,4,4,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,6,6,6,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,3,3,4,3,4,3,4,4,4,4,5,4,4,5,5,5,5,5,5,5,6,5,6,6,6,6,7,7,8,7,8,8,8,8,8,7,8,7,7,7,6,6,6,6,6,5,6,6,6,7,7,8,11,10,10,12,13,13,13,14,15,15,15,17,17,16,18,20,20,20,20,22,21,23,23,24,23,21,23,21,21,22,23,23,22,22,23,25,24,26,24,25,26,26,26,26,26,26,26,26,26,24,26,25,25,25,25,26,25,26,25,25,25,25,25,24,25,24,24,26,24,23,24,23,21,21,20,19,19,17,18,16,14,13,13,10,9,8,7,7,8,7,7,8,9,9,9,9,9,9,10,9,10,12,11,10,12,13,12,12,13,14,13,13,13,13,12,12,12,11,12,12,13,13,13,13,13,12,11,12,11,10,10,11,10,9,9,9,8,8,8,8,8,8,8,8,8,8,8,8,9,8,9,9,9,9,9,9,10,10,11,11,11,10,10,9,8,8,7,7,6,6,7,6,6,6,6,6,7,6,6,6,6,6,6,5,6,6,5,5,4,5,5,4,4,5,4,4,4,4,5,5,6,7,7,7,7,6,5,5,4,4,4,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,6,6,6,6,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,4,5,4,4,4,4,3,3,3,3,3,2,2,2,1,1,0,1,1,2,2,2,1,2,2,2,3,2,4,4,4,4,4,4,3,4,4,4,5,4,4,4,4,3,3,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,7,6,6,7,7,7,7,7,6,7,7,7,7,7,7,6,6,6,6,5,5,5,5,5,5,5,5,4,4,4,5,5,5,5,5,5,5,5,6,6,6,7,7,7,7,7,7,7,7,8,8,7,8,7,6,6,7,6,6,7,7,6,7,7,6,6,7,7,7,8,8,8,8,8,9,7,8,8,8,8,8,8,8,8,8,9,9,8,8,8,8,8,8,9,8,7,8,8,8,8,8,8,8,8,8,7,8,8,9,9,11,11,13,14,15,13,15,16,17,19,19,20,21,20,22,22,21,21,22,24,22,24,24,23,25,25,24,23,24,23,24,25,24,26,24,24,24,24,25,24,23,23,24,25,24,25,25,24,23,23,24],[29,29,28,28,28,29,29,28,28,28,27,27,28,27,27,27,27,28,27,28,27,27,27,28,27,27,28,27,28,27,26,28,28,28,28,28,27,28,28,27,27,26,26,26,26,25,23,23,24,21,22,21,22,20,19,21,18,19,18,18,15,13,11,8,7,6,5,4,4,4,4,4,4,3,3,2,3,2,2,2,2,2,1,2,2,1,2,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,5,5,4,3,3,3,4,4,4,4,4,4,3,4,4,4,3,4,4,3,4,4,3,3,4,4,4,4,4,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,3,2,3,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,4,4,5,5,4,4,5,5,5,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,2,3,2,2,3,3,2,3,3,3,3,4,4,5,5,4,4,5,4,3,4,4,4,3,4,4,3,4,4,3,3,4,4,4,5,5,5,5,4,4,3,3,4,3,3,4,3,3,3,4,4,3,4,4,4,4,4,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,7,6,6,7,6,6,6,5,5,5,6,5,5,6,6,6,7,7,8,11,10,10,13,13,14,14,14,16,16,16,18,18,18,19,21,21,22,22,24,23,24,23,26,23,23,26,23,23,25,25,25,25,26,25,26,26,28,26,27,28,27,27,28,27,27,27,27,27,27,27,27,27,28,27,28,28,28,27,27,26,27,27,27,27,27,26,27,24,24,25,24,22,22,20,20,20,18,18,17,14,14,12,10,8,7,7,7,6,6,6,7,7,7,8,7,8,8,9,8,9,10,9,9,10,11,11,11,12,12,11,12,11,11,11,10,10,10,11,11,12,12,12,12,11,11,10,10,10,8,9,9,9,8,8,8,8,7,7,7,6,6,6,6,6,6,6,6,7,6,6,7,8,7,7,8,8,8,9,9,9,8,8,7,6,6,6,5,5,4,4,4,4,4,4,5,4,4,5,5,4,4,4,4,4,4,4,4,3,4,3,3,3,4,3,3,3,4,4,4,5,6,6,6,6,5,4,3,3,3,3,3,2,3,3,3,4,3,4,4,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,5,5,5,5,5,4,5,4,4,4,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,2,2,2,2,1,1,1,0,1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,4,4,3,3,4,5,4,4,3,3,3,2,2,2,2,3,3,3,3,4,3,4,4,4,4,4,4,4,5,5,5,6,5,6,5,5,6,6,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,6,5,6,6,6,6,6,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,6,7,6,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,5,6,6,6,5,6,7,8,9,10,11,12,13,12,13,14,16,17,19,18,21,21,20,20,21,20,21,24,22,23,24,22,25,24,25,24,24,23,26,25,25,26,24,25,25,25,24,25,25,25,25,25,24,26,25,24,23,24,25],[28,28,29,29,29,29,29,29,29,28,28,28,28,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,27,28,29,29,28,28,28,28,28,28,28,27,27,26,27,25,23,24,24,22,23,22,22,20,20,21,19,20,19,18,16,14,11,8,7,6,5,5,4,3,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,4,3,4,4,4,4,4,4,4,3,3,3,3,3,4,3,4,3,3,3,4,3,3,3,3,3,3,4,4,4,4,4,5,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,4,4,3,3,3,3,3,3,3,2,2,3,3,2,2,3,2,2,3,3,2,2,3,3,3,4,4,4,4,4,4,4,4,3,3,4,3,3,3,4,3,3,4,3,3,4,4,4,4,5,5,5,4,4,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,6,6,6,7,8,12,10,11,14,14,16,16,15,17,18,16,17,19,19,19,21,21,23,22,23,24,25,24,26,25,23,25,23,23,25,24,25,24,24,24,26,25,27,26,27,26,27,26,26,27,26,26,26,26,26,27,27,27,27,27,27,27,27,27,26,26,27,27,26,27,27,26,27,25,24,26,25,23,23,20,20,20,17,17,16,14,13,12,10,8,8,7,7,6,6,6,7,7,7,7,7,8,8,8,8,9,9,9,9,9,10,10,10,11,12,11,11,10,10,10,9,9,9,10,10,10,11,12,10,11,10,10,9,9,8,9,9,9,8,8,8,7,7,7,7,6,7,6,7,6,6,6,6,7,6,6,7,7,6,6,7,8,7,8,8,8,8,7,6,6,5,5,5,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,3,3,3,3,4,5,5,6,6,6,6,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,4,5,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,1,1,1,1,0,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,3,3,4,4,6,5,5,4,4,3,2,2,2,3,3,3,3,3,4,3,4,4,4,4,5,5,5,5,5,6,6,6,5,5,5,5,6,6,5,5,5,5,5,6,5,5,4,5,5,5,4,5,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,7,6,6,6,6,6,6,6,6,6,5,6,6,5,6,6,5,6,6,7,8,9,9,11,12,13,12,12,14,16,18,20,20,22,22,22,20,22,22,21,23,22,24,24,23,25,26,25,24,25,24,26,25,25,26,24,25,25,23,24,25,26,25,26,25,24,25,25,23,22,25,24],[28,29,28,28,28,29,28,28,28,27,27,27,27,27,27,27,27,27,27,27,26,27,27,27,26,27,27,27,27,26,26,27,27,28,27,28,26,27,27,27,27,26,25,26,26,25,23,23,23,22,22,22,21,20,19,20,18,19,18,18,15,13,11,8,8,6,5,4,4,4,4,4,4,3,3,3,2,2,2,2,2,3,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,5,4,4,3,3,3,3,3,4,3,4,4,3,3,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,3,4,3,3,3,3,3,3,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,4,4,5,5,5,4,5,5,5,4,5,5,5,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,3,4,4,4,3,3,3,4,3,3,4,4,4,4,4,3,4,4,4,5,5,5,5,4,4,3,3,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,4,3,3,3,3,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,5,5,5,6,5,6,6,6,7,8,7,8,12,11,11,14,14,16,16,16,17,19,17,18,20,19,19,21,22,23,23,23,24,25,24,25,23,23,24,24,23,24,24,24,25,25,24,26,26,27,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,26,27,26,25,26,26,26,26,26,26,26,24,24,25,24,23,22,21,20,20,18,18,16,14,13,12,10,8,7,6,7,6,7,6,6,7,7,8,8,8,8,8,8,9,10,9,9,10,10,10,10,11,12,11,11,11,11,10,10,10,10,10,10,11,11,12,11,11,11,10,10,10,9,9,9,8,8,8,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,7,7,6,7,7,8,8,8,8,9,8,8,6,6,5,5,5,5,4,4,4,4,4,4,4,4,4,5,5,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,4,4,4,5,6,6,6,6,5,4,4,3,3,3,3,2,3,3,3,4,3,4,4,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,1,1,1,0,1,1,1,1,1,2,3,2,3,3,3,4,4,4,4,3,4,5,4,4,4,4,3,3,3,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,6,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,6,5,6,6,6,6,6,7,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,7,7,7,7,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,6,8,8,10,10,11,13,12,11,13,15,16,18,19,19,23,23,21,20,22,22,20,24,21,23,25,22,25,26,25,25,26,24,25,26,25,26,25,25,26,24,25,27,26,25,26,25,24,25,25,25,23,25,24],[29,29,28,29,29,29,29,28,28,28,28,27,27,27,27,27,27,27,27,28,27,27,28,27,27,28,28,27,28,28,26,28,28,28,28,28,28,28,28,27,28,27,27,27,26,25,23,23,24,22,22,22,21,20,20,21,18,19,19,18,15,14,11,8,8,7,5,5,5,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,3,3,4,4,4,4,4,4,4,4,4,4,3,4,4,3,4,4,4,4,4,5,5,5,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,5,5,4,4,4,3,4,3,3,3,3,3,2,3,3,3,2,2,3,2,2,3,3,3,2,3,3,3,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,4,3,3,3,3,2,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,7,7,7,7,6,6,6,6,5,5,6,6,5,6,6,6,7,8,7,9,13,12,12,15,15,17,16,16,18,18,17,19,20,20,20,21,24,23,23,25,25,25,25,26,24,23,24,23,24,25,24,24,25,24,24,26,26,28,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,26,28,28,27,27,26,26,26,27,26,26,26,25,26,24,24,25,24,23,22,21,20,20,18,17,17,15,13,12,10,9,8,7,7,7,7,7,7,7,8,8,8,8,8,8,9,9,10,9,9,10,11,10,10,12,12,11,12,11,11,10,10,10,9,10,10,11,12,12,12,11,11,10,10,10,9,9,9,9,9,8,8,7,8,7,7,7,6,6,7,7,7,7,6,7,7,7,7,7,7,8,8,8,8,9,9,8,8,8,7,7,6,6,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,6,7,7,6,5,4,4,3,3,4,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,5,5,5,5,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,2,2,2,2,1,1,1,0,1,1,2,2,1,2,3,3,3,4,4,4,5,5,4,4,5,6,5,6,5,4,4,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,6,7,6,6,6,6,6,7,6,7,6,6,6,6,6,7,7,7,7,7,8,7,7,8,7,7,8,8,7,7,8,8,7,7,8,7,7,7,7,7,7,6,7,7,7,6,7,7,6,6,7,6,6,7,8,9,10,10,12,13,13,12,13,15,16,18,19,19,22,22,22,21,21,21,21,24,23,23,24,22,25,25,25,24,25,24,26,26,26,27,24,25,26,24,25,26,25,25,25,26,25,25,26,24,24,25,25],[28,28,27,28,28,28,28,28,28,27,27,26,27,26,26,27,27,27,27,27,27,27,27,27,26,27,27,27,28,27,26,28,28,28,26,28,27,27,28,27,28,26,26,26,26,25,23,23,24,20,22,21,21,20,20,20,18,19,19,18,15,14,11,8,7,6,5,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,4,4,4,4,4,3,3,3,3,3,3,3,3,4,3,3,3,4,3,3,3,4,3,3,4,4,3,4,4,5,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,4,4,3,3,4,3,3,3,3,2,2,3,3,2,2,3,2,2,2,3,2,2,3,3,3,3,3,4,4,3,3,4,4,3,3,4,3,3,3,4,3,3,4,3,3,4,4,5,4,5,5,5,4,4,3,3,4,3,3,3,4,4,3,4,4,4,4,4,4,4,4,4,3,3,3,3,2,2,3,3,2,3,3,3,2,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,6,7,7,8,11,11,11,12,14,16,15,14,16,17,16,18,18,18,19,20,22,21,21,23,23,23,23,24,23,22,23,22,22,22,23,24,23,23,23,24,23,27,24,25,26,26,26,26,25,25,26,25,25,25,25,25,24,25,25,26,26,26,25,25,25,26,26,25,26,24,24,26,23,23,24,24,20,21,20,18,19,17,16,16,14,12,12,10,9,8,7,6,6,6,7,7,7,7,8,8,8,8,8,8,9,9,9,9,9,11,10,10,11,11,11,11,11,11,10,9,9,9,9,10,10,11,11,11,11,10,10,9,8,9,9,8,8,8,8,8,7,6,6,6,6,6,6,6,6,6,6,6,7,6,7,7,7,7,7,8,8,8,9,9,9,8,8,7,6,6,5,5,4,4,4,4,4,4,4,4,4,4,5,5,5,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,3,4,4,5,5,6,6,6,6,5,4,4,3,3,3,3,3,3,3,4,4,4,3,4,3,3,3,3,3,3,2,2,3,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,5,5,4,5,5,4,4,4,4,4,4,4,5,4,4,4,4,3,3,3,3,2,2,2,2,2,2,1,1,1,1,0,1,1,1,1,2,2,3,3,3,3,3,4,3,3,4,4,5,4,4,4,4,3,3,2,3,3,3,3,3,3,4,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6,5,6,6,5,5,6,6,5,5,6,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,6,7,7,7,7,8,7,7,7,7,7,7,8,7,7,7,8,7,7,7,7,7,6,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,8,10,9,12,13,13,12,13,15,17,17,17,17,20,20,21,20,21,20,21,23,21,23,23,23,24,24,25,24,24,22,24,24,24,26,25,24,25,24,24,24,24,22,24,24,23,25,24,24,22,23,24],[28,28,28,28,28,28,28,28,28,27,26,25,27,26,26,26,27,27,27,27,26,26,27,26,26,27,26,26,27,26,26,28,27,28,26,27,26,27,27,26,27,25,25,25,26,25,22,22,23,21,21,21,22,20,20,21,18,19,18,18,15,13,10,8,7,6,5,4,4,4,4,3,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,3,4,3,4,4,4,4,3,4,4,3,3,4,4,3,4,4,4,4,4,4,5,4,4,4,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,6,6,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,7,7,7,6,7,6,6,6,5,5,6,5,5,6,6,6,7,7,8,11,11,11,14,14,15,15,15,16,16,15,18,18,18,19,20,22,22,21,22,23,24,23,24,23,22,24,22,20,23,24,23,23,23,23,25,25,27,25,26,26,27,26,26,26,27,26,26,26,26,26,26,26,27,26,26,26,27,26,25,25,26,25,26,26,26,25,27,23,24,24,24,22,21,20,18,19,17,17,15,14,13,11,10,9,8,7,7,6,7,7,7,8,8,9,9,9,8,9,9,10,11,10,10,11,12,11,12,12,13,12,12,12,12,12,10,11,11,11,11,12,13,12,12,12,10,12,11,10,10,10,10,10,9,9,9,8,7,7,7,7,7,6,7,7,7,7,7,8,7,7,8,8,7,8,9,9,9,10,10,10,9,9,8,7,7,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,5,5,6,7,7,7,7,6,5,4,4,4,4,3,3,3,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,5,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,4,4,4,3,3,3,3,3,3,2,2,2,2,1,1,1,1,1,0,1,1,1,2,2,3,3,3,4,4,4,4,4,4,4,5,4,5,4,4,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,6,6,7,6,6,6,5,6,7,6,6,7,7,5,6,6,6,6,5,5,5,5,5,5,5,4,5,4,4,4,4,5,5,4,5,5,5,5,6,6,6,6,7,7,6,6,7,8,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,8,7,7,8,7,8,8,7,8,8,8,8,8,8,9,8,7,7,8,8,7,7,7,6,7,7,7,7,7,7,7,6,7,7,6,6,7,8,9,10,10,11,13,13,12,13,15,17,18,18,19,20,21,21,20,21,22,21,22,20,22,23,22,25,25,24,23,24,23,25,25,25,26,25,25,24,24,25,25,24,24,25,25,23,24,24,23,21,23,24],[28,28,28,28,28,29,28,28,28,27,27,26,27,26,26,27,27,27,27,27,26,26,26,26,26,26,26,26,27,26,25,27,27,28,26,27,25,26,26,26,27,25,25,25,25,24,23,22,23,21,22,21,21,20,20,20,19,19,18,18,15,14,11,9,8,8,6,5,5,4,5,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,3,4,4,4,4,4,3,3,3,3,3,4,4,4,4,4,3,4,4,3,4,4,4,3,4,4,4,4,4,5,5,4,4,4,4,4,4,3,4,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,6,6,5,5,6,6,6,6,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,4,4,5,5,4,4,4,4,4,4,5,4,5,5,5,4,5,5,5,6,6,6,6,5,5,4,4,5,4,4,4,5,4,4,5,5,4,4,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,4,5,5,5,5,5,5,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,6,6,5,6,6,6,6,7,7,7,8,8,10,11,12,12,13,15,15,15,16,17,17,17,18,19,19,20,21,22,24,22,23,24,25,24,26,24,23,24,22,23,24,23,25,24,24,24,26,26,28,26,26,27,27,27,27,27,27,27,27,27,26,27,27,27,27,26,27,27,27,27,26,26,26,26,26,26,26,26,27,25,24,24,24,23,22,20,19,19,18,17,16,14,13,12,11,9,9,8,8,7,8,7,8,8,9,9,9,9,10,11,10,10,12,11,11,12,13,12,12,13,14,13,13,12,13,12,11,12,11,12,12,13,14,14,14,13,12,13,12,12,10,11,11,11,10,10,9,9,8,8,8,7,7,7,7,8,7,7,7,8,7,7,8,9,8,8,9,9,9,10,10,10,9,9,8,8,7,7,6,6,6,5,5,5,5,5,6,6,5,6,6,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,5,5,6,7,7,7,7,6,5,4,4,4,4,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,7,6,6,6,6,6,5,6,6,6,5,6,6,5,6,5,5,5,5,5,5,5,4,4,5,5,5,4,4,4,4,4,4,3,3,3,2,2,2,2,1,1,1,1,1,1,0,1,1,2,2,3,3,3,4,4,4,4,4,4,5,5,5,5,4,4,4,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,7,6,7,7,6,7,7,6,6,7,7,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,4,5,6,5,5,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,7,7,7,7,7,7,7,7,7,7,7,6,7,7,7,8,8,9,8,8,9,8,9,9,8,8,9,9,8,8,8,9,9,8,8,8,8,7,7,8,7,7,8,7,7,7,7,7,7,7,7,7,7,7,8,9,10,10,12,13,13,13,13,15,17,17,18,19,20,20,21,21,21,21,21,22,22,22,23,23,23,24,24,24,24,23,25,25,24,26,25,24,25,23,25,25,24,24,25,25,23,25,25,24,23,24,24],[28,28,28,28,28,28,28,28,28,27,27,26,27,27,26,27,27,27,27,27,27,27,27,27,27,26,27,27,27,27,26,28,28,29,26,28,26,28,27,26,28,26,26,26,26,25,23,23,24,22,22,22,22,21,21,22,19,20,19,19,17,15,12,10,9,8,7,6,6,5,6,5,6,5,5,4,3,3,3,3,3,2,3,3,2,2,3,2,3,2,2,2,3,2,2,3,3,3,3,4,3,4,4,4,4,4,5,5,4,5,5,4,4,3,3,4,5,4,4,5,4,4,4,5,4,4,5,4,4,5,5,5,5,5,6,6,6,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,3,3,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,4,4,5,5,4,5,6,5,5,5,5,5,5,6,6,6,7,6,6,7,7,6,7,7,7,7,6,6,5,4,5,5,4,4,4,4,3,3,4,4,3,3,4,3,3,4,4,4,3,4,4,5,5,6,5,5,5,5,5,5,4,5,5,5,5,5,6,5,5,6,6,5,6,6,6,6,6,7,7,6,6,5,5,6,6,5,5,6,5,5,6,6,5,5,6,6,6,5,5,5,5,4,4,4,3,4,4,4,4,5,5,4,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,8,8,8,8,9,9,9,9,9,9,9,9,9,8,8,8,7,8,8,7,7,8,9,9,10,10,11,12,13,13,15,17,17,16,18,20,19,19,21,21,20,22,23,25,24,24,26,25,27,26,27,25,25,26,23,23,24,25,25,25,25,25,27,27,27,26,27,28,28,27,27,27,27,28,28,28,27,28,28,28,27,27,28,28,28,28,27,27,27,27,27,28,27,27,27,25,25,25,25,24,23,22,20,20,18,18,17,15,14,13,12,10,10,10,9,9,10,9,9,11,10,11,11,12,12,13,12,12,14,13,13,14,15,14,14,15,14,15,14,14,14,14,13,13,13,13,14,14,14,16,15,15,14,13,14,13,12,13,13,12,12,11,11,11,11,10,9,10,9,8,8,10,10,9,10,11,10,10,11,11,10,10,11,11,11,11,12,11,11,10,9,9,8,8,8,7,6,6,7,7,6,7,7,7,6,7,7,7,6,6,6,6,6,6,6,6,6,6,5,5,6,5,5,5,5,6,6,7,7,8,9,7,7,6,5,5,5,5,4,4,4,4,5,5,5,5,5,5,5,5,4,4,5,4,4,4,4,3,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,6,5,6,6,6,7,7,7,7,7,8,8,7,8,7,8,7,7,8,7,7,6,7,7,7,7,6,7,7,6,6,7,7,6,6,6,6,6,6,6,6,5,5,5,4,4,4,3,3,3,2,2,2,1,1,1,1,1,0,1,2,3,3,4,4,5,5,5,5,5,5,6,6,7,6,5,5,4,4,5,4,4,5,5,5,6,6,5,6,6,6,7,7,7,7,7,8,8,9,8,9,9,8,9,9,8,8,9,8,8,8,8,9,8,7,8,8,7,7,7,7,7,7,7,7,6,6,7,7,7,8,8,8,8,8,8,9,9,9,9,9,9,9,11,10,10,10,10,9,9,9,9,9,10,9,9,9,9,9,8,9,9,9,9,10,10,10,10,10,10,10,10,10,11,11,11,11,10,9,10,11,10,10,11,10,9,10,11,9,9,10,10,9,9,9,9,8,9,9,8,8,9,10,10,11,12,14,15,16,14,15,17,19,20,21,20,21,22,23,21,21,22,24,24,23,23,25,23,24,25,26,24,25,22,26,26,25,27,25,26,26,26,25,26,25,25,26,26,25,26,26,25,23,24,25],[28,28,28,28,27,28,28,27,28,27,27,27,27,27,27,28,27,27,28,27,27,27,27,28,27,27,28,27,27,28,26,27,28,29,27,28,27,27,27,26,28,26,25,25,26,25,23,23,24,20,22,22,22,20,20,21,18,19,19,18,17,15,12,10,10,8,7,7,7,7,6,6,6,5,5,5,5,3,3,4,4,3,3,4,3,3,3,4,3,3,3,3,4,3,3,4,3,4,4,5,4,4,5,5,5,5,6,6,5,6,6,5,4,4,4,5,5,5,5,5,5,4,5,6,5,5,6,6,5,6,6,6,6,6,7,7,6,7,6,6,6,6,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,2,3,3,2,3,4,3,3,4,4,4,4,4,4,4,5,5,5,6,5,5,6,6,5,6,6,6,6,6,7,7,7,7,8,8,7,8,8,8,8,8,8,8,8,8,8,7,7,6,6,7,6,6,6,5,5,5,5,5,4,4,5,4,3,4,5,4,3,4,5,5,5,5,6,6,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,8,7,7,7,6,6,7,7,6,7,7,7,7,7,7,7,7,7,7,7,8,7,7,6,5,6,5,4,5,5,5,5,5,6,5,6,6,6,5,6,6,7,7,7,7,7,7,7,8,8,8,8,8,9,10,9,9,10,11,11,11,10,10,10,9,9,8,9,9,8,9,8,9,9,9,10,10,10,13,13,13,15,16,16,16,17,19,18,18,20,21,19,20,23,23,23,23,26,25,26,25,26,26,24,25,24,23,25,25,26,25,24,25,27,26,28,27,28,27,28,28,28,27,27,28,27,27,28,28,27,28,27,27,27,28,27,27,27,27,27,26,27,28,26,26,27,26,25,26,25,23,22,22,20,20,19,18,18,16,15,14,12,12,11,10,10,10,11,11,10,12,13,13,13,13,13,14,14,14,15,15,14,15,15,15,16,16,16,16,16,17,16,15,15,15,15,15,15,15,15,16,16,16,14,14,15,14,13,13,14,13,13,13,13,12,12,11,11,13,11,10,10,11,12,11,12,12,11,12,12,12,12,13,13,14,14,14,14,14,13,13,11,10,10,9,8,8,7,8,8,8,7,8,8,8,8,8,8,7,8,8,7,7,7,8,7,7,7,6,7,6,6,7,6,6,6,7,7,8,8,9,10,9,8,8,7,7,6,7,5,5,6,5,6,6,6,5,6,5,5,4,4,5,5,5,4,5,5,4,6,5,5,5,6,5,5,6,7,5,5,6,7,6,6,7,7,7,7,7,7,8,8,8,8,8,9,10,10,9,9,9,9,8,9,9,8,8,8,9,9,8,8,9,8,7,8,8,8,8,7,7,8,7,7,6,7,7,6,5,5,5,5,4,3,3,2,3,2,2,2,1,2,1,1,0,1,2,3,3,4,5,5,6,5,5,6,6,6,6,7,7,6,5,4,5,5,5,6,6,6,7,7,7,7,7,7,8,8,8,8,8,9,9,10,9,11,10,9,10,10,9,9,10,10,9,9,10,9,8,8,9,9,8,9,8,8,7,7,8,7,8,8,8,8,8,9,9,9,10,9,10,10,10,10,11,10,9,11,12,11,11,11,10,9,9,10,9,10,10,9,9,11,10,9,8,9,10,10,11,11,12,11,12,12,10,12,11,12,12,12,13,12,12,11,14,12,12,12,12,12,11,11,12,11,11,11,11,11,11,11,11,10,10,11,10,10,10,12,12,14,14,17,17,18,17,18,19,20,21,22,20,22,22,24,23,23,22,23,25,24,24,25,24,25,24,26,25,25,24,26,27,25,28,26,26,25,26,26,26,25,25,25,26,25,26,26,25,23,24,25],[29,29,28,28,29,29,29,29,28,27,27,27,28,28,27,28,28,28,27,28,28,27,27,28,27,26,28,27,27,28,26,27,28,28,27,28,27,27,28,27,27,26,25,25,26,24,23,23,23,21,21,22,21,20,20,21,19,20,19,19,17,16,14,13,12,12,10,11,10,10,11,10,11,10,9,8,8,6,5,6,7,6,6,7,8,6,6,5,5,6,5,6,6,6,5,7,6,6,7,7,7,7,9,8,8,8,9,9,9,8,8,8,7,7,6,7,7,9,8,10,8,7,10,10,8,9,10,10,9,11,11,10,10,11,11,11,12,11,10,10,10,10,9,9,10,8,8,8,8,6,7,8,6,5,5,4,4,5,4,3,4,4,4,4,5,5,6,6,6,7,7,8,8,9,8,9,10,10,10,11,9,10,11,11,10,11,12,11,11,11,12,11,12,13,12,12,12,12,11,12,11,10,12,12,11,11,10,10,9,9,9,10,9,9,10,10,9,9,10,10,9,8,11,9,9,9,11,9,7,10,9,9,9,9,9,9,9,9,10,11,8,11,11,11,11,11,12,12,13,13,13,12,12,13,13,12,13,13,13,13,12,13,13,13,13,12,12,12,13,12,12,12,13,11,12,12,12,11,10,11,10,8,11,8,8,10,11,9,9,11,11,10,12,12,11,12,12,12,13,13,12,13,13,13,13,13,15,16,14,15,16,18,16,17,16,16,18,16,15,16,14,15,13,13,12,12,13,13,13,12,13,12,14,12,14,15,15,15,17,17,16,17,19,20,18,20,23,22,20,25,24,24,25,25,26,26,28,26,28,27,26,27,25,24,27,26,27,27,27,27,29,28,29,28,29,28,29,28,28,29,29,29,29,29,29,28,29,28,28,28,29,28,28,27,28,27,27,28,27,27,27,26,26,27,23,25,26,23,23,22,21,22,20,19,20,17,18,18,16,17,15,15,14,17,16,16,18,18,19,20,18,20,20,21,19,20,21,20,20,20,23,21,20,22,22,22,21,22,21,20,21,22,21,22,22,22,22,22,22,20,21,20,21,19,20,19,21,20,19,20,19,19,18,17,20,18,19,18,18,18,17,20,19,18,18,19,19,18,18,17,18,19,18,18,18,18,18,19,17,17,18,16,18,16,13,15,15,15,13,14,15,15,13,14,13,13,13,12,13,13,14,13,12,12,12,11,11,10,11,10,10,9,9,10,10,10,10,11,12,12,11,11,10,10,9,10,9,9,8,7,9,9,8,6,8,7,6,5,5,6,6,5,6,7,7,6,8,7,8,8,10,8,10,11,12,11,11,12,12,12,11,13,13,13,14,14,13,14,14,14,15,15,14,17,15,16,16,15,14,16,15,13,13,13,13,13,13,11,13,14,12,12,13,12,11,11,12,10,11,10,10,10,9,9,10,9,8,7,6,6,4,5,3,3,4,4,3,3,4,3,2,1,0,1,2,3,4,4,4,5,5,5,6,7,8,8,9,9,9,9,8,10,8,9,11,11,9,12,13,11,12,13,13,15,14,13,15,14,14,15,16,14,15,14,16,16,16,15,15,15,14,15,13,14,14,12,13,14,12,11,12,12,11,11,11,12,11,13,12,13,13,14,14,14,15,16,14,15,15,15,15,15,16,14,15,16,16,15,16,15,14,14,15,13,15,16,14,14,16,16,15,15,16,16,15,18,17,16,18,18,18,16,16,17,15,18,16,17,17,17,15,17,17,16,16,16,18,17,15,18,18,18,16,17,19,16,17,18,17,16,16,16,18,16,18,16,18,19,20,20,22,21,22,22,24,24,25,24,25,25,27,25,26,25,25,27,26,27,27,26,27,27,28,27,28,26,28,28,28,28,28,28,27,28,28,28,28,27,28,28,27,28,28,27,26,26,28],[30,30,30,30,30,30,30,30,30,29,29,29,29,28,29,29,29,29,28,29,29,28,29,29,28,29,29,28,29,28,27,29,29,29,28,28,27,28,28,27,28,27,27,26,27,26,24,24,25,23,23,22,23,21,22,22,21,21,20,21,19,17,16,13,13,13,10,10,11,9,12,10,12,10,11,8,8,8,7,7,9,8,8,7,8,9,8,7,7,7,6,6,7,7,5,7,6,6,7,8,8,7,8,9,9,8,9,9,9,9,9,8,7,7,7,8,9,10,10,10,9,10,10,9,10,11,11,10,12,11,10,11,11,10,11,11,12,11,10,10,11,9,9,9,9,8,8,10,9,7,8,9,8,7,6,5,4,5,5,5,6,6,8,6,6,7,7,8,8,9,9,9,10,11,10,12,11,11,11,11,11,12,11,11,13,11,12,12,12,10,11,12,11,12,13,13,12,13,12,12,12,12,12,12,12,11,10,10,9,9,8,9,9,9,9,10,8,9,10,10,10,10,11,10,8,11,11,9,9,11,11,10,10,12,11,11,10,11,12,11,11,11,12,12,12,12,13,13,12,14,12,13,11,14,13,12,14,13,14,13,13,13,11,12,12,14,12,12,13,13,12,12,13,13,12,13,13,12,12,11,11,10,11,9,9,11,11,11,11,11,13,12,11,11,12,12,11,11,12,14,11,13,12,12,13,14,14,15,14,15,15,17,15,16,16,17,17,17,16,15,15,15,14,13,12,14,14,13,14,13,14,14,15,13,14,16,18,15,17,17,18,18,19,20,20,20,22,23,22,23,25,24,25,24,27,26,27,27,27,26,26,27,25,25,28,27,27,27,27,28,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,27,28,28,28,27,28,28,27,27,26,25,27,27,24,25,23,23,23,22,21,20,20,19,18,18,16,15,15,15,15,15,16,14,17,18,19,18,20,20,21,20,21,22,21,21,21,23,20,22,24,24,22,23,22,22,22,21,21,22,22,22,23,22,23,24,23,21,22,22,20,19,19,20,20,20,20,20,18,17,17,18,18,16,16,15,17,17,17,16,19,19,18,19,19,18,17,19,19,20,19,20,19,19,18,18,17,16,16,16,15,14,14,14,15,12,14,14,13,13,13,15,14,13,13,14,13,12,13,13,13,11,12,13,12,11,12,11,11,10,11,10,11,11,11,12,13,12,12,10,11,10,9,8,8,8,9,8,8,7,8,7,7,7,6,7,7,7,6,7,9,7,8,8,7,7,8,9,8,9,10,11,12,12,12,11,12,13,12,12,13,12,13,12,12,14,14,14,13,16,15,15,15,13,14,14,14,14,13,15,13,14,14,15,13,14,13,14,13,13,12,13,13,12,11,11,11,9,10,9,10,9,9,8,8,8,8,6,6,3,4,5,7,6,3,3,3,4,4,1,0,1,3,3,5,7,6,5,6,7,7,7,8,9,8,9,8,7,8,7,8,10,10,10,11,12,12,13,12,11,14,13,12,13,14,14,14,13,14,16,15,15,15,14,13,13,14,14,15,14,13,13,13,13,13,12,13,13,11,11,11,11,11,12,12,12,12,12,13,13,13,14,14,13,14,14,15,15,16,15,14,14,16,14,14,14,14,12,13,13,13,14,14,13,13,14,16,13,13,14,15,15,16,17,16,16,16,15,14,16,16,15,17,16,18,16,17,15,16,17,16,16,17,17,16,16,18,16,17,17,16,15,17,18,18,16,16,18,16,16,17,18,18,19,20,21,23,23,22,23,24,24,26,26,26,28,26,27,28,28,27,28,28,28,28,29,28,29,29,29,28,28,28,30,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,28,28,29,28],[29,29,28,29,29,29,29,28,29,28,28,27,28,28,28,28,28,28,27,28,28,27,27,28,27,27,28,27,27,28,25,27,28,29,27,28,26,27,27,26,27,26,25,25,26,24,21,23,24,20,22,22,22,20,20,23,19,20,21,20,18,16,15,13,13,12,11,10,11,11,12,12,12,11,10,9,9,7,7,8,8,7,7,7,8,7,9,6,7,7,7,7,7,6,7,8,7,6,9,9,9,10,10,9,10,10,10,10,10,10,10,9,8,8,9,9,10,11,11,12,11,10,12,12,11,12,12,11,12,12,12,12,12,11,12,12,12,12,11,11,10,11,11,10,10,10,9,9,9,7,8,8,7,6,7,5,6,7,5,6,6,6,8,7,5,6,8,7,8,9,9,9,10,10,11,11,12,12,12,12,12,12,12,11,12,12,11,12,13,12,11,13,13,13,12,13,13,13,13,14,13,13,14,12,12,12,11,11,11,10,11,11,11,10,10,11,10,9,10,10,9,9,10,10,8,10,10,9,8,10,11,10,10,11,11,12,11,12,11,12,11,12,13,13,13,13,13,13,13,14,12,13,14,14,14,14,15,15,14,15,14,14,13,14,13,13,13,13,14,13,13,12,13,13,13,14,13,13,12,11,11,11,11,10,9,11,12,10,11,11,13,12,12,13,13,13,12,13,14,13,13,14,14,14,15,14,16,16,16,17,18,19,18,19,19,18,20,19,18,18,16,17,15,14,14,15,15,15,15,14,14,15,15,14,16,16,15,16,17,17,19,18,18,21,20,20,22,22,21,23,25,24,24,24,26,26,27,25,26,26,25,26,24,24,26,26,26,26,26,26,28,27,28,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,27,28,28,28,27,27,27,27,27,27,27,27,26,27,25,24,25,25,22,22,23,21,21,21,20,19,18,18,19,16,16,16,16,16,16,17,18,16,20,20,21,19,20,20,21,19,20,21,20,20,21,22,21,21,21,22,22,22,21,22,21,21,21,22,21,21,21,21,22,22,23,22,21,22,21,19,20,22,20,20,20,21,19,19,19,20,20,21,20,19,20,21,20,21,21,20,20,20,19,20,19,19,20,20,20,20,21,20,19,19,17,19,19,18,18,16,16,17,18,15,17,16,18,16,17,16,16,17,15,15,16,15,15,14,13,13,12,14,12,12,13,12,11,11,12,11,12,12,12,13,14,12,12,11,12,12,12,11,9,10,9,10,10,10,7,8,7,7,6,6,7,7,6,7,8,7,8,9,8,8,8,10,9,10,12,12,11,11,13,12,13,13,14,14,14,14,15,14,16,16,16,17,17,19,19,18,18,18,17,16,17,17,17,17,15,16,15,16,14,14,16,15,13,13,14,13,13,13,11,13,12,11,11,10,9,9,10,7,9,6,7,7,8,3,5,5,5,5,5,4,4,4,3,2,1,0,1,2,4,7,7,5,6,8,8,9,9,9,9,9,8,8,9,8,9,10,10,10,12,13,13,12,13,13,16,15,14,16,16,16,16,16,16,18,17,17,19,17,16,16,16,16,16,15,15,15,15,14,14,14,14,13,13,13,12,13,13,13,14,13,14,14,14,15,15,14,16,16,16,17,17,17,17,18,17,16,17,17,16,17,15,15,15,15,16,16,17,15,16,17,17,16,15,16,16,16,18,18,18,17,17,18,16,18,16,17,18,18,19,18,18,17,17,18,18,18,18,18,18,18,19,19,19,18,19,20,18,19,20,20,18,18,18,19,18,19,18,20,21,23,21,22,22,22,22,24,24,25,24,26,25,26,25,26,25,24,26,26,26,27,26,27,27,27,26,27,26,28,28,26,28,27,27,27,27,27,27,27,26,27,28,27,27,27,26,26,25,27],[29,29,29,29,29,29,29,28,29,27,28,27,28,27,27,27,27,28,26,28,28,26,27,28,26,26,27,26,27,27,24,27,28,28,25,27,26,26,27,26,27,25,25,24,25,23,21,23,23,20,21,21,21,20,20,21,19,19,19,19,18,16,14,13,13,13,11,12,10,12,12,12,13,12,12,10,10,9,9,9,9,9,9,8,8,8,7,6,7,8,7,8,8,7,7,9,9,7,9,10,10,11,11,13,12,10,11,12,12,11,11,11,9,11,9,10,11,12,12,13,13,12,13,13,12,14,14,13,13,13,14,13,13,13,13,13,13,14,13,12,13,13,11,12,12,12,10,12,11,10,11,11,11,10,9,7,6,8,8,6,7,7,8,8,8,9,9,9,11,11,11,11,12,12,12,13,13,14,14,14,13,13,13,13,13,13,14,13,14,13,14,13,14,14,13,13,14,13,12,13,13,12,13,14,11,12,11,11,10,10,10,11,12,11,12,12,11,11,12,13,11,11,12,12,11,12,12,12,11,13,12,13,11,13,12,14,13,13,13,14,14,14,14,14,16,15,15,14,16,15,16,15,16,14,15,15,15,14,14,15,16,14,15,15,14,14,13,14,14,14,13,13,13,13,13,14,13,13,12,11,11,10,12,9,10,11,13,12,12,12,14,13,13,14,14,15,15,15,15,16,15,15,16,16,17,16,19,18,17,19,20,20,18,20,19,19,21,19,18,18,17,17,16,16,15,14,15,16,15,13,15,14,16,14,15,15,15,15,17,16,17,17,19,19,18,20,22,21,21,23,25,24,25,25,26,26,27,26,28,26,26,27,26,25,26,26,26,26,26,27,28,28,29,28,29,29,29,29,29,29,28,29,29,28,28,28,28,28,28,28,28,27,28,27,27,26,27,27,26,27,27,26,26,25,24,25,25,22,23,22,21,22,21,20,20,19,19,20,17,17,17,17,17,19,17,18,20,20,22,22,21,22,22,23,21,21,23,23,21,22,25,23,22,23,24,25,23,23,22,22,22,24,23,23,24,24,24,25,24,24,22,22,24,22,21,22,23,22,21,23,21,20,20,20,22,22,22,21,21,20,21,22,22,21,21,22,22,21,22,20,21,21,21,21,21,21,21,21,21,18,21,18,19,18,16,18,18,18,16,17,18,18,16,16,15,14,15,13,13,15,15,14,13,14,13,11,12,12,11,11,10,10,9,12,11,11,11,12,12,13,12,12,10,12,10,11,10,8,9,8,11,9,8,8,7,6,5,4,6,6,5,5,6,6,5,6,8,7,8,8,9,9,10,11,13,12,12,12,13,16,13,14,15,15,15,15,15,16,16,16,17,17,17,19,19,18,19,17,16,17,17,15,14,15,15,14,15,13,15,15,13,12,13,13,12,12,12,11,11,11,10,10,9,10,10,9,9,7,6,5,4,5,5,4,5,6,7,5,4,5,6,3,3,2,1,0,1,2,3,4,4,3,5,7,7,8,8,9,9,9,9,11,10,9,12,12,11,13,13,12,14,14,14,16,15,14,16,16,15,16,17,15,17,16,17,18,18,16,17,16,16,14,14,15,15,13,13,14,13,13,13,12,12,12,12,14,12,14,14,14,14,16,15,15,15,17,16,16,16,16,17,17,17,16,16,18,16,17,17,16,16,14,15,15,15,18,16,15,18,18,15,17,17,18,17,20,19,20,20,19,20,18,18,19,18,20,18,19,18,18,17,19,19,17,18,19,20,18,18,20,20,20,19,19,21,18,20,20,19,18,19,19,20,18,19,18,19,21,23,23,23,23,23,23,24,26,25,25,27,26,27,26,27,26,26,27,27,27,28,27,27,27,28,27,28,27,28,29,28,29,28,28,28,29,28,28,29,28,29,28,28,28,29,27,26,27,28],[29,30,29,30,30,30,30,30,30,29,29,29,29,28,29,29,29,29,29,29,28,27,28,28,27,28,28,28,28,28,27,28,28,28,27,28,27,27,27,27,27,26,26,25,26,24,23,24,24,22,23,23,22,21,21,22,20,21,20,20,18,16,14,13,12,11,10,10,11,10,12,11,12,11,10,10,8,8,9,9,9,9,7,8,8,7,6,6,6,6,5,6,8,6,7,8,8,8,8,10,10,9,10,11,11,10,11,12,11,11,10,10,9,11,10,10,11,12,12,13,11,11,13,12,12,13,13,13,12,12,14,12,13,13,12,14,12,13,12,12,11,12,11,12,12,9,10,12,9,9,11,11,8,9,9,8,7,8,8,8,8,8,8,8,8,8,9,9,11,11,11,11,13,11,12,13,12,14,13,13,14,13,13,13,14,13,14,14,14,13,14,13,13,14,13,14,13,13,13,13,13,12,13,12,11,11,9,10,9,8,10,10,9,10,12,11,9,10,12,11,10,12,12,11,10,12,12,12,12,11,11,12,11,12,12,13,12,12,14,14,12,14,15,13,13,14,15,14,13,15,15,13,14,14,14,13,14,15,14,15,13,13,13,13,12,14,13,12,13,13,12,13,13,13,13,12,13,12,11,10,11,9,10,7,8,12,11,10,12,12,13,12,13,13,13,14,12,12,12,14,13,14,14,13,14,16,15,14,15,16,15,16,17,17,17,17,16,16,17,16,15,16,15,14,15,14,15,15,14,14,14,14,16,14,13,15,16,16,18,17,19,18,19,20,20,19,21,21,21,22,24,24,24,25,26,26,26,25,27,26,27,28,25,24,27,27,27,27,27,28,29,28,28,28,29,29,29,29,29,29,29,29,29,29,28,29,29,29,29,28,29,29,29,28,28,28,27,28,28,28,29,28,28,27,25,27,26,24,25,24,23,23,23,23,22,20,19,20,17,16,16,15,16,15,16,15,15,17,17,19,18,18,19,20,19,19,21,20,20,21,23,20,21,23,23,23,22,22,22,22,21,22,21,21,22,22,22,23,22,21,21,19,22,20,19,18,19,19,20,18,19,19,16,17,17,19,16,15,16,17,18,16,18,20,19,18,19,20,19,18,19,20,19,20,19,21,19,20,19,18,18,17,17,16,15,15,15,17,14,14,15,16,15,14,16,15,14,14,14,14,13,14,14,13,12,11,11,12,11,10,10,9,9,9,9,9,10,10,11,12,11,12,10,10,9,9,8,8,8,8,10,9,8,7,8,7,6,4,5,7,6,4,7,6,6,6,6,7,6,8,7,9,9,10,10,9,11,13,11,13,13,13,13,14,13,13,13,13,14,14,14,14,15,15,15,15,14,15,15,15,15,14,14,15,14,15,15,13,15,14,13,13,14,12,12,10,11,10,9,9,10,9,9,9,8,8,8,7,7,7,4,7,4,4,7,7,8,6,5,6,7,6,4,4,3,1,0,1,3,4,4,4,6,7,7,8,9,8,8,8,8,8,7,8,9,9,10,10,12,13,13,13,12,15,13,13,13,14,15,13,13,13,15,14,14,15,14,14,14,13,14,14,13,14,13,12,13,13,12,11,13,11,10,10,11,10,12,12,12,12,12,14,14,13,14,14,14,14,15,14,14,15,14,14,14,15,14,15,14,13,13,13,12,13,14,14,14,14,15,14,14,14,14,14,13,15,16,16,15,16,16,14,15,15,15,16,17,17,16,16,15,16,16,15,16,17,16,17,16,17,16,17,17,17,18,18,18,17,16,17,18,17,16,18,19,18,19,20,21,22,24,22,23,23,24,26,26,25,28,27,27,27,27,27,28,29,28,28,28,27,29,29,29,29,29,28,29,29,29,29,29,29,29,29,28,29,29,29,29,29,28,29,29,28,28,28,28],[29,29,28,29,29,30,29,29,29,28,28,28,28,28,28,27,28,28,27,27,27,26,26,27,26,27,27,26,27,27,25,27,28,28,26,27,26,26,26,25,27,25,25,25,25,24,23,24,23,22,22,22,21,21,21,21,19,20,20,18,17,15,13,11,12,11,10,9,10,11,10,12,11,10,11,9,9,9,8,7,8,8,7,7,7,8,7,6,5,6,6,6,7,6,6,9,8,7,8,8,10,9,9,10,11,9,10,11,11,10,10,9,9,10,10,10,10,11,11,12,11,12,12,12,11,13,13,11,11,11,13,11,12,12,11,13,11,11,11,10,10,11,10,10,11,10,9,10,10,9,9,10,9,9,8,7,7,7,7,7,8,7,8,8,8,10,9,9,11,11,10,12,13,11,11,12,12,12,11,12,11,13,11,11,13,12,11,11,12,11,12,12,12,12,11,12,11,12,12,12,12,10,11,11,10,10,9,9,9,9,9,10,9,8,10,10,9,9,10,11,10,10,10,13,10,10,11,11,11,10,11,12,10,12,11,12,12,11,12,12,12,12,13,13,14,13,13,13,14,14,12,13,14,12,12,13,14,13,13,13,13,13,14,13,12,13,13,12,14,12,11,11,13,12,12,13,12,11,11,10,10,10,10,9,9,10,12,11,11,11,12,12,12,12,12,13,13,13,13,14,13,13,13,15,15,14,17,16,16,16,18,18,17,18,18,17,19,18,18,19,17,16,15,14,14,13,14,14,14,13,12,14,13,13,14,14,14,14,17,15,16,17,18,18,17,18,20,19,19,22,23,21,24,24,25,25,27,26,26,27,26,27,26,25,27,26,27,28,27,27,28,28,29,28,29,28,29,28,28,28,28,28,28,28,28,28,29,28,29,28,29,28,28,28,28,27,27,28,28,28,28,27,27,26,25,26,26,23,24,23,22,22,21,20,19,18,19,18,18,16,17,15,17,18,17,18,18,19,21,19,20,20,20,20,20,21,22,20,20,20,21,21,20,23,23,21,22,22,22,20,21,21,22,21,22,22,21,21,22,22,21,20,20,19,20,20,21,21,20,21,20,18,19,18,21,19,21,18,19,18,17,20,18,18,20,19,19,19,19,18,18,20,19,20,19,19,19,18,19,17,19,17,17,17,15,15,15,16,14,16,15,16,15,16,14,14,14,13,13,13,13,11,12,12,11,10,12,10,11,10,9,9,8,9,9,9,11,10,11,12,11,10,10,10,11,9,9,7,8,8,8,8,7,7,6,6,6,3,6,6,5,5,6,5,5,6,8,6,6,8,8,7,9,10,10,10,11,12,12,12,11,12,12,13,14,13,13,15,15,15,16,15,16,17,16,17,18,15,15,16,15,14,15,13,14,14,13,12,14,12,11,11,11,10,10,11,11,9,10,9,9,9,9,9,9,8,6,5,5,5,4,5,4,4,5,6,6,5,5,6,6,5,4,5,3,2,1,0,1,3,2,3,3,4,6,7,7,7,7,7,7,9,9,8,9,10,11,11,10,10,11,11,12,14,13,13,13,14,14,14,14,15,16,13,16,16,15,14,14,13,13,13,12,13,12,11,11,12,11,11,11,10,10,10,11,12,11,12,11,13,12,14,13,13,13,14,13,14,15,16,14,15,16,13,15,15,15,14,16,14,12,13,14,13,14,15,13,13,16,15,14,14,17,16,16,18,17,18,17,16,17,14,16,16,16,17,15,17,16,16,14,15,16,17,16,16,17,16,15,17,18,18,16,18,19,16,17,19,19,16,17,17,19,17,17,17,18,20,22,21,21,21,21,22,21,23,24,23,26,24,26,24,26,25,26,27,25,26,27,26,27,27,27,26,27,26,27,27,26,28,27,27,27,27,27,28,27,27,28,27,27,27,27,27,26,26,27],[29,30,29,30,29,30,30,30,29,29,28,28,29,28,28,28,29,28,28,29,28,27,29,29,27,28,29,27,28,28,26,28,28,28,27,28,26,27,27,26,27,25,25,25,25,24,24,24,23,21,22,22,21,20,21,22,22,21,20,21,18,15,13,12,10,10,10,9,10,8,11,10,11,10,10,8,9,9,8,8,9,8,7,7,8,8,6,6,6,7,7,7,7,7,8,8,9,9,8,9,10,10,11,12,12,11,12,14,12,11,10,11,10,11,10,10,12,12,13,12,13,12,13,13,12,14,12,13,12,12,12,13,13,11,12,13,12,12,11,11,12,11,11,12,11,10,10,11,10,9,10,10,10,10,8,8,8,8,9,8,9,8,9,9,10,9,9,10,12,12,11,12,14,13,12,13,12,12,13,13,13,14,11,12,13,12,12,12,12,11,13,12,13,13,13,13,13,12,12,12,12,11,12,12,11,10,10,9,9,7,9,10,10,9,10,11,10,10,11,11,10,11,11,11,10,11,11,11,11,11,11,12,11,12,11,12,13,12,12,12,13,13,12,14,14,13,12,14,13,13,13,13,12,12,12,13,13,13,13,13,13,14,13,12,13,13,12,12,14,13,11,13,14,12,12,14,12,12,11,11,11,10,13,9,9,12,12,10,11,11,13,13,12,12,13,13,12,12,13,15,13,12,13,14,14,13,15,14,14,15,17,18,15,16,17,17,18,16,16,15,15,14,14,13,13,13,13,12,12,12,13,12,12,12,13,15,14,15,16,18,15,18,18,18,17,18,19,19,19,22,23,21,24,24,25,26,27,25,27,26,25,26,26,24,26,26,26,27,26,26,28,28,28,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,27,28,28,27,27,27,27,27,27,27,26,27,25,24,26,24,22,23,22,22,22,20,21,19,17,18,17,17,16,14,15,15,15,15,15,15,16,18,18,17,18,18,19,18,19,20,19,18,18,20,19,20,22,22,22,21,21,20,20,20,21,20,20,21,21,22,22,22,22,20,20,21,19,19,18,19,18,18,18,17,17,16,18,17,18,17,16,16,17,17,18,17,18,18,17,17,18,19,17,18,19,19,19,19,20,20,19,19,17,17,16,16,15,15,15,14,14,14,14,15,15,13,13,13,13,14,13,13,13,13,12,13,13,11,11,11,10,11,10,10,9,9,9,9,9,11,10,11,12,11,12,10,10,8,10,8,8,7,7,8,8,7,7,5,5,4,4,5,6,3,4,6,5,4,6,6,6,7,7,7,7,7,9,10,10,11,12,11,14,12,12,13,13,13,13,13,13,13,14,14,14,15,15,15,15,14,14,14,14,14,13,13,12,13,14,14,13,13,12,12,13,12,11,12,11,11,10,11,8,8,8,9,8,7,7,7,5,5,4,4,5,4,5,5,7,7,7,6,7,7,6,5,4,4,3,2,1,0,1,1,1,2,3,4,5,6,7,6,6,6,8,7,7,9,9,9,10,11,12,11,11,12,14,13,12,12,12,13,12,12,12,14,13,14,14,13,14,12,13,14,14,13,13,12,12,11,12,12,10,10,10,9,9,9,10,10,11,10,11,12,13,13,12,12,12,13,13,13,13,13,14,14,14,14,14,13,15,13,12,12,13,13,12,13,14,13,13,14,13,13,13,15,14,13,15,15,15,15,14,15,14,14,14,15,16,16,16,15,16,15,14,14,15,15,16,16,14,13,15,15,17,16,16,17,15,16,17,16,16,17,16,17,17,18,17,18,19,22,21,22,21,23,23,23,24,25,24,26,25,28,26,26,25,27,27,27,27,28,28,28,28,28,27,27,27,28,28,28,29,28,28,28,29,28,28,28,28,28,28,27,28,27,28,28,27,27],[29,29,28,29,29,29,29,28,29,28,27,28,28,27,28,28,28,28,28,28,27,26,27,28,25,27,28,26,28,27,25,27,28,28,27,28,26,27,27,26,27,25,25,25,26,24,22,23,23,22,22,22,21,20,21,22,19,19,21,21,18,16,13,12,11,10,10,10,9,10,11,12,14,12,12,9,9,11,9,8,10,9,8,8,10,9,7,6,7,9,8,8,10,10,9,10,12,12,11,12,12,12,12,13,12,12,13,16,13,13,13,13,12,12,12,13,13,14,15,16,16,14,15,16,13,14,15,15,13,15,14,14,15,14,15,15,14,14,13,12,14,13,13,14,14,13,12,13,13,13,12,13,13,12,11,11,10,10,10,10,10,10,11,10,12,11,11,12,13,13,12,14,16,13,13,14,14,15,15,15,14,15,13,14,14,15,14,14,14,14,13,14,15,13,13,14,14,13,13,13,11,12,13,12,11,11,10,11,9,10,11,12,13,11,12,13,12,12,13,14,11,13,13,13,12,12,14,13,12,13,12,12,12,13,14,14,14,13,15,15,13,14,15,16,15,15,15,15,15,16,15,15,16,15,15,15,15,15,15,16,16,15,15,15,15,15,14,15,15,15,13,14,15,14,13,13,13,13,12,13,12,11,12,9,11,13,14,12,13,14,13,13,14,14,15,14,15,15,14,14,14,14,14,16,15,14,18,17,17,18,19,19,19,20,20,19,20,19,18,18,16,16,15,14,14,13,14,13,13,14,14,13,12,13,13,14,14,15,16,17,17,18,19,19,19,19,21,20,19,22,24,21,23,25,25,25,27,25,27,27,26,27,26,24,26,26,26,26,27,26,28,28,29,27,28,28,28,28,28,28,28,28,28,28,27,28,28,28,27,27,28,28,28,28,27,27,27,28,27,27,27,27,28,26,25,26,25,22,22,21,21,22,20,21,20,18,18,17,17,18,18,15,15,17,17,18,18,19,20,20,19,19,19,21,19,20,21,21,19,20,22,22,21,22,23,22,22,22,22,20,21,22,21,22,23,22,23,23,21,23,22,21,21,18,19,18,21,21,18,19,20,19,17,19,20,20,20,20,19,21,20,21,21,21,21,21,21,21,21,19,21,21,21,20,20,21,20,21,21,19,22,19,19,18,17,17,18,18,17,18,19,18,16,17,16,16,16,14,15,14,15,15,14,14,14,12,13,13,14,11,11,11,9,9,11,10,12,11,12,12,11,12,10,11,10,11,11,9,9,8,9,9,9,7,6,5,6,5,4,5,6,5,6,6,6,6,8,9,7,8,9,8,9,11,11,11,13,14,14,13,14,15,14,14,15,15,15,15,16,17,17,17,18,19,18,18,18,18,17,16,16,16,15,14,15,15,15,14,15,14,14,13,12,13,12,12,12,11,11,10,10,9,9,9,8,7,7,5,6,5,4,6,6,5,6,8,9,7,7,9,9,8,8,7,6,4,3,2,1,0,1,1,2,3,4,5,6,7,7,7,8,9,8,8,9,11,10,10,12,12,14,13,13,15,15,14,14,15,15,15,16,16,15,15,16,16,17,15,14,15,14,14,14,14,14,14,12,14,14,11,12,13,10,9,10,10,13,13,12,14,13,15,14,14,14,16,15,16,15,16,15,16,16,15,15,16,17,15,15,16,14,14,16,16,14,15,15,15,16,16,15,15,16,15,15,17,17,17,17,17,17,15,16,16,16,17,16,18,16,17,15,16,17,17,17,18,18,18,17,19,20,19,18,20,20,18,19,21,18,18,20,19,20,18,19,18,18,21,21,22,22,23,23,24,24,25,25,26,27,26,27,26,27,26,26,27,26,27,28,26,28,27,28,27,28,27,28,28,27,29,28,28,28,28,28,28,28,27,28,28,27,28,28,26,27,28,27],[30,30,29,30,29,30,30,29,29,29,29,28,29,28,28,28,29,29,28,29,28,28,28,29,27,28,28,27,28,28,26,28,28,28,27,28,27,27,27,27,27,26,26,26,26,25,24,24,24,21,23,23,22,20,21,23,20,20,21,21,20,17,14,13,12,11,10,10,9,10,10,11,12,11,9,9,7,9,7,7,10,7,6,7,8,6,6,6,7,7,7,8,8,7,8,10,9,9,9,11,13,10,13,14,14,13,14,15,14,13,13,13,11,14,12,13,14,14,14,14,15,13,14,15,14,14,14,15,14,13,15,14,13,13,14,14,14,14,13,13,12,13,13,13,12,11,12,12,11,10,13,12,11,11,10,9,10,10,9,8,8,8,10,10,9,10,11,12,12,12,13,13,14,14,14,13,13,15,14,14,13,12,13,14,13,13,13,14,13,13,13,12,13,14,13,13,14,13,13,13,13,12,13,13,12,12,11,11,10,10,10,11,11,10,11,12,12,10,11,13,12,12,12,13,11,12,13,11,11,13,13,12,12,12,13,14,14,14,14,15,14,13,15,15,13,14,14,14,13,15,14,12,14,15,15,14,15,14,14,14,13,12,12,14,14,12,13,13,13,12,12,13,13,12,12,14,13,11,13,12,11,10,13,10,10,11,14,11,11,12,14,11,12,13,13,14,12,13,14,14,13,14,14,13,15,15,16,15,16,17,19,19,17,18,18,18,18,19,17,17,16,16,15,14,13,14,15,14,13,14,14,12,13,14,14,16,16,16,17,18,17,18,18,19,18,18,21,21,20,21,24,24,24,24,27,26,27,25,27,26,25,27,25,25,27,27,27,26,26,27,28,28,29,28,29,29,28,28,29,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,28,27,27,28,27,28,28,27,28,26,25,27,26,23,24,22,23,23,21,21,21,18,19,18,17,16,16,14,16,16,16,17,17,18,19,19,18,19,19,20,19,20,21,20,19,21,22,20,22,23,23,22,22,22,22,21,20,21,20,21,21,23,22,23,22,23,22,21,21,20,19,19,21,20,19,19,19,18,17,18,20,19,19,18,17,18,19,20,20,20,20,19,18,19,20,19,20,20,20,21,20,21,20,19,19,18,19,18,18,16,16,15,16,16,14,16,16,16,13,16,15,14,15,15,14,13,13,13,12,11,12,12,11,12,12,12,9,10,9,10,11,11,12,11,13,13,11,11,10,10,11,11,10,8,8,9,8,9,8,8,7,6,6,5,5,6,5,6,6,7,5,5,8,7,6,7,7,8,8,9,10,11,10,13,13,11,11,13,13,12,13,14,13,14,14,15,15,15,17,17,17,16,16,16,16,15,14,15,14,12,15,14,13,13,11,12,13,11,11,12,13,12,12,11,11,10,9,9,9,8,7,7,7,5,6,6,4,5,4,5,5,6,8,6,6,7,7,6,6,6,5,4,3,2,2,1,0,1,2,3,4,5,6,6,7,7,7,7,7,7,9,10,9,10,11,11,11,12,12,12,13,12,13,14,15,14,14,15,16,15,16,16,16,15,13,15,15,14,13,12,13,13,11,12,12,12,11,11,10,9,10,9,11,12,13,12,12,12,12,13,13,13,14,15,15,15,15,16,16,15,15,15,15,15,16,14,14,13,14,14,14,16,14,13,15,15,14,14,15,15,15,17,17,16,16,15,17,15,15,16,15,17,17,16,16,17,16,17,16,17,18,17,17,16,17,18,19,19,17,18,18,17,18,20,17,18,19,18,18,18,18,18,20,20,23,21,22,22,23,24,25,26,26,25,28,27,27,27,28,27,28,28,28,28,29,27,28,28,29,28,29,27,29,29,28,30,29,29,29,29,29,29,29,29,29,29,28,28,28,27,28,28,28],[30,30,30,30,30,30,30,30,30,30,29,29,30,29,29,29,29,29,28,29,28,27,29,29,27,29,29,27,29,28,27,28,29,29,28,28,27,28,28,27,28,27,26,26,26,26,25,25,25,24,23,24,24,23,22,24,23,22,21,22,19,17,15,13,11,11,11,9,9,9,11,11,12,12,11,8,8,9,8,8,9,8,6,7,9,7,6,5,6,6,6,7,8,8,8,9,11,9,10,12,13,11,13,14,14,13,14,15,14,14,12,13,11,14,12,12,13,13,14,14,14,13,14,14,14,15,14,15,15,13,14,14,15,13,14,14,14,15,13,13,14,14,13,13,14,12,12,13,12,11,12,13,12,12,10,10,9,10,11,9,11,8,11,10,11,11,11,10,13,13,13,12,15,14,14,15,14,15,14,15,14,14,14,14,16,14,15,16,15,14,16,14,15,15,15,15,14,15,13,14,14,13,13,13,11,11,9,11,9,9,9,11,10,10,13,13,10,12,13,13,12,13,13,14,13,13,14,13,12,13,13,12,12,13,13,14,14,13,14,15,14,14,15,15,14,15,15,16,14,15,16,15,14,14,15,14,15,15,14,15,14,15,14,14,15,14,14,14,15,13,13,14,14,13,12,14,13,12,11,12,11,10,12,9,10,13,12,11,12,14,15,13,13,14,14,15,13,13,14,16,14,14,15,14,15,16,16,15,16,17,17,18,16,17,16,16,17,16,16,17,15,16,15,14,13,14,14,14,13,13,14,13,13,12,14,16,15,16,17,18,18,19,18,21,19,20,21,21,21,23,23,24,25,25,26,26,27,26,28,26,26,27,25,24,27,27,26,27,27,27,29,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28,28,28,28,27,28,26,25,26,25,23,24,23,23,22,21,22,22,18,19,18,17,15,15,15,17,16,16,15,16,17,18,17,18,18,18,19,19,19,20,19,18,19,22,20,20,21,23,23,22,21,21,21,19,21,19,20,22,21,22,23,22,21,20,19,20,19,17,18,19,18,17,18,17,16,16,16,18,17,18,17,16,17,18,19,17,17,18,19,18,18,17,18,18,19,18,20,19,19,19,19,19,17,18,17,17,17,17,15,17,17,16,15,16,17,15,15,16,15,15,14,14,14,13,14,15,13,13,13,12,12,12,10,8,8,9,9,8,9,11,10,11,11,12,12,10,9,9,10,8,8,7,7,8,8,8,7,7,7,6,3,7,7,4,6,9,7,6,6,6,7,5,7,9,7,9,10,9,9,10,13,11,12,13,14,14,14,13,13,14,15,14,15,15,15,17,17,16,16,15,16,16,15,14,16,15,15,13,15,15,13,14,13,12,12,13,12,11,10,10,10,9,9,9,8,8,7,8,6,6,4,6,4,3,4,4,4,5,7,9,8,6,7,8,7,6,5,6,5,5,3,4,2,1,0,1,2,4,5,6,6,7,6,5,7,7,7,8,9,9,10,11,12,12,12,12,14,14,13,13,15,14,14,14,15,16,16,15,16,17,15,14,14,15,14,12,12,12,12,11,12,11,11,11,11,10,9,9,10,12,12,12,12,12,13,13,12,12,14,15,13,15,13,15,16,15,14,16,15,15,14,14,13,13,13,12,13,13,15,13,14,14,14,13,14,14,15,15,17,16,15,15,15,16,15,15,15,15,16,17,17,15,17,16,17,16,15,16,15,16,16,16,16,17,17,16,17,17,18,18,18,17,17,18,17,17,18,18,18,18,19,21,21,23,21,23,24,25,26,27,25,28,27,27,28,28,28,28,29,28,28,29,28,29,29,29,29,29,29,30,29,29,30,29,29,29,28,29,29,29,29,29,29,29,29,29,28,28,28,28],[30,30,30,30,30,30,30,30,30,30,29,29,30,29,29,29,30,29,29,30,29,28,29,29,27,29,29,28,29,29,27,29,29,29,28,29,27,28,28,28,28,27,26,27,27,25,23,24,24,23,21,22,22,21,21,22,22,21,21,22,20,17,15,14,12,11,11,10,10,12,13,14,16,16,13,12,11,13,11,10,13,12,10,9,12,10,9,8,8,10,9,9,10,12,10,11,14,13,11,15,16,13,15,17,16,14,18,19,17,17,15,16,14,16,16,15,17,17,19,18,19,16,19,18,16,18,18,19,17,18,18,18,17,17,17,18,17,17,15,16,17,15,15,16,16,15,15,16,16,14,15,17,15,16,13,14,12,12,15,11,13,14,13,14,15,16,16,14,17,17,15,16,19,17,16,17,17,18,17,19,17,17,17,17,17,18,17,16,17,17,17,16,17,18,16,17,17,16,16,17,15,15,16,15,13,14,13,13,11,12,12,13,13,11,14,16,15,16,15,16,14,15,15,17,17,16,16,17,16,16,16,17,16,17,16,17,17,15,17,17,17,18,19,19,18,19,18,19,18,20,19,18,19,18,19,18,18,17,17,19,19,18,18,18,17,17,17,17,17,17,17,16,17,16,16,17,17,15,15,14,15,13,14,14,13,16,15,16,16,17,19,17,17,18,19,19,18,18,19,20,18,18,18,19,19,18,20,19,20,20,21,22,20,21,21,20,22,21,20,20,19,19,19,17,16,17,17,16,16,15,16,13,14,15,14,16,17,17,16,19,18,19,20,21,19,21,23,22,21,23,25,23,24,26,26,27,28,26,28,27,27,28,26,25,27,28,27,27,28,28,29,28,29,28,29,29,29,28,29,29,29,29,29,29,28,29,29,29,29,28,29,29,29,29,28,28,28,29,28,28,28,27,28,26,25,26,25,24,23,23,22,23,21,21,22,19,20,20,18,18,18,16,18,19,19,20,19,20,22,21,21,22,21,21,21,21,21,22,21,20,22,22,21,23,23,23,23,22,22,22,23,22,22,22,24,22,23,25,22,24,23,22,22,21,20,20,21,21,20,21,20,20,20,19,23,22,22,22,21,23,22,23,22,22,23,23,23,22,22,21,22,22,21,21,21,21,22,22,22,20,23,21,22,22,21,20,22,21,18,20,21,21,17,20,20,18,19,19,18,18,17,18,17,17,18,16,15,13,13,13,13,13,12,13,13,13,15,12,13,16,14,15,13,13,11,12,12,10,10,9,10,9,10,9,8,7,7,5,7,8,5,6,8,9,7,8,10,9,9,11,10,10,11,13,12,13,14,15,15,17,17,18,18,19,17,18,18,19,18,19,21,20,20,22,21,20,20,21,20,19,19,19,18,18,18,18,19,18,18,18,17,15,15,16,13,14,12,12,13,11,11,10,8,9,9,7,8,5,7,7,6,7,6,6,7,9,12,9,8,12,12,10,8,6,7,5,4,3,3,4,2,1,0,2,3,5,6,7,8,8,8,11,11,9,10,14,13,14,13,14,13,15,16,18,18,18,16,18,19,18,20,19,20,19,19,20,20,18,17,19,19,17,18,18,18,16,14,17,15,12,13,14,10,12,11,14,15,15,15,14,16,17,15,17,16,18,19,17,18,20,19,18,20,18,19,19,19,20,17,16,17,16,17,16,17,18,17,17,18,18,17,17,18,18,19,20,18,19,19,18,20,17,18,19,19,20,20,21,19,20,18,21,19,19,20,21,22,21,20,20,22,21,20,20,22,21,21,22,21,20,21,21,22,21,20,20,20,21,23,23,23,23,24,25,26,26,27,26,28,28,28,27,27,28,28,29,29,28,29,29,29,29,29,28,30,28,29,30,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28],[30,30,30,30,30,30,30,30,30,30,29,29,30,29,29,29,29,29,29,29,29,28,29,29,28,28,29,28,29,28,27,29,29,29,28,29,27,28,28,27,28,26,26,26,27,26,25,24,25,24,23,24,23,23,22,23,22,22,21,22,21,18,16,16,13,14,13,11,10,10,14,15,17,18,16,11,11,15,12,12,15,13,12,11,15,12,12,11,11,14,11,14,16,15,16,17,18,17,18,19,20,20,22,22,22,21,22,22,22,21,20,22,19,20,19,21,21,21,22,23,23,21,23,23,22,22,24,23,20,23,22,23,21,21,22,21,23,22,21,22,22,20,21,22,21,20,20,20,19,18,21,21,18,19,18,17,17,18,19,16,15,12,16,18,16,17,19,20,20,20,21,20,21,21,21,20,21,22,22,23,21,21,22,22,20,22,22,22,20,20,21,20,22,21,21,21,21,20,20,21,20,19,20,19,19,18,16,17,15,16,17,18,20,17,20,19,20,19,19,20,18,20,20,19,19,20,21,18,18,21,20,19,20,19,20,21,20,20,22,22,20,22,22,23,21,23,23,22,22,23,23,21,23,22,22,21,22,22,22,23,22,21,21,22,21,20,21,21,20,20,19,21,19,20,18,21,19,20,20,18,19,18,19,16,18,19,20,16,19,19,20,19,20,21,19,21,20,20,21,20,21,20,21,22,21,22,23,23,23,23,25,26,24,25,25,24,25,24,23,23,22,22,21,19,19,19,20,19,18,19,20,15,16,18,16,16,18,19,17,21,20,20,20,22,21,22,22,23,22,24,26,25,25,26,28,27,28,26,28,27,26,28,26,26,28,28,28,28,28,28,30,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,28,29,28,28,28,27,25,27,26,24,25,24,23,24,22,23,23,20,22,20,20,20,21,19,21,21,23,23,23,24,26,24,24,25,24,24,25,25,25,25,23,24,26,26,24,25,26,26,27,26,26,25,26,26,25,25,26,25,26,26,25,25,26,24,24,25,24,24,25,24,24,24,25,24,23,23,25,25,25,24,24,25,26,26,25,25,26,26,25,25,25,24,24,26,24,25,25,26,25,25,25,24,26,25,24,24,24,23,25,24,21,23,24,24,22,24,22,21,23,21,21,21,21,20,20,21,20,18,19,18,18,18,17,18,13,17,17,15,16,16,17,18,17,17,16,18,15,17,16,12,15,13,14,14,15,10,12,11,10,8,10,10,8,9,10,10,9,10,13,11,10,13,15,14,12,17,18,16,18,19,18,19,20,20,20,20,20,21,20,22,22,22,23,22,23,24,24,24,23,23,23,22,22,22,22,19,21,21,21,19,20,20,19,18,19,19,18,16,17,17,18,15,16,14,13,14,12,10,10,7,8,8,7,9,9,10,10,12,14,12,13,13,14,14,13,11,10,9,8,6,7,5,4,4,1,0,2,4,6,7,10,9,10,10,11,11,12,13,15,16,16,17,17,17,18,19,19,19,20,20,21,21,21,23,23,22,23,21,23,21,19,20,20,20,19,19,19,19,16,18,19,17,17,16,14,13,13,13,17,16,17,16,18,19,18,20,18,20,21,19,20,21,20,21,22,20,21,22,20,21,21,19,21,19,20,18,20,21,19,20,20,20,20,20,20,20,21,24,22,21,22,21,22,21,20,21,20,22,22,22,22,22,21,23,21,23,24,23,24,24,22,23,24,26,23,24,25,23,24,25,24,23,24,25,25,24,23,23,24,25,26,25,25,26,26,27,28,28,28,27,29,28,29,28,28,28,29,30,29,29,30,29,30,30,30,29,30,29,30,30,29,30,29,30,29,30,29,30,30,29,30,30,29,30,29,30,29,29,29],[30,30,30,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,29,30,29,28,29,29,28,29,29,29,28,29,28,28,28,28,28,27,26,26,26,26,25,25,25,24,24,25,24,23,23,24,24,23,23,24,22,20,19,17,15,14,12,13,11,14,14,16,16,20,17,15,14,18,15,13,17,17,12,14,17,16,15,12,18,18,16,18,19,17,19,19,20,20,19,22,23,22,24,25,24,22,24,24,23,22,22,22,21,23,22,22,22,22,23,24,23,22,24,25,23,23,25,25,23,24,25,24,23,24,23,23,24,23,22,23,24,23,22,24,23,23,23,23,22,21,22,21,21,23,20,20,20,20,20,18,18,17,18,20,18,19,20,21,21,22,21,22,22,22,22,22,22,23,24,25,23,23,24,24,24,24,25,24,23,24,25,22,23,25,23,23,24,23,23,24,23,22,23,23,23,23,21,22,19,18,20,22,21,21,23,23,23,22,23,22,22,22,22,22,22,21,21,21,21,21,21,20,20,20,19,22,22,21,22,23,21,21,24,23,22,22,24,23,21,24,24,22,23,24,24,23,24,23,24,24,23,23,22,24,23,23,23,24,23,23,22,23,24,22,22,24,24,23,23,22,23,20,20,17,20,22,20,18,21,22,23,22,22,23,22,22,21,22,22,22,22,21,22,22,22,21,23,22,22,24,25,25,24,25,25,24,25,25,23,23,22,22,22,20,21,20,21,20,18,19,20,16,15,19,18,18,19,21,21,22,23,21,23,24,23,23,24,24,22,25,27,26,27,27,28,27,29,28,29,28,27,29,28,27,29,29,29,29,28,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,30,29,29,29,28,29,28,28,28,27,28,26,25,26,26,24,24,24,23,23,22,23,22,21,22,22,21,21,21,21,22,22,23,24,22,25,24,25,24,24,25,25,25,26,25,25,25,24,27,26,25,26,27,26,28,27,26,25,25,26,25,26,26,26,27,27,26,26,26,24,26,25,23,24,26,24,24,24,25,24,24,24,24,25,24,24,24,26,26,26,25,25,26,26,25,26,25,25,25,26,25,25,25,25,25,25,26,25,26,25,25,24,23,23,25,25,22,24,25,25,22,24,24,23,24,24,23,23,23,24,22,22,22,22,22,19,21,19,17,17,16,19,18,20,18,20,22,22,21,22,21,19,18,21,19,16,17,17,19,18,18,15,16,15,13,11,15,16,11,12,15,13,10,13,17,13,11,17,18,13,15,19,19,18,18,20,18,20,22,22,22,21,22,23,22,23,23,23,23,23,25,24,25,24,23,24,24,23,23,24,24,22,23,24,23,22,23,23,23,22,23,23,21,17,17,19,21,18,17,15,13,14,12,10,11,8,9,9,9,9,11,12,12,17,18,14,14,16,17,16,17,13,12,13,10,9,9,8,6,6,4,2,0,2,4,5,7,10,10,12,11,12,13,17,18,18,16,19,19,19,20,22,23,21,22,23,23,23,22,24,25,23,23,24,25,23,22,24,24,23,23,22,23,23,21,21,21,19,18,19,15,15,12,14,15,18,15,18,21,20,21,22,21,21,24,22,23,24,24,24,24,22,25,25,23,23,22,22,21,21,22,19,23,23,21,20,22,22,20,21,22,22,23,23,22,23,23,24,23,22,23,23,23,24,23,25,23,24,21,24,24,23,24,24,25,23,24,25,24,25,25,25,24,25,25,25,24,25,26,24,25,25,25,24,25,25,27,27,27,27,28,28,28,28,29,28,30,30,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29],[30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,29,30,29,28,29,29,28,29,29,28,29,29,27,29,29,29,28,29,28,28,28,28,28,27,26,26,27,25,24,24,24,23,23,22,23,23,21,22,22,22,21,21,19,17,15,14,12,11,10,10,10,12,14,15,16,17,15,14,13,16,13,13,16,15,13,13,16,14,13,11,13,16,14,15,16,15,17,18,19,19,19,21,22,21,22,23,22,22,23,24,23,22,22,22,21,22,21,22,23,24,24,24,24,22,23,24,22,23,24,24,22,23,24,22,22,23,23,23,23,22,21,22,22,21,22,24,21,21,22,22,20,19,21,19,17,18,19,16,18,19,17,17,17,15,18,18,16,18,19,20,18,19,22,20,20,22,23,22,22,24,24,24,22,22,23,23,23,23,24,23,22,23,23,20,21,23,21,22,23,20,20,22,20,19,22,21,22,20,19,19,17,17,19,20,19,19,21,20,20,21,20,19,18,20,20,20,19,21,19,18,19,21,19,17,20,18,19,20,22,22,23,23,22,21,24,22,22,23,24,22,22,24,24,22,23,23,22,22,22,22,23,23,22,21,22,23,21,22,21,22,21,22,21,21,21,21,21,21,22,21,20,20,20,17,17,15,17,18,17,17,18,19,20,19,20,21,20,21,21,21,22,19,19,20,22,21,23,23,23,23,24,24,24,24,24,25,25,25,24,25,24,23,22,22,22,18,18,18,20,17,16,17,18,15,13,17,16,16,17,19,19,19,20,20,20,23,22,21,23,23,23,24,26,25,26,26,28,27,28,27,29,28,27,28,26,25,28,28,28,28,28,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,29,29,28,29,28,27,29,27,28,28,27,28,25,25,27,24,23,24,22,22,24,22,23,22,20,22,20,21,22,21,20,18,21,23,21,23,25,24,25,25,24,24,25,25,25,25,24,24,23,26,25,24,26,26,26,26,24,26,25,26,25,25,25,25,25,26,27,25,25,26,23,24,24,22,22,24,25,23,24,25,25,23,24,25,25,24,24,23,25,26,25,25,25,25,25,25,24,25,24,24,25,23,24,24,24,24,24,25,24,26,25,25,24,24,23,25,25,22,23,25,24,21,24,23,22,23,22,22,21,20,22,20,20,21,20,18,17,19,17,15,16,13,16,16,18,18,18,19,19,19,19,17,16,16,18,17,13,16,16,19,18,17,13,15,15,13,11,13,12,10,11,12,11,10,12,13,11,11,13,14,14,14,16,15,15,17,18,16,16,19,20,19,20,20,22,22,22,21,22,23,22,23,23,24,24,22,23,24,21,21,23,22,20,22,23,21,20,20,21,19,19,18,20,18,16,16,17,16,14,13,11,11,12,10,8,10,6,10,9,8,8,10,10,11,13,14,12,11,15,14,13,14,10,11,13,9,10,9,8,7,7,7,4,2,0,1,3,6,9,10,12,12,11,11,13,14,12,14,16,17,16,17,18,19,20,20,20,20,22,22,21,22,22,21,22,23,21,20,22,22,20,19,19,19,18,18,18,19,17,14,16,14,12,12,12,13,14,13,15,18,16,18,20,19,20,20,20,22,21,21,22,22,20,21,22,20,19,20,20,19,19,20,17,19,21,19,17,21,20,20,18,20,21,20,22,22,22,22,22,20,20,21,22,21,23,22,23,22,23,21,23,22,23,24,23,24,23,24,24,24,24,23,24,24,24,25,25,24,24,24,24,24,24,24,22,23,23,26,25,26,26,27,27,28,27,29,27,29,28,29,28,29,28,29,29,29,29,30,29,29,30,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,29,30,29],[30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,29,30,29,29,29,28,29,29,28,28,29,27,29,29,27,29,29,29,28,29,28,28,28,28,28,27,27,26,27,26,25,25,25,24,24,25,24,22,21,24,22,21,22,21,20,17,15,12,11,9,10,8,8,10,11,13,12,17,12,13,13,14,13,12,15,12,12,13,14,14,13,12,14,15,14,14,15,15,14,17,17,16,18,19,20,20,21,21,22,22,23,23,22,22,21,22,19,20,18,21,21,22,21,24,23,21,23,23,21,20,24,25,20,21,23,23,20,21,23,22,23,22,21,24,22,21,21,22,20,20,19,19,17,17,18,17,17,17,16,15,15,16,17,15,15,13,15,16,15,14,18,19,18,19,20,19,19,19,19,20,20,21,22,22,20,19,21,21,20,21,22,21,19,21,22,20,21,21,20,21,22,20,21,21,21,19,20,22,20,19,18,20,16,16,18,19,19,18,19,19,18,17,18,19,17,19,20,18,18,19,19,17,17,20,18,16,17,18,17,19,19,20,20,20,19,21,21,21,21,21,20,21,20,21,20,20,22,22,21,20,23,20,21,22,20,20,19,22,20,19,19,20,20,21,20,20,20,20,20,20,20,20,20,20,19,17,20,16,18,18,17,16,18,17,18,19,19,19,17,19,18,19,19,17,16,16,19,19,19,21,21,20,22,22,22,22,22,24,23,23,23,22,22,21,19,19,18,16,14,16,17,14,13,14,15,12,11,15,14,14,17,18,18,20,20,20,21,22,20,21,22,23,21,23,25,24,25,26,27,26,27,27,29,27,26,27,26,26,28,27,29,28,28,29,29,29,30,29,29,29,29,29,30,30,29,29,29,29,29,29,30,29,29,29,29,29,29,28,29,27,28,28,27,29,27,26,28,25,23,25,23,22,24,22,21,22,21,22,21,19,19,18,18,19,18,16,14,20,20,20,21,23,23,24,22,22,23,24,23,23,24,24,23,23,25,24,23,25,26,25,26,23,25,24,25,24,24,25,24,24,25,25,23,24,25,24,23,24,23,22,24,25,22,23,23,23,21,22,23,24,23,23,21,23,24,25,23,24,25,25,24,24,25,24,24,24,24,24,23,24,23,24,25,23,25,22,24,22,21,21,23,23,20,22,24,23,21,22,21,20,21,20,21,21,20,21,19,18,19,18,19,16,17,16,15,14,12,15,15,16,15,18,18,19,17,19,17,17,16,17,17,15,16,14,17,17,17,14,17,14,14,10,14,13,12,11,13,12,11,12,12,12,12,13,13,12,12,15,14,14,15,17,16,16,18,19,16,18,18,19,18,20,20,20,21,21,22,22,23,22,21,20,22,21,20,21,20,18,20,20,19,19,19,19,18,18,16,17,17,14,14,16,16,13,11,11,12,12,8,7,8,6,9,9,8,9,8,11,11,13,12,10,12,14,12,11,13,12,11,12,9,11,10,9,8,9,8,5,5,1,0,2,3,5,8,8,10,9,9,12,12,13,11,17,15,14,16,18,17,17,19,19,18,19,20,20,21,20,21,20,22,20,18,18,19,19,19,17,17,18,15,15,18,16,13,14,11,9,10,9,9,12,10,13,14,14,14,15,17,18,18,18,19,20,19,19,20,18,19,20,19,19,18,19,19,18,20,14,15,19,16,13,17,18,15,13,17,18,18,20,20,20,19,20,20,19,21,19,20,19,19,22,20,22,20,21,20,22,22,22,23,22,23,23,24,24,22,23,24,23,24,25,23,22,24,24,25,22,23,22,24,24,25,25,25,26,26,26,28,27,28,28,28,28,29,28,29,27,29,29,29,29,30,29,29,29,30,29,30,29,30,29,29,30,29,29,30,30,29,29,29,29,29,29,29,30,29,30,29,29,29],[30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,29,30,29,29,30,29,28,29,29,28,29,29,28,29,29,27,29,29,29,28,29,28,29,28,28,28,27,27,27,27,26,25,24,25,24,23,23,23,22,21,22,21,21,20,20,18,15,13,10,9,8,8,7,7,7,9,9,11,12,10,9,9,12,10,10,10,11,11,10,11,11,10,11,11,11,11,12,13,12,12,15,16,14,15,15,18,16,17,17,17,17,17,18,17,15,15,16,15,18,16,16,16,16,18,17,18,17,18,17,16,17,18,19,17,17,19,17,16,17,17,16,17,18,16,17,18,17,17,18,16,18,16,17,15,16,16,14,14,13,13,13,13,13,12,11,11,12,13,12,10,13,12,15,13,13,16,16,14,15,16,16,17,18,17,18,17,17,17,17,17,16,18,17,17,17,17,16,16,18,17,16,18,16,16,17,16,14,16,17,17,16,16,16,16,14,16,15,16,17,16,15,15,15,15,15,13,16,16,14,13,15,13,10,12,14,11,11,12,13,12,13,14,16,15,16,15,17,17,17,16,17,17,17,16,17,17,16,17,17,15,15,16,16,17,16,16,16,15,16,15,15,15,16,16,14,14,16,15,15,15,16,16,15,16,15,16,13,14,11,12,13,12,12,13,13,11,12,14,14,13,13,14,14,14,13,11,14,14,14,13,17,18,16,18,18,18,18,20,19,18,19,18,17,17,15,14,13,13,11,10,13,12,10,11,11,11,10,10,12,11,10,15,16,16,18,17,17,17,20,19,18,19,21,20,20,23,23,23,24,25,25,26,25,27,26,24,25,25,23,25,26,26,26,26,27,28,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,27,28,28,28,28,27,27,26,27,27,26,26,26,25,27,24,23,24,22,21,22,20,20,21,20,20,20,18,18,16,16,15,14,13,12,13,17,14,17,17,16,19,18,17,18,19,17,17,19,18,17,17,20,18,19,20,20,20,20,18,19,18,19,19,18,18,19,18,19,21,18,20,19,17,17,18,17,17,19,18,17,16,17,18,16,16,19,19,17,19,16,19,20,19,18,19,20,19,19,19,19,18,18,18,18,18,18,17,18,18,18,18,18,18,19,19,18,16,18,19,16,17,18,18,15,16,18,15,16,15,16,16,15,15,14,13,15,14,13,12,13,13,10,8,9,10,11,12,12,14,15,16,14,15,15,13,14,14,12,11,13,13,14,13,15,11,12,12,10,10,11,10,9,9,10,9,10,10,10,9,10,10,9,8,12,11,10,12,12,10,11,11,11,13,12,13,13,14,14,15,14,15,17,18,16,17,16,18,16,15,16,16,15,16,14,13,14,15,14,14,14,15,13,14,13,13,12,8,7,11,11,11,7,6,7,7,6,4,7,5,8,7,8,6,7,8,8,11,10,8,9,9,11,9,9,9,9,10,8,10,8,9,7,7,7,6,5,6,1,0,1,3,5,8,9,7,8,8,9,7,9,10,11,9,10,12,13,13,15,14,13,15,15,15,15,15,14,15,15,14,12,12,13,14,12,13,13,12,12,11,12,10,9,8,8,8,7,8,9,8,7,10,11,10,9,12,12,12,12,13,14,14,15,14,14,12,14,15,13,14,13,12,12,11,14,11,11,13,12,10,12,12,12,11,11,14,14,16,15,16,17,15,15,14,15,15,14,15,14,17,16,17,14,17,17,15,17,16,19,15,18,18,17,17,17,18,17,18,18,19,16,17,19,18,18,18,18,17,17,18,20,21,21,20,21,23,23,25,26,25,26,26,27,26,27,26,27,28,27,28,28,28,28,29,29,28,29,29,29,29,29,29,28,29,29,28,29,28,29,28,29,28,28,28,29,28,28,28,28],[29,29,28,28,28,29,29,29,28,28,28,28,28,28,27,28,28,28,28,29,28,28,29,28,27,28,28,27,28,28,26,28,29,29,28,29,28,28,28,27,28,27,26,26,26,26,25,24,24,23,22,23,23,21,20,21,20,20,19,18,15,13,11,9,7,6,8,5,6,6,7,7,9,9,8,7,7,8,7,8,8,8,8,6,9,9,8,8,9,10,9,9,11,9,9,10,11,11,10,12,12,11,13,13,12,12,14,14,13,13,12,12,11,12,11,11,12,13,13,13,14,12,14,14,13,12,14,15,12,14,13,13,12,12,12,12,12,13,12,12,14,12,12,13,13,11,11,12,12,12,11,11,10,10,10,9,10,9,9,9,9,7,10,8,9,9,9,10,11,10,11,11,12,11,11,12,12,12,12,13,11,11,12,12,12,12,13,12,11,12,13,11,12,12,13,12,12,12,12,13,12,11,12,13,12,12,12,11,11,10,11,12,12,12,11,12,10,11,11,11,10,11,11,11,10,11,11,9,9,11,9,9,10,10,10,11,11,11,12,11,11,12,12,12,12,13,12,12,11,12,11,11,12,12,11,12,13,12,11,12,12,11,11,12,12,11,10,11,12,10,11,11,12,10,11,11,12,12,11,10,11,10,9,9,9,9,9,9,10,10,10,9,11,10,11,11,11,11,11,10,8,11,10,11,10,11,12,12,14,13,13,13,14,14,14,14,14,15,14,13,12,9,10,8,9,9,8,7,9,8,9,9,8,10,11,12,12,13,15,15,16,15,17,20,16,17,20,20,18,20,21,21,22,22,23,25,25,25,26,25,25,26,23,24,25,25,26,25,25,27,28,27,28,27,28,28,28,28,28,28,28,29,29,29,28,29,28,29,28,28,28,28,28,27,27,25,26,27,25,26,25,25,26,24,22,25,23,20,22,21,21,20,20,19,19,16,15,14,12,11,10,9,9,10,12,11,13,13,13,15,14,14,14,15,15,14,15,14,14,15,16,15,15,16,16,16,16,15,16,14,14,15,15,15,16,16,17,16,17,17,16,15,15,14,15,14,15,15,14,14,14,15,13,13,14,14,13,13,12,14,15,15,14,16,16,15,15,15,15,14,14,14,14,15,15,15,14,14,15,14,15,14,14,14,13,11,13,13,12,12,13,13,11,12,12,11,11,10,10,11,9,10,10,8,9,9,8,7,8,8,7,6,6,7,8,9,10,11,11,11,10,11,10,9,9,10,9,9,10,10,11,10,11,9,10,10,8,9,9,9,8,8,9,7,7,6,7,6,6,6,6,5,8,7,7,7,8,8,8,9,8,8,9,9,10,10,10,11,11,11,12,12,12,13,13,13,11,12,12,11,10,11,10,8,10,10,10,9,9,9,8,7,8,8,7,5,6,7,7,6,5,5,5,5,2,3,4,3,6,6,6,7,7,8,7,8,7,7,9,8,8,8,9,9,7,9,7,8,8,7,7,7,6,5,6,4,2,1,0,1,3,4,5,4,4,6,5,6,5,7,7,7,8,8,8,8,10,10,10,10,11,11,11,11,10,10,12,11,8,9,10,8,9,8,8,7,7,6,7,7,6,7,7,5,7,6,7,6,6,7,8,8,7,8,8,8,9,9,11,10,10,12,11,9,12,13,12,10,10,11,9,8,10,8,8,10,8,7,9,11,8,8,9,11,11,12,13,13,12,13,11,11,13,12,12,13,13,14,12,12,10,13,13,11,12,14,14,11,13,14,12,13,14,14,12,13,14,14,13,13,14,14,14,12,14,14,15,15,18,17,18,18,18,19,22,22,22,22,24,23,25,24,24,23,24,26,25,25,27,25,27,26,27,26,27,26,27,27,28,28,27,27,27,27,27,26,26,25,26,27,26,27,27,26,26,26,26],[29,29,28,28,29,29,29,28,29,27,27,27,28,27,28,27,27,27,27,27,27,26,27,27,26,27,28,27,28,27,26,27,28,28,28,28,27,28,27,27,28,26,26,26,26,25,24,23,24,23,21,21,21,20,18,19,19,18,17,17,14,12,10,7,7,5,4,3,2,2,3,3,3,3,3,2,3,4,3,3,3,4,3,3,3,4,3,4,4,4,5,5,5,5,5,5,6,6,6,6,7,7,7,7,7,8,7,8,9,8,8,8,7,7,8,8,8,8,8,8,8,7,7,7,7,7,7,8,7,7,7,7,7,7,8,8,7,7,6,7,6,6,6,7,6,5,6,6,5,6,6,5,5,6,6,6,5,6,6,6,6,5,6,6,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,6,6,6,6,6,5,5,6,6,5,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,6,6,5,5,5,5,5,5,5,4,5,5,4,4,5,4,4,4,5,4,4,5,5,4,5,6,6,7,7,6,7,7,7,7,7,7,6,6,6,6,6,6,6,6,5,6,6,6,7,7,7,7,6,6,5,5,5,5,4,4,5,5,4,5,5,5,5,5,5,6,6,5,5,5,4,4,3,3,4,3,3,4,4,4,4,4,4,5,4,5,5,5,5,4,5,5,5,5,6,5,6,6,7,6,6,7,8,7,7,7,7,7,7,6,6,6,5,5,5,5,4,4,5,4,5,5,6,7,10,10,10,14,15,14,13,15,17,15,15,18,19,17,19,20,20,20,21,22,22,24,23,24,23,22,25,22,23,24,24,26,23,24,25,26,26,27,26,26,27,27,27,27,27,27,27,27,28,27,27,27,27,27,27,28,27,28,27,27,25,26,26,25,25,24,24,25,22,21,22,22,20,20,19,18,19,18,17,17,15,14,13,10,9,7,6,7,6,6,6,7,7,8,9,8,9,9,9,9,10,10,9,9,11,11,10,10,11,11,11,11,11,11,10,10,10,11,10,11,12,11,12,12,11,10,11,11,9,9,10,9,9,8,9,8,8,7,8,8,7,6,7,7,8,7,6,7,8,8,7,8,9,8,8,8,9,9,10,10,10,10,9,8,8,7,7,7,7,6,5,6,6,5,6,6,5,5,6,6,5,6,5,5,5,5,5,4,4,4,4,4,4,4,4,3,4,4,5,5,6,7,7,8,8,6,5,5,5,5,5,4,4,5,5,5,6,6,6,6,6,6,6,5,5,5,4,4,4,4,3,4,3,3,3,3,2,3,3,3,3,3,3,4,4,3,4,4,4,4,5,4,5,5,5,5,5,6,6,6,5,5,5,6,5,5,5,5,4,5,5,5,4,5,5,4,4,4,5,4,4,4,4,4,3,4,3,3,3,2,2,2,2,2,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,5,6,5,5,5,5,5,5,6,4,3,2,1,0,1,1,2,2,2,2,2,3,3,3,4,4,4,6,5,5,4,5,5,5,6,6,6,6,5,6,7,5,5,6,6,5,5,5,5,5,5,5,5,4,5,4,3,3,3,3,4,4,3,5,5,5,5,5,5,5,5,5,5,5,6,6,7,6,7,7,7,7,6,6,6,6,6,5,5,6,5,5,5,6,5,5,5,5,6,7,8,8,7,7,7,7,7,8,7,8,8,8,8,8,8,9,8,7,7,7,8,7,7,7,7,6,7,7,7,7,7,7,6,7,7,7,7,7,9,10,11,12,13,14,14,14,15,16,17,19,20,19,22,20,23,20,22,21,21,23,22,23,25,23,26,25,26,24,25,25,26,25,25,26,25,25,25,23,25,25,25,23,26,25,23,25,26,24,23,24,25],[28,29,29,29,29,29,29,29,29,28,28,28,28,27,28,27,28,28,28,28,29,27,29,29,27,28,29,27,29,28,27,29,29,29,29,29,28,29,29,28,29,28,27,27,27,26,25,24,24,23,23,22,23,20,19,20,18,18,18,18,15,13,10,7,6,5,3,3,3,2,2,2,2,2,2,2,2,3,2,2,2,3,3,2,3,3,3,3,3,4,3,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,7,7,7,6,5,5,5,6,6,6,6,6,6,5,5,6,6,5,5,6,5,5,6,6,5,6,6,7,6,6,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,4,4,5,4,4,5,5,4,5,5,5,4,5,5,6,6,6,5,6,6,6,6,6,6,6,5,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,3,4,4,5,5,5,5,5,5,4,4,5,5,4,4,5,4,4,4,4,4,4,5,5,5,6,6,5,5,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,5,5,6,7,9,9,11,13,13,13,14,14,16,16,15,17,18,17,18,20,20,21,22,23,23,25,24,26,23,23,25,22,22,25,24,25,23,23,25,27,25,27,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,26,26,27,26,25,27,25,25,26,22,23,24,23,21,21,19,19,19,18,17,16,15,14,11,10,7,6,5,5,5,5,5,5,6,5,6,6,6,7,7,7,8,9,8,8,9,9,9,9,10,11,10,10,9,10,9,8,9,8,9,10,10,11,11,10,10,9,9,9,8,8,8,8,7,7,6,6,6,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,6,6,7,8,8,9,9,8,8,8,6,6,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,4,3,3,3,4,3,3,4,3,3,3,4,4,5,7,7,7,6,6,5,4,4,4,4,4,4,4,4,5,5,5,4,5,5,5,4,4,4,3,3,4,3,3,3,3,3,2,3,2,2,2,3,2,2,2,2,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,1,3,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,4,4,4,4,5,4,4,4,5,5,5,3,2,1,1,0,1,1,1,1,1,2,2,2,2,2,3,2,3,3,3,3,4,4,4,4,4,4,5,3,4,5,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,3,2,3,2,2,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,5,6,6,6,5,5,5,5,6,5,6,6,6,5,6,5,7,6,5,6,6,5,5,5,5,5,5,6,5,5,5,6,5,5,6,6,5,5,6,7,8,9,10,11,13,13,12,14,15,16,18,18,20,21,20,21,19,21,21,20,24,21,23,24,23,25,27,24,24,25,25,26,25,26,26,25,26,25,24,25,25,25,24,26,24,24,26,26,24,22,24,24],[28,28,28,28,28,29,28,28,28,27,27,28,27,27,27,27,27,27,27,27,27,27,27,28,26,27,28,27,28,27,26,28,27,28,28,27,27,28,28,27,28,27,26,26,26,25,23,22,23,23,21,21,21,20,18,20,17,17,17,17,14,12,10,6,6,4,3,3,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,4,4,4,4,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,4,3,3,4,3,3,4,4,4,4,4,4,4,3,3,4,3,3,4,4,3,3,4,4,3,4,4,5,5,5,4,5,5,5,5,5,5,5,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3,3,3,3,4,3,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,4,4,4,4,4,4,5,4,4,4,5,4,4,4,4,4,3,4,4,3,3,4,4,3,4,4,3,3,4,4,4,4,4,6,7,8,9,10,11,10,10,12,13,14,15,17,17,19,19,19,18,19,19,19,21,19,21,23,21,23,24,23,22,23,23,24,22,24,25,23,23,23,22,23,24,23,23,23,22,22,24,22,21,21,22,22],[28,28,28,28,28,29,28,28,28,27,28,27,28,27,27,26,27,28,27,27,27,26,27,28,26,27,28,26,28,28,26,27,28,28,28,28,28,28,28,28,28,27,27,27,27,26,25,24,25,22,23,23,22,19,19,20,18,19,18,17,14,13,10,8,7,5,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,5,4,4,4,5,5,5,5,5,5,4,4,5,5,4,5,5,4,4,5,5,4,5,5,6,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,4,5,5,4,5,5,5,5,4,4,4,4,4,4,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,5,6,6,7,9,9,10,12,14,15,14,13,16,16,15,17,18,17,18,19,19,21,22,23,24,24,24,25,23,23,24,22,22,24,23,24,24,24,24,27,25,27,26,26,27,27,27,27,27,27,28,28,27,27,27,27,27,27,27,28,27,27,27,27,26,26,27,26,26,26,26,26,24,24,24,23,22,22,19,19,20,18,16,15,13,12,10,7,6,5,5,4,4,4,4,4,5,4,5,5,5,6,6,6,6,7,6,7,7,7,7,8,8,8,8,8,8,8,7,7,7,7,7,8,8,8,8,8,7,7,7,7,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,7,6,7,7,6,5,5,4,4,4,4,4,4,4,4,3,3,4,4,3,3,4,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,3,3,3,4,6,7,7,6,5,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,3,4,3,3,3,3,3,3,3,3,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,4,4,4,5,4,4,4,5,6,5,4,3,2,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,3,2,2,3,2,3,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,4,3,3,4,4,4,3,4,4,4,3,4,4,3,3,4,3,3,4,3,3,3,4,4,4,5,5,4,4,4,4,5,5,5,4,5,5,4,4,4,5,5,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,5,5,4,4,5,6,7,8,8,9,12,11,11,12,13,15,15,17,17,20,20,20,18,20,20,19,23,20,22,22,21,26,24,24,23,24,23,25,24,24,24,23,24,25,23,23,25,25,23,25,24,24,25,25,24,21,25,25],[29,28,29,29,29,29,29,28,29,28,28,28,27,28,27,27,28,28,27,27,27,26,27,27,25,28,28,27,28,28,25,28,28,29,28,28,28,29,28,28,28,27,27,27,27,26,24,24,24,23,23,23,22,20,19,20,18,17,18,17,14,12,9,6,5,4,3,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2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,1,2,1,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,3,3,2,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,2,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,3,3,3,3,3,3,3,2,2,3,2,2,3,2,2,2,3,3,3,4,4,3,4,3,3,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,3,4,4,5,6,7,8,9,10,10,10,11,12,13,14,16,17,19,19,19,17,19,18,19,22,19,22,21,22,24,24,23,23,24,23,24,24,24,24,23,24,24,21,22,24,25,23,24,23,24,23,25,24,21,24,26],[28,28,28,28,28,29,28,28,28,27,27,28,27,27,26,27,26,27,27,26,27,27,26,27,27,27,27,26,28,27,26,27,28,28,28,28,28,28,28,27,28,27,27,27,26,26,24,23,24,23,22,21,22,21,19,19,19,18,18,17,13,11,8,6,6,4,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,4,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,2,2,2,3,2,3,3,3,4,4,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3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,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,5,6,7,8,9,10,10,10,11,12,13,14,16,17,18,17,18,17,18,18,20,21,19,22,21,22,25,24,22,22,24,23,23,24,24,23,22,23,23,22,22,23,23,23,23,23,23,22,24,23,20,23,24],[28,28,28,28,28,28,28,27,28,27,27,27,27,26,26,26,26,27,26,26,27,26,26,27,26,26,27,26,27,26,25,27,27,27,26,27,27,27,27,27,27,26,26,26,25,25,24,23,23,22,22,21,20,20,18,19,17,17,17,16,13,11,9,6,5,3,2,2,2,2,2,1,2,1,2,1,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,3,3,3,4,4,4,4,4,4,3,3,4,4,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,2,3,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,3,3,3,3,3,4,5,8,7,10,10,13,13,12,13,14,14,13,15,16,16,16,18,19,19,20,21,20,22,22,22,21,21,21,20,20,21,21,23,21,22,22,25,23,26,25,24,25,25,26,25,26,26,25,25,26,25,26,26,26,25,26,26,26,26,25,25,25,25,25,25,25,23,23,25,22,23,22,23,23,22,19,19,19,18,14,14,13,10,9,6,5,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,5,5,5,5,5,5,5,6,5,5,5,5,5,5,4,5,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,5,5,5,5,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,1,2,2,2,2,3,5,5,5,4,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,2,1,1,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,2,2,3,2,2,2,3,2,2,3,3,3,3,3,4,5,6,7,8,9,9,8,10,11,12,13,15,16,18,18,17,16,17,18,17,20,18,21,20,20,24,24,23,22,23,23,23,22,23,23,22,21,24,20,21,23,23,21,23,21,21,22,24,21,20,23,22],[28,28,29,29,29,29,28,28,29,27,27,27,27,26,26,25,26,28,26,27,27,25,27,28,26,27,28,26,28,27,26,28,28,28,28,28,27,28,28,27,28,27,27,27,26,26,24,24,24,22,22,21,21,19,18,20,17,17,17,17,15,12,10,7,6,4,3,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,4,4,3,3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,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,3,3,3,4,3,3,4,4,4,4,3,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,1,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,5,6,6,7,8,10,10,9,10,11,13,14,15,16,18,18,17,16,17,18,18,20,18,20,20,21,23,23,22,21,23,22,22,22,22,22,21,22,23,20,22,23,23,22,23,22,21,23,25,22,20,24,24],[28,28,28,28,28,28,27,27,28,27,27,27,27,27,26,26,26,27,26,26,27,26,27,27,25,28,28,25,28,28,26,28,28,28,28,28,28,28,28,27,28,27,27,27,26,25,24,24,24,23,23,22,22,21,19,20,18,17,17,16,13,12,9,6,5,4,3,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,4,4,3,3,4,4,4,4,4,4,3,4,4,3,3,4,4,3,3,4,4,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,4,4,3,3,4,4,3,3,4,4,4,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,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22,24,22,23,23,23,22,22,23,22,21,23,23,22,21,23,21,23,23,24,23,20,24,24],[28,28,28,28,28,29,27,27,28,26,26,26,26,26,25,26,26,26,26,25,26,25,25,26,26,26,27,26,27,26,26,27,27,28,27,27,28,28,28,28,28,27,26,27,26,25,24,23,23,22,22,21,21,19,18,19,17,17,17,16,13,11,8,5,5,3,2,2,2,2,2,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,3,3,4,4,4,4,4,4,3,3,4,3,3,3,4,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,3,3,3,3,4,4,4,3,4,4,3,3,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,3,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,3,3,3,2,2,3,2,2,3,3,3,3,3,4,4,6,8,8,11,11,12,10,12,14,13,13,16,16,16,16,17,18,20,19,19,21,22,22,23,21,22,22,20,21,21,21,24,22,22,22,25,24,26,26,25,26,26,26,26,27,27,26,27,27,26,26,26,26,27,27,27,27,27,27,26,26,25,26,26,25,24,25,25,23,23,23,23,22,22,19,19,18,16,14,13,13,9,10,6,5,4,3,3,2,3,2,2,3,3,3,3,3,3,3,3,3,4,4,4,5,5,5,5,5,6,6,6,5,5,5,4,4,4,5,5,5,5,5,5,5,5,4,4,4,4,4,3,4,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,4,4,4,5,5,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,1,2,2,3,3,3,4,4,5,4,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,2,2,1,2,2,2,1,2,2,1,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,1,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,2,2,3,4,5,6,6,7,9,9,8,10,11,11,13,14,15,17,18,17,15,17,16,19,19,18,21,20,20,23,23,22,22,22,22,23,22,22,22,20,21,22,19,20,22,22,21,22,21,21,22,23,22,19,23,24],[29,28,28,28,28,29,28,27,28,27,27,27,26,26,27,26,26,27,26,26,27,26,25,27,27,27,27,27,28,27,26,27,27,27,27,27,27,27,27,27,27,26,26,26,25,25,25,23,23,23,23,22,21,20,18,19,18,17,18,17,14,12,9,6,4,4,3,2,2,1,2,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,4,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,3,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1,1,1,1,1,1,2,2,2,2,1,2,2,2,1,2,2,2,2,1,2,2,1,1,2,2,1,1,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,4,5,5,5,6,8,8,8,8,11,12,12,15,16,17,18,16,15,17,17,17,19,18,20,20,21,22,24,22,22,22,23,24,22,22,22,21,22,22,20,21,23,23,22,23,22,21,21,24,21,20,23,23],[28,28,28,28,28,29,28,28,27,27,27,27,27,25,26,24,26,26,24,26,26,25,26,27,25,27,27,25,27,27,25,26,27,27,27,27,27,27,27,27,27,26,26,26,25,25,24,23,24,23,23,22,21,20,18,19,17,17,18,16,14,11,8,6,5,4,3,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,5,5,4,4,3,3,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,2,2,3,3,2,2,3,2,2,2,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,2,2,3,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,2,3,3,3,2,2,3,3,2,3,3,3,3,4,3,4,6,7,7,10,11,12,11,11,13,12,12,14,14,14,16,16,17,19,20,20,21,22,21,23,21,21,22,20,22,21,22,23,22,23,22,24,24,27,25,25,25,25,25,25,25,25,25,26,26,25,26,26,26,26,26,27,26,27,25,25,25,24,26,24,25,24,23,24,23,21,21,21,21,20,18,18,17,15,14,12,11,8,8,6,4,4,3,3,2,3,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,4,4,4,4,4,5,4,5,5,4,5,5,4,4,4,4,3,3,4,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,1,1,1,1,2,1,2,2,3,3,3,5,5,6,4,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,3,3,3,4,3,3,3,3,3,3,3,2,2,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,1,2,2,1,1,2,2,1,2,2,2,2,1,1,1,1,1,1,2,1,1,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,3,3,2,2,2,2,3,2,3,2,3,3,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,5,6,7,9,9,9,10,12,13,14,17,16,18,17,18,16,17,17,19,20,19,22,20,21,24,23,22,23,23,23,23,24,22,22,23,23,22,21,21,24,23,23,23,22,22,22,25,22,21,23,24],[28,28,28,28,28,29,27,27,27,26,27,27,26,25,26,24,25,27,25,25,26,25,25,27,26,27,28,26,28,27,26,27,28,28,27,27,27,28,28,27,28,27,26,27,26,25,25,24,24,23,23,22,21,20,19,19,17,17,18,16,13,11,8,5,5,3,3,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,4,4,3,3,4,4,4,4,4,4,3,3,4,4,3,4,4,3,3,4,3,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,2,3,3,3,3,3,3,4,4,3,3,4,4,3,3,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,2,3,3,3,3,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,3,3,2,3,3,3,2,3,2,2,2,3,3,2,3,3,3,5,5,6,7,12,12,11,9,10,13,12,12,14,14,15,16,17,18,19,18,20,21,21,22,23,22,21,22,21,21,21,22,23,22,22,23,25,25,26,26,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,26,27,26,26,25,25,26,25,25,24,24,25,23,23,22,22,21,20,19,18,18,16,14,13,12,9,8,6,4,4,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,4,4,4,4,4,5,4,5,5,4,5,5,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,5,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,1,1,1,2,2,2,2,3,3,3,5,5,5,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,2,2,1,1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,3,4,3,4,3,3,3,3,3,3,3,2,2,2,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,1,2,2,1,1,2,2,1,2,2,2,2,1,1,2,1,1,1,2,1,1,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,3,2,2,2,2,2,2,3,2,3,3,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,4,5,5,6,7,9,8,8,10,12,12,14,16,16,18,16,17,16,16,17,19,20,18,21,20,20,23,23,22,22,23,22,22,23,22,21,21,22,22,20,21,23,22,23,23,22,22,21,24,22,19,23,23],[28,27,28,28,28,28,27,27,28,26,27,27,26,25,26,25,26,27,26,26,26,25,25,26,26,25,26,26,27,26,25,26,27,27,27,27,27,27,28,26,27,26,26,26,25,24,23,22,23,22,21,21,20,19,18,19,17,16,17,16,14,11,8,6,4,3,3,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,4,4,3,3,4,4,4,4,4,4,3,3,4,4,3,3,3,3,3,4,3,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,3,2,3,3,3,4,3,3,3,3,3,3,4,3,3,3,3,3,3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,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,3,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,5,6,8,7,8,9,10,11,13,15,15,16,18,16,14,16,17,17,19,17,21,20,20,23,22,22,21,23,22,22,22,22,21,19,23,22,19,19,23,22,21,21,20,20,21,23,21,19,22,22],[29,29,29,29,29,28,28,28,27,27,27,26,27,24,26,24,26,26,25,26,27,26,25,27,26,26,27,26,27,27,26,27,27,27,27,27,27,27,27,27,27,27,26,26,26,25,25,24,24,23,23,22,21,20,19,19,18,17,17,16,13,11,8,5,4,3,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,4,4,3,3,4,4,4,4,4,4,3,3,4,4,3,4,4,3,3,4,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,2,2,3,2,2,3,3,2,2,3,3,2,3,3,3,4,3,3,4,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,3,2,2,3,3,2,3,3,3,4,5,6,7,10,12,12,10,11,13,12,12,14,15,15,15,17,18,19,19,19,21,22,21,23,21,21,21,21,21,21,21,23,21,21,21,25,25,27,26,25,25,26,25,26,25,25,25,25,25,26,26,25,25,26,26,26,25,26,25,25,25,25,25,25,25,24,24,25,23,23,22,23,23,21,19,19,18,16,14,12,12,9,8,6,4,4,3,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,4,4,4,4,4,5,4,5,5,4,4,5,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,5,5,6,4,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,3,3,3,3,3,4,4,4,4,3,4,3,4,3,3,3,3,4,3,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,1,2,1,1,2,2,1,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,3,3,2,2,2,2,2,3,3,2,3,3,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,4,5,5,6,8,8,9,10,13,12,14,16,16,18,19,17,16,17,17,18,22,18,20,20,20,24,22,21,23,23,21,23,23,21,21,22,23,21,20,21,22,22,21,21,21,22,22,23,21,20,23,22],[29,28,28,28,28,28,27,27,27,27,27,26,27,25,26,24,26,26,26,26,26,26,26,27,25,27,28,26,28,27,26,27,28,27,27,27,26,27,28,27,27,26,26,26,26,26,25,24,25,23,23,22,22,20,19,20,19,18,18,17,14,12,8,6,4,4,3,3,2,2,2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,1,1,1,1,1,1,1,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,4,4,4,4,4,4,4,4,4,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,2,2,1,2,2,1,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,2,3,3,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,2,2,3,2,3,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,4,5,6,6,7,9,9,9,10,13,13,14,17,16,19,18,19,17,18,18,19,21,20,21,21,21,24,23,23,23,24,23,24,24,23,23,23,24,23,21,22,23,23,23,22,23,22,23,24,21,21,24,23],[28,28,28,28,28,28,27,27,27,26,26,27,26,24,26,25,26,26,26,26,25,25,25,26,25,26,27,26,27,27,26,28,27,27,27,27,27,27,28,27,27,27,27,27,26,25,25,24,24,23,23,22,21,21,19,20,19,18,17,17,14,13,9,6,4,4,3,3,3,2,2,2,2,2,2,2,2,3,3,2,2,3,3,2,2,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,5,6,6,6,5,4,5,5,5,5,5,5,5,4,4,5,5,4,5,5,4,4,5,4,4,5,5,5,5,4,4,5,4,4,4,4,3,3,4,4,3,4,4,3,3,3,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,3,4,3,3,3,4,3,4,4,4,4,3,3,3,4,3,3,3,3,3,3,4,3,3,3,4,4,5,4,4,5,5,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,2,3,3,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,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2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,4,5,7,6,8,9,8,9,9,12,13,14,16,17,20,20,18,17,18,18,19,22,20,22,21,20,24,25,22,23,24,23,24,24,24,22,22,22,23,19,21,24,22,23,22,22,21,21,24,21,21,23,23],[28,28,28,28,28,28,27,27,27,26,26,26,26,25,26,24,25,26,25,25,25,25,25,25,25,25,26,26,26,26,26,26,27,27,26,27,26,26,27,26,26,25,25,26,25,25,23,23,23,23,22,22,20,19,17,18,17,15,16,16,12,10,8,5,4,4,3,2,3,2,2,2,2,2,2,2,2,3,3,2,2,3,3,2,2,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,5,6,6,5,5,4,4,5,5,5,5,5,5,4,4,5,4,4,4,5,4,4,5,4,4,4,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,4,3,4,4,3,4,4,4,3,4,4,4,3,3,3,4,3,3,3,4,3,3,4,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,3,3,2,3,2,2,2,2,2,2,3,2,2,3,2,2,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,4,5,6,6,7,9,11,11,10,11,13,12,12,14,16,15,13,16,18,19,19,19,20,21,21,22,21,19,20,21,20,20,20,22,20,21,21,24,24,26,25,25,25,26,26,26,26,26,26,26,26,26,27,27,26,26,27,26,26,26,25,25,25,25,25,25,25,24,23,24,23,23,22,22,22,20,19,20,19,17,15,13,13,10,9,7,5,4,3,3,2,3,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,6,5,6,5,5,5,4,4,4,4,5,4,6,6,5,5,5,4,4,4,4,4,3,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,5,5,5,4,3,3,3,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,2,1,1,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,1,1,1,1,2,2,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,4,5,4,5,4,4,4,4,4,4,4,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,1,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,2,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,2,3,3,3,3,3,3,3,3,3,3,4,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,6,6,7,8,8,8,9,12,12,14,15,16,19,19,17,15,17,18,17,20,17,20,19,20,23,23,24,22,22,22,23,22,21,23,21,23,21,19,20,22,23,20,22,20,22,22,22,20,19,22,20],[29,29,29,29,29,28,28,28,28,28,28,27,28,25,27,25,27,27,27,28,27,27,27,28,26,27,28,27,28,28,26,27,28,27,27,28,27,27,28,28,28,27,27,27,26,26,26,24,25,24,23,22,23,20,19,19,18,17,17,17,13,11,8,6,5,4,3,3,3,2,2,2,2,2,2,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,7,6,5,5,5,5,5,5,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3,3,4,4,3,3,3,4,4,4,4,4,5,5,5,6,5,5,5,5,5,4,5,5,5,4,4,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,6,6,7,9,9,10,11,14,14,15,17,16,20,19,18,17,18,18,19,22,20,22,21,22,25,23,23,22,22,22,25,23,23,23,22,23,23,21,22,23,22,22,22,22,21,22,23,20,21,23,23],[28,28,28,28,28,28,28,28,27,27,27,26,27,24,26,24,26,26,26,27,27,27,27,27,27,27,28,27,28,28,27,27,28,28,28,28,27,28,28,28,27,27,27,27,27,26,25,24,24,23,22,22,22,21,19,20,19,18,17,17,15,13,9,7,6,5,4,4,4,3,3,2,3,2,3,3,3,4,4,3,3,3,4,3,3,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,8,8,7,6,6,6,7,6,6,6,6,6,6,6,6,6,5,6,6,6,5,6,5,5,6,6,6,6,6,5,6,6,5,5,5,4,5,5,5,4,5,5,4,4,4,5,5,5,6,5,5,5,5,5,5,5,4,5,5,4,4,5,5,4,4,5,4,4,5,5,5,4,4,4,4,4,4,4,4,3,4,4,4,3,4,5,5,5,5,5,5,5,5,5,6,5,5,5,4,5,4,5,4,4,4,4,3,4,4,4,3,4,4,3,3,3,4,3,3,4,3,3,4,4,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,3,3,4,3,3,4,4,4,5,4,4,3,3,3,3,3,3,2,2,3,3,2,3,3,3,3,3,3,3,4,4,4,3,3,3,3,3,3,2,3,3,2,2,2,3,2,2,3,3,2,3,2,2,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,4,3,4,3,3,3,4,4,3,3,4,4,4,4,5,6,6,7,9,9,11,13,13,12,12,14,13,13,15,15,14,15,16,18,19,19,21,21,22,22,23,21,21,22,21,20,21,22,24,21,22,23,25,26,28,27,27,26,27,27,27,27,27,26,26,27,27,27,26,27,26,27,27,27,27,26,27,25,25,27,25,26,25,25,26,24,22,24,23,23,21,20,20,19,18,16,14,13,11,11,8,6,5,4,4,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,5,5,5,5,5,5,6,6,5,6,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,3,2,2,3,3,3,3,3,3,4,4,4,5,5,5,6,5,5,4,4,3,4,3,3,3,2,3,3,2,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,4,4,5,7,7,7,5,4,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,1,1,2,2,1,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,4,5,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,5,5,6,5,5,5,4,4,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,2,2,2,3,3,3,3,3,2,3,3,3,3,3,4,4,3,3,3,4,3,3,3,3,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,5,6,7,7,8,9,9,11,10,14,14,15,17,17,19,17,18,17,18,18,18,21,19,20,20,22,23,23,23,22,22,22,24,22,22,22,22,22,23,20,22,22,22,21,22,21,21,22,23,20,20,23,21],[28,27,28,27,28,28,27,27,28,26,26,26,26,24,26,24,26,26,25,26,26,26,26,26,26,26,27,26,27,27,26,27,27,27,27,27,26,27,27,27,27,26,26,26,26,26,25,24,24,24,22,22,22,21,19,21,19,18,17,17,15,13,10,8,7,6,5,5,5,4,4,4,4,3,4,4,5,5,5,5,4,5,5,4,4,5,5,5,5,5,6,7,6,6,7,7,6,7,8,7,7,8,8,8,8,9,9,9,9,10,10,9,8,7,8,8,8,8,8,8,8,7,7,8,8,7,7,8,7,7,8,7,6,7,8,8,8,7,7,8,7,7,7,7,6,6,7,7,6,7,7,6,5,6,7,6,7,7,7,8,7,6,6,7,6,6,6,6,6,6,6,6,5,6,7,6,6,6,6,6,6,5,5,6,5,5,5,6,5,5,6,5,5,5,6,7,7,7,6,7,7,7,7,7,7,7,6,6,6,6,6,6,5,6,6,5,5,6,5,5,5,5,5,4,5,5,4,4,5,5,5,5,5,5,6,6,6,7,7,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,4,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,3,4,3,3,4,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,3,4,4,4,4,4,4,5,5,6,7,7,8,9,10,12,14,15,12,14,15,15,15,17,17,16,18,19,18,20,20,22,22,24,22,24,22,20,22,20,20,20,22,23,19,20,23,24,25,27,25,26,25,25,27,27,27,27,27,26,26,27,27,27,27,27,27,26,27,27,26,26,25,25,26,25,26,25,25,26,23,24,24,24,23,22,22,21,20,18,17,16,14,14,12,9,7,5,4,4,4,4,3,3,3,3,4,3,3,4,5,4,4,5,5,5,6,6,7,6,7,7,7,7,7,7,6,5,6,5,6,6,6,8,7,6,7,6,6,6,5,5,5,5,5,5,4,4,4,4,3,3,3,2,3,3,3,3,3,3,3,4,3,3,4,4,4,5,6,6,6,7,7,6,6,5,5,5,5,5,4,4,4,4,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,6,6,6,5,5,4,4,4,4,5,4,5,5,6,6,7,7,7,7,7,7,7,6,6,5,5,5,5,5,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,2,2,3,3,2,2,3,3,2,3,3,3,2,3,3,2,2,3,2,2,2,3,2,2,2,3,2,2,2,2,2,2,2,3,2,3,3,3,3,3,4,4,3,3,4,4,4,4,4,5,5,6,6,5,6,6,6,6,7,7,7,7,7,8,7,7,8,7,7,7,6,6,7,6,6,6,5,5,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,1,2,2,1,1,0,1,1,1,2,1,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,4,3,3,3,3,3,2,2,3,2,2,2,2,2,2,3,3,3,3,4,4,4,5,4,4,4,4,4,4,4,4,4,4,3,3,4,3,2,2,3,3,3,3,3,3,3,4,4,3,4,3,4,4,4,4,4,5,4,3,3,3,2,2,3,3,2,3,4,3,3,4,4,4,4,4,4,4,4,5,6,7,8,8,9,10,10,10,10,14,14,16,17,18,21,20,19,17,19,20,19,22,19,22,21,21,25,24,24,24,25,24,25,25,24,24,23,24,23,21,23,25,23,21,23,22,21,23,24,20,20,22,20],[27,27,27,28,28,27,28,27,27,27,26,26,27,24,27,24,27,26,26,27,26,25,27,27,26,27,27,27,27,28,27,28,28,28,27,28,28,28,28,28,28,27,27,28,27,26,26,25,25,25,23,23,23,22,21,21,19,19,17,18,16,13,11,9,7,7,6,5,5,5,5,4,5,4,5,5,5,6,6,5,5,7,6,5,6,7,7,7,8,8,8,9,9,9,10,10,9,10,11,10,11,11,11,10,12,12,12,12,12,13,13,12,11,11,11,11,11,12,11,11,11,10,10,11,11,10,10,11,10,10,11,10,9,10,10,10,10,10,10,10,10,9,10,10,9,9,9,9,8,9,9,8,8,8,9,9,9,10,9,10,9,8,8,9,8,7,9,9,8,7,8,9,8,8,9,9,8,9,8,8,9,7,8,8,8,8,8,8,8,8,8,7,7,8,9,10,10,10,9,10,10,10,10,10,9,9,9,8,8,8,8,9,8,8,8,8,7,8,8,7,7,8,7,6,7,7,6,5,6,7,5,6,7,7,8,9,8,9,9,8,8,8,8,8,7,7,8,7,6,7,7,6,6,7,8,7,8,8,8,7,7,6,6,6,6,6,6,7,6,6,6,7,6,6,6,7,8,7,7,7,7,6,6,5,6,6,5,5,5,6,5,5,6,5,5,5,6,5,5,4,4,5,5,5,4,5,5,4,5,5,5,5,5,5,6,5,5,6,5,5,5,5,5,5,4,5,4,4,5,6,6,6,6,7,7,9,10,10,13,14,14,14,14,16,15,15,16,18,17,17,19,21,20,21,23,22,24,22,24,21,20,22,21,19,21,21,21,20,21,22,25,26,26,24,25,25,25,26,27,26,26,26,26,26,26,27,26,27,26,27,26,27,27,26,26,25,26,26,25,26,25,25,26,24,25,26,24,24,24,22,23,22,19,17,17,16,14,12,10,8,7,6,5,5,5,5,4,4,4,4,4,5,4,5,5,5,7,6,7,7,7,8,7,8,9,9,8,8,8,7,7,8,7,7,9,8,9,9,7,9,8,7,7,8,6,6,5,7,6,5,6,5,5,4,4,4,3,4,4,3,4,4,3,4,5,4,4,6,6,5,6,7,7,9,9,8,8,8,7,7,6,6,7,6,6,5,6,6,6,5,6,6,6,6,6,6,5,5,5,6,5,6,6,5,4,5,6,5,6,6,5,5,5,6,6,7,8,9,9,7,7,6,7,6,7,7,6,7,8,8,9,9,9,9,10,10,9,9,8,9,8,8,8,7,7,7,7,6,5,6,5,5,5,6,5,5,5,5,4,5,5,6,4,4,6,4,4,5,5,4,4,5,4,4,4,5,4,3,4,5,3,3,5,5,4,4,4,4,4,5,5,4,5,5,5,4,4,6,5,5,5,5,5,5,4,5,5,6,6,6,7,7,8,8,7,8,8,8,9,9,9,10,10,10,10,10,10,10,10,10,10,9,9,9,8,8,8,7,6,5,5,5,5,5,4,4,4,4,3,4,5,3,3,3,3,2,2,3,2,1,0,1,2,2,2,2,3,3,4,5,5,4,5,4,4,5,4,4,5,5,5,4,5,4,5,4,4,4,4,4,3,3,3,3,2,3,3,3,3,4,4,4,4,5,5,6,6,6,6,6,6,6,6,6,5,5,5,5,4,5,5,4,4,3,5,4,5,5,5,4,6,5,6,5,6,5,7,6,5,4,4,5,4,4,4,3,3,3,4,3,3,4,4,4,4,5,5,5,6,6,6,6,6,7,8,9,10,10,10,12,10,12,12,15,15,18,20,19,22,22,21,20,22,23,19,23,20,22,24,22,25,24,24,25,24,25,27,25,24,24,23,23,22,21,22,24,24,22,24,22,22,24,24,21,19,23,22],[29,29,29,29,29,28,28,29,27,27,27,27,28,25,27,25,26,26,26,27,27,26,26,27,26,26,28,27,27,28,27,28,28,28,27,28,28,28,29,28,27,27,27,27,27,26,26,24,25,24,23,23,23,21,19,20,19,17,18,18,14,12,10,8,7,6,6,5,5,5,4,4,4,4,4,4,5,5,5,5,5,6,5,5,5,6,6,6,6,7,7,7,7,7,7,8,7,8,8,9,8,9,9,8,9,10,9,10,10,11,11,10,8,9,8,9,8,9,8,8,9,8,8,9,9,8,8,8,8,7,8,8,7,8,8,9,8,8,8,8,8,7,8,8,7,7,8,7,7,8,7,7,6,6,8,7,8,8,8,8,8,7,7,7,7,6,7,7,6,6,7,7,6,7,7,7,6,7,7,7,7,6,6,7,6,6,6,7,6,6,6,6,6,6,7,8,8,7,7,7,8,7,7,8,7,7,7,7,6,7,7,6,7,7,7,6,6,6,6,5,5,6,6,5,5,6,5,5,6,5,5,5,6,6,7,6,6,7,7,7,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,6,6,6,6,5,5,5,5,4,5,5,4,5,5,4,4,5,5,5,5,5,5,6,6,5,6,5,5,5,5,5,5,5,5,4,4,4,5,4,4,5,4,4,4,4,3,4,4,3,3,4,4,3,3,4,4,3,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,5,5,6,6,6,9,10,9,12,13,13,12,13,15,14,14,15,17,18,17,18,20,22,21,22,23,24,22,24,22,20,21,21,21,20,22,23,20,21,22,24,25,27,26,26,26,26,27,27,26,26,26,26,27,27,27,27,27,27,27,27,26,26,26,26,26,26,27,25,26,25,24,26,23,24,23,23,23,23,21,21,20,19,17,16,14,12,11,9,7,6,5,4,4,4,3,3,3,4,4,4,4,4,4,5,5,6,6,6,7,7,7,7,7,7,7,7,8,7,6,6,6,5,5,6,6,7,7,6,6,7,6,6,6,5,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,7,6,6,6,6,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,3,4,3,4,4,5,4,4,4,4,4,4,4,4,4,5,5,6,7,8,7,6,6,5,5,5,5,6,5,5,6,7,7,8,7,7,8,8,7,7,7,7,6,7,6,6,6,6,6,5,5,5,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,2,3,3,2,3,3,3,2,3,3,2,2,3,3,3,2,3,3,2,3,3,3,3,2,2,3,3,3,3,4,3,4,4,4,4,4,4,4,4,4,5,5,5,6,6,6,7,7,6,7,7,7,7,7,8,7,8,8,8,8,8,8,8,8,7,7,7,7,7,7,6,5,5,5,5,5,4,4,4,4,4,4,3,4,3,3,2,2,2,2,2,1,1,1,1,0,1,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,3,3,3,3,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,4,4,4,4,3,4,4,4,4,4,4,4,3,3,3,4,3,2,3,3,2,2,3,3,2,3,3,3,3,3,4,3,4,3,4,4,4,4,6,7,8,8,9,11,10,12,12,16,16,16,18,18,23,20,19,20,22,21,19,25,21,23,24,22,26,25,26,25,24,24,27,25,25,24,24,25,25,22,23,26,25,22,25,23,23,24,25,20,21,25,22],[29,28,28,28,28,28,28,27,27,27,26,26,26,24,26,25,26,25,25,27,25,26,26,26,26,26,27,26,27,27,26,27,28,28,27,28,27,28,28,28,28,27,27,27,27,26,26,25,25,24,24,23,23,22,20,21,19,18,17,16,14,12,10,8,7,6,5,5,5,5,5,4,4,4,4,5,5,6,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,9,8,9,9,9,10,10,10,11,10,10,9,9,8,9,9,9,9,9,9,8,7,8,9,8,7,9,8,7,8,8,7,7,8,8,8,7,8,8,7,7,7,7,7,7,7,7,7,8,7,6,6,6,7,8,8,8,7,8,7,7,7,7,7,7,7,7,7,6,7,7,6,7,7,7,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,6,6,6,6,7,6,6,6,6,6,6,6,6,6,5,6,6,6,5,6,6,5,5,5,5,4,5,6,6,7,7,7,7,7,7,7,6,6,6,6,6,5,6,5,5,5,5,4,5,5,5,6,6,5,5,4,5,4,4,5,4,4,4,5,4,4,4,5,4,4,5,5,5,5,5,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,7,9,8,9,12,12,13,11,11,14,14,13,14,16,16,17,18,20,21,20,22,22,24,23,24,21,20,22,22,20,20,22,23,19,21,23,24,25,27,26,27,26,26,27,27,27,26,27,27,27,27,28,28,28,27,28,27,27,27,26,27,24,26,26,25,26,26,25,27,24,24,25,23,23,22,22,21,20,20,17,15,14,11,10,8,7,5,4,4,4,4,3,3,3,3,4,3,3,4,4,4,5,5,5,6,5,6,6,7,7,7,7,7,7,6,6,6,5,5,5,6,6,7,8,6,7,7,6,6,6,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,3,3,4,4,4,4,5,5,6,6,6,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,3,4,3,3,4,3,3,3,4,3,3,4,4,4,4,4,4,5,7,7,6,6,5,4,5,4,5,5,5,5,6,6,7,7,7,7,7,7,7,7,6,6,6,6,6,5,6,5,5,5,5,5,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,2,3,3,2,2,3,3,2,2,3,2,2,2,3,2,3,2,2,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,5,5,5,6,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,7,7,7,7,7,7,7,6,6,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,1,1,1,1,0,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,5,5,7,8,7,9,10,10,11,11,14,15,16,17,17,21,20,20,19,21,20,20,23,21,22,24,22,25,23,25,25,24,23,25,24,24,25,24,24,23,21,23,24,24,21,24,23,22,24,24,21,21,24,23],[29,28,28,28,28,28,28,27,27,26,27,26,26,24,26,25,26,26,25,26,25,25,27,26,25,26,27,26,27,26,25,27,28,28,27,27,27,28,28,28,28,27,26,27,27,26,26,24,25,24,22,22,22,22,20,21,20,20,18,17,15,13,10,8,7,6,5,5,5,4,4,4,4,4,4,4,5,5,5,5,5,5,5,4,5,5,5,6,5,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,9,9,9,9,10,10,9,8,8,8,9,8,9,8,8,8,8,7,8,8,7,7,8,7,7,7,7,6,7,7,8,7,7,7,7,7,6,7,7,7,6,7,7,6,7,7,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,6,7,7,7,7,7,7,7,7,6,6,6,7,6,6,6,6,6,6,5,5,6,5,5,5,5,5,6,6,7,7,6,6,7,7,6,6,7,6,6,6,6,6,6,6,5,5,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3,3,3,3,3,4,3,3,4,3,3,3,3,3,4,3,3,3,3,3,3,4,4,3,3,3,3,4,4,3,3,4,4,3,3,3,4,3,3,3,2,2,2,2,3,3,2,3,3,3,3,4,4,4,4,4,4,4,4,6,7,8,8,10,11,11,12,12,15,16,15,18,17,20,20,18,20,20,20,20,25,20,24,23,23,26,24,24,26,25,24,26,26,24,25,25,26,23,24,24,25,26,22,26,24,23,25,25,21,23,26,24],[29,29,29,29,29,29,28,28,28,28,28,26,28,24,27,25,27,27,26,28,27,26,27,27,26,27,28,26,28,28,26,28,28,29,27,28,28,28,28,28,28,28,27,27,27,26,26,24,25,24,23,23,23,22,19,21,20,18,18,19,14,11,9,7,6,5,4,4,4,3,3,3,3,3,4,3,4,4,4,4,4,4,4,3,4,4,4,5,5,5,5,5,5,5,6,5,6,6,6,6,6,6,7,6,7,7,7,7,7,8,8,7,7,6,6,7,7,7,7,7,7,6,6,7,7,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,6,5,6,6,5,5,6,6,5,6,6,5,5,5,6,6,6,6,6,6,5,5,5,6,5,5,5,5,5,5,5,5,5,5,6,5,5,5,6,5,5,5,5,5,5,5,5,5,4,4,5,5,4,5,5,6,6,6,5,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,5,5,6,6,6,6,6,6,6,5,5,5,5,4,5,5,4,4,4,4,4,4,4,5,5,5,4,4,4,4,3,3,4,3,3,3,4,3,3,3,4,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,4,4,4,4,4,4,3,3,4,4,4,4,4,4,5,7,8,8,11,14,14,12,11,14,14,13,14,17,18,16,18,20,22,21,22,24,24,23,24,22,20,22,21,21,21,21,22,22,21,23,24,24,27,26,26,26,26,27,27,27,27,28,28,27,28,28,28,28,28,28,28,28,28,27,28,26,26,28,26,28,27,26,27,25,24,24,24,24,25,21,21,21,20,18,16,15,12,9,7,6,5,4,4,3,3,3,3,3,4,3,4,4,4,4,4,4,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,5,7,6,6,5,4,3,4,3,4,5,4,4,4,5,5,6,5,5,6,6,5,6,5,5,4,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,2,3,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,4,4,4,5,5,5,4,5,5,5,5,6,6,6,6,6,6,7,6,6,6,7,6,6,5,6,6,5,5,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,1,2,2,1,1,2,2,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,2,3,3,3,3,4,3,3,3,3,4,3,3,3,3,3,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,5,6,7,7,8,10,10,11,12,14,17,16,18,19,20,20,18,19,22,20,20,24,21,24,24,22,26,24,25,26,26,24,26,25,25,24,25,26,25,24,24,26,25,22,25,23,24,25,26,22,23,26,24],[29,29,29,29,29,29,28,28,28,27,28,27,27,25,26,25,26,26,26,27,27,27,26,28,27,26,28,27,28,27,27,28,28,29,28,28,28,28,29,29,29,28,29,28,28,27,27,26,26,24,25,23,23,22,20,20,19,18,18,17,14,12,9,7,6,5,4,4,4,3,4,3,3,3,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2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,7,7,6,7,6,6,6,6,6,6,6,6,6,5,4,4,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,3,3,2,2,3,3,3,2,3,2,2,2,2,2,2,3,3,2,2,2,3,3,3,3,3,2,3,3,3,3,3,3,3,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,5,6,7,7,9,9,9,10,11,14,14,16,18,18,21,20,20,19,21,20,20,23,21,23,24,22,24,25,24,25,25,24,25,24,24,25,24,24,24,22,23,25,25,22,24,24,24,24,25,22,22,25,24],[29,28,28,28,28,28,28,27,27,27,26,27,26,24,26,25,26,26,26,26,26,26,27,27,26,27,27,26,28,26,26,27,27,28,27,28,27,28,27,27,28,27,27,27,27,26,25,24,24,23,23,21,21,21,19,18,19,18,16,16,13,11,9,7,6,5,5,5,4,4,4,4,4,3,4,4,5,5,5,5,4,5,5,4,4,5,5,6,5,5,5,6,6,6,7,6,6,7,7,7,7,7,7,7,8,8,8,8,9,9,9,8,8,7,7,8,8,7,7,8,8,7,7,8,7,7,7,8,7,6,7,7,6,6,7,7,7,6,6,7,7,6,7,7,6,6,7,6,6,7,6,6,6,6,6,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,6,5,5,5,6,5,5,5,5,5,5,5,6,6,6,5,6,6,6,5,6,6,6,6,5,6,6,6,5,5,6,6,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,4,4,5,5,5,6,5,5,4,4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,3,3,3,3,3,3,4,4,4,4,4,5,6,8,7,9,10,9,10,12,14,15,17,19,19,21,20,20,19,21,20,20,23,21,23,24,23,26,24,25,24,24,23,26,26,23,25,25,24,23,23,25,25,25,22,25,25,23,24,26,22,22,25,24],[29,28,28,28,29,28,28,27,27,27,26,25,27,23,25,23,26,25,25,26,25,24,26,27,25,27,27,25,27,27,25,27,27,27,26,27,26,27,27,27,27,27,27,27,27,26,24,23,24,23,23,22,21,21,19,19,20,18,17,16,14,12,9,7,6,5,4,4,4,4,4,3,3,3,4,4,4,4,5,4,4,4,4,4,4,5,4,5,5,5,5,6,5,6,6,6,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,8,7,6,7,7,7,7,7,7,8,6,6,7,7,6,6,7,6,6,7,6,6,6,7,7,7,7,6,7,6,6,6,6,6,6,6,6,6,6,6,6,5,5,6,6,6,6,6,7,6,5,6,6,6,6,6,6,6,6,6,6,5,6,6,5,6,6,6,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,6,6,6,5,6,6,5,5,6,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,4,4,4,5,4,4,5,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,4,5,4,4,4,5,5,5,6,6,5,4,5,4,4,4,4,4,3,4,4,3,3,4,4,3,4,4,4,4,4,4,4,4,3,3,4,4,3,3,4,3,3,3,4,3,4,4,4,4,3,3,3,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,7,7,9,11,12,12,12,11,13,12,13,13,14,16,15,15,18,21,19,20,22,22,21,23,21,21,21,19,19,21,21,22,21,20,21,25,23,26,25,26,25,25,26,26,26,26,26,26,26,27,27,27,27,27,27,27,26,27,26,27,24,25,25,25,26,26,25,26,25,24,25,23,24,24,20,21,21,19,17,15,14,12,9,8,6,5,4,4,4,4,3,3,3,3,4,4,3,4,4,4,4,5,5,5,5,6,5,6,6,6,6,6,6,6,6,6,5,5,6,6,6,7,7,6,6,6,5,5,5,5,4,4,5,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,6,6,6,6,5,5,5,4,5,4,4,4,4,4,4,3,3,4,4,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,2,2,3,3,3,3,3,4,5,7,7,6,5,3,3,4,3,4,4,4,4,4,5,5,5,5,5,6,6,5,5,5,5,4,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,6,5,5,5,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,3,3,2,3,3,3,3,3,3,2,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,3,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,5,6,7,7,9,10,10,10,11,14,15,17,19,19,21,20,19,20,20,21,20,23,21,24,24,22,26,24,25,24,26,23,26,25,25,25,25,25,24,23,25,26,25,24,25,25,25,24,25,23,23,25,25],[29,29,29,29,29,29,28,28,28,27,27,27,27,25,26,25,26,26,26,27,26,26,27,28,26,28,28,26,28,28,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,27,27,25,26,25,25,23,23,23,21,21,19,20,20,17,14,12,8,6,5,5,4,4,4,3,4,3,3,3,4,4,4,4,5,4,4,4,4,4,4,4,4,5,5,5,5,6,5,6,6,6,6,6,6,6,6,7,7,7,7,7,8,8,8,9,9,8,7,7,7,7,7,7,7,7,7,6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,5,5,5,5,6,6,6,6,6,6,6,6,6,7,6,6,6,6,5,6,6,5,5,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,3,2,2,2,3,3,3,3,3,2,2,3,3,3,2,3,3,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,4,5,6,7,7,8,10,9,10,11,14,14,16,18,17,21,21,19,18,20,20,21,24,21,24,22,23,26,25,24,24,25,24,25,26,25,25,23,25,25,23,23,25,25,24,25,24,25,24,26,23,22,24,25],[28,28,27,28,27,27,27,26,27,26,25,26,25,24,24,25,25,25,26,26,25,25,26,25,25,26,26,25,26,25,24,26,27,27,26,26,25,26,26,26,27,26,26,26,26,26,26,23,23,23,23,20,20,21,19,19,18,18,16,15,13,11,8,6,6,5,4,4,4,3,4,3,3,3,4,4,4,5,5,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,7,6,6,7,7,7,7,8,8,8,8,9,9,8,7,7,7,7,7,7,7,7,8,6,6,7,7,6,7,7,7,6,7,7,6,6,7,7,7,6,6,7,6,6,6,6,6,6,6,6,5,6,6,5,6,5,6,6,6,7,6,7,6,6,6,6,6,5,6,6,6,5,6,6,5,6,6,6,6,6,6,6,6,5,5,6,5,5,5,5,5,5,5,5,5,5,5,6,6,6,5,6,6,6,5,6,5,6,5,5,5,5,6,5,5,6,5,5,5,5,5,4,5,5,4,4,5,5,4,4,5,5,4,5,5,6,6,6,6,6,6,6,6,5,5,6,5,5,5,5,4,4,5,4,4,4,5,5,6,5,5,4,4,4,3,3,4,4,3,4,4,3,3,4,4,3,4,4,4,4,4,5,4,4,3,4,4,4,3,3,4,3,3,3,4,3,3,4,4,3,3,3,3,3,3,3,3,4,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,3,4,4,4,5,6,6,7,10,9,10,10,10,11,12,10,11,13,13,12,13,16,16,17,19,19,21,19,22,20,20,21,18,18,18,20,20,18,20,23,24,23,26,25,26,26,26,27,27,27,27,27,28,28,28,28,28,28,28,28,27,27,28,27,26,26,26,26,25,25,25,25,26,24,23,23,23,22,21,20,20,19,18,15,13,13,10,9,7,6,5,4,4,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,4,5,6,6,5,6,6,6,6,6,6,6,5,5,5,6,6,6,7,7,6,6,6,5,5,5,5,4,4,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,6,6,6,6,5,5,5,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,4,4,7,6,6,5,4,3,4,4,4,5,4,4,5,5,6,5,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,3,2,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,6,6,5,6,6,5,5,5,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,3,2,2,2,3,3,2,3,3,2,2,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,6,7,7,8,10,9,10,11,14,14,16,17,17,20,20,20,17,19,18,19,22,20,22,22,22,24,23,23,23,25,22,25,25,24,24,23,23,24,21,22,24,24,22,24,23,23,24,25,22,21,24,23],[28,27,27,27,27,27,27,26,25,26,24,24,24,22,24,24,25,23,24,24,22,23,24,23,22,24,24,23,25,24,23,25,25,26,25,25,24,25,25,25,26,24,24,24,25,25,24,22,22,22,22,20,20,21,20,19,18,18,16,16,13,11,9,7,6,6,5,5,5,4,4,4,4,4,4,4,5,5,5,5,4,5,5,4,5,5,5,5,5,5,6,5,6,6,6,6,6,6,7,6,6,7,7,7,7,7,8,8,8,8,9,8,7,7,7,8,8,8,7,8,8,7,6,8,7,7,7,7,7,6,7,7,6,6,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,6,5,5,5,5,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,6,6,6,7,7,6,6,6,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,6,6,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,4,5,4,5,5,5,6,6,6,8,10,10,11,11,10,10,12,11,11,13,13,13,13,16,17,16,18,20,21,19,21,21,18,20,18,16,18,21,20,18,20,23,22,22,25,23,26,26,25,26,26,26,25,25,26,25,26,26,26,26,26,26,25,26,27,25,25,23,23,24,22,25,24,24,25,23,22,22,20,21,21,20,19,18,17,16,14,12,11,9,8,7,5,4,4,4,4,3,3,3,3,4,4,3,4,4,4,4,5,5,5,5,6,5,6,6,7,6,6,6,6,6,6,5,5,6,7,6,7,7,6,6,6,5,5,6,5,4,5,5,5,4,4,4,4,4,4,4,3,4,3,3,4,4,3,4,4,4,4,4,4,4,5,5,6,6,7,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,6,7,6,4,4,4,4,4,4,5,4,4,5,5,6,6,5,5,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,3,4,4,5,5,5,6,6,5,6,6,6,6,7,6,6,7,7,7,7,6,6,6,6,6,5,6,6,6,6,6,5,5,4,4,4,4,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,6,7,8,8,9,10,10,10,11,13,13,16,17,17,20,19,19,16,19,18,19,23,20,22,22,21,25,23,23,23,24,22,24,25,23,23,23,24,23,21,22,23,24,22,24,24,23,24,25,22,21,23,23],[27,28,27,27,27,27,28,27,26,26,25,24,26,23,25,24,25,24,23,25,22,21,25,24,22,25,25,24,26,25,23,26,26,26,25,27,25,26,26,25,27,25,24,25,26,26,25,22,24,24,23,22,22,21,20,20,19,19,19,17,15,12,9,7,6,5,4,4,4,4,4,3,4,4,4,4,4,5,5,4,4,5,4,4,4,5,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,8,8,7,6,7,6,7,7,7,7,7,7,6,6,7,7,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,6,5,6,6,6,6,6,6,6,5,5,6,5,5,6,6,6,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2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,6,7,8,8,9,10,10,10,11,14,15,16,18,17,20,19,19,18,20,19,20,23,20,22,23,21,25,25,24,24,26,24,24,26,25,24,24,25,24,22,22,26,26,24,25,23,25,24,26,25,22,24,25],[27,27,27,27,27,26,26,26,25,25,24,24,25,23,24,23,24,23,23,24,22,21,24,23,21,24,25,22,25,23,22,25,25,25,25,26,24,26,26,26,26,25,23,25,25,25,25,21,23,23,21,18,21,20,18,19,19,18,17,16,13,11,7,5,4,4,4,4,4,3,4,4,4,4,4,4,4,5,5,4,5,5,5,4,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,6,7,7,7,7,7,8,8,8,8,9,8,8,7,7,7,7,8,8,8,8,8,7,7,8,7,7,7,7,7,7,7,7,6,7,7,7,7,7,6,7,7,6,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,6,5,6,6,6,6,6,5,6,6,6,5,6,6,5,5,5,5,5,6,5,5,6,6,5,5,6,6,5,5,5,5,5,5,6,5,5,5,5,5,5,5,6,7,6,6,6,7,6,6,6,6,6,6,6,6,6,5,5,6,5,5,5,6,6,6,6,5,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,5,4,5,5,5,4,4,4,4,4,4,5,4,4,4,5,4,4,5,5,5,5,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,4,5,4,4,4,4,3,4,4,4,4,4,4,4,5,5,6,7,8,10,11,9,10,11,10,11,11,12,12,12,16,16,16,19,19,20,20,20,19,18,19,19,18,18,20,20,18,20,22,20,22,25,23,24,24,24,24,25,25,25,25,25,25,25,26,26,26,24,26,25,26,24,25,25,22,25,24,23,24,23,22,24,21,22,22,19,20,19,17,18,16,16,14,13,12,10,8,7,6,5,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,6,6,5,5,7,6,6,6,7,6,6,6,7,6,6,6,6,7,7,7,8,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,6,6,7,7,7,7,6,6,5,5,5,5,5,5,4,5,5,5,4,5,5,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,6,6,6,5,4,3,4,4,4,4,4,4,5,5,5,5,5,5,6,5,5,5,5,5,4,5,4,4,4,4,4,3,4,4,3,3,4,4,3,3,4,3,3,3,4,3,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,5,5,5,5,5,6,6,5,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,4,3,3,3,4,3,3,3,3,2,3,3,3,2,3,3,2,2,3,2,2,3,3,3,2,2,2,2,1,1,1,1,1,1,0,1,1,1,2,1,2,2,2,2,2,3,3,3,3,3,2,2,3,2,2,2,3,2,2,2,2,2,2,2,2,2,3,3,3,2,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,4,3,4,4,4,4,3,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,4,4,4,3,4,4,4,4,5,5,5,5,6,6,7,8,8,10,9,11,11,13,12,15,16,16,20,17,20,16,18,17,18,20,18,20,21,19,22,23,22,22,22,21,24,23,22,23,22,22,21,21,21,23,22,21,21,21,22,22,24,21,19,22,23],[29,29,29,29,29,29,28,28,28,28,27,27,28,26,26,26,26,26,26,27,25,26,27,26,25,27,27,25,27,27,25,27,28,27,27,28,27,28,27,27,28,27,27,27,27,26,26,24,25,24,24,22,23,22,20,21,20,19,19,19,16,13,9,6,5,5,3,3,4,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,7,6,7,7,7,7,8,8,8,8,8,9,8,7,7,6,7,7,7,8,7,8,6,7,7,7,6,6,7,6,6,6,6,6,6,7,7,6,7,6,6,7,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,6,5,5,5,5,4,5,5,5,4,5,5,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,6,6,6,6,5,5,5,4,4,4,4,4,4,4,4,4,3,4,4,3,4,4,4,5,4,4,4,4,3,3,4,4,3,3,4,4,3,3,4,4,4,4,4,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,4,4,3,3,4,3,5,6,7,8,9,12,13,12,11,13,13,11,12,14,13,14,16,17,17,19,19,20,22,21,22,22,20,22,19,19,20,21,21,20,21,24,24,25,26,25,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,25,26,26,26,26,25,24,26,23,23,24,23,23,22,19,20,19,18,16,15,13,11,9,7,6,5,4,4,3,4,4,3,4,4,4,4,4,4,5,4,5,5,5,5,5,6,6,6,6,7,7,7,6,6,6,6,6,5,6,6,6,7,7,6,6,6,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,3,4,3,3,4,4,4,4,4,4,4,5,5,5,5,6,6,7,7,7,7,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,6,7,7,5,4,3,4,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,5,5,4,5,5,5,5,6,6,5,6,6,6,6,6,6,5,6,5,5,5,5,5,5,4,4,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,2,2,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,3,3,3,3,3,3,3,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,5,5,5,5,5,7,8,8,9,9,11,11,11,12,14,15,15,17,17,21,20,19,18,19,19,20,23,21,23,23,22,26,26,23,25,24,22,25,25,24,24,24,25,24,22,23,25,25,24,25,22,25,24,26,25,22,24,25],[29,29,29,29,29,29,28,28,28,27,28,28,28,27,26,27,26,26,26,25,26,26,25,26,26,26,27,26,27,27,26,27,27,28,27,27,27,28,27,27,27,27,27,27,26,26,26,24,23,23,24,23,22,22,22,21,20,21,20,18,15,14,9,5,5,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,8,8,9,9,7,7,6,6,7,7,7,7,7,7,6,6,7,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,5,5,6,6,5,5,6,5,5,5,5,5,5,5,5,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,6,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,6,6,6,5,5,6,5,5,6,5,5,5,4,4,5,5,4,4,5,5,4,4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,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,6,7,8,8,9,11,10,11,11,13,14,15,17,17,21,19,19,18,20,18,19,23,20,22,22,21,25,24,23,23,24,22,24,24,23,23,23,23,23,22,22,25,23,23,24,23,23,22,25,23,21,24,24],[28,29,28,28,28,28,28,28,27,26,26,25,27,25,25,26,25,25,26,25,25,25,25,25,25,26,26,24,26,25,24,26,26,26,26,27,26,27,26,26,26,26,25,25,25,25,25,22,23,23,21,21,21,21,19,19,20,19,18,17,14,12,9,6,5,4,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,4,3,3,3,4,4,3,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,7,7,6,6,6,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,7,6,5,6,6,6,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,6,5,5,5,6,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,5,6,6,5,5,5,5,5,5,5,5,4,4,4,4,5,4,4,4,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,5,5,5,5,5,5,5,5,4,5,5,4,4,5,5,5,5,5,5,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,4,3,3,3,4,3,3,4,4,4,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,4,4,4,6,7,8,10,10,12,10,11,12,13,12,12,14,12,13,14,17,16,17,19,21,22,20,23,21,19,20,19,18,18,21,21,19,20,22,22,23,25,24,25,25,25,26,26,27,26,26,26,26,26,27,27,27,26,27,27,27,26,25,26,25,26,25,23,26,23,24,26,22,22,23,21,22,20,18,20,17,17,15,13,13,11,8,7,5,4,4,3,3,3,3,3,3,4,4,4,3,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,5,5,6,5,6,6,6,6,6,5,5,6,5,5,5,5,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,5,5,6,6,6,6,6,6,5,5,5,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,3,3,3,3,3,3,3,3,2,3,2,2,3,2,2,3,3,3,4,6,5,5,4,4,3,3,3,3,4,4,3,4,4,5,5,4,5,5,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,1,2,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,4,5,4,5,5,4,4,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,6,6,7,8,9,10,9,10,10,12,12,14,15,15,19,18,17,16,17,17,17,21,18,19,20,19,22,22,21,22,23,21,23,23,22,21,22,22,22,19,21,23,23,22,22,22,21,22,23,22,20,23,22],[27,29,28,28,29,29,28,28,28,27,27,26,27,25,26,25,26,25,24,26,25,24,25,25,24,26,27,24,27,26,24,27,27,27,26,28,26,27,27,26,27,26,26,26,26,26,24,23,24,23,21,21,22,21,19,20,20,18,19,19,16,13,10,6,5,4,3,3,3,2,2,2,2,3,3,3,3,3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,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,4,5,5,5,4,4,4,4,5,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,1,1,2,1,1,1,2,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,6,7,8,8,9,10,10,10,11,13,14,15,16,17,21,18,19,18,20,18,20,22,19,22,22,21,24,24,24,24,24,23,25,25,24,24,23,25,23,23,23,26,26,23,25,24,24,25,25,24,22,25,25],[29,29,29,29,29,30,29,29,29,28,28,28,28,27,27,26,26,27,26,26,27,27,26,28,26,27,28,26,28,27,26,27,28,28,27,28,27,27,27,27,27,27,26,26,25,25,24,23,23,23,24,22,21,21,20,20,20,21,21,19,16,13,9,6,5,4,3,3,3,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,6,6,5,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,5,5,5,5,5,5,4,4,4,4,4,4,4,5,4,4,5,5,4,5,5,5,5,5,5,5,5,5,4,5,4,4,5,5,4,4,4,4,4,5,5,5,5,6,5,5,5,5,5,5,5,4,4,4,4,4,5,4,4,4,4,4,4,4,4,3,3,4,4,3,4,4,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,4,4,4,3,3,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4,4,3,4,4,4,4,4,6,7,8,8,9,11,10,11,12,13,15,15,18,17,20,19,19,18,20,19,20,22,20,21,23,22,25,25,24,24,25,24,24,26,24,24,24,25,24,22,23,25,24,24,25,23,25,24,26,23,21,25,24],[28,28,28,29,28,29,28,28,28,27,27,27,27,27,26,27,26,27,26,25,26,26,25,26,25,26,27,25,27,26,25,27,27,27,27,27,27,27,27,26,27,26,25,26,25,24,24,23,23,22,22,21,21,22,20,20,20,20,18,18,14,13,8,5,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,4,4,3,4,4,4,4,4,4,5,5,5,6,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,8,8,7,6,6,6,6,6,7,7,7,7,6,6,6,7,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,6,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,5,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,5,5,4,4,5,4,4,4,5,4,4,5,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,4,5,5,5,6,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,4,4,3,3,3,4,3,4,4,4,4,4,3,3,4,4,3,3,4,4,4,4,4,4,4,5,4,4,4,5,4,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,6,7,7,10,9,11,9,8,12,10,10,12,14,12,12,14,16,16,16,20,21,22,21,22,21,20,20,19,19,18,19,21,19,20,23,23,23,26,26,26,25,26,26,27,27,27,27,27,27,27,27,27,27,26,27,27,27,27,25,26,24,26,25,23,25,24,22,25,21,22,22,21,21,21,18,20,19,17,16,14,13,11,9,7,6,4,4,3,3,3,3,3,3,3,4,4,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,7,6,6,6,6,6,7,7,7,7,6,6,6,6,5,6,5,4,5,5,5,4,5,4,4,4,4,4,3,4,3,3,4,4,4,4,4,4,4,5,5,5,5,6,6,6,7,7,6,6,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,4,5,5,6,5,4,3,4,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,4,4,4,5,4,4,3,3,2,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,2,2,2,1,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,5,6,7,8,8,9,10,10,10,11,13,14,14,16,16,19,18,19,17,18,17,18,20,19,21,22,20,24,23,23,23,24,23,23,24,24,23,23,24,22,21,22,24,23,22,23,22,23,22,24,22,21,22,23],[28,28,28,28,28,28,28,27,28,26,27,27,26,27,26,26,27,26,26,26,25,24,25,26,24,25,27,24,27,26,24,27,27,27,26,27,26,27,26,26,26,26,25,25,25,24,24,23,23,22,22,21,22,20,19,19,19,18,17,17,15,12,9,6,4,4,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,3,4,4,4,4,4,5,5,5,5,5,6,5,6,6,6,6,6,6,6,6,7,7,7,7,7,8,8,7,6,6,6,7,7,7,7,7,7,6,6,7,6,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4,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,5,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,3,3,2,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,2,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,7,8,8,9,10,10,10,12,12,13,14,15,15,19,17,17,16,18,17,17,20,18,21,21,18,23,20,22,22,23,22,24,24,22,22,22,23,20,19,22,23,23,22,22,21,22,22,22,21,19,22,22],[28,28,28,28,28,29,28,28,28,27,28,28,27,27,26,27,26,27,26,27,27,26,27,27,26,27,27,26,27,26,25,27,28,28,27,28,26,28,27,27,27,26,26,26,25,25,23,24,23,22,24,22,21,21,20,20,19,19,18,17,14,13,9,6,5,4,3,3,3,2,3,2,3,3,3,3,3,4,3,3,3,4,3,3,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,7,6,6,7,7,7,7,7,7,7,6,6,7,7,6,6,7,6,6,6,6,6,6,7,7,7,6,6,6,6,6,6,6,6,5,6,6,5,5,6,5,5,5,6,5,6,6,6,6,5,4,4,5,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,5,5,6,5,5,5,6,5,5,6,5,5,6,6,6,7,7,6,6,6,6,6,6,6,5,5,5,5,5,6,5,5,5,5,5,4,5,5,4,4,5,5,4,4,4,4,4,4,5,4,4,5,5,5,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,4,5,5,6,6,6,6,6,5,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,5,5,4,5,4,4,3,3,4,4,3,3,4,3,3,3,4,4,3,4,4,4,4,3,3,3,4,4,3,4,4,4,4,4,4,4,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,3,4,5,7,7,9,11,12,10,12,13,12,12,12,14,14,14,16,17,18,19,20,20,22,21,23,21,21,21,21,21,20,21,22,21,21,23,25,24,26,25,26,26,26,26,26,26,26,26,26,26,27,27,26,27,26,26,27,26,27,25,26,25,25,25,24,25,24,23,25,22,21,23,21,21,20,18,19,18,17,15,14,13,11,10,8,6,5,4,3,3,3,4,3,4,4,5,4,5,4,5,5,5,6,6,6,6,7,6,6,7,8,7,8,7,7,7,6,6,6,6,7,7,7,7,6,7,7,6,5,6,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,7,7,7,7,7,6,6,5,5,5,5,4,4,4,5,4,4,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,6,6,6,5,4,4,4,4,4,4,4,4,4,5,5,6,5,5,6,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,5,5,6,5,5,5,5,5,4,5,4,5,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,2,1,2,2,1,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,5,7,8,9,9,10,11,11,11,11,14,14,15,17,17,20,19,19,18,18,19,19,22,20,22,22,20,24,24,22,23,24,23,24,24,24,24,24,24,24,21,23,25,25,23,25,22,24,24,26,23,21,25,25],[28,28,28,28,28,29,28,28,29,28,28,28,28,28,27,27,27,28,28,27,28,27,26,28,27,27,28,27,28,27,27,28,28,28,28,28,27,28,28,28,28,27,26,26,25,25,24,23,22,22,23,21,20,21,20,20,20,21,19,17,15,13,10,7,6,3,2,2,3,2,2,2,3,3,3,3,3,4,4,3,3,4,4,3,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,7,6,7,7,7,7,7,7,7,7,6,6,7,7,7,6,7,7,6,7,6,6,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,6,6,6,6,6,6,5,5,5,5,5,5,5,6,5,5,5,5,5,5,6,6,6,6,6,5,6,5,5,6,5,5,5,6,5,5,5,6,5,5,6,6,7,7,6,6,7,7,6,6,6,6,6,5,5,5,6,5,5,5,5,5,5,5,5,4,4,5,4,4,4,5,4,4,4,4,4,4,5,5,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,4,5,6,6,6,6,6,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,4,5,4,4,3,3,4,4,3,3,4,3,3,3,4,4,4,4,4,4,3,3,3,3,4,3,3,4,4,4,4,4,4,4,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,5,4,6,7,8,10,11,12,10,10,15,12,11,13,14,12,13,15,17,16,17,21,21,23,23,24,22,21,22,21,20,20,22,22,21,22,24,25,26,27,26,26,26,27,27,28,28,28,28,28,28,27,28,28,28,27,27,28,27,28,26,27,25,27,27,25,27,25,25,27,24,23,24,22,22,21,19,20,19,17,15,15,13,12,11,8,6,4,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,6,6,6,6,7,7,7,7,8,7,8,7,7,7,7,6,6,7,7,7,8,8,7,7,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,7,7,7,7,7,7,6,6,5,5,5,5,4,4,4,5,4,4,4,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,4,6,6,6,5,4,4,4,4,4,5,4,4,5,5,6,6,5,6,5,6,5,5,5,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,5,5,5,5,5,5,5,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,2,2,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,2,3,3,3,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,7,8,9,9,10,11,11,11,11,14,14,15,18,17,20,18,19,18,19,18,19,21,19,21,22,21,24,25,23,23,24,23,24,25,24,24,24,24,24,22,23,25,24,22,24,23,24,23,26,23,20,24,24],[28,27,27,27,27,28,27,27,27,27,26,26,26,26,26,27,26,27,26,26,27,26,26,27,26,26,27,25,27,27,25,27,28,27,26,27,26,27,27,26,26,26,25,25,24,24,23,22,22,21,22,21,21,21,19,18,19,18,16,16,14,11,9,7,7,4,3,2,3,3,3,3,3,4,4,4,4,5,4,4,4,5,4,4,5,5,5,5,6,6,6,7,6,7,7,7,7,8,7,7,8,8,8,8,8,8,8,9,9,9,9,8,7,8,8,8,8,8,8,8,8,8,7,8,8,8,8,8,8,8,8,8,8,7,8,9,8,8,7,8,8,7,7,7,7,7,7,7,6,7,7,7,6,6,7,7,7,7,7,7,6,5,6,6,6,5,6,7,6,6,7,7,7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,3,3,3,3,3,3,3,2,2,2,2,2,1,1,1,1,1,0,1,1,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,4,4,4,4,4,4,3,4,4,4,4,4,5,5,4,4,5,5,4,5,5,5,4,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,8,8,9,10,11,12,12,12,13,13,14,16,17,17,19,18,18,18,18,17,18,20,19,20,21,20,23,22,22,22,23,22,24,24,22,23,22,23,21,21,21,22,23,21,22,21,22,22,23,21,19,22,23],[28,28,28,27,28,29,28,28,28,27,27,27,27,27,27,27,27,28,27,27,27,26,27,27,26,27,28,26,28,27,26,28,28,28,28,28,28,28,28,27,28,27,26,26,26,25,24,23,23,23,22,21,21,20,19,19,18,18,17,15,13,11,9,7,6,3,3,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,8,8,8,8,7,6,6,6,7,7,7,7,7,7,6,6,7,7,7,6,7,6,6,6,7,6,7,7,7,7,6,6,6,6,6,6,6,6,5,6,6,5,5,6,5,5,5,6,6,6,6,6,5,5,4,5,5,4,4,5,5,5,5,5,6,6,5,5,5,6,6,6,6,6,5,5,6,5,6,6,6,5,5,6,6,6,6,6,7,7,7,6,7,7,7,6,7,6,6,6,6,5,6,6,5,6,5,5,5,4,5,5,4,5,5,4,4,4,4,4,4,4,5,4,4,5,5,6,6,6,6,6,6,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,6,7,6,6,5,5,4,4,5,5,4,4,5,4,4,4,5,4,4,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,4,4,4,5,6,7,9,12,11,10,11,12,12,12,13,14,13,15,17,17,17,19,20,21,22,20,23,21,21,22,21,20,21,22,23,21,22,23,25,24,26,25,26,26,27,26,26,27,26,27,27,27,27,26,26,27,26,26,26,27,26,26,26,24,25,25,24,25,23,23,25,22,21,23,20,21,20,18,18,19,16,15,15,14,12,11,8,7,5,4,4,3,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,7,8,8,7,8,8,8,8,8,8,7,7,7,7,7,8,8,8,8,8,7,7,6,6,6,6,5,6,6,5,5,5,5,4,5,4,4,5,5,5,5,5,5,5,5,5,5,5,6,5,6,6,7,7,7,8,8,8,7,6,6,6,5,5,5,5,5,5,5,4,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,4,5,6,6,7,6,5,4,4,4,4,5,5,4,5,5,6,6,5,5,5,5,5,5,5,5,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,4,3,3,3,4,3,3,4,3,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,3,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,5,6,6,5,5,5,5,5,5,5,5,5,5,4,4,3,2,2,3,3,2,2,2,2,2,2,3,2,2,2,2,2,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,1,0,1,1,1,2,2,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,3,3,3,3,2,3,2,2,3,3,2,2,3,3,2,2,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,4,4,5,5,4,4,5,5,4,5,5,5,5,5,5,5,6,5,5,5,6,7,8,9,10,10,11,12,12,12,14,14,16,17,17,20,19,19,18,18,19,19,21,20,21,21,22,24,24,23,23,23,23,25,24,24,24,22,24,24,22,23,24,24,24,25,24,24,24,26,24,20,24,24],[27,27,28,27,28,28,28,28,28,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,26,27,28,26,27,28,26,28,28,28,28,28,28,28,28,27,28,27,27,26,26,25,24,23,23,22,22,21,21,21,19,20,19,18,17,16,12,12,9,6,5,4,6,5,3,4,3,3,4,4,5,4,5,5,5,6,5,6,5,5,6,7,6,6,6,7,8,8,8,9,8,8,9,9,9,9,9,9,9,9,10,10,10,11,10,11,10,10,9,10,9,9,9,9,9,9,10,9,9,10,10,10,9,10,10,9,9,9,9,9,9,10,9,10,9,9,10,9,9,9,9,8,9,9,8,9,8,8,8,8,8,8,7,8,8,8,7,6,6,7,7,6,8,8,8,8,7,8,9,7,8,8,8,8,8,8,8,9,8,8,9,8,8,8,9,8,8,8,9,8,8,9,9,10,9,9,9,10,10,10,9,9,8,8,8,8,8,8,8,8,8,8,7,8,8,7,7,7,8,7,7,7,7,5,6,7,5,5,6,6,7,7,8,8,8,8,8,8,8,8,8,8,8,8,7,8,7,8,7,8,8,8,8,8,8,8,8,8,7,7,8,8,7,7,8,7,7,7,8,7,7,7,7,8,7,8,8,7,6,5,6,6,5,5,7,6,6,5,7,6,6,7,7,7,5,5,4,5,5,5,5,5,6,6,5,6,7,7,7,7,7,7,7,6,6,6,5,5,4,4,4,4,4,3,3,4,4,5,5,6,5,6,8,7,9,10,10,10,10,12,12,12,14,15,14,16,17,18,18,19,21,21,23,21,24,22,21,22,21,21,22,23,23,22,23,24,26,26,26,26,26,27,27,27,28,28,27,28,28,28,28,27,27,28,27,27,27,27,27,25,27,24,26,26,22,26,23,24,26,22,22,24,21,21,22,20,20,20,17,17,16,14,13,12,9,7,6,4,5,4,5,4,6,6,7,7,7,8,8,8,9,9,9,9,10,9,10,9,9,10,10,10,10,11,10,9,9,9,10,9,10,10,10,10,10,9,9,9,9,9,8,8,8,8,7,7,7,7,6,6,6,7,6,7,6,7,7,7,8,7,8,8,8,9,9,9,8,9,9,9,10,11,9,9,9,8,9,8,8,8,8,7,7,8,8,8,8,8,7,8,7,7,8,7,6,7,6,6,6,6,5,5,6,5,5,5,5,4,4,4,5,6,7,7,8,7,7,7,6,6,6,7,7,6,7,8,8,8,8,8,8,8,7,7,7,6,6,6,6,5,5,6,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,6,6,6,6,6,7,8,7,7,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,4,4,4,4,4,4,3,3,3,2,2,3,3,3,3,3,4,4,5,5,5,6,6,6,7,7,6,7,7,8,7,7,8,7,7,7,7,6,6,6,5,6,5,6,5,6,5,4,5,3,3,4,3,3,3,3,3,3,4,4,4,3,4,5,5,5,6,6,5,5,6,6,5,5,6,6,6,5,5,6,5,5,4,4,3,3,3,3,2,2,2,1,1,0,1,2,2,2,2,2,3,3,3,4,4,4,4,5,5,5,5,6,5,6,6,5,5,4,4,5,4,4,3,5,5,4,3,4,4,4,3,4,4,4,5,6,6,6,6,6,5,6,6,6,6,6,7,7,7,6,8,7,7,7,7,8,6,7,7,8,7,8,8,8,7,8,8,8,8,8,8,9,8,9,10,11,11,13,14,14,14,15,16,16,18,19,20,21,19,23,20,21,19,21,23,23,23,24,24,24,24,26,23,25,25,27,25,25,27,24,26,24,24,24,25,25,23,25,24,25,26,25,24,22,24,25],[28,28,28,28,29,29,29,29,29,28,28,27,28,27,28,27,28,28,27,28,28,27,27,28,27,28,28,27,28,28,27,28,28,29,28,28,28,28,28,28,28,27,27,27,27,26,25,24,24,23,23,22,22,20,19,19,18,17,16,15,12,11,8,7,6,4,4,3,3,2,3,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,7,7,7,7,7,8,7,7,7,8,8,8,8,8,8,8,8,7,7,7,7,8,7,7,7,7,7,7,8,7,7,7,7,7,7,7,7,7,7,8,8,8,7,7,7,7,6,6,7,7,6,7,6,6,6,6,6,5,5,6,6,6,6,6,6,6,5,6,5,5,5,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,8,8,7,7,8,8,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,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3,3,3,3,3,2,2,3,2,2,2,2,3,3,4,4,4,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,6,5,5,6,6,8,8,10,10,11,12,12,12,13,15,16,17,18,19,22,20,20,18,20,20,21,23,22,23,25,23,25,26,26,25,25,24,25,25,26,26,23,24,25,24,24,25,26,25,25,25,25,25,26,24,21,24,23],[28,28,28,28,28,29,28,28,29,27,27,27,27,27,27,27,27,27,27,27,28,27,27,28,27,27,28,27,28,27,26,28,28,28,27,28,27,28,28,27,28,27,26,26,27,26,25,24,24,23,23,22,22,21,19,20,19,18,19,17,14,11,8,6,6,3,3,2,3,2,3,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,7,6,6,6,7,7,7,8,7,7,8,8,8,9,9,9,9,9,8,7,8,8,7,7,7,8,8,8,7,7,7,8,7,7,8,7,7,7,7,7,7,8,8,8,8,7,7,7,7,7,7,7,6,7,7,6,6,6,6,6,6,6,6,6,6,7,6,6,5,6,6,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,8,8,8,7,7,8,8,8,7,8,7,7,6,6,6,6,6,6,6,6,6,5,6,6,5,5,6,5,5,5,5,5,4,5,5,4,4,5,5,6,6,6,6,6,6,6,6,6,6,6,5,5,6,5,5,5,5,5,5,6,6,7,6,6,5,5,5,5,5,5,5,4,5,5,4,5,5,6,5,5,6,6,6,6,5,6,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,5,4,4,4,3,3,4,3,3,4,4,4,4,4,4,4,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,4,3,3,5,5,7,8,8,9,12,13,9,10,16,13,11,16,15,15,16,18,18,18,21,20,21,23,21,24,22,21,22,21,20,22,22,24,22,23,24,26,26,26,26,26,27,27,28,28,28,28,28,28,28,28,28,28,27,26,27,27,27,27,26,26,26,26,26,24,25,24,24,25,23,23,24,22,22,22,20,20,19,17,17,16,15,12,11,8,6,5,4,3,3,3,3,3,4,4,4,4,4,5,5,5,5,6,6,6,7,7,7,7,8,8,8,9,8,8,7,7,7,6,7,7,8,8,9,7,7,7,6,6,6,6,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,7,7,8,8,8,8,7,6,6,6,6,5,5,5,4,4,5,5,4,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,6,7,7,8,7,6,5,5,5,5,6,5,5,6,6,7,7,7,6,7,6,6,6,6,5,5,5,5,5,4,5,5,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,4,4,3,3,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,3,4,4,4,5,5,5,6,5,5,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,3,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,2,2,2,2,2,2,2,1,1,0,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,3,4,4,3,3,3,3,3,3,2,2,3,2,2,2,2,3,3,4,4,3,3,3,3,4,4,4,4,5,5,4,5,4,5,5,4,5,5,4,4,5,5,4,4,5,5,4,5,5,5,5,5,5,5,6,6,8,9,10,10,11,12,12,11,13,15,15,16,18,18,20,20,20,18,20,19,19,23,21,22,22,21,24,24,24,24,24,23,25,24,24,25,24,24,23,22,24,25,25,22,25,23,24,24,25,23,21,24,23],[29,28,28,28,28,28,28,28,28,28,27,27,28,26,27,26,27,27,26,28,27,27,28,28,27,27,27,27,27,28,26,28,28,28,27,28,27,27,28,27,28,27,27,27,27,26,24,25,25,24,24,23,22,22,20,20,19,18,18,18,15,12,9,6,6,3,3,3,2,3,2,2,2,2,3,3,3,3,3,3,3,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3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,2,3,2,2,2,3,2,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,3,4,4,4,4,4,5,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,5,5,4,5,5,6,8,8,8,9,11,11,10,12,14,14,15,17,17,20,20,19,17,18,19,18,20,19,21,23,21,24,23,23,23,23,24,24,24,24,24,24,23,25,21,23,25,24,22,25,22,24,24,25,21,21,24,24],[28,28,29,28,28,29,28,28,29,27,28,28,28,27,27,26,26,28,27,26,28,27,27,28,26,28,29,27,29,28,26,28,29,29,28,28,28,28,28,28,28,27,27,27,27,26,25,24,24,23,23,22,22,21,19,19,18,19,19,16,13,12,9,7,6,4,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,5,4,5,5,5,5,5,5,5,6,6,6,6,6,6,7,6,7,7,7,7,7,7,7,6,6,5,6,6,6,6,6,6,5,5,6,6,5,6,6,6,6,6,6,5,6,7,7,6,6,6,6,6,5,6,6,5,5,6,5,5,5,5,5,4,4,5,5,5,6,5,5,4,4,4,4,4,4,4,5,4,4,5,5,4,4,5,5,4,5,5,5,5,4,5,5,4,4,5,5,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,3,4,4,3,3,4,4,3,3,4,4,5,5,4,5,5,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,5,5,6,5,5,5,4,4,4,4,4,4,3,4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,5,4,4,5,6,7,8,8,10,11,11,11,12,13,15,16,18,17,20,19,20,17,19,19,19,22,20,23,23,21,25,24,24,24,25,24,25,25,24,24,24,25,25,22,23,25,24,24,25,24,24,24,26,23,22,24,24],[29,28,28,28,28,29,28,28,29,27,28,28,28,27,27,27,27,28,27,27,28,27,27,28,27,28,29,27,28,28,27,28,29,29,28,29,29,29,29,28,29,28,28,28,27,27,26,24,25,24,24,23,23,21,21,21,19,19,19,17,14,13,9,7,6,3,3,2,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,4,5,5,5,5,5,6,6,6,6,7,7,6,7,7,6,6,5,5,6,6,6,6,6,6,5,5,6,6,5,6,6,5,6,6,5,5,5,6,6,6,6,6,6,6,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,4,5,5,4,4,5,5,4,4,5,4,5,5,5,6,6,6,5,6,6,5,5,6,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,3,3,4,4,3,3,4,3,3,3,4,3,3,4,4,5,5,4,5,5,5,4,4,5,5,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,4,4,4,3,3,4,3,3,4,4,3,3,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,3,3,3,3,3,3,3,2,3,2,2,2,2,2,3,2,4,4,6,6,8,8,9,10,11,10,11,12,11,11,16,15,14,16,18,19,18,19,21,21,24,23,24,21,20,22,20,20,22,22,23,22,22,24,26,26,27,26,27,27,27,28,28,28,28,28,28,28,28,28,28,28,27,28,28,28,28,26,27,26,27,27,24,26,25,24,27,25,24,24,23,24,22,21,20,19,17,16,15,15,12,11,8,5,3,3,2,2,2,2,2,2,3,3,3,3,4,4,3,4,5,4,4,5,6,6,5,5,7,6,7,6,6,6,5,5,5,5,6,5,6,6,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,6,6,6,7,6,6,5,5,4,4,4,4,4,3,3,4,3,3,4,4,4,3,4,4,3,3,3,3,3,3,3,3,2,3,3,2,2,3,2,2,3,3,3,4,5,5,6,5,4,4,4,3,3,4,4,3,4,4,5,5,4,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,5,5,4,5,4,5,4,4,4,4,4,4,4,3,3,2,2,2,2,2,1,2,2,1,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,2,1,2,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,3,3,2,2,2,2,3,2,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,5,6,7,8,8,10,11,11,10,11,13,13,15,17,17,19,17,20,17,18,17,18,21,20,21,22,20,23,24,24,22,24,23,24,24,24,23,24,24,23,20,23,24,24,21,23,22,24,23,25,22,21,24,23],[28,28,28,28,28,29,28,28,29,27,27,27,27,27,27,27,27,28,27,26,27,27,26,28,27,27,28,27,28,27,26,27,28,28,27,27,28,27,28,27,28,27,27,26,26,26,24,24,24,23,23,22,21,21,19,19,18,19,18,17,14,12,8,6,5,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,4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,4,4,4,4,5,4,4,4,4,4,4,4,4,4,3,3,3,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,1,2,2,2,3,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,5,6,7,7,8,10,9,9,10,12,12,14,17,16,18,18,17,15,17,17,18,21,19,21,20,20,24,23,22,22,23,22,23,22,23,22,20,22,22,18,21,23,22,21,23,21,22,21,24,21,19,22,22],[28,28,29,28,29,29,28,28,29,27,28,28,27,27,26,27,26,28,27,26,28,27,26,28,27,27,27,27,27,27,27,27,28,28,27,27,27,27,28,27,28,27,27,27,26,26,25,24,24,24,23,23,22,21,20,20,19,19,20,18,15,13,10,6,6,4,3,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,5,5,4,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,4,4,5,4,4,4,4,3,4,4,3,3,3,4,4,4,4,4,4,4,3,3,4,3,3,3,4,3,3,4,4,3,3,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,4,4,4,3,4,4,5,5,5,4,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,4,4,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,2,2,3,3,2,2,2,2,2,2,3,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,7,8,12,12,13,11,11,14,13,13,15,15,14,14,17,17,18,19,20,20,22,21,23,20,20,21,21,19,20,21,23,21,22,22,24,24,27,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,26,27,27,26,26,24,25,26,25,25,24,24,25,23,23,22,22,22,21,20,19,18,16,15,13,13,11,9,7,5,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,4,4,5,4,5,5,4,5,5,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,4,4,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,5,5,5,4,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,1,2,2,2,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,1,1,1,1,1,2,2,2,3,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,2,3,3,2,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,4,5,6,7,7,8,10,9,9,10,11,12,13,16,15,19,19,16,16,18,17,18,21,18,21,21,19,24,24,22,22,23,22,23,24,22,21,22,23,21,19,20,24,23,21,23,22,22,23,25,22,20,24,23],[28,28,29,28,29,29,28,28,29,27,28,28,28,27,26,26,26,27,27,26,27,26,26,27,26,27,28,26,28,28,26,28,28,28,28,28,28,28,28,28,28,27,27,27,26,25,25,24,24,24,23,22,21,21,21,20,19,20,19,19,14,14,9,6,5,3,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,3,3,2,2,3,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,5,4,4,4,4,4,4,4,5,5,4,4,4,4,4,4,5,4,4,5,4,4,5,5,5,5,4,4,4,4,4,4,4,3,3,4,4,3,3,3,3,3,3,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,3,3,3,4,3,3,4,3,3,3,4,3,3,4,4,5,5,4,4,5,5,4,4,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,4,4,4,4,4,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,6,8,7,9,12,13,10,12,12,10,10,12,12,12,13,15,16,16,17,19,20,21,21,22,21,20,21,19,21,21,21,22,20,21,22,24,24,27,25,25,25,26,26,26,26,26,26,26,26,27,26,26,26,26,27,27,26,26,26,26,25,25,25,24,25,24,23,25,22,22,22,21,21,20,19,19,18,16,15,14,13,10,9,7,4,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,5,5,5,5,5,5,4,4,4,5,5,4,5,5,4,4,4,4,3,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,4,4,4,5,5,5,5,5,5,4,4,3,3,3,3,3,2,2,3,2,2,3,3,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,5,5,5,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,3,4,3,4,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,1,2,2,1,1,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,3,3,4,5,6,7,7,8,10,9,9,10,12,13,14,16,15,18,16,18,16,18,16,19,20,19,22,21,21,24,24,23,23,23,22,24,23,23,23,22,23,23,20,23,24,24,21,24,21,23,23,26,22,20,24,24],[28,28,28,28,28,29,28,28,28,26,27,28,27,26,26,26,25,27,26,25,26,26,25,27,26,26,27,26,27,27,26,27,28,28,27,27,27,27,28,27,28,27,27,27,26,25,25,24,24,23,23,22,22,21,19,20,18,20,19,17,13,12,8,5,4,3,3,2,3,2,2,2,2,2,2,2,2,3,2,2,2,3,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,5,6,6,6,5,5,4,4,5,5,5,5,5,5,4,4,5,5,4,5,5,4,5,5,4,4,5,5,5,5,4,5,5,5,4,4,4,4,4,4,4,3,4,4,3,3,3,4,4,4,4,4,4,4,3,3,4,3,3,3,4,3,3,4,3,3,4,4,4,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1,1,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,5,6,7,7,8,10,9,9,10,11,13,14,16,16,19,17,17,16,17,16,18,20,20,21,20,20,23,24,22,22,23,23,23,24,23,22,21,23,22,21,21,23,24,23,24,22,23,22,24,21,19,23,22],[28,28,28,28,28,29,27,28,28,27,27,27,27,26,26,26,26,27,26,25,26,26,25,27,26,26,27,26,26,26,25,27,27,27,26,27,27,27,27,26,27,26,26,26,25,25,25,23,24,23,22,22,20,20,18,19,18,18,18,17,14,13,9,5,4,4,3,2,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,7,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,6,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,4,4,4,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,3,2,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,4,5,6,8,10,11,13,9,10,13,11,10,13,14,13,12,15,17,16,17,18,20,21,19,22,20,18,20,18,19,18,20,21,19,19,22,23,24,27,24,26,25,26,26,26,26,26,26,26,26,26,27,27,27,26,26,26,26,26,24,25,25,25,26,23,25,24,23,25,23,22,22,22,22,21,19,19,18,16,14,13,13,11,9,6,4,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,4,4,4,4,4,4,4,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,4,4,4,5,5,5,5,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,5,5,5,4,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,1,2,1,1,1,1,1,1,2,2,2,1,1,1,1,1,1,2,1,1,2,1,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,1,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,5,6,7,7,7,9,8,9,9,11,12,13,14,14,18,18,17,15,17,16,16,21,17,20,19,19,23,23,22,22,23,21,23,22,23,20,20,22,21,18,19,23,22,19,22,20,21,21,23,19,19,22,21],[28,28,29,28,28,29,28,28,28,27,28,27,27,25,26,24,26,26,26,26,26,26,26,27,26,27,28,25,28,27,25,27,28,27,27,28,27,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4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,4,4,4,4,4,4,4,4,4,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,2,1,1,2,2,2,2,2,2,2,1,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,2,2,2,2,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,4,5,6,6,7,7,9,9,9,10,12,13,13,16,15,18,17,17,16,16,16,17,21,18,20,20,20,24,23,21,22,22,21,22,23,21,20,20,22,21,19,20,22,22,21,22,21,21,21,23,21,20,23,22],[28,28,28,28,28,29,28,28,28,26,28,27,27,26,26,26,26,26,26,26,26,26,26,26,25,26,28,26,28,27,26,27,28,28,27,28,27,28,28,27,28,27,27,27,26,26,25,24,24,24,24,23,22,22,21,21,20,20,20,17,14,13,9,5,5,4,3,3,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,7,7,6,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,6,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,4,3,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,3,4,4,4,3,4,4,5,5,5,4,5,5,4,5,5,5,5,4,4,4,4,4,4,4,4,4,3,3,4,4,3,3,3,3,3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,1,1,1,1,1,1,1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,2,2,3,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,4,5,6,7,7,8,10,9,9,11,12,13,14,17,16,19,17,18,17,18,17,18,20,19,20,21,20,24,24,21,23,24,23,23,24,22,22,22,24,22,21,22,23,23,23,23,22,23,22,25,22,20,23,23],[28,28,28,28,28,28,27,27,27,26,27,26,27,25,25,25,25,26,25,25,26,25,24,26,25,25,26,25,26,25,25,26,27,27,26,27,26,26,27,26,26,26,25,26,25,25,24,23,23,23,22,21,20,20,18,19,18,18,18,16,14,12,9,5,4,4,3,2,3,2,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,4,5,5,5,5,6,5,5,6,6,6,6,6,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,5,6,6,6,6,6,6,5,5,6,5,5,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,4,4,4,5,5,5,5,5,5,5,4,5,5,4,4,5,4,4,4,5,4,4,5,5,4,5,5,5,5,5,4,4,5,4,4,5,4,4,4,4,4,4,4,5,5,6,5,5,5,5,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,3,3,4,4,3,3,4,4,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,4,4,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,2,4,6,6,8,10,11,12,8,9,12,11,9,11,13,12,12,14,16,15,16,18,18,20,19,22,19,17,19,18,18,17,19,21,18,19,22,22,25,27,23,25,26,26,26,26,27,27,27,27,27,26,27,27,27,26,27,27,26,26,25,26,25,25,26,24,25,23,23,25,23,22,22,22,21,21,19,19,18,16,14,14,12,10,9,7,5,3,3,2,2,2,2,2,2,2,3,3,2,3,3,3,3,4,4,3,4,4,4,4,4,5,4,5,5,5,4,4,4,4,4,4,4,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,5,6,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,2,2,3,2,2,3,3,3,4,5,5,5,4,4,3,3,3,3,4,4,3,4,5,5,5,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,4,4,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,2,1,1,1,1,1,1,2,1,1,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,2,3,2,2,2,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,5,6,7,7,8,10,9,10,10,12,12,14,14,15,19,18,18,16,17,17,17,20,18,20,20,20,24,23,22,22,24,22,23,23,23,21,21,22,20,18,19,23,22,19,21,20,21,21,23,19,18,22,20],[28,28,28,28,28,28,27,28,27,27,26,26,26,24,26,25,26,25,26,26,25,25,25,26,25,26,27,25,26,26,25,26,27,27,26,27,26,26,27,27,27,26,26,26,26,25,25,24,23,22,21,21,21,20,19,19,18,18,17,16,14,13,9,7,5,4,4,3,4,3,3,3,3,3,4,4,4,5,4,4,4,5,5,4,4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,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,6,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,6,6,6,6,5,5,5,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,3,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,1,2,2,2,3,3,3,2,2,2,2,3,2,2,2,3,2,3,3,3,3,3,3,3,3,2,3,3,3,3,4,4,3,4,4,4,4,5,5,4,5,5,6,7,8,8,9,10,10,11,11,13,14,15,16,16,19,19,18,17,18,19,17,21,18,21,21,20,23,23,22,23,23,22,23,24,22,22,23,23,21,19,21,23,22,19,22,21,21,23,23,20,20,22,20],[28,28,28,28,29,28,28,28,28,27,28,27,27,25,27,25,26,26,26,26,26,26,27,27,26,27,28,26,28,28,26,28,29,28,28,29,27,28,28,28,28,28,28,28,27,27,26,25,25,26,25,22,24,22,22,21,21,20,20,18,15,13,9,6,5,5,4,4,4,3,3,3,3,3,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,6,6,6,6,7,6,6,7,7,7,7,7,8,8,7,8,9,9,9,9,9,8,7,7,7,8,8,8,8,8,8,7,7,8,8,7,7,8,7,7,7,7,7,7,7,8,7,7,7,7,7,6,7,7,6,6,6,6,6,6,6,6,6,5,6,6,6,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,5,6,6,5,5,6,6,5,6,6,7,7,7,7,7,6,7,7,7,7,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,4,4,5,5,4,4,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,4,5,5,5,4,5,5,6,6,6,5,5,5,4,4,4,4,4,4,4,4,4,4,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5,6,7,8,8,9,10,11,11,11,13,14,15,16,16,20,18,18,17,19,17,18,21,20,21,23,21,24,24,24,22,23,22,23,24,23,23,23,23,23,20,22,24,23,21,23,22,22,22,24,21,20,24,23],[28,28,28,28,28,28,28,27,28,26,27,27,27,25,26,26,26,26,26,26,25,26,25,26,27,26,27,26,27,27,26,27,28,28,27,28,27,28,28,28,28,27,27,28,27,26,26,25,24,24,24,22,21,21,21,20,19,20,19,17,15,14,9,7,6,5,5,5,5,4,4,4,4,4,4,4,5,5,6,5,5,6,5,5,5,6,6,6,6,6,6,7,7,7,8,8,7,8,8,8,9,9,9,9,9,10,10,10,10,11,11,10,9,9,9,9,9,9,9,9,10,8,8,9,9,9,8,9,9,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,7,7,8,8,7,8,8,7,7,7,8,8,8,8,7,8,7,7,7,7,7,7,7,7,6,6,7,7,7,7,7,7,7,7,7,7,7,6,6,7,7,6,6,7,6,6,6,6,6,6,7,7,8,8,7,7,8,7,7,7,7,7,7,7,6,7,7,7,6,7,6,6,6,7,6,6,6,6,6,5,6,6,5,5,6,6,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,6,6,6,5,6,6,6,5,6,6,7,7,7,6,5,5,5,5,5,5,5,4,5,5,4,4,5,5,4,5,5,5,6,5,6,5,5,4,4,5,5,4,4,5,4,4,4,5,4,4,5,5,4,4,4,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,3,4,4,4,4,5,5,7,7,8,9,11,12,12,10,10,12,11,11,11,14,14,13,15,17,17,17,19,20,22,20,22,19,19,21,20,19,21,21,21,19,20,23,23,25,27,24,26,26,27,27,27,28,27,27,27,28,28,28,28,28,27,27,27,27,27,27,27,25,27,27,25,26,25,24,26,24,23,23,23,23,21,21,19,19,19,16,15,14,12,11,8,6,4,4,4,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,5,5,6,6,6,6,7,7,6,6,6,6,6,6,6,7,7,6,6,6,5,5,6,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,7,7,7,7,7,6,6,5,5,5,5,5,4,4,5,5,4,5,5,4,4,5,4,4,4,4,4,3,4,4,4,3,3,4,3,3,4,4,3,4,4,4,5,6,7,7,5,5,5,5,4,5,6,6,6,6,7,7,7,8,7,7,7,7,7,7,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,3,4,4,3,3,3,4,3,3,4,3,3,3,4,4,3,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,7,8,8,8,8,7,7,7,7,7,6,6,5,5,4,4,4,4,4,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,2,3,2,2,2,2,2,2,1,2,1,1,1,0,1,1,1,1,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,3,3,3,3,2,3,3,2,2,2,2,2,3,3,3,3,4,4,3,3,3,3,3,3,4,3,4,4,4,4,4,5,5,5,5,5,5,5,5,7,8,9,9,10,12,10,12,12,13,14,15,18,17,20,19,19,18,20,19,19,22,20,21,22,20,24,23,23,23,24,23,24,25,23,24,23,23,23,20,22,24,23,22,23,22,22,22,24,22,20,24,23],[28,28,28,28,28,28,27,27,27,26,26,26,26,25,25,25,25,25,25,25,24,24,24,25,25,25,26,26,26,26,25,26,27,27,26,26,25,26,27,26,27,26,26,26,25,25,25,23,23,22,23,22,20,20,19,19,18,18,17,16,14,13,10,8,7,6,6,6,6,5,5,5,5,5,6,6,6,7,7,6,6,7,7,6,7,8,8,8,8,8,8,9,9,9,10,10,9,10,11,10,10,11,11,11,11,12,12,12,12,13,13,12,11,11,11,12,11,12,11,11,11,10,10,11,11,10,10,11,10,10,10,10,9,11,10,11,11,10,10,10,10,10,10,10,9,9,10,10,9,10,10,8,9,9,10,9,10,10,10,10,9,8,8,9,9,8,8,9,8,8,9,9,8,9,9,9,9,9,9,9,9,8,9,9,8,8,9,9,8,8,8,8,8,9,9,10,10,10,9,10,9,9,10,10,9,9,9,9,8,9,9,9,8,9,9,8,8,8,8,8,8,8,8,7,7,7,7,7,7,8,6,7,7,8,8,9,8,9,9,9,9,9,9,8,8,9,8,8,7,8,8,8,7,8,8,8,8,9,9,8,8,7,6,7,8,7,7,7,7,7,7,7,7,6,7,7,7,8,8,8,8,7,7,6,6,7,6,6,7,6,6,6,7,6,6,6,7,6,6,6,5,6,6,6,5,5,6,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,8,8,8,9,11,12,13,12,10,14,13,11,12,14,14,12,14,17,17,17,18,19,20,20,22,19,18,19,20,18,19,20,20,19,21,22,22,24,26,24,25,25,26,26,27,27,27,27,27,28,27,27,27,27,26,27,26,27,26,25,26,24,25,25,24,25,24,24,25,23,23,22,22,23,21,21,20,19,18,15,14,13,11,11,8,7,5,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,6,6,5,6,7,6,6,7,8,8,7,7,8,7,7,7,6,7,8,7,8,8,7,7,7,6,5,6,6,5,5,6,6,5,5,5,5,5,4,5,5,5,5,5,5,6,5,5,6,6,6,7,6,7,7,8,7,9,8,9,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,5,5,6,6,6,5,5,6,5,5,6,6,5,5,6,6,7,8,8,8,7,7,7,7,7,7,8,7,8,9,9,10,9,10,9,9,10,9,9,9,8,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,6,6,7,6,8,7,8,8,8,8,8,8,9,9,9,9,10,10,9,10,10,10,9,9,8,9,9,8,8,7,7,6,6,6,6,5,5,5,4,5,5,4,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,1,1,0,1,1,2,2,3,2,2,3,3,3,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,2,3,2,3,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,8,9,10,10,11,11,11,12,12,13,15,16,16,17,19,19,19,18,20,18,18,23,19,21,21,21,24,24,23,23,24,23,24,25,24,22,23,24,22,21,22,24,23,20,22,21,22,22,24,20,20,22,21],[29,29,29,29,29,29,28,28,28,27,27,26,27,25,27,26,27,26,25,26,26,25,26,27,26,27,28,26,27,27,26,28,28,28,27,28,27,28,28,28,28,28,27,28,27,27,26,25,25,25,24,23,23,22,21,20,20,19,19,18,16,13,10,8,7,6,5,5,5,5,4,4,4,4,5,5,5,6,5,6,5,6,6,5,6,6,6,6,7,7,7,7,7,7,8,8,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,10,9,9,9,10,10,10,9,9,10,9,9,9,9,9,8,9,8,8,8,8,8,8,8,9,9,8,8,8,8,8,8,8,7,7,8,8,7,8,8,7,7,7,8,8,8,9,8,8,7,7,7,8,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,7,7,7,7,7,7,7,7,7,6,7,6,7,7,7,7,8,8,8,8,8,7,8,8,8,8,7,7,7,7,7,7,7,7,7,7,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,8,7,8,7,7,7,7,7,7,6,6,6,6,6,6,6,6,7,7,7,7,7,6,6,6,6,5,6,5,5,5,5,5,5,5,6,5,6,6,6,7,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,5,5,4,4,4,4,4,5,5,4,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,5,4,4,5,6,5,7,8,8,9,11,13,13,12,11,13,13,13,13,14,14,15,15,17,17,18,19,19,22,20,22,20,18,21,20,18,20,20,20,18,20,21,22,23,26,24,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,26,27,27,25,25,25,25,26,25,25,24,24,25,22,23,23,23,22,22,21,21,19,18,16,15,13,11,10,7,6,5,4,4,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,7,6,6,6,6,6,6,5,6,6,6,6,7,6,6,6,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,5,5,5,5,5,5,6,6,7,7,8,7,7,7,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,7,7,7,6,6,5,6,5,6,6,6,6,7,7,8,7,7,7,7,7,7,7,6,7,7,6,6,6,6,6,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,6,6,6,6,7,7,7,6,7,7,7,8,7,8,8,8,8,8,8,8,8,7,7,7,8,7,7,7,6,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,3,2,2,3,2,3,3,3,3,3,2,2,2,2,2,2,2,3,3,3,4,4,3,3,4,4,3,3,4,4,4,4,4,4,5,5,5,5,5,5,6,5,6,6,7,8,9,9,10,11,11,11,12,13,14,14,17,15,20,18,18,18,19,18,19,22,19,22,23,21,25,23,24,24,24,22,25,25,23,23,23,25,22,21,22,24,24,22,24,23,21,24,24,22,20,23,23],[29,29,28,29,29,29,29,28,28,27,28,27,28,26,26,27,27,26,26,27,26,26,27,27,25,27,28,26,28,28,26,28,29,29,28,28,28,28,28,28,29,28,27,28,28,27,27,25,26,25,24,22,24,21,22,21,20,21,20,19,15,14,9,7,7,6,6,6,6,5,6,5,5,5,6,6,6,6,7,7,7,7,7,6,7,7,7,7,8,8,8,9,8,8,9,9,9,9,10,10,10,10,11,10,10,12,12,11,11,12,13,12,10,10,10,11,11,12,11,11,12,10,10,11,11,11,10,11,10,10,10,10,9,9,10,10,11,9,10,10,9,9,9,10,9,9,10,9,8,9,9,9,8,8,9,9,9,9,9,9,8,8,8,8,8,8,9,9,8,8,9,8,8,8,9,9,9,9,9,9,9,8,8,9,8,8,8,8,7,7,8,8,7,8,8,9,9,9,9,9,9,9,8,9,8,9,8,8,8,8,9,8,8,8,8,7,8,8,8,7,7,8,7,7,7,7,7,7,7,7,6,7,7,8,9,9,8,9,9,9,8,8,8,8,8,8,8,7,7,7,7,7,6,7,7,7,8,8,7,7,6,6,6,6,6,6,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,6,6,6,6,5,6,6,6,5,5,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,8,8,9,12,12,14,13,10,14,13,12,14,15,14,16,17,18,18,19,20,21,22,21,22,21,21,21,20,20,21,21,21,19,21,23,23,23,25,24,25,25,27,26,27,27,27,27,27,28,27,28,28,28,27,28,27,27,27,27,27,25,27,26,26,27,26,26,27,24,24,24,24,23,23,21,21,20,20,17,15,14,12,10,8,7,6,5,4,4,4,4,4,4,3,4,4,4,4,5,4,5,6,6,5,6,6,7,7,7,8,8,7,7,7,7,6,7,6,7,7,7,8,8,7,7,7,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,5,4,4,4,4,4,5,5,5,5,5,6,5,6,7,7,8,8,9,8,8,7,7,6,6,6,6,6,5,5,6,6,5,6,6,6,6,6,5,5,4,5,5,5,4,5,5,4,4,5,4,4,5,5,4,5,5,5,6,7,7,7,7,7,6,6,6,6,8,7,7,7,8,8,9,8,9,9,8,8,8,7,8,7,7,7,7,6,7,6,5,6,6,5,5,6,6,5,5,6,5,4,5,5,4,4,5,5,4,4,5,4,4,5,5,5,4,4,4,4,4,4,4,3,3,4,4,3,4,4,3,4,3,3,3,3,3,4,4,3,3,4,4,4,4,4,4,4,5,5,6,6,7,7,8,8,8,8,8,8,8,9,8,8,8,9,9,9,9,8,9,9,8,8,8,8,8,8,7,7,6,6,5,6,5,5,4,4,5,5,4,4,4,4,3,3,4,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,4,4,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,1,1,1,1,0,1,1,2,2,2,2,2,2,2,3,2,3,3,3,2,3,3,3,3,3,3,3,4,3,3,3,2,2,3,3,2,2,2,3,3,3,3,4,4,3,4,4,3,3,4,4,4,4,5,4,4,5,5,5,5,6,6,6,6,6,8,9,10,10,11,13,12,12,14,15,15,17,19,19,23,20,20,20,22,20,21,24,21,23,24,22,26,25,25,25,26,25,26,26,25,25,25,26,25,24,24,26,26,24,25,23,25,24,26,23,20,24,24],[29,28,28,28,28,28,28,27,27,27,26,26,26,26,26,26,25,25,25,25,25,25,25,25,25,26,26,26,26,26,25,27,27,27,27,28,27,28,27,28,28,27,26,27,27,27,26,24,24,24,24,22,23,22,20,20,20,19,19,17,15,13,10,9,8,8,9,8,8,8,8,8,8,9,9,9,9,10,10,10,9,10,10,8,10,11,10,10,10,11,12,12,12,12,13,13,13,14,13,14,14,14,14,14,15,16,16,16,16,16,17,15,15,15,15,15,16,16,15,15,16,15,14,15,15,15,15,15,15,14,14,14,14,14,14,14,14,14,13,13,14,13,13,14,14,13,14,15,13,14,14,13,13,12,14,13,14,13,13,14,13,12,12,12,13,12,12,12,13,13,13,14,13,13,14,14,13,13,13,13,14,13,13,13,13,12,12,12,12,12,12,11,11,12,12,13,13,13,11,12,12,12,11,11,11,10,10,11,11,11,12,11,11,12,12,11,11,12,13,10,11,13,12,10,11,12,11,9,11,11,9,11,10,11,11,11,12,12,12,13,13,12,12,13,12,12,12,11,10,12,11,11,9,11,10,11,12,12,11,10,10,10,10,10,10,10,8,10,10,8,8,9,9,8,9,9,10,11,9,10,10,10,8,8,9,10,8,8,10,9,8,8,10,8,8,9,9,9,9,9,8,8,8,9,9,9,9,9,9,9,9,10,9,9,9,10,9,9,9,9,8,8,8,8,8,8,8,7,7,7,7,8,8,6,7,9,7,8,12,13,12,12,11,12,13,11,13,14,15,15,16,18,19,19,19,20,23,20,23,19,19,22,20,19,20,20,20,20,21,23,22,23,25,23,24,25,24,26,26,26,26,26,26,26,27,27,27,27,26,27,26,26,27,25,26,25,26,25,24,26,25,24,26,23,23,23,23,23,23,22,21,20,19,17,16,14,13,11,10,8,7,7,6,7,7,7,7,7,7,7,7,7,7,7,7,8,8,7,8,7,9,8,7,8,9,9,8,9,9,8,9,9,9,10,9,9,10,10,8,8,8,7,7,8,7,7,8,8,7,7,8,8,8,8,8,8,7,8,7,7,9,8,7,8,8,8,8,9,9,9,9,10,10,10,11,11,11,11,10,10,10,10,10,10,9,9,9,10,9,8,9,10,8,9,9,8,8,7,7,8,7,7,7,7,5,7,8,6,6,7,7,6,6,6,6,7,8,8,8,8,8,8,9,8,8,10,9,9,10,11,11,11,11,10,11,12,11,11,11,9,10,10,10,9,10,10,9,8,9,9,8,7,8,8,7,7,8,8,6,7,8,6,6,7,7,6,7,8,7,6,8,8,9,7,8,7,7,6,7,7,6,5,6,5,5,5,6,6,5,4,5,5,5,4,5,5,5,5,6,6,5,7,7,7,7,8,8,8,9,9,10,10,11,10,10,11,11,11,12,12,12,13,12,13,11,11,11,12,11,11,11,10,9,10,9,9,9,9,8,8,8,8,7,8,7,7,7,6,6,7,5,4,6,5,4,5,5,4,4,4,4,4,4,4,3,4,3,3,3,2,3,4,3,3,3,4,4,4,4,5,4,4,5,5,6,6,6,6,5,5,5,5,4,4,5,3,3,4,4,2,3,3,2,1,0,1,1,1,2,2,3,3,3,3,4,3,3,4,4,4,4,5,5,6,6,6,6,7,5,4,5,4,4,4,4,3,4,4,4,4,4,5,5,4,5,6,5,5,5,6,6,5,7,8,7,7,8,9,8,9,9,9,9,9,11,11,11,12,13,12,12,13,15,15,15,18,19,20,22,20,23,19,21,21,20,25,20,22,23,20,26,23,23,24,24,24,25,26,23,23,24,24,22,21,22,25,24,22,24,22,21,23,24,20,20,22,22],[29,28,28,28,28,28,28,28,27,27,27,26,27,25,26,27,26,25,25,25,25,24,25,25,25,25,27,26,26,27,25,26,27,27,26,27,26,27,28,27,28,27,27,27,26,26,26,25,25,23,23,24,22,22,22,21,20,20,20,17,15,14,10,8,8,7,6,7,6,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,9,10,9,9,9,10,10,11,10,11,12,11,11,11,13,12,13,13,13,13,13,14,15,15,14,16,15,14,13,13,14,14,13,14,14,14,14,12,13,14,14,13,12,14,13,13,13,13,12,13,12,13,13,12,13,13,12,11,12,12,11,11,12,12,11,12,12,11,10,9,11,11,12,11,11,12,10,10,10,10,10,10,11,11,10,10,11,12,11,11,11,11,11,11,11,11,12,11,11,11,11,11,10,11,10,10,10,9,10,10,10,12,12,11,10,11,11,10,10,11,10,9,9,9,9,10,11,10,9,11,10,10,10,10,11,9,9,10,10,9,10,9,9,8,9,10,9,9,9,9,11,10,10,11,12,12,10,10,12,11,10,11,11,10,9,11,10,10,9,10,10,10,11,10,10,9,8,9,8,8,9,9,8,8,9,8,8,8,9,7,7,8,8,9,8,9,9,8,8,7,8,8,8,8,8,8,7,7,8,8,8,8,9,8,8,7,6,7,8,7,7,8,8,7,7,8,7,8,8,8,7,8,8,7,7,7,7,6,7,7,7,6,6,5,6,6,5,7,6,5,7,8,8,8,11,13,13,11,11,14,13,12,13,14,14,16,16,18,17,18,20,20,21,20,21,21,19,19,18,16,16,17,17,15,18,21,20,21,24,24,25,25,25,26,27,27,27,28,28,28,27,28,28,27,26,27,26,27,25,26,27,24,26,26,25,26,25,25,27,23,24,24,23,23,23,22,22,20,19,18,16,14,13,11,8,7,6,5,5,5,5,5,5,5,6,6,6,5,6,6,6,6,7,7,6,7,8,7,6,7,8,7,8,8,8,7,8,7,8,8,8,7,9,8,7,8,9,7,6,8,6,6,6,7,6,5,6,7,6,6,6,7,5,7,6,6,7,7,6,7,7,7,8,8,8,8,8,10,9,10,11,10,10,10,9,10,9,9,9,9,8,8,8,9,8,8,9,8,8,8,8,7,7,6,7,7,6,6,7,6,5,6,6,6,6,7,7,5,6,6,7,8,8,9,9,8,8,7,7,8,8,9,8,9,10,9,11,10,10,9,10,10,10,9,9,9,9,8,8,8,8,8,8,8,8,8,7,7,7,7,7,6,7,7,6,6,6,6,6,6,6,6,6,7,7,6,7,7,7,7,7,6,6,5,6,6,5,4,5,5,5,5,6,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,7,8,8,8,9,9,9,9,10,9,9,10,11,10,11,12,12,10,11,10,10,10,10,10,10,9,9,9,8,8,7,7,7,6,6,7,6,5,6,6,5,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,3,4,3,3,3,4,3,3,3,3,3,3,3,4,4,4,4,5,4,5,5,5,4,4,4,5,3,3,3,4,3,2,3,2,2,2,2,1,1,0,1,1,1,1,1,2,2,2,2,2,3,3,3,3,4,4,4,4,4,5,5,5,4,3,3,3,3,3,2,3,2,3,4,4,4,5,4,4,4,5,4,4,5,5,5,5,6,6,7,7,7,8,8,8,9,9,9,9,11,11,11,12,12,14,12,13,15,16,16,17,18,19,22,22,21,20,22,21,21,25,22,24,25,21,27,24,24,25,25,22,27,27,24,24,25,24,23,21,23,25,24,23,24,24,21,23,25,22,21,25,24],[29,28,27,27,28,27,27,28,26,25,26,25,26,25,25,25,24,25,25,26,25,24,25,26,25,25,26,24,26,25,24,26,27,26,25,27,26,26,26,26,26,25,25,26,26,25,24,24,23,24,23,21,23,21,21,20,20,20,19,17,15,13,9,7,6,6,6,5,6,6,6,6,6,6,7,6,7,8,8,7,8,8,7,7,8,9,8,8,8,9,9,10,10,10,11,11,10,11,11,11,12,12,12,12,12,12,13,13,13,13,13,12,13,13,12,12,12,14,13,13,13,11,12,13,13,13,12,13,13,13,12,12,12,12,11,12,13,11,13,11,11,11,11,12,11,11,12,12,10,11,12,11,9,9,11,10,11,11,10,11,10,10,10,10,9,9,10,11,10,9,10,11,10,11,12,11,11,12,11,11,11,10,10,11,11,10,11,11,9,9,10,10,9,10,10,11,12,11,10,11,11,10,9,10,9,10,9,9,9,9,10,9,9,10,10,9,8,10,10,8,8,10,10,9,8,10,9,8,9,9,8,8,9,9,10,10,10,10,11,12,11,10,11,11,10,11,11,10,9,10,11,9,9,9,9,10,10,10,9,8,8,8,9,8,9,8,8,8,8,8,8,8,8,7,7,7,8,9,8,8,8,8,8,7,7,8,7,7,8,7,7,7,8,8,7,8,8,8,7,6,6,7,7,7,7,7,7,7,7,7,8,8,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,5,6,6,5,6,6,6,6,7,7,7,10,11,11,11,9,12,12,11,12,14,14,13,15,17,17,16,19,20,21,19,21,19,20,19,19,18,20,18,18,18,20,21,22,22,23,24,24,24,24,26,26,26,26,26,26,27,27,27,27,27,27,26,25,26,26,25,26,23,25,25,22,25,24,23,26,23,23,23,22,22,21,20,21,20,18,16,15,14,12,10,9,7,6,5,5,5,6,5,6,5,6,6,6,5,5,6,5,6,6,6,6,6,6,6,6,6,7,7,7,7,8,7,8,7,7,8,8,7,8,7,6,7,7,7,6,6,7,6,6,6,6,5,6,6,6,6,6,6,6,7,6,6,6,7,7,7,7,7,7,7,8,7,7,9,9,9,9,9,9,10,9,9,9,9,9,8,8,8,8,9,8,8,9,8,8,8,8,7,7,6,6,7,6,7,6,7,6,6,6,6,6,6,6,5,5,5,6,6,7,7,8,8,7,7,7,7,7,8,8,8,8,9,10,10,10,9,10,10,9,9,9,8,8,7,7,7,7,8,7,6,6,6,6,5,6,6,6,6,6,7,6,6,6,6,6,6,6,6,5,6,6,6,7,7,7,6,7,7,6,6,6,6,6,5,5,6,5,5,6,5,6,5,4,5,5,5,4,5,4,4,4,5,5,5,5,6,5,5,5,6,6,7,7,8,9,8,8,9,9,8,9,10,10,9,10,10,10,10,9,10,8,9,9,8,8,8,8,8,7,6,6,6,6,5,6,5,5,6,6,5,5,5,5,4,5,5,4,4,5,5,4,4,4,4,4,4,4,4,3,4,4,3,3,4,3,3,3,3,4,3,3,3,4,3,4,4,4,4,5,5,4,3,4,4,4,4,4,4,3,3,3,2,2,2,2,2,1,1,0,1,1,1,2,1,2,2,2,2,2,3,3,3,3,3,3,5,4,5,5,5,4,3,3,3,3,3,3,3,3,3,4,4,4,5,5,4,4,5,5,5,6,6,5,6,7,7,7,7,7,8,7,7,8,9,8,8,10,11,11,11,13,13,12,12,14,16,15,18,18,19,20,20,21,19,21,20,19,23,20,22,23,20,25,22,23,23,24,21,25,25,23,22,24,23,21,20,24,24,22,21,22,22,21,23,23,20,21,23,22],[28,29,28,28,29,28,28,29,28,27,28,26,28,26,27,25,27,27,26,27,26,25,26,26,25,26,28,25,27,27,25,27,28,28,27,28,27,27,27,27,27,27,26,27,26,26,26,25,25,25,24,23,24,22,22,21,21,21,19,18,16,14,10,6,5,5,4,4,4,4,4,4,4,4,5,4,5,6,6,5,5,6,6,5,6,6,7,7,7,7,7,8,7,7,8,8,8,8,9,9,9,9,9,10,10,11,11,11,11,12,11,10,10,9,9,10,10,11,11,11,10,9,10,11,10,9,10,10,10,9,10,9,9,9,9,9,10,9,9,9,8,8,9,9,8,8,9,8,8,8,8,7,7,7,8,8,8,8,8,9,8,8,8,8,7,7,8,8,7,7,8,8,7,7,8,8,8,9,8,8,8,7,8,8,8,7,7,8,8,7,8,7,8,7,8,9,10,9,9,9,9,9,8,8,8,8,8,8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7,7,6,6,6,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2,2,2,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,6,5,5,6,6,6,6,7,8,9,10,10,11,12,11,13,13,15,14,16,19,20,23,20,22,22,22,22,19,23,21,22,26,20,24,25,26,25,26,25,27,26,25,25,26,25,23,22,25,27,26,23,25,25,25,25,24,23,22,24,23],[28,28,28,28,28,29,28,28,28,27,28,26,28,27,27,27,27,27,26,26,27,25,26,27,27,26,28,27,27,27,26,27,27,27,27,27,27,27,28,27,27,27,27,27,27,26,26,25,25,24,24,24,23,22,22,21,20,20,21,19,17,15,10,6,6,5,5,5,5,5,5,5,5,5,6,5,6,7,7,6,6,7,7,6,7,7,6,7,7,7,7,8,7,8,9,8,8,8,9,9,9,10,10,9,10,10,11,11,11,12,12,11,10,9,10,11,10,11,10,11,10,9,9,10,10,10,9,9,9,9,10,9,9,10,9,10,9,9,9,10,8,8,9,9,8,8,9,8,8,9,9,8,7,8,8,8,8,9,8,9,8,8,8,8,8,7,8,8,8,7,8,8,8,8,8,8,8,9,8,8,8,7,8,8,8,7,8,8,8,7,7,7,7,8,8,9,9,8,8,8,8,8,8,8,8,7,8,7,7,8,8,7,7,8,8,7,7,8,8,7,7,7,8,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,9,9,8,8,9,8,7,8,8,7,7,7,7,7,7,7,7,7,8,8,8,6,7,7,6,7,7,7,6,6,6,6,6,6,6,5,6,6,6,6,6,7,7,6,6,5,6,6,6,6,6,6,5,6,6,6,6,6,7,6,5,5,5,5,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,4,5,4,5,5,5,7,7,8,11,12,12,12,11,13,13,12,14,14,15,15,16,18,18,19,19,21,22,21,23,21,21,20,19,18,18,19,18,17,20,23,21,22,26,25,26,24,25,26,28,27,27,28,28,27,28,27,28,27,26,27,26,27,26,25,26,23,26,25,24,27,24,24,27,24,24,24,22,23,23,21,20,20,20,17,16,15,12,11,8,6,5,4,4,4,4,3,4,4,4,5,5,4,5,5,4,4,6,6,5,6,7,6,5,6,6,6,6,6,7,6,6,6,6,6,7,7,7,7,6,6,6,5,5,6,5,5,5,5,5,5,5,5,4,5,5,5,5,6,5,5,6,5,5,6,6,6,6,6,6,6,6,7,7,8,9,8,8,8,7,8,7,7,7,7,7,7,6,7,6,6,6,6,6,6,6,6,6,5,5,6,5,5,5,5,4,4,5,5,4,5,5,4,4,4,5,5,6,6,6,6,6,6,6,6,6,7,6,7,7,7,8,8,8,7,7,7,8,7,7,7,7,7,6,6,6,6,6,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,4,4,3,3,4,4,3,3,4,4,4,4,4,4,4,5,5,5,6,6,6,7,7,7,7,7,7,7,8,8,7,8,8,7,8,8,8,8,7,8,8,7,7,7,6,6,5,5,5,5,5,5,5,4,5,5,4,4,4,4,3,4,4,4,3,4,4,3,3,3,3,3,3,4,3,2,3,3,2,3,3,2,3,2,2,3,2,2,3,3,3,3,3,3,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,2,2,1,2,2,2,2,2,3,3,3,3,3,4,4,3,3,2,2,2,3,3,3,3,3,3,4,3,4,4,4,4,4,4,4,4,5,5,4,5,5,5,5,6,6,6,6,6,6,7,7,8,9,10,10,10,12,11,12,13,14,14,15,17,17,20,19,20,18,20,19,19,22,21,22,23,21,25,23,24,25,25,22,26,25,24,24,25,24,23,22,23,25,24,21,23,21,24,23,24,23,22,25,23],[27,27,27,28,27,28,27,27,27,26,25,25,26,25,25,25,25,26,24,26,26,25,25,26,25,25,26,25,26,26,25,26,27,27,25,27,25,26,26,26,27,26,25,26,26,26,25,24,22,23,23,23,21,20,21,20,20,21,21,18,16,14,10,7,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,8,8,8,8,9,8,9,9,9,10,9,9,10,10,10,10,11,11,11,11,12,12,13,12,13,13,12,11,11,11,11,11,12,11,12,12,10,10,12,11,11,11,12,12,11,11,11,11,11,11,12,11,11,11,11,11,10,10,10,10,10,11,10,9,10,10,9,9,8,10,9,10,10,9,10,9,9,8,9,9,9,9,9,9,8,9,9,9,9,10,10,9,10,10,9,10,9,9,10,9,9,9,10,9,9,9,9,9,9,9,10,11,10,9,10,10,9,9,10,9,8,8,8,8,9,9,8,8,10,9,8,9,9,9,8,8,9,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,10,9,9,9,9,9,9,9,8,8,9,9,8,8,8,8,9,9,8,8,8,8,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,7,8,7,8,8,8,7,7,7,7,7,7,7,6,7,6,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,6,6,6,6,6,6,6,5,5,6,5,6,5,5,5,5,5,5,5,6,5,5,8,8,7,10,10,12,10,10,12,12,11,12,13,14,12,16,16,18,17,20,20,21,20,21,20,18,17,16,17,16,18,18,16,19,22,21,22,24,24,24,24,25,26,27,27,26,27,27,27,27,27,26,27,25,26,25,26,25,23,25,22,25,25,23,24,23,23,26,23,22,23,21,21,21,20,19,19,17,16,15,14,11,11,8,6,5,4,4,4,4,4,4,4,5,5,5,4,5,5,4,5,5,6,5,5,6,6,6,6,7,7,7,7,7,7,7,7,7,8,8,7,8,7,6,6,7,6,5,6,6,5,5,6,5,5,5,5,5,5,6,5,5,6,6,5,6,6,6,6,6,6,6,7,7,7,7,7,8,9,9,9,8,9,8,8,8,7,8,7,7,7,7,7,7,7,7,7,7,6,6,6,6,5,5,6,6,6,6,6,5,5,6,5,5,5,6,5,5,5,6,6,7,7,7,7,6,6,6,7,7,8,7,8,8,8,9,9,9,8,9,9,9,8,8,8,8,7,7,7,8,7,7,6,7,6,6,6,6,6,6,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,5,6,5,5,5,5,4,5,5,4,4,5,5,4,4,4,4,4,4,4,5,4,4,4,4,4,4,5,6,6,5,6,6,6,7,7,7,8,8,8,8,8,8,8,9,9,8,9,9,8,9,9,9,8,8,8,8,8,8,7,7,7,6,6,5,6,5,6,5,5,5,5,4,5,5,5,4,4,4,4,4,4,4,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,4,3,3,3,2,2,2,3,2,3,3,3,4,4,4,5,4,4,4,4,4,4,4,5,5,5,6,6,6,6,6,7,7,7,7,7,8,7,9,9,10,11,11,13,12,12,14,15,14,16,17,17,20,20,21,17,20,19,18,22,20,21,22,20,24,22,22,23,24,21,24,24,22,23,23,24,21,20,22,22,21,20,21,21,22,22,23,21,20,23,23],[28,28,27,27,28,28,28,27,27,26,27,26,27,25,26,26,26,26,26,26,26,25,26,26,25,26,26,25,26,26,25,27,27,27,26,27,26,27,27,27,27,26,25,26,26,26,25,24,24,24,24,23,23,23,22,21,21,21,20,19,17,14,10,7,6,5,5,5,5,4,5,5,5,5,6,5,6,7,7,6,7,7,7,6,7,7,7,7,8,8,8,8,8,8,8,9,8,9,9,9,10,10,10,10,10,11,11,11,12,12,11,11,10,10,10,10,10,11,11,11,11,10,10,11,11,10,10,11,10,10,11,10,10,10,10,10,10,10,10,10,9,9,10,10,9,9,10,9,8,9,9,8,8,8,9,8,8,9,8,9,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,10,9,9,9,9,9,9,9,8,8,8,8,8,9,9,9,10,9,8,10,9,9,9,9,9,9,8,8,8,8,8,8,8,9,8,8,8,8,9,8,8,8,8,8,8,8,8,7,7,8,7,7,7,8,8,9,8,9,9,9,8,9,9,9,9,9,9,8,8,9,8,8,8,8,8,8,9,9,9,7,7,8,7,7,8,8,7,7,7,7,7,7,7,6,7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,11,12,13,12,12,14,16,16,16,19,17,20,19,20,19,21,18,19,22,20,22,23,20,24,22,23,23,24,22,24,24,23,24,23,23,21,21,22,23,23,23,22,22,23,24,22,22,20,23,22],[28,29,28,28,29,29,29,29,28,27,28,28,28,27,28,28,28,28,27,27,27,25,27,26,26,27,28,27,28,28,25,28,29,29,28,28,28,29,28,28,28,28,27,27,27,26,26,25,25,24,25,24,23,22,22,22,21,20,20,19,17,16,11,7,7,5,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,10,10,10,10,10,9,8,8,8,9,9,9,9,9,10,8,8,9,9,8,8,9,8,8,8,8,8,8,8,9,8,8,8,9,8,7,8,8,7,7,8,7,7,7,7,7,7,7,7,7,7,8,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,7,7,7,6,7,7,7,7,7,8,8,8,7,8,8,8,8,8,7,7,7,7,7,7,7,6,7,7,7,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,7,7,7,7,7,7,7,7,7,7,7,7,6,7,6,6,6,6,6,6,6,6,7,7,7,7,6,6,6,6,5,6,6,5,5,6,5,5,6,6,5,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,4,4,4,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,3,4,6,7,7,9,10,12,10,8,12,11,13,14,14,13,15,16,17,18,18,19,20,22,22,22,21,21,20,20,19,18,19,22,19,20,21,22,23,27,24,25,25,26,27,27,27,27,27,27,28,27,27,27,27,27,27,27,26,26,25,26,25,25,26,25,26,25,24,27,23,23,23,22,23,22,20,20,20,19,16,16,15,13,12,8,5,4,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,6,5,6,6,7,6,7,6,7,6,7,6,6,6,6,6,7,6,8,7,5,6,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,7,7,8,8,8,8,7,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,5,5,7,7,7,7,6,5,5,5,5,6,6,6,6,6,7,7,6,7,7,7,6,6,6,6,5,6,6,5,5,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,5,5,4,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,5,5,6,6,6,6,6,6,6,6,7,7,6,7,7,7,7,7,7,7,7,7,6,7,6,6,7,6,5,5,4,4,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,2,1,2,2,2,2,2,2,3,3,3,3,3,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,4,4,5,5,5,5,5,5,5,5,6,6,6,6,7,8,9,10,10,12,12,13,13,15,15,17,19,18,23,20,21,21,22,20,21,24,23,23,25,23,26,25,26,26,26,25,26,26,25,25,25,26,25,23,24,26,25,24,25,25,26,26,27,23,21,25,24],[28,28,28,27,28,28,28,27,28,26,28,27,27,26,25,27,26,27,26,26,27,26,26,27,26,26,27,26,26,27,26,27,27,27,26,27,27,27,26,26,27,26,25,25,25,24,23,22,22,20,22,21,21,20,20,20,20,21,20,18,16,15,12,7,6,4,4,4,4,4,4,4,4,4,5,4,5,6,6,6,5,6,6,5,6,7,7,6,6,7,7,7,7,8,8,8,8,8,8,9,9,8,9,9,10,10,11,10,10,11,11,10,9,8,8,9,9,9,9,9,9,8,8,9,9,9,9,10,9,9,10,9,8,8,10,10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,7,7,7,7,6,6,6,6,6,5,4,4,5,4,5,5,4,4,4,4,3,4,4,3,4,3,3,3,4,3,3,3,3,4,3,4,4,4,3,4,3,3,3,3,3,3,3,2,3,2,2,2,3,2,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,2,2,3,3,3,3,4,4,3,4,4,5,4,4,4,5,4,4,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,8,9,9,10,11,12,11,12,14,14,16,16,18,20,20,18,20,19,20,19,20,22,22,22,24,21,23,23,25,23,23,22,24,23,23,24,25,23,24,22,25,24,24,24,23,24,25,24,24,23,22,24,23],[27,27,27,27,28,28,27,28,27,26,27,26,27,26,26,26,26,27,26,27,26,26,26,27,26,26,27,26,26,27,26,27,28,28,26,27,27,27,27,26,27,26,26,26,26,25,24,24,24,23,22,23,22,22,22,22,20,21,19,18,15,14,10,6,5,4,4,4,4,4,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,9,10,10,9,8,8,8,8,8,9,9,9,9,8,8,9,8,8,8,9,8,8,9,8,8,8,9,9,9,9,8,9,8,7,8,8,7,7,8,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,7,6,6,6,7,7,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,7,7,7,6,7,7,7,7,7,8,8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7,6,7,7,6,6,7,6,6,6,6,6,6,6,6,6,5,5,6,5,5,6,6,6,7,7,7,7,7,7,6,7,7,6,6,7,6,6,6,6,6,6,6,7,7,7,7,7,6,6,6,5,5,6,6,5,5,6,5,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,4,4,5,5,4,5,5,5,4,4,3,4,4,4,4,4,5,4,4,5,5,4,5,5,5,5,5,4,4,3,4,3,4,4,3,3,3,3,3,4,3,3,3,3,5,6,8,6,9,9,10,9,8,12,10,11,13,13,13,15,15,16,17,17,19,20,21,20,21,20,19,20,19,19,18,20,20,19,20,21,22,23,24,24,24,23,24,25,25,25,25,26,26,26,26,26,26,26,25,26,24,25,25,24,24,22,24,24,21,24,23,22,25,21,21,23,19,20,21,19,20,19,18,16,16,12,12,11,7,5,4,3,3,3,3,3,3,3,4,4,4,4,4,5,4,5,5,5,5,5,6,6,6,6,7,7,8,6,8,6,7,6,5,6,7,6,7,7,6,6,5,5,5,5,5,4,5,5,4,4,4,4,3,4,3,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,7,8,8,8,8,7,7,6,6,6,6,6,5,5,5,5,6,5,5,6,6,5,5,6,5,5,5,5,5,4,5,5,5,4,4,4,4,4,4,4,4,4,4,5,5,6,7,7,6,6,6,5,5,5,6,6,6,6,6,7,7,7,7,8,8,7,7,6,6,6,5,6,5,5,5,5,4,5,5,4,4,4,5,4,4,4,4,4,4,4,4,3,4,4,4,3,4,4,4,4,5,5,4,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,3,4,3,4,3,3,3,4,3,3,3,3,3,4,3,4,4,4,5,5,5,5,6,6,6,6,6,6,7,7,7,6,7,7,7,8,7,8,7,7,6,6,6,6,6,5,5,4,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,2,2,3,3,3,3,3,4,4,4,4,5,5,4,4,5,4,4,5,5,4,5,5,5,5,6,6,6,6,6,6,6,6,6,7,8,9,10,10,12,11,11,13,14,15,15,17,18,20,18,19,19,20,18,18,21,21,21,22,21,23,23,23,23,23,22,23,24,23,23,23,22,22,21,22,22,22,22,22,21,23,23,24,22,21,23,23],[28,29,29,28,29,29,28,28,28,27,28,27,28,27,27,27,27,28,27,28,28,27,28,28,26,28,29,26,28,28,26,28,29,29,28,29,28,28,28,28,29,28,27,27,27,27,25,25,25,24,24,23,23,23,22,22,21,21,20,18,16,14,10,7,5,4,4,4,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,9,9,9,8,7,7,7,7,8,7,7,8,8,7,7,7,7,7,7,8,7,7,7,7,6,7,8,8,8,7,7,7,7,6,7,7,6,6,6,6,6,6,6,5,5,6,6,6,6,6,6,6,5,5,5,6,5,5,6,5,6,5,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,6,6,6,5,6,5,6,6,6,7,7,7,6,7,7,7,7,7,7,6,6,6,6,6,6,5,6,6,6,5,5,6,5,5,5,5,5,5,5,5,5,4,5,5,4,5,5,5,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,5,5,5,4,5,5,4,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,4,3,3,4,4,3,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,7,8,7,9,10,12,9,9,13,11,11,14,13,14,15,15,17,17,18,19,21,21,21,23,20,20,21,21,21,20,20,22,20,20,23,24,24,27,24,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,26,27,26,27,26,25,25,25,26,24,26,24,24,26,23,23,24,22,23,22,20,20,20,18,16,15,14,12,10,7,5,3,2,2,2,2,2,2,3,3,3,3,3,3,4,4,3,4,4,4,4,5,5,5,5,6,6,7,6,6,6,5,5,4,5,6,5,6,6,5,5,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,6,6,7,7,7,7,6,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,3,4,4,3,3,4,4,5,6,6,7,6,5,5,5,4,4,5,5,5,5,6,6,6,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,3,3,2,3,3,3,3,3,3,3,3,3,4,4,4,5,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,4,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,3,2,2,2,2,2,2,2,2,3,3,3,3,4,4,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,4,4,5,5,5,5,5,7,8,9,9,10,11,11,11,12,13,14,16,18,17,22,18,20,20,21,19,20,22,21,22,25,21,25,25,25,24,24,24,25,25,25,25,25,24,24,22,24,25,24,23,24,24,24,25,25,22,22,25,22],[28,29,28,28,29,29,28,28,28,27,28,28,28,28,27,27,28,28,28,28,28,26,27,28,27,28,29,28,28,28,27,28,28,29,28,29,27,28,28,28,28,27,28,27,27,26,25,24,25,24,24,23,22,22,22,21,20,21,19,19,16,15,10,6,5,4,4,3,4,3,3,3,3,4,4,4,4,5,5,4,4,5,5,4,5,5,5,5,5,6,6,6,6,6,6,7,7,7,8,7,7,8,8,8,8,9,10,9,9,10,9,9,8,8,7,8,8,8,7,8,9,7,7,8,8,7,8,8,8,7,8,8,7,8,8,9,8,8,8,8,7,7,7,7,6,7,7,7,6,6,7,6,6,6,6,6,6,7,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,7,6,6,6,6,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2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,3,3,2,2,2,2,3,3,3,3,3,4,3,4,4,4,3,4,4,3,3,4,4,4,4,5,4,4,5,5,4,5,5,5,5,5,5,7,8,9,9,10,11,11,11,11,14,14,15,18,18,20,19,20,19,20,18,19,21,20,21,23,21,24,24,22,24,24,23,24,24,23,25,24,23,23,21,23,24,23,21,23,22,24,25,25,22,21,24,22],[26,27,27,27,27,28,27,27,28,26,26,26,26,27,25,26,26,27,27,27,27,27,26,27,27,26,27,26,27,27,26,27,28,28,26,28,27,27,28,27,27,26,26,26,25,25,24,22,22,22,22,22,22,22,21,22,20,21,20,18,15,14,10,7,6,4,4,3,3,3,3,3,3,3,4,4,4,5,4,4,4,5,5,4,5,5,6,6,6,6,6,7,7,6,7,7,7,7,8,8,8,8,8,8,8,9,10,10,10,10,10,9,8,8,7,8,8,8,7,8,8,7,7,8,8,8,8,9,8,8,9,9,8,8,8,9,9,8,8,8,8,7,8,8,7,7,8,7,7,7,7,6,6,6,7,7,7,7,6,7,5,5,5,6,6,5,6,6,6,6,6,7,6,6,7,7,7,7,8,7,7,6,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,7,7,7,6,6,7,7,7,6,7,7,7,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,4,5,5,6,6,6,6,7,7,6,6,6,6,6,6,6,6,5,6,6,6,5,6,7,7,7,7,7,6,5,6,5,5,6,5,5,6,6,5,5,6,6,5,6,5,6,6,6,6,6,6,5,5,5,5,4,4,5,5,4,4,5,4,4,5,5,4,4,3,3,3,4,4,3,3,4,3,3,4,4,3,4,5,4,4,4,4,3,3,3,3,3,3,3,3,3,2,3,3,2,2,3,4,4,7,8,7,9,10,10,9,9,10,10,11,13,13,14,13,16,17,17,17,18,18,22,20,22,18,18,21,18,18,18,19,21,18,19,21,21,22,25,23,24,24,25,25,26,26,26,26,26,26,25,26,25,26,24,25,24,25,25,23,25,22,24,23,21,24,21,21,25,21,23,22,20,20,20,18,20,18,17,16,14,12,10,9,7,4,3,2,2,2,2,2,2,3,3,4,4,3,3,4,4,4,4,5,4,4,6,5,5,5,6,6,7,6,6,6,6,5,5,6,6,5,6,6,5,5,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,5,4,5,5,5,6,6,6,7,7,7,7,7,7,6,6,6,5,5,5,5,4,5,5,5,5,5,5,5,5,6,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,5,6,6,6,6,5,5,5,5,5,6,6,6,6,7,7,7,6,7,7,7,6,6,6,6,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,3,4,4,3,3,4,3,3,3,4,3,3,4,4,3,3,4,4,4,4,4,3,3,4,4,3,3,4,3,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,6,5,6,6,6,6,7,6,6,7,7,7,7,7,7,6,6,6,6,5,5,5,5,5,4,3,3,3,3,4,3,3,3,3,3,3,3,3,3,2,3,3,2,3,3,3,2,3,3,3,3,3,2,2,3,2,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,3,2,2,2,2,2,3,3,3,3,3,3,4,4,5,4,4,4,4,3,3,4,4,4,4,5,4,4,5,5,5,5,6,6,6,6,6,8,9,9,10,11,11,11,11,12,14,14,15,17,17,20,18,18,18,19,17,19,21,20,20,22,19,22,22,23,21,22,22,23,23,22,24,22,21,22,22,20,22,22,22,22,21,22,21,23,21,21,23,23],[28,29,28,28,29,29,28,29,29,28,28,28,29,28,28,28,28,29,27,28,28,28,28,28,28,28,29,28,28,28,27,28,29,29,28,29,29,28,29,29,29,28,28,28,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5,5,5,5,5,5,5,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,2,3,3,2,2,3,3,2,2,3,3,3,3,3,4,4,4,4,4,5,5,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,5,5,5,5,5,5,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,0,1,1,1,1,1,1,2,2,2,3,2,2,2,2,2,2,3,3,3,3,3,3,4,4,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,5,6,7,8,8,10,11,11,11,12,13,14,16,17,17,21,18,19,17,20,19,18,21,20,22,23,21,23,24,24,23,23,24,24,24,24,24,24,24,24,22,24,24,24,23,23,22,24,24,25,23,22,24,23],[28,28,29,29,29,29,28,28,29,27,28,28,28,27,27,27,28,28,28,27,28,27,27,28,28,27,29,28,28,28,27,28,29,29,28,28,28,28,29,28,29,28,28,28,27,27,26,25,25,24,25,24,22,22,22,22,20,21,20,18,15,14,10,6,5,4,3,3,3,3,3,2,3,3,3,3,3,3,4,4,3,4,4,3,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,7,6,8,8,8,8,9,9,8,7,6,6,7,7,7,6,7,7,6,6,7,7,6,6,7,6,6,7,6,6,7,7,7,7,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,4,5,5,5,5,6,5,5,5,4,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,6,6,7,6,6,6,7,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,4,5,5,4,4,5,4,4,4,4,4,4,4,4,3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,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,3,4,4,4,4,4,5,6,7,8,9,9,11,10,10,11,13,13,14,16,16,19,19,18,17,18,18,18,21,18,21,22,20,24,24,21,24,23,23,24,24,23,22,22,23,22,19,22,23,24,20,24,21,22,23,24,21,20,24,22],[28,28,28,28,28,29,28,28,28,27,27,27,27,27,26,27,27,27,26,27,26,27,27,27,26,27,27,26,27,27,26,27,28,28,26,28,27,27,27,27,28,26,27,27,27,27,26,24,24,25,24,23,23,22,21,22,21,21,19,19,17,15,10,6,5,4,4,3,3,3,3,3,3,3,4,4,4,5,5,4,4,5,5,4,5,5,5,5,6,6,6,7,6,6,7,7,7,7,8,7,7,8,8,8,8,9,9,9,9,10,9,9,8,8,7,8,8,7,7,8,8,7,7,8,8,7,7,8,7,8,8,8,7,8,8,8,8,8,8,8,7,7,8,7,7,7,7,7,6,7,7,6,6,6,6,6,6,7,6,6,6,5,6,6,6,6,5,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,7,6,6,6,7,6,6,6,6,6,6,7,7,8,7,7,7,8,7,7,7,7,7,6,6,6,6,7,6,6,6,7,6,6,6,6,5,5,6,5,5,5,5,5,5,5,5,4,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,6,6,6,7,6,6,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,6,6,5,6,5,5,4,4,5,5,4,4,4,4,4,4,5,4,4,4,4,4,4,3,3,3,4,3,3,3,4,3,3,4,4,3,3,4,4,4,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,3,3,5,4,7,6,8,8,9,10,9,10,12,13,12,13,13,14,14,16,17,17,18,19,20,22,19,22,20,18,21,18,16,19,20,19,17,21,23,23,24,27,25,26,26,27,27,27,28,28,28,28,28,27,27,27,27,27,27,24,28,27,26,26,22,26,24,25,26,23,24,26,23,23,23,21,22,21,20,19,19,18,16,14,12,9,8,5,4,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,4,5,5,5,5,5,5,5,5,5,4,4,5,4,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,3,3,3,3,3,3,4,3,4,4,4,4,4,5,5,5,6,6,6,7,7,6,6,5,5,5,5,5,5,5,4,4,5,5,4,5,5,5,4,5,5,4,4,4,4,4,4,4,4,3,3,4,3,3,4,4,3,4,4,4,5,6,6,6,6,5,5,5,5,5,6,5,5,6,6,7,7,7,7,7,6,6,6,6,6,5,5,5,4,5,5,4,4,4,4,3,4,4,4,3,3,4,3,3,3,3,3,3,3,4,3,3,3,3,3,3,4,4,3,4,4,3,3,4,4,3,3,3,3,3,3,4,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,7,7,6,7,7,6,6,6,6,6,6,6,6,5,5,4,4,3,4,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,2,2,2,2,2,2,2,3,3,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,3,4,4,3,3,4,4,3,4,4,4,4,4,5,4,4,5,5,5,5,5,7,8,9,9,10,11,10,10,11,13,13,14,15,15,17,18,17,16,17,17,17,20,18,20,20,19,23,22,23,22,23,22,24,23,22,22,23,23,21,19,19,23,21,20,21,20,21,21,24,20,19,22,22],[27,27,27,27,27,28,27,27,27,26,27,27,27,27,26,27,27,27,27,27,27,27,27,27,27,26,27,26,27,28,26,27,28,28,26,27,26,27,27,27,27,26,26,26,26,25,24,23,24,23,22,22,22,22,22,22,21,21,20,19,17,15,10,8,6,4,4,4,4,3,3,3,3,3,4,4,4,4,4,4,4,5,5,4,5,5,5,6,6,6,6,6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,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,3,3,4,4,4,5,5,5,5,5,5,6,6,5,6,6,6,6,7,7,7,7,7,7,6,6,6,6,6,6,5,5,5,4,4,3,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,3,2,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,2,2,3,3,2,2,2,2,3,3,3,3,4,4,4,4,5,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,6,6,6,6,6,7,8,9,9,10,11,11,10,12,13,13,14,15,16,18,17,18,16,17,17,18,20,18,20,21,19,22,22,23,22,23,22,22,22,23,23,22,22,23,19,20,21,22,20,21,20,20,21,23,20,19,22,21],[28,28,28,28,29,28,28,29,28,27,27,27,28,27,27,27,28,28,27,28,28,27,28,28,27,28,29,27,28,28,27,28,29,29,27,28,28,28,29,28,29,28,28,28,28,27,26,24,25,25,24,23,24,22,22,23,21,20,20,19,16,14,9,7,5,4,4,4,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,4,5,5,5,6,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,7,8,8,7,7,7,7,7,7,7,6,7,7,6,6,7,7,6,7,7,7,6,7,7,6,7,7,8,7,7,7,7,7,6,7,7,6,6,6,6,6,6,6,5,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,6,5,5,5,6,5,5,6,6,6,6,6,6,6,5,5,6,5,5,6,6,5,5,6,6,5,6,6,7,7,7,6,7,7,7,7,7,7,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,5,5,6,6,5,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,6,6,6,6,5,5,4,4,4,5,4,4,5,5,4,4,5,5,5,5,5,5,5,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10,10,11,13,13,15,15,16,19,18,18,17,18,17,18,21,20,20,22,21,23,23,24,23,23,23,25,24,23,25,23,24,24,21,23,24,24,22,23,21,23,23,25,21,19,23,22],[28,28,28,28,28,28,28,28,28,27,27,27,27,26,26,26,27,28,27,27,28,26,26,28,27,26,28,28,27,28,27,27,28,28,27,28,28,27,28,27,28,27,27,27,26,26,26,24,24,24,24,23,22,21,21,21,20,20,20,19,16,14,10,6,4,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,7,6,6,7,7,7,7,8,8,8,8,9,9,8,7,7,7,7,7,7,7,7,7,6,6,7,7,6,7,7,7,6,7,7,6,7,7,8,7,7,7,7,6,6,7,7,6,6,6,6,5,6,6,5,5,5,6,6,6,6,6,6,6,5,5,5,5,5,5,6,5,5,5,5,5,5,6,5,5,6,6,6,5,5,5,6,5,5,6,6,5,5,6,5,5,6,6,7,7,7,6,7,7,7,7,7,7,6,6,6,6,6,6,5,5,6,5,5,5,5,5,4,5,5,5,4,4,4,4,4,4,4,4,4,5,5,5,6,5,5,6,6,5,5,5,5,5,5,5,4,4,4,5,4,4,5,5,6,6,6,5,5,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,3,3,4,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,4,6,7,8,9,10,12,10,10,13,13,11,13,13,14,13,15,17,17,18,19,20,20,20,21,20,18,21,19,18,19,20,21,19,22,22,26,25,27,26,25,26,26,26,27,27,27,27,27,27,26,28,27,27,26,27,26,26,26,26,25,25,25,26,24,25,23,23,25,22,22,22,21,21,20,19,19,17,16,14,13,12,9,7,6,4,3,2,2,1,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,5,4,4,5,5,5,5,5,5,5,4,4,4,4,4,5,5,4,4,4,4,4,3,3,3,3,3,3,2,2,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,6,6,6,6,5,5,5,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,3,3,4,3,3,4,4,3,3,3,3,3,3,4,3,3,4,4,4,5,6,6,7,6,6,5,5,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,5,5,5,5,6,6,5,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,4,3,3,3,3,3,3,2,3,3,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,2,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,2,1,1,2,2,1,2,2,2,2,2,2,3,3,3,3,2,2,3,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,3,4,4,3,3,4,4,3,4,4,4,3,4,4,4,4,4,4,4,4,5,6,7,8,8,9,11,10,10,10,12,12,14,15,15,19,18,17,16,17,17,17,21,17,20,21,20,24,23,21,23,24,22,24,23,23,21,22,23,22,18,20,24,23,20,23,21,22,22,24,19,19,22,19],[28,29,28,29,29,29,29,29,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,27,29,28,28,29,27,28,29,29,28,29,29,28,29,28,29,28,28,28,28,27,26,26,27,25,25,25,24,23,22,22,20,20,19,18,16,14,10,8,7,5,4,4,4,3,4,3,4,4,4,4,4,4,5,4,4,5,5,4,5,5,5,6,6,6,6,7,6,7,7,7,7,7,8,8,7,8,8,8,8,9,8,9,8,10,10,8,7,8,7,8,8,8,8,8,8,7,7,8,8,7,7,8,7,8,8,7,7,8,8,9,8,8,8,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7,6,6,6,6,5,4,4,4,4,4,4,3,3,3,3,3,2,3,3,2,2,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,2,3,3,3,2,2,2,2,2,2,1,2,1,1,1,0,1,1,2,2,2,2,2,2,2,3,3,3,4,4,4,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,8,9,9,10,11,10,11,11,12,13,15,17,16,19,19,18,16,19,18,17,21,19,22,22,21,25,25,24,23,24,24,25,25,23,24,23,24,23,22,22,25,23,21,24,23,23,24,26,21,21,24,22],[28,28,28,28,29,29,28,28,28,27,27,27,28,27,27,27,27,27,27,27,27,26,27,28,27,27,28,27,27,28,27,28,28,29,27,28,27,28,28,28,28,27,28,27,28,27,27,25,26,24,25,24,24,22,23,23,21,21,20,18,16,15,11,9,7,6,5,5,5,4,4,4,4,4,5,5,5,6,6,5,6,7,7,6,7,8,7,8,8,8,8,9,9,9,9,9,9,9,10,10,10,11,11,11,11,12,12,12,12,13,12,11,11,11,9,10,11,11,10,10,11,9,10,11,11,10,10,12,10,10,10,10,10,10,11,11,11,11,11,11,10,10,10,10,9,9,10,9,9,9,9,8,8,8,9,9,9,9,8,9,9,8,7,8,8,7,7,8,8,7,8,8,8,8,8,8,8,8,9,8,8,8,8,9,8,8,8,8,8,8,8,8,8,8,9,10,10,10,9,10,10,10,10,10,10,9,9,9,9,9,9,9,8,9,9,8,8,8,8,7,7,8,8,7,7,7,7,6,7,7,6,6,6,7,7,8,8,8,8,8,8,7,7,8,7,7,7,7,6,7,7,7,7,7,7,8,8,8,7,7,7,7,6,7,7,6,6,7,7,6,7,7,7,7,8,8,8,8,8,8,8,7,7,6,6,7,6,6,6,6,5,5,6,5,5,6,6,5,5,4,4,4,5,4,4,4,4,4,4,4,4,4,5,5,5,4,4,4,4,4,3,3,3,3,3,3,2,3,3,3,3,4,4,6,7,7,9,10,13,14,15,13,14,17,15,15,17,16,18,16,19,20,20,22,23,22,24,21,23,21,19,22,19,18,21,21,21,20,22,24,25,25,28,25,27,27,27,27,28,28,27,27,27,28,27,27,28,28,26,27,26,27,26,26,26,22,27,25,25,26,24,24,26,24,24,25,23,24,23,22,21,21,19,17,15,14,11,10,7,5,4,3,2,2,2,2,2,2,2,3,3,3,3,4,3,3,4,4,4,4,5,5,5,5,6,6,6,6,5,6,5,5,4,4,5,5,6,6,5,5,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,5,5,5,5,5,6,6,7,7,8,8,8,8,8,7,7,7,6,6,6,5,5,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,6,6,5,5,6,6,5,6,6,6,5,5,6,7,8,8,8,8,8,8,7,8,7,8,8,7,8,9,8,10,10,10,9,10,9,9,9,8,8,9,8,8,8,7,7,7,6,6,7,6,6,6,6,5,5,5,5,4,4,5,5,4,4,5,4,4,4,5,4,4,5,5,4,5,5,4,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,6,6,7,6,7,7,8,8,7,8,7,8,8,9,8,9,9,10,8,10,9,9,9,9,9,9,9,8,8,7,7,6,5,5,5,5,5,5,4,4,5,4,4,4,4,4,3,4,4,3,4,4,4,3,3,3,4,4,4,4,4,4,4,4,5,5,5,4,4,5,5,4,4,4,4,3,4,3,3,3,2,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,1,1,0,1,2,2,2,2,3,3,3,3,4,4,5,6,5,6,5,6,6,4,5,5,4,4,5,5,5,5,5,5,5,6,5,5,6,7,6,6,7,7,8,9,10,10,11,11,11,11,12,13,14,15,16,16,20,19,19,17,18,18,18,21,19,21,22,21,23,23,23,23,23,23,24,25,24,23,22,24,23,20,21,23,23,21,23,22,21,22,23,21,20,22,21],[29,29,29,29,29,29,29,29,29,29,29,28,29,28,28,28,29,29,28,29,28,28,29,29,28,28,29,28,29,29,28,29,29,29,28,29,29,29,29,28,29,28,28,29,28,27,27,26,27,26,24,25,26,23,23,23,22,21,21,19,17,14,12,10,8,7,6,7,6,6,6,5,6,6,7,7,8,8,8,8,7,8,9,8,8,10,9,11,10,10,11,11,11,11,12,11,10,11,13,12,12,13,14,12,13,14,15,14,13,15,14,14,12,12,12,13,12,13,12,13,13,11,11,13,13,11,12,13,11,11,12,12,10,12,12,13,12,12,12,12,12,11,12,12,10,11,12,11,9,11,11,9,10,10,10,11,11,12,11,12,11,10,10,11,9,9,10,10,9,9,9,10,9,10,10,10,9,10,10,10,10,9,10,10,10,9,10,10,9,9,10,9,9,10,10,12,12,12,11,12,12,12,12,12,12,11,12,11,11,11,12,11,9,11,10,9,10,10,9,8,9,9,8,8,8,9,8,7,8,8,7,7,8,8,9,9,9,9,10,10,9,9,9,9,8,8,8,8,8,8,8,7,8,8,8,9,10,10,9,8,8,7,8,7,8,7,8,8,8,7,8,8,8,7,8,9,9,9,8,9,9,8,7,7,7,7,7,7,7,7,8,6,7,7,7,7,7,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,6,5,5,5,5,4,5,4,4,4,4,4,5,5,4,4,5,5,4,5,5,7,9,11,11,12,15,16,16,15,16,16,17,15,18,18,18,18,20,22,22,21,23,23,24,22,24,21,19,22,21,21,20,21,22,21,21,25,25,26,27,27,26,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,27,27,26,27,25,27,27,25,26,25,26,27,25,25,25,24,25,24,23,23,21,20,18,17,15,14,11,9,6,5,4,3,3,2,3,2,3,2,4,4,3,3,4,4,4,4,5,5,5,6,6,5,6,7,8,7,6,7,6,6,6,6,5,6,5,7,7,5,5,6,4,4,4,4,4,4,4,3,3,3,3,2,3,2,3,3,4,4,4,5,5,4,5,5,6,5,6,6,6,7,8,7,8,9,9,8,8,7,8,8,8,7,7,7,7,8,7,7,7,8,7,7,8,7,7,7,7,6,7,7,7,6,7,7,6,6,7,7,7,7,7,7,7,8,8,10,10,10,10,9,8,9,8,9,10,9,9,11,11,12,12,12,11,12,12,12,11,11,11,11,10,9,9,9,8,8,7,8,7,7,7,7,6,7,6,7,6,6,6,6,6,6,5,6,5,5,5,6,4,5,5,5,5,5,6,5,5,6,6,5,6,6,6,7,6,6,6,6,6,6,6,6,5,5,6,6,5,6,6,6,6,6,7,6,7,7,8,8,8,9,10,10,10,9,10,9,10,11,11,10,12,12,12,11,12,11,11,11,12,11,10,11,11,9,9,9,7,7,6,6,6,6,6,5,6,6,5,5,5,5,5,4,5,5,4,4,5,4,3,3,4,4,5,4,4,4,5,5,5,5,6,5,5,5,5,5,5,4,5,4,4,4,5,5,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,4,4,5,4,4,4,3,3,3,3,2,2,2,2,2,1,1,0,1,2,2,3,3,3,4,4,4,5,5,6,5,6,6,7,6,6,6,6,5,5,6,6,5,6,6,6,6,6,7,7,7,7,8,7,8,8,9,10,10,11,11,13,12,13,13,14,14,16,18,18,21,21,20,18,20,19,18,23,19,21,23,20,24,24,24,24,24,23,25,25,23,24,24,24,23,21,22,24,24,21,24,22,23,25,25,22,21,24,20],[29,29,29,29,29,29,29,29,29,28,27,27,28,27,28,27,28,26,27,28,26,27,27,27,26,27,28,27,28,28,26,28,28,29,27,28,27,28,28,28,29,28,28,28,28,28,27,26,27,26,25,25,24,24,23,23,21,22,20,18,16,14,12,11,10,9,9,9,8,8,7,7,7,7,9,9,10,10,11,11,10,11,11,10,11,13,13,13,14,14,15,15,16,15,14,15,16,16,16,17,17,17,18,18,17,18,18,18,19,17,18,17,16,17,16,17,16,16,14,16,16,15,16,16,17,16,16,17,16,15,15,17,16,15,15,15,16,17,16,17,17,16,16,17,17,17,16,17,14,15,16,13,14,12,14,15,15,15,15,14,13,13,13,13,13,12,13,14,13,11,13,14,13,12,15,15,12,13,14,14,14,12,12,14,14,12,13,14,13,13,14,15,13,13,14,14,16,16,15,15,15,16,15,15,16,14,15,15,15,14,15,15,14,15,14,14,14,15,14,11,12,15,12,10,12,12,11,10,12,12,9,10,10,11,11,12,12,12,12,13,13,12,11,13,11,11,11,11,10,10,11,10,9,10,11,11,12,12,11,11,10,11,10,10,11,10,9,10,12,10,11,13,12,10,11,12,12,14,13,15,12,12,11,10,11,11,10,9,10,10,8,9,10,8,8,9,9,8,7,7,6,7,7,6,5,6,6,5,6,6,6,5,6,6,6,6,5,6,6,5,4,5,5,5,5,6,5,5,5,6,6,6,6,8,9,12,12,13,15,17,16,15,16,17,16,16,18,18,17,17,20,21,19,21,23,22,24,21,24,21,21,22,20,19,20,21,21,20,22,23,24,24,26,25,26,26,26,27,27,28,27,28,28,28,27,27,27,28,26,27,26,27,26,26,27,24,26,27,26,27,25,26,27,24,25,25,24,24,24,24,22,22,21,20,17,17,14,12,10,7,6,4,4,3,3,5,2,3,4,4,4,3,3,5,4,4,5,6,5,5,6,7,6,6,7,9,9,8,7,8,8,7,7,6,7,7,8,8,6,5,7,4,4,5,5,4,4,5,3,3,4,4,3,3,4,4,4,5,5,5,5,6,6,6,6,7,7,8,8,8,9,10,10,11,11,12,11,10,9,9,9,9,9,8,8,8,9,9,9,8,9,10,9,10,9,9,9,9,9,9,8,10,9,9,8,9,10,8,9,10,9,10,9,10,10,11,12,11,11,11,11,11,12,11,12,14,12,12,14,14,15,15,15,15,15,15,15,15,15,14,14,15,14,13,11,12,12,11,11,11,10,10,10,10,9,9,9,8,7,7,8,7,6,7,7,6,5,7,7,5,6,6,6,6,7,7,6,7,7,7,7,7,7,8,7,8,8,8,7,7,8,8,8,7,8,9,8,8,9,9,8,9,10,9,9,10,11,11,11,11,13,12,14,14,12,14,13,13,15,15,15,15,14,15,14,14,16,15,15,14,13,14,13,12,12,11,11,9,9,10,10,8,9,9,8,7,8,7,6,6,7,5,5,6,6,5,5,6,5,4,4,5,6,6,5,6,6,7,6,6,7,8,7,7,6,8,8,6,6,8,7,6,8,7,7,6,5,6,6,5,4,4,5,5,3,4,5,4,4,5,4,4,5,6,6,5,7,6,5,6,7,6,5,6,5,4,5,5,3,3,4,4,3,2,2,1,0,1,2,3,3,3,4,4,6,6,7,8,7,8,7,9,8,7,7,8,7,7,8,8,7,7,8,8,8,8,8,8,8,10,9,9,10,10,12,13,12,13,14,15,15,15,15,17,17,19,18,19,21,23,21,19,22,21,21,24,21,23,23,23,26,25,24,25,25,24,24,26,24,24,23,26,25,24,23,24,24,23,24,22,22,22,24,21,20,23,21],[30,29,29,29,29,29,29,29,28,28,27,27,28,27,28,27,28,27,28,28,27,27,28,27,27,28,28,28,28,28,26,28,28,29,28,29,28,28,29,29,29,28,28,28,28,28,27,26,26,26,25,25,25,24,23,22,22,21,19,20,18,16,14,13,12,12,12,11,11,11,11,12,12,12,12,14,13,15,14,15,14,15,14,14,16,16,16,17,17,17,17,17,18,20,17,17,19,18,19,19,20,18,19,19,20,21,19,20,20,19,19,19,19,21,20,20,19,19,18,19,20,18,19,18,20,19,18,20,19,18,17,19,17,17,17,17,18,19,18,18,19,19,18,19,19,19,19,19,18,18,18,18,18,17,17,18,17,17,18,16,17,16,15,17,17,16,17,17,16,16,17,17,16,18,17,17,17,17,17,17,17,17,18,16,17,16,16,17,16,17,16,16,15,17,17,16,17,18,16,17,17,17,17,17,17,16,17,17,17,17,17,18,16,19,16,16,18,17,17,15,16,17,16,16,16,16,14,14,16,16,13,15,13,15,13,15,15,15,15,15,17,15,16,16,16,15,14,16,14,15,14,14,13,15,15,14,15,15,15,14,14,14,13,14,15,14,12,15,15,13,14,15,15,13,14,14,15,16,15,16,15,15,14,14,14,14,13,14,14,13,12,13,14,11,12,14,13,11,13,11,10,9,11,10,9,9,10,8,8,9,9,8,8,9,9,8,7,6,7,6,6,6,8,7,9,8,6,8,8,8,8,9,10,10,12,13,13,14,15,17,17,16,15,17,17,16,17,18,17,16,20,21,20,20,23,23,23,21,23,21,19,21,19,19,20,21,21,19,21,23,22,22,26,25,26,25,26,26,27,27,27,27,27,27,27,27,27,27,26,27,26,27,26,25,26,25,26,26,25,27,25,26,27,24,26,25,24,25,23,24,22,21,21,18,17,16,15,14,9,8,6,5,6,5,4,3,3,3,5,5,6,6,4,6,5,5,5,6,7,6,6,6,6,8,10,10,10,8,9,8,9,8,7,7,8,7,10,11,6,7,8,7,6,6,6,6,5,5,5,5,5,4,4,5,5,6,7,8,8,7,9,9,8,8,9,9,9,9,10,10,9,14,12,14,14,15,14,13,13,12,13,13,13,13,13,12,13,13,12,13,14,14,12,12,13,13,12,12,12,13,11,12,12,11,10,12,13,11,11,13,12,10,12,12,12,13,13,13,13,14,13,14,15,15,15,15,15,16,16,16,16,16,17,16,17,18,16,17,16,15,16,16,15,16,15,15,15,14,14,14,13,13,14,13,12,13,12,12,11,11,11,10,11,10,10,9,10,10,10,9,10,10,9,9,9,11,10,9,10,11,10,9,10,9,10,10,11,11,10,8,9,10,10,8,10,10,9,10,10,11,10,12,12,12,12,12,14,13,14,14,15,15,16,16,16,16,17,17,17,18,16,17,16,17,15,16,17,18,16,16,15,15,15,14,14,14,13,13,12,13,12,12,12,12,11,11,10,10,10,11,9,8,10,10,8,8,10,9,7,6,7,6,5,7,7,6,7,8,7,7,8,9,8,7,7,8,9,7,7,9,9,7,9,9,10,9,8,9,10,8,6,8,7,7,5,6,6,5,5,6,5,4,5,6,6,6,7,7,6,6,8,7,8,7,6,6,7,6,5,5,6,6,5,4,3,3,1,0,1,2,3,4,4,4,5,5,7,7,6,8,7,9,8,7,9,8,7,8,9,8,8,8,9,9,9,10,10,11,11,12,13,12,12,13,14,15,14,14,16,15,16,16,16,17,19,19,21,19,22,24,21,20,22,22,21,24,22,23,24,22,25,25,25,25,26,25,25,26,24,24,25,25,24,22,24,25,24,23,24,22,23,24,25,22,22,24,23],[29,29,29,29,29,29,29,29,29,29,28,28,29,27,28,27,29,28,27,29,28,27,29,28,27,29,28,27,29,29,28,29,29,29,29,29,28,29,29,28,29,29,28,29,29,28,28,26,27,27,25,25,26,24,23,24,23,22,22,21,20,17,15,14,14,11,12,13,12,13,12,10,12,12,12,14,14,14,15,14,15,14,16,16,14,16,16,17,18,17,19,20,18,19,19,18,18,19,21,19,21,21,21,20,21,21,21,21,22,20,21,21,19,19,20,21,20,21,20,20,20,19,19,20,19,18,19,21,18,18,19,20,17,18,19,18,19,19,19,19,19,18,20,19,18,19,19,18,17,18,19,16,17,17,17,19,19,18,19,18,18,17,18,18,17,15,18,19,16,17,18,18,16,18,19,17,15,18,18,18,17,16,17,17,16,16,17,18,15,16,17,16,16,18,17,17,18,17,16,18,17,17,17,18,19,17,18,17,17,17,18,18,16,18,18,15,17,18,16,15,15,17,15,14,15,15,14,14,15,16,14,14,15,14,16,16,16,16,16,17,16,16,16,16,15,15,16,15,14,15,16,13,13,16,15,14,15,15,15,15,13,14,14,13,15,13,14,15,15,14,15,16,15,15,16,16,16,16,15,16,16,14,14,15,15,14,14,14,14,13,13,13,13,13,12,13,12,12,12,12,9,10,10,10,10,10,10,9,9,10,10,9,10,10,9,9,8,9,8,8,7,9,8,9,8,9,9,9,9,9,10,10,9,11,12,13,13,14,15,16,17,17,17,19,20,16,18,20,20,18,21,22,22,22,23,23,24,22,25,23,21,22,20,20,22,22,22,21,22,23,24,25,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,26,27,27,27,26,26,26,26,27,27,26,27,26,25,27,25,26,26,25,25,25,24,24,23,22,21,19,17,16,15,12,11,10,8,8,7,6,5,5,4,6,7,6,5,5,7,7,6,6,8,8,7,9,9,8,9,11,12,12,9,11,9,9,10,8,8,9,7,11,11,8,8,9,7,6,7,6,5,5,6,5,5,6,6,6,6,5,7,7,9,8,7,9,9,9,9,9,9,10,10,11,11,11,12,12,13,13,14,14,13,13,12,14,13,13,13,13,12,13,14,13,12,14,14,14,13,14,12,12,12,12,11,12,12,12,12,12,12,12,12,12,13,12,12,12,12,13,13,13,15,14,15,14,14,14,15,15,16,15,16,17,17,18,19,17,17,17,17,17,17,17,16,17,18,16,16,16,15,16,14,15,15,14,14,13,13,13,13,12,12,10,11,11,10,9,11,10,9,9,11,10,8,9,10,11,10,10,10,10,9,10,9,9,9,10,9,10,11,11,9,9,8,9,10,9,9,9,12,9,9,11,10,11,12,11,12,13,13,14,15,14,14,17,17,18,17,16,17,16,18,18,19,18,19,18,18,17,18,16,17,17,18,15,15,16,15,15,14,14,13,13,14,13,12,13,12,11,12,12,9,9,9,8,7,8,7,8,7,7,8,6,6,6,6,7,7,8,7,7,8,6,6,8,9,7,7,6,7,7,6,6,8,7,7,9,9,9,9,9,8,7,8,7,6,6,6,5,5,5,5,5,5,4,4,5,5,5,5,5,5,4,5,6,5,6,6,5,6,6,6,5,7,6,5,6,6,5,5,2,1,0,1,2,3,3,4,5,5,6,7,7,8,7,9,9,8,9,10,10,8,9,9,8,9,10,10,10,11,10,12,12,13,13,12,13,14,14,14,14,14,15,16,16,16,18,17,19,20,20,20,23,23,22,21,23,23,22,25,23,25,25,23,27,26,25,27,27,26,26,28,26,25,26,26,25,23,24,27,26,24,26,23,23,25,26,23,22,25,23],[29,28,28,28,28,28,29,28,28,28,27,26,28,26,27,26,28,27,27,27,26,26,27,26,26,27,27,26,27,28,26,28,28,28,27,28,27,28,28,27,28,28,27,27,27,27,27,25,25,25,24,24,24,23,23,22,21,21,20,19,17,16,14,12,12,11,11,10,11,10,11,9,11,11,12,13,13,13,13,13,15,14,14,14,14,14,15,15,14,16,16,15,16,17,17,17,17,17,19,18,20,18,19,19,19,18,20,20,19,19,20,19,17,19,18,19,18,19,18,18,18,18,18,18,18,19,16,19,18,18,17,19,17,16,17,16,18,17,16,17,18,18,18,18,18,18,18,18,16,16,17,17,16,16,15,18,17,17,18,16,17,16,15,15,16,16,15,16,16,17,16,16,15,17,16,17,15,16,16,15,15,16,14,15,15,15,15,15,15,16,15,15,15,16,16,17,16,17,16,17,16,17,17,17,17,17,17,16,16,16,16,17,15,16,16,15,17,16,16,15,14,16,15,14,15,15,14,14,14,14,13,14,13,14,14,14,15,14,15,14,16,15,15,15,16,15,14,15,13,15,14,13,14,15,14,13,14,14,14,14,13,13,13,13,13,13,12,13,14,13,13,14,14,14,14,15,14,14,15,14,14,13,13,13,13,13,13,13,13,12,12,11,12,11,12,12,12,11,12,12,9,10,10,10,8,9,9,7,8,9,9,7,8,9,7,7,7,7,8,7,6,8,8,6,8,9,8,7,9,8,8,9,8,8,11,11,10,12,14,14,16,14,14,16,16,15,16,17,18,16,19,21,20,20,22,23,24,22,24,21,21,21,20,19,19,21,21,20,20,23,21,22,25,23,25,25,26,25,26,27,26,27,27,27,26,27,27,26,25,27,25,26,27,25,26,23,26,26,24,26,24,25,27,23,25,25,23,23,23,23,22,21,20,18,17,15,14,13,11,9,8,7,7,5,6,5,5,4,5,5,5,4,5,6,5,5,6,6,6,6,8,8,7,8,9,9,10,9,9,8,8,8,6,7,9,7,12,11,7,8,9,8,6,7,7,5,6,6,6,4,5,6,5,5,5,6,6,7,6,6,7,8,7,8,9,9,9,9,9,10,11,11,12,13,12,13,13,13,12,12,12,12,12,11,12,10,12,12,12,11,12,13,12,11,12,11,11,11,11,11,11,11,11,11,10,11,12,11,10,11,11,10,10,11,11,13,12,13,13,14,13,13,13,13,14,14,15,14,16,15,16,16,16,15,15,16,16,15,15,15,15,16,15,14,15,15,14,13,13,13,12,12,13,13,11,11,11,11,10,10,10,10,9,10,10,8,8,10,10,7,8,8,9,8,9,10,9,8,10,10,9,9,10,9,9,11,10,9,9,8,8,9,8,7,9,10,8,8,10,9,8,10,10,11,11,12,12,13,13,13,14,15,15,15,16,15,15,15,16,16,15,16,15,16,15,15,16,15,16,16,14,14,15,15,14,13,13,12,12,12,11,11,11,10,10,10,10,9,8,9,9,7,7,8,7,6,7,7,6,5,5,6,6,7,7,6,6,7,7,6,7,8,7,7,6,6,6,6,5,7,6,6,8,8,9,8,7,7,7,6,6,6,6,4,4,4,4,3,4,4,3,3,5,5,5,4,6,5,4,5,6,5,6,5,5,4,5,6,4,5,6,5,5,4,4,3,3,2,1,0,1,3,3,4,4,5,7,7,7,9,8,8,9,8,9,9,9,8,9,9,8,8,9,10,9,10,10,10,11,12,12,11,11,13,13,13,15,14,16,15,17,16,16,17,18,20,20,19,22,22,22,21,22,22,22,25,23,25,25,22,26,24,25,25,25,25,26,26,25,25,24,25,23,23,23,25,25,22,24,22,21,23,24,21,22,24,22],[29,29,29,29,29,29,29,29,29,28,29,28,29,27,28,27,28,28,27,28,27,27,28,28,27,27,29,27,28,28,27,29,29,29,28,29,29,29,29,29,29,28,28,29,28,28,27,26,26,25,25,24,24,24,22,23,21,20,20,19,17,14,11,9,8,7,7,7,6,7,6,6,7,7,8,9,9,11,12,11,9,12,12,10,11,13,13,13,14,13,14,15,14,14,16,16,15,15,18,17,17,17,17,17,18,18,18,18,18,17,18,17,17,17,16,17,17,18,16,17,19,15,16,18,17,16,16,17,16,16,16,17,14,15,16,16,16,17,17,17,16,16,17,18,15,16,17,16,14,15,16,13,13,14,16,14,16,15,14,15,14,14,15,15,14,13,15,17,14,14,15,16,14,14,16,14,13,14,15,15,15,13,13,15,14,14,14,15,13,14,15,13,13,15,15,16,17,15,14,16,15,15,15,16,15,15,15,14,14,13,16,15,13,16,15,13,14,15,13,13,12,14,13,11,12,13,11,10,12,13,10,10,11,12,12,14,13,14,13,14,14,13,15,15,13,13,15,12,11,13,12,11,10,13,13,12,13,14,13,12,11,12,10,11,12,11,10,11,12,11,11,12,11,11,11,13,14,13,12,12,12,13,11,11,10,11,10,10,11,10,9,8,10,10,9,10,10,9,8,8,6,7,8,7,7,7,8,7,7,7,7,7,7,8,7,7,7,7,7,6,6,7,6,6,6,6,6,6,6,6,6,6,6,7,7,8,10,9,12,14,13,12,12,14,14,14,14,15,15,16,16,19,19,19,20,21,22,20,21,20,20,20,18,18,21,19,21,20,21,22,23,24,26,23,25,24,26,26,27,27,26,27,27,27,27,27,27,26,26,27,25,27,26,26,25,24,25,25,25,26,24,24,26,23,24,24,23,23,23,21,22,20,20,17,17,14,14,13,9,7,6,4,5,4,4,3,3,4,4,5,4,4,5,5,4,4,5,6,5,5,7,6,6,7,7,8,7,8,8,8,8,7,6,7,8,7,7,8,7,7,7,6,5,6,6,4,5,6,5,4,5,6,4,5,5,5,5,6,7,6,6,6,6,6,7,7,7,8,8,8,8,10,11,12,11,11,12,12,9,11,9,10,12,10,10,10,9,11,9,9,10,11,9,9,11,9,9,8,9,8,9,8,9,8,7,7,8,8,7,9,8,8,8,7,8,9,11,10,11,11,11,11,12,11,12,13,11,13,13,15,14,14,14,14,15,15,14,14,13,13,14,13,13,12,12,11,12,9,10,10,8,8,9,9,8,7,8,8,7,7,8,7,6,7,8,7,6,6,7,7,6,7,7,7,7,7,7,6,7,7,8,6,7,6,6,6,7,6,6,5,5,6,6,7,5,6,5,5,6,6,5,6,7,7,7,7,8,8,10,10,13,12,14,14,13,13,14,14,14,14,14,14,14,14,14,13,14,14,13,14,13,13,12,12,11,10,10,9,8,8,8,7,8,8,6,6,7,5,5,5,5,6,6,6,6,4,5,5,4,3,3,4,4,5,5,4,5,5,6,4,5,5,4,5,4,4,5,5,4,5,5,5,4,4,5,4,5,5,5,4,4,5,4,3,3,4,3,2,3,3,2,2,3,3,3,3,4,3,2,3,4,3,3,3,3,2,3,3,2,2,3,3,2,3,2,2,3,2,1,1,0,1,2,2,3,4,5,5,5,6,6,8,6,5,7,7,6,6,7,7,8,7,8,7,8,8,8,7,8,10,9,8,9,11,13,14,13,14,12,16,14,13,16,17,16,18,20,20,22,22,21,20,23,21,21,24,21,23,26,22,25,24,25,24,24,25,27,25,25,25,25,25,24,22,23,26,25,21,24,22,22,25,24,21,22,24,22],[28,29,28,28,29,29,28,28,28,28,27,26,28,27,27,26,28,27,26,27,26,26,27,27,26,27,27,27,28,28,27,28,29,29,28,29,28,28,29,28,29,28,28,29,29,28,27,27,26,26,25,25,23,22,23,22,21,21,20,18,16,15,11,10,8,8,8,8,8,8,8,7,8,7,8,9,10,11,12,10,10,11,12,10,11,12,12,13,13,13,13,14,14,14,15,16,14,14,17,17,15,17,18,18,16,18,18,18,18,17,18,18,17,15,16,17,16,18,16,17,17,14,15,17,17,17,15,18,17,15,16,16,15,14,16,15,17,16,17,17,14,16,16,17,15,14,16,16,13,15,16,13,13,13,14,14,15,15,14,15,14,14,14,14,14,12,13,13,13,12,14,14,13,13,16,14,12,14,15,14,14,12,13,15,14,13,14,15,13,13,15,13,13,14,14,14,16,15,15,14,15,14,14,15,14,14,14,14,14,14,15,15,12,14,14,14,12,14,14,12,11,14,13,11,12,12,11,10,11,12,10,10,12,12,13,13,13,13,14,15,13,13,14,14,12,12,13,13,10,12,12,11,10,11,12,12,13,13,12,11,11,12,10,10,12,10,9,10,12,9,10,12,12,10,11,12,12,13,12,13,12,11,11,9,10,11,8,9,10,9,7,8,10,8,7,10,9,8,8,8,7,7,8,8,7,7,8,6,7,8,7,6,7,8,7,7,6,7,7,7,6,6,7,6,7,7,7,6,7,7,8,7,8,8,10,10,10,13,12,13,15,11,13,15,14,13,15,17,16,15,17,19,17,19,21,21,23,20,22,22,21,22,19,18,20,21,20,19,21,23,22,22,25,23,25,25,26,26,27,27,27,27,27,27,27,28,27,27,26,26,26,26,26,24,26,25,25,26,24,26,24,25,26,24,24,25,23,23,23,23,21,22,20,18,17,16,14,13,10,7,6,4,5,4,5,4,4,4,4,5,5,5,5,5,5,6,6,6,7,6,8,8,7,8,9,10,9,9,9,9,8,8,7,7,8,8,8,9,8,8,8,7,6,7,6,6,6,6,6,5,6,6,5,5,5,6,5,7,6,5,6,7,6,6,7,7,8,8,9,8,9,10,10,11,11,10,12,11,9,11,10,11,10,9,10,8,9,10,9,9,9,10,8,9,9,9,8,8,9,8,8,9,9,8,7,8,9,7,9,10,8,8,8,9,9,10,11,11,11,12,11,11,11,11,12,13,11,12,13,13,15,15,14,13,14,14,15,13,13,12,13,12,13,12,12,12,12,9,9,10,9,8,9,9,8,7,9,8,7,8,7,7,6,7,7,6,6,7,7,6,6,7,7,7,7,7,6,6,7,7,6,6,7,6,7,7,8,6,7,7,7,7,6,6,7,7,7,7,8,7,7,7,8,8,7,8,9,10,9,10,13,11,13,13,12,13,12,14,14,14,14,14,14,14,13,14,13,14,14,15,12,12,13,13,12,11,11,9,9,9,8,8,8,8,7,7,7,6,6,6,5,5,5,5,6,5,5,5,5,4,4,5,5,5,6,4,5,6,5,5,6,6,6,6,6,7,6,5,5,5,7,5,6,6,6,6,7,6,5,5,4,6,5,3,3,4,3,2,3,4,2,3,4,4,3,3,4,4,3,3,4,4,3,4,4,3,3,4,3,3,4,4,3,3,3,4,3,3,2,1,1,0,1,2,3,4,4,6,5,6,6,7,7,7,7,7,6,5,7,7,6,6,8,7,7,8,8,8,8,9,9,9,9,10,11,12,12,13,13,15,15,14,15,17,16,18,18,19,21,20,21,19,21,21,20,23,20,23,24,22,25,25,24,23,24,23,25,26,24,24,23,25,24,23,22,24,24,21,24,21,22,22,24,21,20,23,22],[29,29,28,28,28,28,29,28,28,28,27,27,27,26,27,25,27,26,26,27,25,25,27,26,25,27,27,26,28,27,26,28,28,28,27,28,27,28,28,28,28,28,28,28,28,27,27,26,26,27,26,25,25,24,23,23,21,22,20,18,17,14,12,12,11,10,9,9,9,10,9,10,10,11,11,11,11,13,13,12,12,14,13,12,14,15,15,15,16,17,17,17,18,18,17,18,17,18,19,19,20,20,20,18,19,20,20,19,20,20,19,19,18,20,20,19,19,19,19,19,19,18,19,19,18,20,17,19,19,18,17,19,18,19,16,18,18,19,19,18,19,18,18,19,19,18,19,18,17,18,18,17,17,17,17,18,17,17,17,17,16,16,17,16,17,14,16,18,16,16,16,16,17,16,17,17,16,17,16,16,18,17,16,16,17,17,16,17,16,16,15,17,16,16,16,16,17,17,15,16,16,17,15,17,17,16,15,16,16,17,17,16,15,18,17,16,17,17,17,15,15,17,16,13,15,15,14,13,14,14,12,13,13,14,14,15,15,15,16,16,16,15,15,16,14,15,15,14,12,15,15,14,13,14,14,15,15,14,14,13,14,14,13,14,14,13,11,13,14,13,14,13,14,13,13,14,14,15,15,15,15,15,13,12,13,14,12,12,13,12,11,11,13,12,11,12,12,11,11,11,9,9,10,11,9,9,10,10,9,9,10,10,10,10,11,10,9,9,8,8,8,8,8,8,9,8,8,8,8,7,8,8,9,8,10,11,11,12,13,16,16,14,13,16,16,13,15,17,16,15,18,20,17,19,22,21,23,20,23,21,20,21,20,17,19,20,21,18,21,23,20,22,24,24,26,25,25,26,27,27,27,27,27,27,26,27,26,26,25,26,26,27,26,25,26,23,26,26,25,26,25,26,27,23,24,25,24,23,24,23,22,21,20,18,17,16,14,13,11,8,7,5,6,6,6,5,6,6,7,8,7,7,7,8,6,7,8,8,8,8,10,9,8,9,11,10,11,11,11,11,10,10,10,10,10,10,11,11,8,9,10,8,8,9,8,7,7,8,6,7,7,7,6,7,7,9,9,10,9,9,9,10,10,9,10,12,11,12,11,13,13,13,13,13,13,13,13,13,13,12,13,12,14,12,12,11,12,13,11,11,12,13,12,12,12,12,11,11,11,10,10,11,11,11,10,10,11,11,11,11,11,11,11,11,11,12,13,12,12,13,13,13,13,15,13,15,14,14,16,16,17,16,16,16,16,16,16,16,16,15,16,15,15,14,15,15,14,12,13,13,12,12,12,12,10,11,10,11,10,10,10,10,9,10,10,9,9,10,10,9,10,9,11,10,11,10,10,9,10,10,9,8,10,9,8,10,10,10,10,8,9,9,9,8,9,9,8,9,9,10,9,9,11,11,10,11,11,11,13,12,14,14,15,16,14,15,16,16,16,17,16,16,16,17,16,16,16,15,16,16,15,15,14,14,12,12,12,11,11,11,11,10,11,10,9,9,10,8,8,8,9,7,8,9,7,6,8,8,6,5,6,6,7,6,6,6,7,7,7,7,8,9,8,7,7,9,8,7,7,7,8,6,7,9,7,8,6,7,7,6,5,6,6,4,5,5,4,3,3,5,4,3,4,5,4,5,6,7,5,6,6,6,5,6,5,4,4,5,5,4,4,5,4,4,4,5,4,4,4,3,3,1,0,1,2,3,5,5,6,6,7,9,7,6,8,8,8,9,9,9,9,10,10,9,11,11,11,12,11,12,11,11,12,12,13,13,13,14,14,15,16,15,17,18,18,20,19,19,21,22,22,20,22,21,20,25,22,24,24,22,26,24,25,25,25,24,26,27,24,25,26,25,23,22,24,24,24,21,23,22,22,23,24,21,21,23,22],[29,28,28,28,28,28,29,28,28,28,27,27,27,26,27,26,27,26,26,27,26,26,27,27,26,27,27,26,27,28,26,28,28,28,28,29,27,28,28,28,29,28,28,28,28,28,27,26,26,26,24,25,24,24,23,22,22,21,20,19,19,16,15,14,15,12,14,14,13,14,14,15,14,15,14,16,16,16,18,17,16,17,18,16,16,19,18,20,19,19,20,20,21,21,20,20,20,21,21,22,21,22,22,22,22,22,22,22,23,21,22,21,21,22,22,22,22,21,22,22,22,21,21,21,22,22,21,22,22,20,21,21,19,19,20,20,21,20,20,20,22,20,21,22,21,21,22,21,19,21,21,20,20,20,20,21,21,20,21,19,19,19,21,20,20,18,20,20,20,20,19,20,19,20,20,20,18,19,20,20,20,18,20,20,20,18,18,19,18,18,18,19,17,19,18,19,20,20,18,19,19,19,19,18,18,18,19,19,18,19,20,20,18,20,20,18,19,20,19,17,18,20,18,17,18,19,17,16,18,17,15,17,17,17,18,18,18,18,18,19,19,18,19,19,17,19,19,18,15,18,18,16,16,17,16,16,17,17,16,16,16,17,15,16,17,16,15,17,16,15,16,16,16,15,17,17,18,18,16,18,17,17,15,16,16,16,14,15,17,15,13,15,16,15,14,16,16,15,15,14,16,14,14,15,15,14,13,15,14,14,15,15,14,14,13,13,13,12,12,13,11,13,11,11,13,11,13,11,10,11,12,11,12,10,12,12,12,13,15,15,16,15,15,17,16,15,15,17,16,16,19,20,20,20,22,22,23,21,23,21,20,20,19,18,19,19,21,18,19,21,21,21,24,23,24,25,25,26,27,27,27,27,27,27,27,27,27,27,26,27,26,27,27,26,27,26,26,27,25,27,26,25,27,25,26,26,25,25,25,24,24,23,22,19,18,17,15,15,12,10,10,8,9,9,9,9,8,9,10,9,9,9,8,10,8,8,9,10,9,10,11,11,9,11,12,11,12,11,14,12,11,13,12,13,13,12,13,13,9,10,12,9,8,12,10,9,9,11,8,9,10,10,9,10,10,10,11,13,11,11,13,14,11,12,13,14,12,14,15,14,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,15,16,17,15,16,16,17,14,15,16,14,14,14,13,14,14,13,13,13,14,12,14,15,13,15,14,14,14,14,14,14,14,14,15,15,16,16,16,15,17,18,16,18,18,18,19,19,19,19,19,19,20,20,18,18,19,19,19,17,18,17,16,16,16,16,14,15,16,14,14,13,14,13,14,13,12,14,15,13,12,11,14,13,14,12,14,12,14,13,12,13,12,11,13,13,11,10,12,11,12,11,12,10,11,8,11,12,12,11,10,14,12,12,12,13,14,14,14,15,14,14,15,15,16,16,19,18,20,20,19,19,20,20,20,21,20,20,19,20,18,19,19,18,19,19,18,17,17,18,16,16,15,15,14,15,14,14,13,13,13,14,12,13,13,12,11,10,11,10,9,10,9,8,8,8,8,7,7,8,9,7,6,8,8,6,7,10,9,9,9,10,9,10,8,11,11,8,11,13,12,12,12,12,11,10,10,10,12,7,8,7,6,6,6,6,4,3,4,6,4,4,8,7,4,7,9,8,6,8,6,5,6,8,7,5,7,9,7,9,6,7,7,6,5,4,5,2,2,0,1,3,4,5,5,6,7,7,8,8,8,8,9,8,10,9,9,10,13,11,12,14,15,16,14,15,16,15,15,16,16,16,16,15,17,16,16,17,18,18,18,20,20,20,22,22,22,20,21,23,22,25,22,25,25,22,26,25,25,24,26,25,26,27,25,24,25,26,23,21,22,26,25,22,25,22,22,24,24,21,21,24,22],[30,29,29,29,29,29,29,28,28,28,28,28,28,27,27,27,28,26,26,27,26,27,27,27,27,28,28,28,29,28,27,29,29,30,29,29,29,29,29,29,30,29,29,29,29,29,29,27,28,27,27,26,26,26,24,24,24,22,21,20,19,18,15,15,15,13,13,13,12,12,12,13,13,14,14,14,15,15,16,15,15,16,16,16,16,17,16,17,17,18,18,19,20,20,20,20,20,20,20,21,21,21,22,21,22,22,22,22,22,21,21,22,22,22,22,21,21,22,21,21,22,21,20,21,21,22,19,21,21,20,20,21,19,18,19,19,20,19,20,20,20,20,20,21,20,21,20,21,19,20,20,19,19,18,18,20,19,18,20,18,19,18,19,18,19,18,17,20,18,19,19,20,18,20,19,19,18,19,19,18,19,18,18,18,20,18,17,18,17,17,17,18,16,17,18,17,18,19,16,17,17,16,16,18,17,17,16,17,17,17,19,18,15,19,18,17,19,19,19,17,17,19,18,16,17,18,17,15,17,16,15,16,15,16,16,16,17,17,17,17,19,18,18,18,17,19,17,18,15,17,16,16,15,15,16,16,16,16,15,16,16,15,15,15,15,15,13,15,17,14,13,15,15,13,14,15,15,15,14,15,16,16,15,14,15,15,13,14,15,14,12,14,16,14,13,16,15,14,14,13,12,12,14,13,12,12,13,13,12,12,14,12,12,12,12,12,11,10,10,11,10,11,11,10,11,11,10,10,10,10,10,12,10,11,13,13,12,12,14,16,16,16,14,17,18,15,15,18,18,17,18,22,21,21,24,24,26,23,25,22,22,23,21,20,20,22,21,21,21,23,21,23,25,25,26,26,26,27,27,28,27,28,28,28,27,28,28,27,27,28,26,27,27,26,27,26,27,28,27,28,26,27,28,26,26,26,26,25,26,25,24,23,23,21,21,18,16,15,13,11,9,8,8,9,8,7,9,7,8,9,8,8,8,9,9,8,9,8,9,8,11,9,9,11,12,12,12,12,12,12,13,11,10,11,12,10,12,12,10,10,11,9,9,10,9,8,9,9,9,8,8,8,10,10,11,9,11,11,11,9,11,12,11,10,12,13,12,12,13,13,13,13,13,14,14,14,15,14,14,14,14,14,16,15,16,14,14,16,14,14,15,15,14,13,14,14,12,12,13,13,11,13,12,11,11,11,13,11,11,12,12,11,12,11,12,14,13,14,14,14,16,14,15,15,15,15,14,15,16,17,18,18,18,17,18,17,17,16,17,16,17,17,16,15,16,15,15,15,14,14,13,13,14,14,11,12,13,12,12,11,12,12,11,11,11,10,11,11,12,11,12,11,12,12,11,12,11,11,11,12,10,10,11,11,11,10,11,10,11,10,10,11,10,10,10,11,10,11,12,13,10,13,14,13,13,14,14,14,15,15,16,17,18,18,17,18,18,18,19,19,18,17,18,18,17,18,17,18,17,18,16,16,16,16,14,14,14,14,15,14,14,13,14,13,11,11,11,10,10,10,10,9,9,11,9,9,10,10,8,7,6,6,7,6,8,7,7,8,7,7,8,9,9,8,10,9,8,8,8,9,9,8,10,10,10,10,9,10,10,9,9,10,8,8,9,8,7,6,6,6,4,3,3,5,4,4,10,8,4,7,9,8,7,8,8,7,8,8,7,6,7,7,7,7,5,6,6,6,5,3,5,3,2,1,0,1,4,4,5,6,7,7,6,7,8,9,9,8,10,11,10,9,10,12,11,11,12,12,12,13,13,13,14,13,15,14,15,15,16,17,17,17,18,20,18,21,21,21,23,25,24,21,23,24,24,26,24,25,26,23,27,26,27,27,27,26,27,28,26,27,27,26,25,24,25,26,24,23,24,24,22,25,25,23,23,24,24],[29,29,29,29,29,29,29,28,28,28,27,27,28,26,27,26,27,25,27,27,27,27,27,28,27,27,28,27,27,28,27,28,28,29,28,29,27,28,28,28,28,28,27,28,27,27,27,26,25,26,25,24,24,23,22,22,22,22,19,20,18,16,15,13,14,11,13,11,11,13,12,13,12,13,12,15,14,14,14,14,14,14,14,13,14,15,14,15,15,16,16,16,16,18,16,16,17,17,17,18,19,18,18,18,19,18,18,18,19,18,19,19,19,20,20,20,19,19,18,19,18,18,18,18,18,18,16,18,17,16,16,17,15,15,16,16,17,17,17,16,18,16,17,17,16,18,17,17,16,17,17,16,17,16,16,18,17,16,17,16,17,17,17,16,16,16,15,17,16,16,16,16,15,17,16,16,15,15,16,15,15,16,15,14,15,14,14,16,14,14,14,14,14,16,14,15,15,15,14,15,14,14,14,15,15,14,14,14,13,14,15,15,14,15,15,14,17,16,15,13,14,16,14,14,15,14,14,14,14,14,14,15,15,14,14,15,16,15,16,15,16,16,15,15,17,15,14,15,14,15,14,13,13,14,15,12,13,13,13,13,13,13,12,13,13,13,11,13,13,11,11,13,13,12,12,13,14,13,13,12,14,13,11,14,13,12,11,12,13,12,12,13,13,12,12,13,13,12,13,12,13,12,12,13,14,11,11,12,12,12,12,12,12,12,11,12,11,12,11,12,10,12,11,10,12,10,11,11,10,10,11,11,11,10,11,13,11,13,13,15,15,14,15,16,16,15,16,18,17,16,19,21,19,20,22,23,24,22,24,22,20,22,19,19,21,19,20,19,21,21,23,22,25,25,25,25,26,26,27,27,27,28,28,28,28,28,28,28,26,27,27,28,27,26,27,25,26,27,26,26,26,26,28,26,26,26,25,24,24,23,24,22,21,20,19,16,15,13,12,10,9,8,9,8,9,8,8,7,8,8,7,7,7,8,8,8,8,9,8,9,10,9,9,11,11,10,11,10,11,10,10,11,11,11,11,10,12,12,10,10,10,9,8,10,9,8,9,10,9,7,9,10,9,8,10,9,10,11,9,9,10,12,9,10,11,12,9,12,12,11,11,13,13,14,13,14,13,13,13,14,14,14,14,13,13,12,14,13,12,12,14,13,11,11,12,10,10,10,10,11,10,11,10,10,10,11,11,11,10,11,10,10,11,11,10,12,11,12,12,12,12,12,12,11,13,13,13,14,15,15,15,14,16,14,14,14,15,14,14,13,15,14,14,14,14,14,12,13,13,13,12,12,12,12,12,12,11,11,11,10,11,10,12,11,11,9,11,10,10,10,11,10,11,10,9,11,9,9,9,9,8,8,9,8,7,8,8,7,8,8,8,8,9,8,9,10,9,9,10,10,10,11,11,11,12,12,12,12,14,12,15,14,15,15,17,16,17,16,17,17,16,16,15,18,14,14,16,14,15,15,14,14,16,14,13,13,12,12,12,13,12,12,12,11,11,12,11,10,12,10,9,9,9,9,8,6,7,7,6,6,6,6,5,5,7,6,5,6,6,6,5,6,6,5,7,8,7,7,7,8,9,8,9,9,11,9,9,9,9,8,8,7,8,8,6,5,5,6,5,5,4,3,2,4,4,4,6,6,4,5,7,5,6,6,6,5,6,7,6,6,7,7,7,8,6,8,7,7,5,4,4,4,3,2,1,0,1,3,6,4,5,6,5,6,7,7,7,6,7,8,8,7,8,9,9,10,10,11,10,12,14,12,12,14,14,14,14,14,16,15,16,18,18,19,18,20,21,20,23,23,22,22,23,22,22,26,24,24,25,23,26,24,25,26,26,24,26,27,25,25,25,26,24,22,25,25,24,22,24,24,22,24,24,21,23,25,23],[29,29,28,28,29,28,29,28,27,27,26,26,27,25,26,25,27,25,26,27,25,25,27,27,26,27,27,26,28,28,26,28,29,29,28,29,27,29,29,29,29,28,28,29,28,28,28,26,27,26,26,24,25,23,24,23,22,22,20,19,18,16,15,14,14,12,13,13,12,12,12,12,12,11,13,12,14,14,14,13,13,14,13,13,14,15,15,14,14,15,15,16,17,17,17,16,18,17,18,18,18,18,18,18,19,19,19,19,20,19,19,18,20,20,19,19,19,19,20,19,19,18,19,18,19,19,17,19,18,17,17,18,17,17,16,17,17,17,17,16,18,17,16,18,16,18,17,17,16,17,17,16,17,16,16,17,16,16,17,16,17,16,17,17,17,16,16,17,15,18,17,17,16,18,17,17,17,16,17,16,16,16,15,16,17,15,15,16,14,15,15,14,14,15,15,16,15,15,15,15,14,15,15,15,15,16,15,15,15,15,15,15,13,16,15,14,16,16,16,14,15,16,17,14,15,16,14,14,15,15,13,14,13,15,15,15,16,16,16,16,17,16,16,16,17,17,15,15,13,15,15,14,13,13,14,14,14,14,13,14,14,14,14,14,16,14,12,14,15,13,13,14,13,13,14,15,14,13,13,13,13,14,13,13,14,13,12,13,13,13,13,12,14,13,14,14,14,13,13,14,12,12,13,13,11,12,12,13,11,12,13,13,12,12,12,11,11,11,11,11,10,10,10,11,11,11,11,11,10,10,11,12,10,12,12,13,11,12,14,16,15,15,13,15,17,16,15,19,17,18,19,22,21,22,23,23,24,22,25,21,23,23,20,21,21,21,20,20,22,24,22,24,24,24,25,26,25,26,26,27,27,27,27,28,27,28,28,28,27,27,27,28,28,28,27,26,27,27,27,28,27,28,28,27,26,26,26,25,25,25,24,23,22,20,20,17,16,14,12,11,10,9,10,9,8,8,9,9,9,9,8,7,9,9,7,8,10,9,8,9,12,10,10,11,13,12,11,11,12,12,11,10,10,11,11,11,12,11,11,11,12,10,10,10,10,10,9,10,10,9,9,9,9,10,10,10,9,12,10,9,10,12,10,9,11,12,11,11,12,12,12,13,12,13,12,13,13,13,13,12,13,13,14,13,14,13,13,14,13,13,14,14,12,13,13,12,12,11,11,12,11,11,11,11,11,11,13,11,10,11,11,10,12,11,11,13,11,13,13,14,15,14,14,13,15,14,13,14,15,15,15,16,17,15,16,16,17,15,15,15,16,15,14,16,15,14,14,14,13,14,13,13,14,13,12,12,11,12,11,11,12,11,10,11,11,10,10,11,11,11,10,11,11,12,10,11,10,10,11,12,9,9,11,9,9,8,11,9,10,8,8,9,9,8,9,11,9,8,11,11,11,11,13,12,12,14,13,13,14,13,14,15,15,15,15,15,17,16,17,17,15,17,16,16,15,16,16,15,16,17,15,15,16,14,14,12,13,12,13,13,13,12,12,12,12,12,11,10,11,11,10,9,9,11,8,7,10,8,6,6,5,5,5,5,7,5,4,5,7,5,5,7,6,7,6,8,9,7,7,8,9,8,9,10,10,10,10,11,10,9,9,9,7,6,7,7,5,5,5,5,4,3,3,5,3,3,6,6,4,6,7,7,8,7,8,6,8,7,7,7,8,8,8,8,6,8,8,7,6,5,5,4,4,5,3,1,0,1,3,3,4,5,5,6,7,8,7,7,8,8,8,9,9,10,10,11,11,11,11,12,12,13,13,13,14,13,14,14,15,15,15,16,16,18,17,19,20,21,23,23,22,22,23,22,22,25,24,24,25,23,26,25,26,25,26,24,27,26,24,27,25,24,25,23,23,25,23,23,24,24,21,25,25,22,23,24,23],[29,29,28,28,28,28,28,27,26,27,25,25,26,23,26,24,26,24,26,26,25,26,27,25,26,27,27,26,28,27,27,28,28,28,28,29,26,28,28,28,28,28,28,28,28,27,27,24,25,26,26,23,24,24,23,22,22,21,19,20,18,17,15,14,14,12,13,14,12,15,13,14,13,14,15,16,15,16,16,17,15,17,17,15,17,17,16,17,17,18,18,18,18,20,19,18,20,19,19,21,21,20,20,20,21,20,21,21,21,20,22,21,20,22,21,21,21,22,21,21,20,20,19,20,20,21,18,20,20,19,19,19,19,17,18,18,20,18,18,17,18,18,18,20,19,19,19,19,18,19,19,19,20,19,19,21,19,18,20,19,20,19,19,18,18,19,18,20,19,18,18,20,19,19,19,18,18,18,19,18,18,19,16,17,19,17,15,17,16,15,15,16,16,17,15,16,17,16,15,16,16,16,16,17,15,17,15,15,15,16,17,17,15,17,17,16,18,18,18,16,16,18,19,17,17,18,16,16,17,17,16,17,15,17,16,18,18,17,17,16,19,18,17,19,19,17,16,18,16,17,15,15,15,14,15,14,15,14,13,14,15,15,14,13,15,14,12,14,16,14,11,13,14,13,13,15,16,14,15,15,16,15,14,15,14,15,14,15,15,14,15,14,14,13,14,16,14,14,14,14,13,13,14,14,14,13,14,13,13,13,14,13,13,13,13,14,13,14,12,13,12,12,12,12,12,12,14,12,11,11,12,11,12,10,12,12,11,14,14,15,16,16,14,15,17,16,14,18,18,16,17,21,21,20,20,22,24,21,25,21,21,21,20,18,20,21,21,19,21,22,23,24,23,23,24,26,25,27,26,27,27,28,27,27,28,28,28,27,26,27,26,28,27,27,27,25,27,27,26,27,26,26,28,25,26,27,24,25,25,23,24,22,22,21,19,18,17,15,13,12,12,10,11,12,11,11,12,11,11,12,10,10,10,10,10,10,12,10,10,12,13,11,11,12,13,12,12,14,13,13,14,13,11,14,13,12,14,13,10,12,12,11,11,13,11,10,10,12,12,11,12,12,12,11,13,12,12,13,11,11,13,14,10,12,12,11,10,13,12,11,12,13,12,14,14,13,14,13,13,13,14,13,14,15,15,13,13,15,14,11,13,13,13,11,13,12,12,10,11,13,11,10,12,13,11,12,13,14,11,12,12,11,12,11,11,13,12,14,13,14,13,14,14,15,15,15,16,16,16,17,16,16,17,16,15,16,16,15,16,15,16,16,16,15,17,17,15,14,15,15,14,14,16,15,14,14,13,14,13,12,13,12,13,12,13,12,13,12,12,12,13,11,12,12,10,12,12,9,10,13,10,7,10,11,9,8,10,9,9,9,9,11,10,10,11,13,11,9,13,11,11,12,13,15,14,13,15,14,16,15,17,17,18,18,18,19,20,19,19,20,19,19,17,19,17,16,17,16,17,16,15,16,16,16,14,15,15,15,13,15,15,15,15,13,13,13,13,12,13,12,12,11,13,11,10,10,11,9,7,9,7,6,7,5,8,7,6,6,6,6,6,7,9,6,7,8,10,8,8,10,11,10,11,12,12,11,11,12,12,10,10,11,10,9,9,9,9,8,6,6,5,4,4,5,4,5,5,7,6,6,7,8,7,8,8,7,8,9,9,9,9,10,11,11,10,9,10,9,8,8,5,5,5,6,3,2,1,0,1,2,3,4,3,5,5,7,6,5,6,7,8,7,8,10,9,9,10,12,11,12,12,12,13,13,14,13,13,14,14,15,15,16,17,18,17,20,21,21,22,23,23,20,22,23,22,25,22,24,23,21,26,23,24,25,24,23,26,26,23,23,25,24,22,22,23,24,24,22,24,23,22,23,25,23,22,24,24],[28,28,27,28,28,28,27,26,27,26,25,26,26,24,26,24,25,25,26,26,26,26,26,27,26,26,28,26,27,27,26,28,28,28,27,28,28,28,28,28,28,28,28,28,27,27,27,25,25,26,24,24,24,23,22,22,21,21,19,19,18,16,15,14,14,12,13,12,12,12,11,12,11,12,11,13,13,13,13,13,13,12,13,12,12,13,13,14,13,14,15,15,15,15,16,17,15,16,17,17,17,18,17,18,18,18,19,18,19,19,19,18,18,18,18,18,18,19,19,18,18,17,17,17,18,17,15,17,16,14,16,16,14,15,15,15,16,16,16,16,16,15,17,17,15,16,16,15,13,15,16,14,14,15,15,15,16,16,16,16,16,15,16,15,15,15,16,16,15,15,15,15,14,15,15,14,13,15,15,14,14,13,13,14,13,13,13,14,12,12,13,13,12,14,13,14,14,14,13,13,13,14,13,13,14,13,13,13,13,13,14,14,12,15,14,13,13,14,12,12,11,14,12,12,13,13,12,12,13,13,12,13,14,14,14,14,15,15,14,15,14,15,15,14,14,15,13,14,13,14,13,11,12,13,13,12,12,12,12,11,12,11,11,11,11,10,9,10,11,10,9,10,10,10,10,10,11,12,11,12,12,11,10,10,11,10,10,10,11,10,9,10,11,10,10,12,11,11,11,11,11,12,12,11,13,12,11,11,12,12,13,12,12,13,12,12,11,12,11,11,11,12,11,10,11,10,12,12,10,11,12,11,13,13,12,15,13,14,13,16,16,15,16,17,17,16,17,18,18,17,19,20,21,21,21,22,23,21,23,21,21,22,20,20,22,22,22,20,22,24,23,24,25,23,25,26,25,26,26,27,27,27,28,28,28,28,28,28,27,28,28,28,28,27,28,26,27,27,27,27,27,26,27,26,26,26,26,25,25,24,25,23,21,21,19,16,16,14,13,12,11,11,11,10,9,9,9,9,7,9,8,8,9,8,9,8,10,9,10,10,11,10,10,11,11,11,11,11,12,10,10,11,10,12,12,11,12,12,11,11,11,10,11,11,10,10,9,10,11,9,10,10,10,9,11,9,9,11,10,9,11,11,9,9,11,10,9,11,11,9,10,11,11,11,12,13,12,12,12,12,12,13,12,12,11,10,11,12,10,11,10,10,10,9,9,8,8,7,8,8,8,7,9,8,8,8,9,8,8,10,10,9,10,10,9,10,10,10,10,11,10,10,10,10,11,12,12,12,13,14,14,14,15,14,13,14,14,14,14,13,14,15,13,13,14,13,11,12,12,11,10,11,11,10,10,9,9,9,9,10,9,8,9,9,9,8,9,9,9,8,10,9,10,9,8,9,8,6,7,9,6,6,6,7,6,6,7,6,6,6,7,8,7,8,8,9,8,9,9,9,10,11,11,11,12,12,12,12,12,13,14,15,15,14,15,15,15,16,15,16,15,16,16,16,14,15,15,14,15,15,14,14,15,14,14,13,13,13,13,13,12,11,10,11,11,10,9,9,10,8,8,8,8,8,7,6,7,7,6,6,6,5,4,4,5,5,3,5,6,5,4,7,6,6,7,7,7,6,7,8,9,8,10,11,10,10,12,10,9,9,8,8,8,7,7,6,6,6,5,6,5,4,3,5,5,5,6,6,5,6,7,6,7,7,8,7,7,9,7,7,9,8,8,8,8,7,7,8,7,6,5,5,6,6,5,4,2,1,0,1,2,3,4,3,5,6,5,5,6,7,6,6,6,7,7,7,8,9,8,9,11,10,10,10,11,12,12,13,13,13,13,15,14,16,16,18,19,18,21,20,20,19,21,21,19,23,21,23,23,21,25,23,23,23,24,22,25,25,23,24,24,24,22,21,22,25,23,21,23,22,22,24,24,21,22,24,22],[29,28,27,28,27,27,27,26,26,26,24,25,24,23,25,24,25,22,25,25,24,25,26,23,25,26,25,25,27,26,25,27,26,28,27,29,26,28,28,28,28,28,28,27,28,27,27,25,26,26,25,23,25,24,22,22,22,19,19,21,18,16,15,15,14,14,13,14,13,14,14,13,13,12,13,13,15,16,16,14,13,15,15,13,15,16,13,16,15,15,17,16,17,17,18,17,17,18,18,18,19,18,18,18,19,19,19,19,18,19,19,18,18,20,20,19,18,21,20,19,19,19,20,18,18,19,18,18,18,17,18,18,16,16,16,16,17,16,17,17,17,16,17,19,17,17,18,18,16,18,18,17,17,17,17,18,18,17,18,18,19,18,19,18,18,18,17,17,16,18,17,18,16,18,17,17,17,17,17,16,17,16,16,16,17,14,16,16,14,14,15,14,13,14,14,14,16,15,13,14,14,14,13,15,14,14,14,14,14,15,16,15,13,17,16,13,14,16,16,13,14,17,15,13,15,16,14,13,15,16,14,15,15,16,16,16,16,15,16,16,17,16,16,17,17,16,15,16,15,15,15,13,13,14,12,14,14,12,12,11,12,13,12,11,12,12,10,10,12,11,9,11,11,10,10,11,12,12,11,13,12,12,11,11,13,11,11,12,13,11,11,12,13,12,13,15,13,11,13,13,12,13,13,13,14,13,12,14,12,12,12,12,12,12,11,12,13,11,11,14,13,13,12,11,13,12,13,12,12,12,11,13,12,11,13,13,12,15,14,16,16,16,14,17,17,17,17,19,18,18,18,22,22,21,22,23,24,22,24,21,22,22,21,20,20,21,21,19,21,22,21,22,24,23,24,26,25,27,25,27,27,28,27,27,27,27,28,28,27,27,27,27,27,27,28,24,27,27,26,27,27,26,27,25,25,25,25,24,24,23,23,22,22,21,20,18,17,15,14,12,12,11,11,12,11,10,10,10,9,11,9,8,9,10,8,10,11,10,10,10,12,10,11,10,11,11,11,12,11,12,11,11,12,13,12,11,12,11,12,11,12,10,10,11,11,10,10,11,11,11,11,11,10,11,12,12,10,11,9,9,11,13,9,10,10,9,9,10,10,9,10,11,11,12,12,12,12,12,11,12,12,12,12,13,13,12,12,12,11,11,11,11,10,10,10,9,10,8,9,10,9,8,9,10,9,8,11,10,9,10,11,10,11,9,9,11,12,11,10,11,10,11,11,12,12,13,13,13,14,15,15,15,15,15,16,15,16,15,15,14,15,15,15,14,15,14,12,12,13,12,11,11,12,11,11,11,10,10,11,11,11,10,11,11,10,10,11,11,10,9,11,10,11,10,9,11,9,7,8,8,7,6,7,7,6,6,8,7,7,6,7,8,8,8,8,9,9,9,10,10,11,12,13,13,13,14,13,14,13,14,16,16,17,16,16,16,17,18,17,18,17,17,16,17,16,16,16,15,16,16,14,15,15,14,13,14,14,14,14,13,13,13,13,12,11,12,10,9,11,11,10,9,11,9,8,7,8,6,6,6,5,5,4,4,4,5,4,5,6,5,5,6,5,6,7,8,7,8,8,9,9,10,11,11,12,12,11,11,10,11,11,10,9,8,9,8,8,7,6,6,6,5,5,5,5,5,7,8,6,7,8,8,7,9,9,8,9,9,9,9,9,9,10,10,8,9,9,8,6,6,6,6,5,6,4,4,4,3,1,0,1,2,2,3,4,5,5,4,5,6,5,5,7,7,7,7,8,9,9,9,10,10,10,10,10,11,11,11,13,13,13,14,15,17,16,20,21,21,23,22,24,21,22,22,21,24,21,24,25,21,26,23,25,25,24,21,26,26,23,23,25,24,22,22,24,25,23,22,24,23,22,25,25,22,22,25,23],[28,28,27,28,28,27,27,27,26,26,25,25,26,23,26,24,25,25,26,25,25,25,26,26,25,27,27,26,28,28,27,28,29,29,27,29,28,28,29,28,29,27,27,28,28,28,28,26,26,27,25,25,25,25,23,23,23,23,22,21,19,17,15,14,15,13,13,13,13,13,12,13,13,12,12,13,14,14,15,14,14,13,14,14,14,14,15,14,15,16,16,16,16,17,16,17,16,16,18,18,17,18,18,17,18,18,19,18,18,19,19,18,18,18,17,19,18,19,18,18,19,16,16,18,18,16,17,18,17,16,17,17,15,17,16,16,16,16,15,16,15,16,17,17,16,16,17,16,16,17,16,16,16,15,15,17,17,17,16,16,16,16,17,16,16,16,16,16,15,15,16,16,15,16,16,15,15,16,16,15,15,15,14,15,15,13,14,15,14,13,15,14,13,13,14,14,15,15,14,15,15,16,14,14,15,15,13,14,14,16,15,15,14,15,15,14,14,15,14,14,13,14,14,14,14,14,13,14,13,14,12,14,14,15,15,15,16,15,15,15,16,15,16,15,14,14,14,15,13,13,14,13,12,12,12,12,13,13,12,11,11,11,12,10,11,12,9,11,12,10,9,11,11,9,9,11,12,13,13,12,13,12,11,11,11,11,10,12,12,11,10,11,11,11,12,13,11,11,11,13,11,11,12,12,12,12,12,12,12,12,13,11,12,12,11,13,12,14,13,12,14,12,12,12,13,13,14,12,12,13,13,13,13,12,13,13,13,14,14,16,16,17,14,17,18,18,16,19,18,18,19,22,22,21,24,24,24,23,24,24,22,23,22,19,21,22,22,20,21,22,23,22,25,24,25,26,26,26,26,27,27,27,27,27,28,28,28,28,28,28,28,28,28,27,28,25,27,28,26,27,27,26,28,25,27,27,26,26,26,26,25,23,22,22,21,19,17,16,14,13,12,10,12,11,11,11,11,9,9,10,9,8,10,10,10,10,11,10,10,10,11,11,11,11,13,11,12,11,13,11,11,12,10,13,13,12,14,13,11,11,14,12,11,12,12,10,11,12,12,10,11,11,12,11,12,11,10,12,10,10,11,11,10,9,10,9,9,10,10,9,9,11,10,11,12,12,12,11,10,12,11,13,12,12,13,10,10,11,12,10,10,10,9,8,11,9,9,8,8,10,9,7,9,10,8,8,10,11,10,11,11,10,10,9,9,10,13,12,10,11,9,10,12,11,14,14,12,13,14,14,15,16,15,14,15,14,16,15,15,14,15,15,14,13,14,13,13,12,11,11,10,11,12,11,10,11,12,10,10,11,10,10,10,11,10,10,10,11,10,10,11,10,11,9,9,9,9,7,8,9,7,5,7,8,5,5,7,6,7,6,6,8,8,6,8,9,8,9,9,9,9,11,12,12,12,12,13,13,13,13,15,16,16,15,16,16,15,17,16,16,16,16,16,16,15,16,15,14,16,16,14,15,16,15,14,13,13,13,14,12,12,12,12,11,11,11,10,9,10,10,9,9,9,8,7,8,8,6,6,6,6,5,5,4,6,5,3,4,5,3,4,5,5,6,7,8,8,8,7,8,10,8,9,11,10,11,11,11,9,8,9,10,9,8,8,6,6,8,6,6,6,6,4,5,5,5,7,6,6,7,8,8,9,9,9,7,8,10,8,9,9,10,8,9,10,8,9,8,6,6,6,6,6,6,5,4,4,3,1,1,0,1,2,3,3,4,4,4,4,6,5,5,7,7,6,7,8,9,9,9,10,10,10,9,10,11,11,11,11,14,12,14,15,17,17,19,20,21,22,22,22,21,22,22,21,25,22,24,25,19,26,23,25,25,25,21,26,25,23,25,25,25,23,21,24,25,23,22,24,23,22,23,24,20,22,23,22],[28,27,26,27,27,26,26,25,25,26,23,24,23,22,24,22,23,22,24,24,23,24,26,23,25,27,26,25,27,27,26,28,28,29,28,29,28,29,28,28,29,28,28,29,28,28,28,26,27,27,26,25,26,25,24,23,22,22,20,21,20,18,17,14,13,14,12,12,13,13,13,13,13,13,13,14,14,16,15,13,13,16,16,13,14,15,15,16,15,15,17,17,17,18,17,17,18,17,17,18,19,17,18,18,18,17,18,18,18,19,19,19,19,20,18,19,19,21,19,18,18,18,18,18,17,18,17,17,17,17,18,17,16,17,16,18,16,15,15,16,15,15,16,18,17,18,17,18,16,17,17,16,18,17,17,18,18,18,17,18,18,18,18,18,18,17,17,18,15,16,17,18,14,17,17,16,15,16,16,16,16,14,16,15,16,13,16,15,14,14,14,13,14,15,15,15,17,15,13,16,15,15,14,15,14,16,14,15,13,15,14,15,14,15,15,14,14,16,15,14,14,16,14,13,16,16,13,12,15,15,13,13,14,16,15,16,17,16,16,15,17,15,16,16,14,15,15,15,13,13,13,13,13,13,15,13,13,13,13,12,13,13,12,12,13,13,11,12,13,11,10,11,11,11,11,13,14,13,12,12,13,13,11,11,12,12,11,12,13,12,11,12,12,12,13,14,13,13,13,13,11,12,12,13,13,13,12,13,11,12,11,12,11,12,11,12,11,12,11,11,12,11,12,11,13,12,12,11,11,12,12,11,12,11,12,14,13,15,15,14,17,17,15,17,19,18,16,19,19,18,19,22,22,21,23,24,24,24,25,21,23,23,22,20,20,22,22,21,19,21,23,24,24,22,25,25,25,26,26,27,26,26,26,27,27,28,27,27,27,27,27,27,28,26,27,25,28,27,26,27,27,26,27,25,27,27,25,25,25,25,26,24,22,21,20,19,17,15,14,12,12,11,11,10,10,11,11,10,9,10,8,9,10,10,9,10,11,9,11,11,11,10,11,10,10,10,10,11,11,10,11,11,10,12,11,11,11,11,10,11,13,11,11,11,10,11,10,11,10,10,10,10,13,11,12,9,11,12,9,8,9,10,8,9,10,10,8,9,10,8,8,11,10,11,11,11,12,12,10,11,10,11,12,12,13,12,10,12,12,11,11,10,10,9,10,9,9,10,9,11,9,10,9,10,10,9,11,10,10,10,11,9,10,9,9,11,12,11,11,12,10,11,12,11,13,13,13,12,15,16,15,14,16,15,15,16,15,15,16,15,16,15,14,14,14,14,12,12,12,12,11,11,13,12,10,11,11,11,11,11,11,10,12,12,11,10,10,11,10,9,11,11,11,9,8,9,8,7,7,9,7,7,6,7,8,8,8,8,7,6,7,7,7,7,9,9,8,9,9,10,10,11,11,12,13,12,12,12,14,12,16,16,16,16,16,17,18,18,17,17,17,18,16,16,17,16,16,16,17,16,15,16,14,15,14,14,14,14,12,13,13,11,12,11,12,11,10,10,11,11,10,10,10,9,7,8,9,7,6,7,6,5,5,5,5,5,4,6,7,4,5,6,6,6,6,8,7,7,8,8,9,9,9,10,10,10,11,11,10,9,11,10,9,10,9,7,7,8,6,7,7,6,5,5,6,7,7,7,8,8,8,9,8,9,9,10,10,9,11,10,9,9,10,10,10,11,9,8,8,7,7,8,7,8,6,5,5,4,3,1,1,0,1,2,2,3,5,4,5,6,6,6,7,8,8,7,7,9,9,9,9,10,10,9,11,12,12,12,11,15,12,13,15,18,17,21,20,22,21,22,23,19,22,22,21,25,21,23,24,22,26,24,25,25,26,23,26,25,24,25,24,23,24,22,22,24,23,23,25,22,22,24,25,21,21,24,24],[27,27,26,27,27,27,27,26,26,26,25,25,25,24,25,25,26,25,26,27,26,26,27,27,26,27,28,26,28,28,27,28,28,28,28,28,27,28,28,28,28,28,27,28,28,27,27,25,25,26,24,23,23,23,21,21,21,20,19,19,19,16,15,13,14,13,13,13,12,13,12,12,12,13,12,13,13,14,14,15,13,14,14,12,14,14,13,15,13,16,16,15,15,17,16,16,16,16,16,17,18,17,16,17,17,18,18,18,18,18,19,18,17,18,17,18,17,18,17,17,17,17,16,17,17,17,15,16,17,15,16,17,15,14,15,14,15,15,14,15,15,16,16,17,17,16,16,16,15,16,16,16,17,16,15,17,17,16,17,16,17,17,16,16,16,16,16,16,15,15,15,15,14,16,16,15,14,14,15,13,14,14,13,13,15,13,13,14,14,13,12,13,14,14,13,13,13,13,12,12,12,13,13,13,13,12,12,13,13,14,13,13,13,13,14,13,15,15,14,13,13,15,15,13,14,14,13,13,13,14,12,14,13,14,13,14,14,14,14,14,15,14,14,15,14,13,12,14,13,13,13,13,11,12,12,12,12,12,11,11,11,12,12,12,12,12,9,13,13,11,11,11,12,11,11,11,12,12,11,12,14,12,11,12,12,13,11,12,13,12,10,12,12,11,12,14,12,12,12,13,11,11,11,11,12,11,12,11,11,11,11,10,11,10,10,11,9,10,10,10,11,11,11,10,12,11,12,11,11,12,12,12,11,12,14,14,13,16,15,16,17,16,16,18,18,16,17,19,19,18,20,22,22,21,23,24,26,24,26,24,24,23,22,19,21,23,22,21,21,23,24,24,26,26,26,26,27,27,27,28,28,28,28,28,28,28,28,28,27,28,27,28,28,27,27,25,27,28,26,27,26,26,28,25,26,26,25,25,24,24,24,22,22,20,19,17,17,14,13,12,12,10,10,10,9,9,10,9,8,9,7,8,8,8,8,9,10,8,9,9,11,9,9,12,12,10,10,10,11,10,11,10,10,10,10,11,12,12,9,13,12,12,9,12,10,9,9,10,9,9,9,10,10,8,11,9,9,10,8,7,9,11,7,9,9,11,8,9,10,10,8,9,9,12,11,11,12,11,10,10,10,11,11,12,12,11,11,11,13,9,12,11,12,9,12,11,10,11,11,11,10,10,11,11,10,10,11,10,11,11,10,9,9,9,9,11,11,11,10,10,11,10,10,11,12,12,12,13,14,14,13,13,13,14,13,14,15,14,14,13,14,14,14,13,14,13,12,12,12,13,12,12,12,12,11,11,11,12,11,11,12,10,10,11,12,10,11,13,10,9,11,10,10,8,8,10,9,7,9,9,8,7,8,8,7,7,9,7,9,7,7,10,8,6,9,10,9,9,10,10,9,11,10,12,11,11,13,12,14,12,15,16,16,16,15,17,16,17,17,17,16,16,15,17,15,14,15,14,14,14,13,14,14,13,13,12,12,13,12,13,12,12,12,11,11,11,11,11,12,10,10,10,9,10,7,7,8,8,6,6,5,5,3,3,5,4,4,4,6,4,5,6,7,8,6,8,8,7,7,9,10,8,10,11,11,10,10,10,11,10,9,10,9,8,7,7,7,6,6,6,7,6,5,6,6,7,6,6,6,7,7,7,8,9,8,8,9,9,8,9,9,10,9,9,9,7,8,7,8,7,6,7,8,7,6,5,5,4,3,2,2,1,0,1,2,2,3,4,4,5,5,5,8,7,7,8,9,12,10,10,10,10,12,10,10,11,12,11,12,13,12,14,15,16,16,19,17,19,20,20,20,18,20,21,20,23,19,23,22,21,25,23,22,24,25,22,25,25,23,22,23,24,22,21,20,23,23,20,22,22,21,23,24,21,21,23,22],[28,28,28,28,28,28,28,27,27,26,26,26,26,25,26,25,26,25,26,26,26,26,27,26,26,27,28,27,28,28,27,28,28,29,28,28,28,28,29,28,29,28,28,28,28,28,27,26,26,26,24,24,24,23,22,22,21,21,19,19,18,16,14,13,13,12,11,11,11,11,10,9,9,8,9,10,12,11,11,11,10,11,11,10,10,11,11,12,12,12,13,13,13,13,13,15,14,14,15,15,14,15,16,15,14,16,16,16,15,16,16,16,15,15,14,16,15,16,15,15,16,13,14,15,15,14,13,15,14,13,13,13,13,13,12,13,13,12,13,13,13,14,13,14,13,14,14,13,12,13,13,11,12,13,13,13,14,14,14,15,14,13,14,13,13,13,14,14,13,13,13,13,12,12,13,12,11,12,12,12,12,10,11,11,11,10,11,12,10,9,11,10,10,10,11,11,11,12,10,12,11,12,11,11,12,11,11,12,11,12,12,11,11,12,12,11,10,11,11,10,10,11,10,10,11,10,10,10,10,11,9,11,12,11,13,12,12,13,12,12,12,13,12,11,11,12,11,10,10,10,10,9,9,9,10,10,10,10,9,8,9,9,8,7,8,8,6,8,9,8,7,9,9,9,8,8,10,11,10,10,10,10,9,9,9,9,8,9,9,9,8,7,9,8,9,8,8,8,8,8,8,9,8,9,9,9,8,8,9,9,7,8,9,9,7,9,7,10,8,8,9,9,9,9,10,9,10,9,9,10,10,11,11,11,11,13,13,12,14,15,16,15,15,17,18,18,18,19,19,19,20,22,24,23,24,25,25,25,25,24,24,25,23,23,23,24,24,22,23,24,25,26,27,27,27,27,27,28,28,28,28,28,28,29,29,29,29,29,28,29,28,29,29,28,28,27,28,28,27,28,28,27,28,26,26,26,26,25,26,24,24,23,22,20,19,17,16,14,13,11,10,9,9,9,8,8,8,6,7,7,6,7,6,8,8,7,8,9,9,9,9,10,9,10,11,10,10,10,10,10,10,9,9,9,10,10,11,11,9,10,11,9,9,10,9,9,8,9,8,8,7,9,8,7,7,7,7,7,6,7,7,6,6,6,7,7,8,7,7,6,7,8,7,8,9,8,9,9,8,8,7,8,8,9,8,7,7,8,9,8,7,7,7,6,6,7,7,5,7,8,6,7,8,8,7,8,9,8,10,8,8,7,8,8,9,9,10,10,10,9,11,9,10,9,10,11,9,10,12,12,12,12,13,13,13,13,13,13,13,12,14,13,12,12,12,11,11,11,10,10,9,10,10,9,8,8,8,8,8,8,8,9,8,8,8,6,7,8,7,6,7,8,8,6,5,6,5,5,5,6,5,4,5,7,5,5,8,7,6,6,7,7,8,7,7,8,8,9,8,9,8,9,10,10,10,10,11,12,11,11,13,12,12,13,12,12,13,13,13,13,13,14,13,14,14,13,13,13,13,13,13,13,14,13,12,11,12,11,12,11,11,10,9,9,10,8,8,8,8,7,8,7,7,7,8,7,10,6,5,7,7,4,3,3,4,4,2,5,5,4,5,6,6,6,7,6,7,8,6,7,7,7,8,9,9,9,9,9,7,7,7,7,6,6,7,6,6,6,5,5,5,4,4,5,5,5,6,7,5,6,7,7,7,8,7,7,7,7,7,7,8,8,8,8,7,8,7,8,7,5,6,5,6,5,5,4,5,5,2,2,3,2,1,0,1,2,5,4,3,6,4,4,6,6,5,5,7,6,6,6,6,7,8,7,8,9,10,10,11,12,12,12,14,16,15,18,17,18,20,21,21,17,21,21,20,24,18,23,22,21,26,23,22,24,25,23,25,25,24,22,23,24,23,20,21,23,23,20,23,22,21,23,24,20,21,23,21],[28,28,27,28,27,26,27,26,25,26,23,24,25,21,25,23,25,24,24,26,25,26,27,27,26,27,28,27,28,27,27,28,29,29,28,29,28,28,29,29,29,29,28,28,28,28,28,27,27,26,25,24,24,24,23,23,22,20,19,21,18,16,14,12,11,11,10,9,11,10,10,9,10,9,10,9,11,11,12,11,10,11,11,9,11,11,10,12,11,12,13,14,13,14,15,14,12,13,15,14,14,15,15,15,15,15,16,16,15,16,17,16,15,15,15,16,16,16,15,16,15,14,14,15,15,14,15,14,13,12,14,13,11,13,13,14,13,12,13,13,13,13,13,13,12,12,13,13,12,13,13,12,12,12,13,13,14,15,14,15,15,14,15,14,14,13,15,15,12,13,13,13,12,13,13,12,12,12,12,12,12,11,11,11,11,10,11,11,9,9,13,10,10,10,11,11,13,13,10,11,12,11,11,12,11,10,11,11,11,12,13,12,11,12,12,11,11,12,11,10,10,11,11,10,11,11,10,10,11,11,10,11,11,12,12,12,12,12,12,12,13,12,12,12,11,11,11,10,10,10,10,9,9,10,9,10,10,9,8,8,10,9,9,8,8,8,7,8,8,8,7,8,8,7,8,8,9,10,9,9,10,10,9,8,9,9,8,9,9,9,8,8,9,9,9,10,9,9,10,9,9,9,9,9,10,9,9,8,8,8,8,8,8,8,7,8,8,8,8,8,10,9,9,8,10,9,10,9,9,9,10,11,10,9,11,12,12,14,13,15,16,15,15,17,18,18,17,20,18,19,19,22,24,21,23,24,25,24,26,22,22,23,21,22,22,23,23,22,21,23,23,25,26,25,26,26,27,27,27,27,27,27,27,27,27,27,28,28,27,28,28,28,28,27,28,26,27,28,27,28,27,26,28,27,26,26,26,24,24,24,23,22,22,21,20,18,17,14,13,10,9,8,8,8,8,7,7,7,6,7,7,6,7,7,7,7,9,8,8,8,10,10,8,8,9,9,10,10,10,10,10,9,9,9,9,9,9,9,9,8,9,8,9,8,8,7,8,8,8,8,8,8,7,8,8,8,7,7,6,5,6,6,6,5,5,5,5,5,5,5,6,6,7,7,8,7,8,7,6,7,7,8,7,8,8,7,7,8,8,7,6,7,6,6,6,6,6,5,6,7,6,6,6,7,7,6,8,7,7,7,8,7,7,7,7,8,10,8,8,9,8,8,9,10,10,10,9,10,11,12,12,12,14,12,13,13,13,13,12,11,13,12,12,10,12,11,10,9,10,9,8,8,10,9,8,8,8,7,8,9,9,7,7,8,7,7,6,8,6,6,7,7,6,6,5,5,5,4,4,5,5,4,4,5,5,4,6,5,5,6,5,5,5,6,6,6,6,6,7,8,8,9,8,9,9,10,10,11,10,11,13,13,14,14,13,12,13,14,13,13,13,14,14,14,14,14,14,13,13,13,13,12,13,13,11,12,12,12,12,10,10,9,10,8,8,9,8,7,8,7,7,6,7,6,6,6,6,4,4,4,4,3,3,2,4,4,3,4,4,4,4,5,5,6,6,6,6,6,5,6,7,6,7,8,8,8,8,8,7,7,7,7,6,6,6,6,5,5,5,5,5,4,4,5,5,5,6,6,5,5,6,6,6,6,6,6,7,7,7,7,7,6,6,7,6,6,7,7,6,5,5,5,5,5,5,5,5,4,4,3,3,4,2,1,0,1,1,1,2,2,3,2,2,3,4,3,4,5,5,5,5,5,6,6,6,7,8,9,10,11,12,11,12,16,15,16,18,19,21,21,20,17,21,20,18,23,18,22,22,19,25,23,21,24,25,22,24,26,25,19,23,24,22,20,21,24,23,20,25,22,22,23,25,21,21,24,23],[27,27,25,26,26,25,27,25,25,26,23,23,24,22,24,23,25,24,25,26,24,25,26,26,25,26,26,25,26,26,25,27,26,27,26,27,26,27,27,27,27,26,25,26,26,26,25,23,23,24,23,21,22,21,19,19,19,18,16,17,16,13,12,10,10,9,8,9,8,8,7,7,7,7,7,7,8,9,9,8,8,9,8,8,9,9,8,9,9,10,10,10,10,11,11,11,10,11,11,11,12,12,12,12,13,13,13,13,13,14,14,14,13,14,13,13,13,13,12,12,12,11,11,12,12,12,10,12,11,9,10,11,9,9,10,10,10,10,10,10,10,10,11,11,9,10,11,11,10,11,11,10,10,10,11,12,12,12,12,12,12,11,11,11,11,10,11,11,10,9,11,11,9,10,11,10,9,9,9,8,9,9,8,9,9,8,8,9,8,7,8,8,7,8,8,8,9,9,8,8,9,9,8,8,9,8,8,9,8,9,9,8,8,9,9,9,9,9,9,8,8,9,8,8,9,8,8,8,8,8,7,8,8,9,9,10,10,10,9,10,10,8,8,9,8,7,7,8,7,7,7,7,6,6,7,7,7,7,6,6,6,7,7,5,6,7,5,6,7,6,6,7,7,6,6,6,7,7,6,7,8,8,7,7,8,7,6,7,7,7,6,7,7,6,7,7,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,6,5,6,6,6,7,7,6,6,7,7,8,7,7,8,8,9,9,8,10,11,10,12,12,14,14,14,13,15,17,15,15,18,18,16,18,20,21,19,21,22,23,21,24,20,21,21,20,19,20,22,21,20,20,23,23,24,24,25,25,25,26,26,26,26,26,26,26,26,26,27,27,27,26,26,26,26,26,26,26,25,26,25,25,26,25,24,26,25,24,24,24,23,24,22,22,20,19,17,17,15,14,12,11,9,8,7,7,7,6,7,6,6,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,8,8,10,8,8,8,7,7,7,8,7,9,9,7,8,8,7,8,7,7,7,6,7,7,6,6,6,6,6,6,5,4,4,3,4,4,3,3,4,4,3,3,4,4,4,4,5,6,6,6,6,6,6,4,5,5,5,5,5,6,5,5,5,6,4,4,5,5,4,4,5,4,4,5,5,5,5,6,6,5,5,6,6,5,6,6,5,6,6,6,7,8,8,8,7,6,7,6,7,7,8,8,8,9,10,10,10,10,10,10,11,10,11,10,9,9,10,9,8,9,9,8,7,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,6,5,4,4,5,4,4,4,4,4,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,6,5,5,5,5,5,6,6,5,6,6,6,6,6,7,7,8,8,8,8,9,10,10,10,11,10,11,11,11,11,11,11,12,12,12,11,12,12,12,12,11,11,11,11,11,10,10,9,9,8,8,8,8,7,7,7,7,6,6,7,5,6,6,5,5,4,4,4,4,3,4,3,2,2,2,3,3,3,4,4,4,3,4,5,5,5,5,5,6,5,5,6,6,6,7,7,7,6,6,6,6,6,5,6,6,5,5,5,5,5,4,4,4,3,4,4,5,5,6,5,5,6,6,6,6,6,6,6,6,6,7,6,6,6,7,6,5,5,6,6,5,5,5,5,5,4,4,4,4,4,3,3,3,2,2,1,0,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,4,4,5,6,7,8,10,10,11,11,12,14,13,16,17,16,18,20,18,16,20,20,17,22,17,22,21,19,26,23,21,24,25,22,24,25,24,21,22,25,21,18,20,23,22,18,23,21,19,23,23,18,20,22,21],[28,28,28,27,28,28,27,27,27,26,26,25,26,25,25,25,26,26,26,26,27,26,26,28,27,26,28,27,27,28,26,27,28,28,27,28,27,28,28,28,28,27,27,27,27,27,25,25,25,24,23,23,23,21,20,21,20,19,18,18,16,14,13,11,10,9,8,8,7,7,7,6,6,5,6,6,7,7,8,7,6,7,7,6,7,8,8,8,8,8,9,10,9,10,10,10,9,10,11,11,11,12,12,12,12,13,13,12,13,13,13,13,12,12,12,12,12,12,11,11,12,11,10,11,11,10,10,11,10,9,10,10,8,9,9,10,10,10,10,10,10,9,10,10,9,9,10,9,8,9,10,8,8,8,10,10,10,10,10,10,10,9,10,10,9,8,9,10,8,8,9,9,8,8,9,8,7,8,8,7,8,7,7,8,7,6,7,8,7,6,7,7,6,7,8,8,9,9,8,8,9,9,8,9,9,8,8,8,8,8,9,8,7,8,8,7,7,8,7,6,7,7,7,6,7,7,6,6,7,7,6,7,7,8,8,9,9,9,8,9,8,8,8,8,7,7,7,7,6,6,6,6,5,5,6,6,7,6,6,5,5,5,5,5,5,5,4,5,6,5,5,6,6,5,5,6,6,7,7,7,6,7,6,6,6,6,6,6,6,6,5,5,5,5,5,6,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,6,6,6,6,6,6,7,6,7,7,7,8,8,8,9,10,10,11,12,14,15,14,14,16,17,16,18,19,19,19,20,22,22,22,24,24,25,23,25,22,22,23,21,21,21,23,23,21,23,23,25,25,27,26,26,26,27,27,27,27,27,27,27,28,27,28,28,28,27,27,27,27,28,27,27,26,26,27,26,27,26,26,27,26,25,25,24,23,23,23,22,21,20,18,17,15,14,12,11,9,8,7,7,6,6,6,5,5,4,5,4,4,6,5,5,7,7,6,7,8,8,7,8,8,8,8,8,9,8,7,7,7,7,7,7,8,8,9,8,8,8,7,7,8,7,6,6,7,7,7,6,6,6,5,5,4,4,4,3,3,4,3,3,3,4,3,3,4,4,4,4,5,5,6,6,6,6,6,5,5,4,5,5,4,5,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,4,4,5,5,5,5,5,5,6,6,6,5,6,6,6,7,8,8,8,7,7,6,6,6,7,8,7,7,9,9,9,10,10,10,10,11,10,11,10,9,10,9,9,9,8,8,8,7,6,7,7,6,6,6,6,5,5,5,5,5,5,4,5,4,4,4,4,4,3,3,4,4,3,3,2,3,3,2,2,3,2,2,3,3,3,3,4,4,4,4,5,5,4,5,5,5,5,6,6,6,6,6,6,7,6,7,8,7,8,7,9,9,10,9,8,8,9,9,10,10,10,11,11,12,11,11,11,11,10,11,10,10,10,10,9,9,9,8,8,7,7,6,6,6,6,6,6,6,6,5,5,5,4,4,4,4,3,3,3,3,3,2,2,2,3,3,3,4,4,3,4,4,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,5,6,6,5,5,5,5,4,4,4,4,4,3,4,4,4,5,4,4,6,5,4,5,6,6,6,6,5,5,5,6,5,5,6,6,5,5,5,5,5,5,4,4,4,5,5,5,4,4,5,4,4,4,4,4,3,6,1,1,0,1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,3,4,5,6,8,8,10,11,11,11,12,14,12,15,16,17,20,20,17,16,21,20,18,22,17,20,21,18,24,22,20,23,24,22,23,25,23,22,22,24,22,19,19,23,21,18,22,20,19,22,23,18,17,21,20],[28,28,28,28,28,27,27,27,27,27,25,25,26,24,26,24,26,25,26,26,27,26,27,28,26,27,28,27,28,28,26,28,28,28,28,28,28,28,29,28,28,27,27,27,27,27,26,25,25,25,24,23,23,22,21,21,20,20,18,19,16,14,12,10,9,8,7,7,7,7,6,6,6,6,6,7,7,7,8,7,6,7,7,6,6,7,8,8,8,8,8,9,8,9,9,9,9,9,10,9,10,10,10,10,10,11,11,11,11,11,12,11,10,10,10,10,10,10,9,10,10,9,8,10,10,9,9,9,9,8,9,9,8,8,8,8,9,8,9,8,8,8,9,9,8,8,9,8,9,8,9,8,8,8,9,9,9,9,9,9,9,9,9,9,8,9,8,9,9,8,8,8,8,8,8,8,7,7,8,7,7,7,6,7,7,6,6,7,6,6,7,6,6,6,7,7,8,8,7,8,8,8,7,8,8,8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7,7,6,6,7,7,6,6,7,7,6,7,7,8,8,8,9,8,8,8,8,7,7,8,7,6,6,6,6,6,5,6,6,5,5,6,7,6,5,5,5,5,5,5,5,5,5,5,6,5,5,5,6,5,5,5,6,6,6,7,6,7,6,6,6,6,5,6,6,5,5,5,5,6,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,8,8,7,9,10,10,11,11,14,14,14,14,17,16,16,18,19,18,19,20,22,23,22,24,24,26,24,25,21,23,23,22,22,22,22,23,22,23,23,25,25,27,25,27,26,27,27,27,27,26,27,27,27,27,28,28,28,27,27,27,27,28,27,27,26,27,27,26,27,27,26,27,26,25,26,25,23,24,24,22,23,20,20,19,16,14,11,10,8,7,6,6,6,6,6,5,5,5,5,5,4,5,5,5,5,6,6,6,6,7,7,6,7,8,7,8,7,7,7,7,7,6,6,7,7,8,9,7,7,8,7,7,7,6,6,6,6,6,6,5,5,6,5,5,4,4,4,4,3,4,3,3,3,4,3,3,4,4,4,4,5,5,6,6,6,6,6,4,4,4,5,4,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,5,6,6,6,7,8,8,7,7,6,5,6,6,7,7,7,7,8,8,8,9,9,9,9,9,9,9,9,8,9,9,8,7,7,8,7,7,7,7,6,6,6,5,5,5,6,5,5,5,5,4,4,4,4,3,3,4,4,3,3,4,4,3,3,3,3,2,2,3,3,2,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,5,5,5,5,6,6,6,7,6,7,7,7,7,8,9,9,9,9,8,8,9,9,9,9,9,10,10,10,10,10,10,9,10,9,9,9,9,9,9,8,8,8,7,7,6,7,7,6,6,5,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,5,6,5,5,4,4,4,4,4,4,4,4,3,4,4,3,4,4,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,4,4,4,5,5,4,4,4,4,4,3,3,3,3,2,2,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,5,6,8,8,10,10,11,11,11,15,14,15,17,17,19,19,18,17,19,20,18,22,17,20,21,18,24,22,22,22,24,21,23,25,23,23,23,24,23,20,21,24,23,20,23,21,21,22,24,20,19,22,22],[28,28,27,28,28,26,27,26,26,27,24,24,26,22,25,24,25,24,26,26,26,27,27,28,26,27,28,26,28,27,26,28,28,28,27,28,27,28,28,27,28,27,27,27,27,27,26,24,24,24,23,22,22,21,20,20,19,18,16,18,16,13,12,9,8,8,7,6,7,6,6,5,5,5,6,5,6,7,7,6,6,7,6,6,7,7,7,7,7,7,8,8,8,8,9,8,8,8,9,8,9,10,9,9,10,11,11,10,10,12,12,11,9,10,10,10,9,10,10,10,10,9,8,9,9,9,8,9,8,7,8,8,7,7,8,8,8,8,7,8,8,7,8,8,8,7,8,8,7,8,9,7,8,8,9,9,9,9,8,10,9,8,9,9,8,8,8,9,8,8,8,8,7,8,8,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6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,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,4,5,5,5,4,5,5,5,4,5,4,5,5,5,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,1,1,1,1,0,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,5,5,7,8,9,10,11,11,10,14,12,15,17,17,19,20,18,16,19,22,19,22,17,21,20,19,25,22,22,24,26,22,24,25,24,21,22,24,22,20,19,24,23,19,24,21,20,22,24,20,19,23,22],[28,28,27,27,28,27,28,27,26,26,25,25,27,24,26,25,26,27,26,26,27,26,26,27,27,27,27,26,27,27,26,27,28,28,27,28,27,27,27,27,28,27,26,27,27,26,26,24,24,24,23,21,22,22,19,19,19,19,17,17,15,13,11,9,8,7,7,6,6,6,5,4,4,4,5,5,5,6,6,5,5,6,5,5,6,6,6,6,6,7,7,7,7,8,8,8,7,8,8,8,9,9,9,8,9,10,9,10,10,10,10,10,9,9,9,9,9,8,8,8,9,8,7,8,8,8,7,8,8,6,7,7,6,7,7,7,7,7,7,7,7,7,8,7,7,7,8,7,7,7,8,6,7,7,7,8,8,8,8,8,8,7,7,7,7,7,7,7,7,6,7,7,6,6,7,7,6,6,6,6,6,6,5,6,6,5,6,6,5,5,6,6,5,5,6,7,7,7,6,7,7,7,7,7,7,6,6,7,6,7,7,6,6,6,7,6,6,6,6,5,6,6,5,5,6,6,4,5,5,5,4,5,5,6,6,7,7,7,6,6,6,5,6,6,5,5,5,5,4,4,4,4,4,4,4,5,6,5,4,4,4,4,4,3,4,4,3,4,5,4,4,4,5,4,4,4,5,5,5,5,5,5,4,5,5,5,4,5,5,4,4,4,4,3,4,4,4,3,4,4,4,4,4,3,4,3,3,3,4,3,3,3,3,3,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,6,6,6,6,6,8,10,10,11,12,14,14,13,13,15,16,15,15,17,18,17,18,20,22,20,22,22,23,22,23,21,20,20,20,19,20,22,22,21,22,23,24,25,26,26,26,26,27,27,27,27,26,27,27,27,27,28,28,27,26,27,27,27,27,26,27,25,27,27,25,26,26,25,26,25,25,25,24,22,22,22,21,19,19,17,17,14,12,11,9,7,7,6,5,5,5,5,4,4,4,4,4,4,5,5,5,6,6,6,6,6,7,7,7,8,7,7,7,8,7,7,7,6,5,6,6,6,7,8,7,7,7,6,6,6,6,5,5,5,5,5,4,5,4,4,4,3,3,3,2,2,3,2,2,2,2,2,2,2,3,3,3,4,4,5,5,5,6,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,5,5,7,6,6,5,5,5,5,5,5,6,6,6,6,7,7,7,8,8,8,8,8,8,7,7,7,7,7,6,6,6,6,5,5,5,5,5,5,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,7,7,8,7,7,7,7,7,8,8,8,8,8,9,8,9,9,9,8,8,8,8,8,8,7,7,7,6,6,6,5,5,5,4,4,4,4,4,4,3,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,4,4,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,4,4,5,4,4,5,5,4,4,4,4,3,4,4,4,4,3,4,4,4,4,4,4,3,3,3,3,3,2,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,3,4,5,7,8,9,10,10,11,11,13,12,15,16,15,18,18,17,16,20,19,15,22,16,21,20,20,24,23,22,22,24,23,23,24,24,23,22,25,23,20,19,24,24,20,23,20,19,22,24,20,19,23,21],[28,29,28,28,28,28,28,28,28,27,27,27,26,26,26,26,26,27,27,27,27,27,27,28,27,27,28,28,28,28,26,28,28,29,28,28,28,28,28,28,28,28,27,27,27,27,26,25,25,24,23,23,23,21,20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,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,7,6,6,6,6,6,7,7,7,7,8,8,8,8,7,8,8,8,8,7,7,8,7,7,7,6,6,5,5,4,4,4,4,4,3,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,3,4,4,4,4,3,4,4,4,3,3,3,3,3,2,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,2,4,5,8,7,9,10,11,10,10,13,12,14,16,15,19,19,17,16,19,19,17,21,17,21,21,21,24,24,21,22,24,23,24,24,24,22,21,24,23,20,19,23,23,20,23,21,21,21,24,20,18,22,22],[29,29,28,28,28,27,28,27,26,27,26,25,26,24,26,24,27,26,26,27,27,26,28,28,26,28,28,28,28,28,26,28,29,29,28,29,28,28,29,28,29,28,28,28,27,27,26,25,26,25,23,23,23,22,20,20,20,18,17,17,15,12,11,9,7,7,6,6,6,5,5,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,7,6,7,7,7,7,7,7,7,7,7,8,8,8,8,9,9,8,7,7,7,8,7,8,7,7,7,7,6,7,7,7,6,7,6,6,6,6,6,6,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,7,7,7,7,7,7,7,6,6,7,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,4,5,5,5,4,5,5,4,4,5,5,6,6,5,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,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4,4,3,4,4,3,3,3,3,3,2,2,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,2,4,6,7,8,8,10,11,10,10,13,13,14,16,15,18,18,16,14,19,18,17,21,18,20,21,19,24,23,21,23,24,22,23,24,24,20,22,24,24,21,19,24,24,21,24,21,21,22,24,20,19,23,22],[27,27,25,27,27,25,27,27,25,25,24,24,25,23,25,24,26,25,26,26,26,26,26,26,26,26,26,26,27,26,25,27,27,28,26,27,26,27,27,27,27,26,25,26,26,25,25,23,23,23,22,21,21,21,18,19,18,17,16,16,14,12,11,8,8,7,6,6,6,5,5,4,4,4,4,5,5,6,6,5,5,5,5,5,5,5,5,6,6,6,6,7,6,7,7,6,6,7,7,6,7,7,7,7,8,8,8,8,8,9,9,8,8,8,8,8,7,7,7,7,8,7,6,7,7,7,7,7,6,6,6,6,6,6,6,7,6,6,6,6,6,6,7,6,6,6,7,6,6,6,7,6,6,6,6,7,7,8,7,7,7,6,7,7,7,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,4,5,5,5,5,5,5,4,5,5,5,6,6,5,6,6,6,5,6,6,6,6,5,5,6,6,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,4,5,5,5,4,5,5,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,4,4,4,4,3,4,4,4,5,5,4,3,3,4,3,3,4,3,3,3,4,3,3,4,4,3,3,4,4,4,4,5,5,5,4,4,4,4,4,4,4,3,3,4,4,3,4,4,3,3,4,4,3,4,4,3,4,4,3,3,4,3,3,3,4,3,3,4,3,4,4,4,4,5,4,4,4,5,5,5,5,5,5,6,6,7,8,9,8,10,11,12,13,12,11,13,14,14,14,16,17,16,17,19,20,20,21,21,22,21,22,19,20,20,19,18,18,20,20,18,19,22,23,23,25,24,24,25,25,25,25,25,25,25,25,25,26,26,27,26,26,26,26,26,27,25,26,23,25,25,24,26,25,24,25,25,24,23,23,22,22,21,19,19,18,17,16,14,12,11,9,8,7,5,5,5,5,5,4,4,4,3,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,6,6,6,7,6,6,7,6,6,5,6,5,5,5,5,5,5,5,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,5,5,5,4,3,3,2,3,3,3,3,3,2,3,3,2,2,3,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,6,6,6,5,4,4,4,4,5,5,5,5,5,6,6,7,7,7,7,7,7,7,7,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,5,4,5,5,5,5,5,5,5,6,6,7,6,6,6,7,7,7,7,7,7,8,8,8,8,7,8,7,8,7,7,7,8,7,7,7,6,6,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,4,4,4,4,4,4,5,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,4,5,5,4,4,5,5,4,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,3,3,3,3,3,3,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,2,4,6,6,7,7,10,8,8,10,11,11,14,15,13,17,17,15,14,17,19,16,21,16,20,19,17,24,22,19,21,23,20,22,24,23,19,21,24,21,18,20,22,23,18,23,20,20,21,23,19,18,22,20],[28,28,28,28,28,28,28,27,27,26,26,26,26,26,26,26,26,27,27,26,27,27,26,27,27,27,27,27,27,27,26,27,28,28,27,27,27,27,28,27,28,27,27,27,26,26,26,24,25,23,23,22,22,21,20,20,20,18,17,17,15,13,10,8,7,6,5,5,5,4,4,4,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,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3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,6,7,7,6,6,6,5,5,5,4,4,4,3,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,3,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,4,4,4,4,3,4,4,4,4,3,4,4,3,3,3,3,3,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,2,4,5,6,6,7,9,10,9,10,11,12,14,15,15,18,18,16,16,19,18,16,20,17,20,20,20,23,23,21,22,23,22,23,24,24,22,21,23,23,20,19,22,23,18,22,19,20,22,23,20,20,22,21],[29,29,28,28,28,28,28,28,27,27,27,26,27,26,27,26,27,28,27,27,28,28,28,28,28,28,28,28,28,28,27,28,29,29,28,28,28,28,29,28,29,28,28,27,27,27,25,24,25,24,24,23,24,21,22,21,20,20,19,19,16,14,12,9,8,7,6,6,5,5,4,4,4,3,4,4,4,5,5,5,4,5,5,4,4,5,5,5,5,5,6,6,5,6,6,6,6,6,7,6,6,7,7,6,7,7,8,7,7,9,8,8,7,6,6,7,7,7,7,6,7,6,6,6,6,6,5,6,6,5,6,6,5,5,6,6,6,5,6,6,5,5,6,6,5,5,6,5,5,6,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,4,5,5,4,4,4,4,4,4,3,4,4,3,3,4,4,3,4,4,5,5,5,5,5,6,6,5,6,6,6,6,5,5,6,6,5,4,5,4,4,4,5,4,3,4,4,3,4,4,4,3,4,4,4,3,4,4,5,6,6,5,6,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,3,2,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,3,4,4,3,3,3,3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,16,19,19,17,20,17,21,20,20,24,24,21,22,23,23,24,23,24,22,22,23,24,20,20,24,23,21,22,21,21,22,23,20,19,22,22],[28,28,26,27,28,26,28,27,26,26,25,24,26,24,26,24,26,26,25,27,26,27,27,27,26,27,28,27,28,27,26,28,28,28,28,28,27,28,29,28,28,27,26,26,26,26,25,23,24,24,22,21,22,21,19,20,19,18,17,16,14,13,11,9,8,7,6,6,6,5,5,4,4,4,4,4,5,5,5,5,5,5,5,4,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,6,7,7,7,7,7,8,8,7,8,9,9,8,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,4,4,5,5,6,6,5,6,6,6,5,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,4,5,5,5,4,5,5,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,4,4,4,4,3,4,4,4,5,4,4,3,3,4,3,3,3,4,3,4,4,3,3,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,4,4,4,3,3,4,4,3,4,4,3,3,4,4,3,4,4,3,3,4,3,3,4,4,3,3,4,3,3,4,3,4,4,4,4,5,4,4,4,5,5,5,5,5,6,6,6,6,8,9,9,10,11,12,14,12,13,15,15,15,16,17,17,17,17,20,21,20,21,22,24,22,24,21,21,21,20,19,19,22,21,19,20,22,24,24,26,24,25,25,26,26,26,26,25,26,26,26,26,26,27,26,26,26,26,26,27,25,26,25,25,26,25,26,26,26,26,25,24,24,24,23,21,23,20,19,19,17,17,15,13,12,9,8,6,5,5,5,5,4,4,4,4,4,3,4,4,4,4,5,5,5,5,6,7,7,6,7,7,6,7,6,6,5,5,5,5,6,6,6,7,7,6,6,7,6,6,6,6,5,5,5,5,5,5,5,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,5,6,5,4,3,3,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,6,7,6,5,5,4,4,5,5,5,5,5,6,6,6,7,7,7,7,7,7,7,7,6,6,6,6,5,6,5,5,5,5,5,4,4,4,4,4,4,4,3,3,4,3,3,3,3,3,2,3,3,2,2,2,2,2,2,1,2,2,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,8,7,8,7,7,7,8,7,7,7,7,7,7,7,6,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,4,4,4,4,4,4,3,4,4,3,3,4,3,3,3,3,3,3,4,4,4,4,5,4,5,5,4,5,5,4,4,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,2,3,5,7,6,7,9,9,9,9,12,13,14,16,14,18,18,16,15,19,19,16,22,19,19,18,18,23,21,20,20,23,21,22,24,24,21,21,24,22,20,21,24,24,21,24,21,21,22,24,21,19,23,22],[28,28,27,27,27,26,28,27,26,26,25,25,26,25,26,25,26,26,27,26,27,27,26,26,27,27,27,27,27,27,26,27,27,28,27,27,26,27,27,27,27,26,26,26,25,25,24,22,23,22,21,21,21,20,17,19,18,18,16,16,15,12,11,9,8,7,6,6,6,5,5,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,5,6,6,6,6,6,7,6,6,6,7,6,7,7,7,7,7,8,8,7,8,9,9,8,7,7,7,8,7,7,7,6,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,6,6,5,6,6,5,6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,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,4,4,4,4,4,4,4,4,4,3,4,4,3,3,4,4,3,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,5,5,5,4,4,5,4,4,3,3,3,3,3,2,2,2,2,2,1,1,1,1,1,1,1,0,1,1,1,1,1,1,2,3,5,7,7,7,9,9,8,9,10,11,13,13,15,19,20,17,15,20,20,16,22,18,22,20,21,25,22,21,22,24,23,22,24,24,20,21,24,22,17,19,22,23,19,22,20,19,22,23,19,18,21,20],[28,28,28,28,28,28,27,27,28,26,26,27,26,26,26,26,26,27,27,26,27,27,26,27,27,27,27,27,27,27,26,26,27,28,27,27,27,26,27,27,27,26,26,26,26,25,24,24,24,23,23,22,22,20,19,20,19,19,17,18,15,13,11,9,7,6,5,5,5,4,4,4,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,5,5,5,5,5,5,6,5,5,6,6,6,6,6,6,6,6,8,8,6,6,6,6,6,6,6,5,5,6,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,4,5,5,4,4,5,4,4,5,5,4,4,4,5,5,5,6,6,6,6,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,4,4,4,4,4,3,3,4,3,3,3,4,3,3,3,4,3,3,4,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,3,4,4,3,3,4,4,3,3,4,3,3,3,4,3,3,4,4,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,3,3,3,3,2,3,3,3,4,4,3,3,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,3,3,4,3,4,3,3,3,3,3,3,3,3,2,3,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,6,5,6,8,9,9,10,12,12,15,13,13,15,16,15,17,18,17,18,18,20,22,21,22,22,23,22,23,21,20,22,20,21,22,21,22,21,21,22,25,25,28,25,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,26,27,25,25,27,26,27,27,25,26,24,23,23,23,22,22,21,20,19,17,16,15,14,12,10,9,7,6,5,5,4,4,4,4,3,3,3,3,4,4,4,4,4,5,5,5,5,6,5,6,6,6,6,6,6,6,5,5,5,5,5,5,5,6,7,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,3,3,4,4,4,4,3,2,2,2,2,2,2,2,2,1,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,5,6,6,6,5,4,4,4,3,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,2,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,6,6,7,7,7,6,7,7,7,7,6,7,7,6,6,6,5,5,4,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,2,3,4,7,6,7,9,9,8,9,10,11,13,15,16,19,19,17,15,19,18,16,20,17,20,20,20,23,23,21,21,22,22,23,23,23,20,22,23,22,19,19,23,22,19,22,21,21,22,23,20,19,22,21],[28,28,28,28,28,27,28,27,27,27,26,26,26,25,27,25,27,27,26,26,27,27,26,27,27,27,27,27,27,27,26,27,28,28,27,27,27,27,27,27,27,26,26,26,25,25,24,23,24,24,23,22,22,21,19,20,19,19,18,17,15,14,11,8,8,7,5,5,5,5,4,4,4,3,4,4,4,4,4,4,4,4,5,4,4,4,5,5,5,5,5,6,5,6,6,5,6,6,6,6,6,6,6,6,6,6,7,6,7,7,7,7,6,6,6,6,6,6,6,6,6,5,5,5,6,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,5,5,6,5,5,5,5,5,4,5,5,4,4,5,4,4,4,4,4,4,4,3,4,4,3,4,4,3,3,4,4,3,3,4,4,5,5,4,5,5,5,5,5,5,5,5,5,5,5,5,5,4,5,4,4,4,4,4,3,4,4,3,4,4,4,3,4,4,4,3,4,4,5,5,5,5,5,5,5,5,4,4,4,4,3,4,3,3,3,3,3,3,3,3,4,4,4,3,3,3,3,2,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,4,4,3,4,3,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,6,6,6,7,8,9,10,11,12,13,13,13,15,15,15,16,17,17,17,17,20,21,20,22,22,23,22,23,21,21,22,20,20,21,21,23,21,21,22,24,24,27,24,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,26,26,25,25,26,26,26,26,25,27,24,24,25,24,23,22,22,20,19,19,17,16,14,13,11,9,7,6,5,5,4,4,4,3,3,3,3,3,3,4,4,4,4,5,4,5,5,6,6,5,6,6,6,6,6,5,5,5,4,4,5,5,5,7,7,6,6,6,6,5,5,5,5,4,5,4,4,4,4,4,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,4,4,5,5,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,4,4,3,4,4,4,5,6,6,6,5,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,5,5,5,6,6,6,6,6,7,7,7,7,6,7,6,7,7,6,7,7,7,6,6,5,5,5,5,4,4,4,4,4,3,4,3,3,3,3,3,3,2,3,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,4,4,5,4,4,4,4,4,4,4,4,3,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,2,3,4,6,6,7,8,9,10,9,11,13,14,16,16,17,18,16,15,18,19,17,20,18,21,21,19,23,23,22,21,22,22,25,24,22,22,22,22,23,20,20,24,22,20,21,21,21,23,22,21,18,22,22],[28,28,27,28,28,27,28,27,26,27,25,26,27,25,26,26,26,27,26,26,27,27,26,27,26,27,27,27,27,27,26,27,27,28,26,27,26,27,28,27,27,26,25,26,26,25,25,24,24,23,23,22,22,21,19,20,20,18,17,18,15,14,12,10,9,8,7,7,6,6,5,5,5,4,5,5,5,6,6,5,5,6,5,5,6,6,5,6,6,6,7,7,6,7,7,7,6,7,7,6,7,8,7,7,7,8,8,8,8,9,9,8,8,8,7,8,7,7,7,7,7,7,7,7,7,7,7,7,7,6,7,6,6,6,6,7,6,6,6,6,7,6,7,7,6,6,6,7,6,6,7,6,6,6,7,7,7,7,7,8,7,7,7,7,7,6,7,7,6,6,7,6,6,6,6,6,6,6,6,6,6,5,5,5,5,4,5,5,5,4,5,5,4,4,5,6,6,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4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,6,6,6,5,6,6,6,6,6,5,5,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,1,0,1,1,1,2,3,5,8,6,7,8,8,8,8,11,13,15,15,15,20,21,17,14,22,21,18,22,17,21,21,21,25,23,21,22,23,21,22,24,24,21,23,23,23,19,21,22,23,20,23,21,22,23,24,21,20,24,23],[28,28,27,27,27,27,27,27,26,26,26,26,26,26,25,26,25,26,26,26,26,26,26,27,26,26,26,27,27,26,26,26,27,27,26,26,26,26,27,26,27,26,26,25,25,25,24,23,24,23,23,22,22,22,19,20,19,19,18,18,16,14,12,10,9,8,7,7,7,6,6,5,5,4,5,5,5,6,6,6,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,9,9,8,7,7,7,8,7,7,7,7,7,7,6,7,7,7,6,7,7,6,6,6,6,7,6,7,6,7,6,6,7,6,6,7,6,6,6,6,6,7,7,6,6,6,7,7,7,8,7,8,7,7,7,7,7,6,6,6,6,6,6,6,6,5,6,6,5,5,6,5,5,5,5,5,5,4,5,5,5,4,5,5,5,5,5,6,6,6,6,6,7,7,6,6,7,6,7,7,6,7,7,6,6,6,6,5,5,6,5,5,5,5,5,5,5,5,4,5,5,5,4,5,5,6,6,6,6,6,6,6,5,5,5,5,5,4,4,4,4,4,4,4,3,3,4,4,5,5,4,3,3,4,3,3,4,4,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,4,4,5,4,4,4,4,4,3,4,4,3,3,3,4,4,4,4,4,4,4,3,3,4,3,4,4,4,4,4,4,4,4,4,5,5,5,5,6,5,6,6,6,6,6,6,7,7,8,9,10,10,11,12,13,14,14,13,16,17,15,17,18,18,18,18,19,21,20,21,22,22,22,23,21,20,21,20,20,20,20,21,21,21,23,23,24,25,24,25,26,26,26,26,26,27,27,27,27,26,27,26,27,26,27,26,27,27,26,26,24,24,26,25,26,26,25,26,24,23,23,23,23,22,21,20,19,19,17,16,14,13,11,9,8,8,6,6,5,6,5,5,5,5,5,5,5,6,6,6,6,7,6,6,7,8,7,7,8,8,8,7,7,7,6,6,6,6,6,7,7,8,8,8,7,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,4,3,3,3,3,3,3,3,3,2,3,2,3,2,3,3,3,4,4,5,5,5,4,4,3,2,3,2,3,3,2,2,2,2,2,2,2,2,2,2,3,2,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,6,6,8,7,7,6,6,5,5,5,6,6,6,6,6,7,8,7,7,7,8,9,8,8,8,7,7,7,7,6,6,6,6,6,5,6,5,5,5,5,4,4,4,4,4,4,3,3,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,8,7,7,7,7,7,7,7,7,8,9,9,9,9,8,9,9,9,9,8,9,9,8,8,8,7,6,6,6,5,5,5,5,5,5,4,4,4,4,4,4,3,4,4,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,5,6,5,5,5,5,5,4,5,5,5,4,5,5,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,5,6,5,5,5,5,5,5,5,5,5,5,5,5,6,5,6,5,6,5,5,4,4,4,4,4,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,0,1,1,2,3,5,7,6,7,9,9,8,8,9,11,13,13,14,18,18,15,15,19,19,15,21,17,20,20,19,24,22,22,21,20,21,23,22,22,21,20,23,22,18,17,22,22,18,22,19,21,21,24,20,18,22,21],[28,28,27,27,28,27,27,27,27,26,27,26,27,26,27,25,27,27,27,27,27,27,27,27,27,27,27,28,27,27,26,27,27,28,27,27,27,27,28,27,27,27,26,26,26,26,25,24,24,24,23,22,22,21,21,21,20,20,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5,5,5,5,5,5,4,4,5,4,4,4,4,3,3,3,3,3,3,3,3,2,2,3,2,2,3,3,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,6,5,6,6,6,6,7,6,7,6,6,7,7,8,7,7,7,7,7,7,7,8,8,9,9,9,10,9,9,9,10,9,8,9,9,8,8,8,7,7,6,6,6,5,5,5,5,5,5,5,4,4,5,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,5,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,6,6,6,7,6,6,6,6,6,7,6,6,6,6,6,5,6,5,5,6,6,5,6,5,6,6,6,6,5,6,6,5,5,5,4,5,4,4,3,3,3,3,3,3,2,2,2,2,2,1,1,1,1,1,0,1,2,3,5,7,6,7,9,10,8,8,11,12,13,13,14,18,18,16,14,18,18,14,20,17,20,21,19,23,22,22,21,20,20,23,22,21,21,20,22,21,19,19,22,21,19,21,21,22,22,24,20,18,22,22],[28,29,28,28,29,28,29,28,27,28,27,26,28,26,27,26,28,28,27,27,27,27,27,28,27,27,28,28,28,28,27,28,28,29,28,28,27,28,28,28,28,28,27,27,27,27,26,25,26,26,24,24,25,23,22,23,21,21,19,19,17,15,13,11,9,8,7,7,7,6,6,5,5,4,5,5,5,6,6,6,5,6,6,5,6,5,6,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,8,7,8,8,8,8,9,9,8,7,8,7,8,8,8,8,8,7,7,7,7,7,7,6,7,6,6,6,6,6,6,6,7,7,6,6,7,7,6,6,7,6,6,6,6,6,6,6,6,6,6,7,7,7,7,8,8,7,7,7,7,7,6,7,7,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,4,5,5,5,4,4,5,4,5,5,6,6,6,6,7,7,7,6,7,7,7,7,7,6,7,7,6,6,6,5,5,5,5,5,4,5,5,4,5,5,5,4,5,5,5,4,5,6,6,7,7,7,6,7,6,6,6,6,5,5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,6,5,5,5,6,5,4,4,3,3,3,3,3,3,2,2,2,2,2,2,1,1,1,1,1,0,1,3,4,7,6,7,9,10,10,9,11,13,14,15,16,18,18,16,16,18,19,16,21,18,20,21,21,24,23,23,22,22,22,24,24,23,23,22,22,23,20,21,23,22,20,22,21,21,23,23,20,19,22,22],[29,29,28,28,29,27,29,29,27,28,27,27,28,27,27,27,28,28,28,28,28,28,28,29,28,29,29,29,29,29,29,29,30,30,29,30,29,30,29,29,30,29,29,29,29,29,28,28,28,27,27,27,27,27,26,27,25,25,24,23,23,20,18,18,16,15,15,14,13,13,12,13,12,12,13,12,12,12,14,14,13,13,14,13,13,14,14,15,14,15,14,14,15,15,15,16,15,15,14,14,15,14,15,15,15,15,15,14,14,15,16,16,15,15,15,16,14,15,15,14,14,14,14,13,14,14,15,14,13,13,14,13,13,13,13,15,13,14,14,14,14,15,14,14,13,15,14,14,15,14,14,13,14,14,13,15,15,14,15,15,15,15,16,15,15,13,14,15,14,13,13,14,13,13,13,13,12,13,12,12,12,11,11,12,12,10,11,13,10,10,13,12,11,12,13,13,14,13,13,16,15,13,14,16,15,14,14,14,13,14,14,14,12,14,14,11,14,13,12,11,13,14,11,12,13,13,10,12,13,13,10,12,12,12,12,14,13,12,12,12,12,12,13,12,13,10,10,12,10,9,9,8,7,8,8,9,9,9,8,7,8,9,8,8,9,9,8,9,10,10,10,10,11,10,11,12,10,11,11,12,11,12,11,12,12,10,10,11,11,9,10,11,9,8,10,11,8,8,10,12,10,10,10,9,10,10,8,9,9,8,7,9,9,9,7,9,9,10,10,11,10,11,12,12,12,12,12,13,12,13,13,15,14,14,16,17,17,19,18,19,20,20,21,22,22,22,24,24,23,24,25,26,27,26,27,27,28,27,28,26,26,26,24,23,25,25,25,25,25,26,28,27,27,27,28,27,27,28,28,28,28,28,28,28,28,28,28,29,28,28,28,29,29,28,28,28,28,28,28,28,28,28,28,28,28,28,27,27,26,27,25,24,24,21,23,19,19,18,15,15,15,13,13,13,12,11,13,11,11,11,11,11,11,12,12,12,12,12,12,13,14,14,14,16,15,16,14,13,13,12,12,13,13,13,14,15,16,16,15,15,16,15,13,14,14,13,12,13,13,11,11,11,11,11,11,9,10,8,8,9,7,5,7,7,6,6,7,6,6,7,7,7,8,8,9,8,8,7,5,6,5,6,6,6,8,7,5,6,6,5,4,6,6,5,6,8,7,8,9,8,9,10,9,9,10,10,12,11,12,13,12,12,11,12,12,13,13,14,14,13,12,12,13,13,13,15,14,13,14,15,16,15,16,14,15,15,16,15,15,15,15,15,14,14,15,15,14,13,13,13,13,13,13,13,12,11,12,10,11,11,8,8,10,9,7,9,8,7,7,7,7,5,5,7,6,5,8,8,7,8,9,8,9,9,10,12,10,10,10,10,13,11,14,12,12,13,12,10,13,12,12,13,14,13,13,15,14,15,14,14,15,14,15,15,15,14,14,15,15,15,15,15,15,16,15,16,16,16,17,16,15,15,16,15,14,14,14,14,13,14,13,13,13,12,12,13,11,12,12,11,12,11,12,9,12,11,10,8,10,10,10,8,10,9,10,12,12,11,12,11,13,12,12,11,12,12,11,11,12,13,12,12,12,13,13,12,12,12,11,12,12,12,11,11,11,11,11,11,11,11,12,11,12,11,12,13,13,13,12,13,13,11,13,13,13,12,13,13,11,12,12,13,13,14,11,12,11,11,12,11,12,12,12,12,12,12,12,14,11,11,11,13,11,10,10,9,9,10,9,8,9,8,7,7,6,6,6,4,4,4,4,2,2,0,1,4,7,6,8,9,10,10,10,13,16,16,16,17,21,20,17,18,23,21,18,22,20,21,23,22,24,23,22,23,24,24,24,26,24,22,25,25,25,21,24,25,25,23,25,23,23,24,25,22,21,24,24],[27,28,27,28,29,27,28,29,27,28,28,28,29,27,29,28,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,28,28,27,27,26,25,24,24,25,25,24,24,23,22,22,22,22,22,23,23,24,24,22,23,24,22,21,23,23,26,25,23,26,25,23,26,25,25,22,25,25,23,25,25,26,24,25,24,24,24,24,23,24,25,25,25,25,25,24,25,25,23,24,25,25,24,25,23,25,26,24,22,24,25,22,20,24,22,22,23,24,25,24,23,25,25,22,25,25,23,22,25,25,22,24,25,25,25,26,25,24,24,26,25,26,25,25,24,24,26,23,24,25,25,23,24,25,23,23,25,24,20,23,22,19,22,22,20,20,23,21,19,21,21,21,20,22,20,22,22,20,22,23,22,22,23,23,22,23,22,22,23,23,22,22,24,23,22,23,24,22,21,22,24,21,21,22,23,21,22,23,22,21,22,22,22,23,23,23,23,23,24,24,24,22,23,24,21,18,21,20,19,17,18,16,15,15,17,18,16,13,14,14,18,16,13,16,19,17,16,21,20,18,21,21,19,20,21,21,21,20,22,21,20,21,21,22,20,19,21,20,18,21,22,19,17,20,20,17,17,19,22,21,21,21,18,21,21,17,19,21,19,18,21,21,19,18,21,20,22,21,22,20,22,22,21,22,23,23,22,23,24,24,25,23,23,24,26,26,25,26,26,26,27,27,28,27,28,29,28,28,29,28,29,30,29,29,29,29,29,30,29,29,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,28,27,27,28,26,25,26,24,23,24,22,23,25,23,22,22,22,21,22,21,21,22,22,21,23,22,22,22,23,25,23,24,25,24,24,23,22,22,20,19,22,22,24,24,24,24,24,23,24,25,24,24,26,25,23,23,25,25,22,22,23,22,21,22,22,20,19,16,20,20,16,17,19,15,14,18,16,15,15,19,15,14,15,16,14,14,11,12,13,11,14,12,15,16,13,11,12,13,10,9,12,11,9,10,14,12,14,14,13,18,20,20,20,20,21,22,21,20,21,20,19,21,21,18,21,20,20,20,21,19,21,20,21,23,22,22,24,24,25,26,25,25,25,25,25,26,25,26,24,25,27,25,25,27,25,23,23,24,21,20,23,22,20,20,21,21,19,20,21,18,16,20,18,16,15,18,16,11,15,17,12,12,15,10,12,14,13,8,11,15,14,12,18,18,18,18,18,19,20,20,20,22,20,20,22,21,19,23,23,22,24,24,23,25,25,25,25,24,24,26,25,26,26,25,24,25,26,25,25,26,25,24,25,24,25,26,24,25,25,24,25,25,24,24,24,23,24,24,25,23,24,22,21,23,22,21,22,21,20,19,21,21,20,19,20,19,17,19,21,20,17,18,16,19,20,21,21,21,21,20,20,20,20,22,21,22,21,23,23,22,24,22,24,23,24,24,22,22,24,23,20,22,23,21,20,22,22,21,21,23,21,21,22,21,21,21,23,23,21,21,21,22,23,24,23,22,24,22,24,22,24,23,23,23,21,22,21,22,22,22,22,22,21,20,21,21,21,19,19,18,20,18,18,17,17,18,18,19,18,19,13,13,13,10,9,10,10,7,6,7,6,4,2,0,2,3,5,7,9,12,11,10,15,18,19,20,20,23,23,21,21,25,22,21,23,23,23,25,24,25,25,25,24,26,26,26,26,26,25,26,26,27,24,24,27,26,25,26,25,25,26,27,25,23,26,26],[28,29,27,28,29,28,29,29,28,28,28,29,29,28,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,31,30,31,30,30,30,31,30,30,30,30,30,30,30,30,30,29,30,29,29,29,29,28,28,27,26,27,26,27,27,25,26,26,24,25,23,24,26,26,25,26,27,24,26,27,25,25,27,26,28,27,26,28,28,26,28,27,27,26,27,27,26,27,27,27,26,27,26,26,25,26,25,26,27,27,27,27,26,26,27,26,26,26,26,26,25,26,25,26,26,26,24,25,26,24,22,24,24,27,25,27,27,26,26,27,26,25,27,26,26,25,27,26,25,26,27,26,27,28,26,27,26,28,28,27,28,28,27,27,28,26,27,27,27,25,25,26,25,24,25,25,22,25,24,21,24,25,22,22,25,24,21,24,24,23,21,24,23,25,24,23,25,26,24,25,27,26,26,26,25,25,26,26,26,24,27,26,24,26,26,25,23,25,26,24,23,25,26,23,23,25,25,21,25,24,26,25,26,25,24,25,24,25,25,24,25,25,22,21,24,23,22,21,21,19,17,16,20,20,18,16,16,16,22,20,15,19,22,20,20,24,23,21,23,24,22,23,25,23,24,24,25,24,24,23,24,24,23,22,24,23,22,22,24,22,21,22,23,20,19,22,24,22,23,23,22,22,23,21,22,22,23,19,23,22,21,19,23,22,22,23,22,22,24,24,22,24,25,26,25,26,24,26,26,26,26,26,27,27,27,28,28,28,28,28,29,28,29,29,30,29,30,29,30,30,29,30,30,30,30,30,30,29,29,29,28,29,28,29,29,29,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,28,28,27,26,26,25,24,26,25,25,26,25,25,23,24,22,23,23,24,24,24,23,25,24,24,25,25,26,25,25,26,25,25,25,23,23,22,21,24,23,24,24,25,26,26,25,26,26,26,26,26,25,26,25,26,25,25,24,24,24,24,23,23,21,21,20,21,20,18,20,20,17,15,20,19,15,16,18,17,14,14,17,16,13,11,12,14,12,16,15,17,20,17,13,14,15,14,11,15,15,11,13,17,15,18,19,19,20,24,22,23,23,24,24,23,24,24,23,22,24,24,23,25,24,24,24,24,24,24,24,24,26,26,25,26,26,27,27,27,27,27,27,27,27,27,28,27,27,27,27,27,27,28,27,26,27,25,25,25,25,24,23,24,23,22,22,23,22,21,22,21,19,20,20,20,15,18,18,15,14,18,14,12,18,18,14,17,20,19,19,22,22,23,22,23,23,23,24,23,24,24,24,24,24,24,25,26,25,27,26,26,26,26,27,27,27,27,27,27,27,28,27,27,27,27,27,27,27,27,26,27,26,26,27,26,27,26,26,26,27,26,26,27,25,26,25,27,26,26,25,25,26,24,23,25,25,22,22,24,23,23,24,22,22,22,23,22,22,22,22,22,25,24,25,25,24,24,24,24,24,22,25,25,25,24,26,27,24,26,25,26,26,26,26,25,26,27,24,23,25,26,23,23,25,24,23,24,25,23,25,24,25,25,25,25,26,24,24,25,26,25,27,26,25,26,25,26,24,26,25,24,24,23,23,24,24,24,24,25,24,23,24,24,24,25,22,24,22,24,23,21,22,22,21,22,21,20,20,18,16,15,14,13,11,11,10,8,7,7,7,3,1,0,2,4,5,7,9,9,9,14,16,17,20,20,23,23,20,20,24,22,19,23,20,22,24,22,25,25,24,23,26,25,25,26,26,25,25,26,27,24,24,26,26,26,25,25,25,26,26,25,23,25,26],[28,29,27,29,29,28,30,30,28,29,29,29,30,29,30,29,30,30,30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,30,31,31,31,30,31,30,30,30,30,30,30,30,29,28,28,28,28,28,29,28,28,29,28,27,28,25,27,28,28,28,29,29,27,28,29,28,26,28,28,29,29,28,29,29,29,29,28,29,28,29,29,28,29,29,28,28,29,28,27,27,28,27,28,29,29,29,29,28,28,28,29,27,27,29,28,26,27,27,27,27,27,26,25,27,26,26,25,26,26,27,28,27,27,28,29,27,26,29,28,27,28,29,29,26,29,29,29,29,29,28,29,28,29,29,29,29,29,29,29,29,28,29,29,29,27,27,28,27,26,27,26,25,26,25,24,25,26,25,25,26,26,24,26,25,26,24,25,26,25,26,25,26,27,26,26,27,28,28,27,27,28,27,27,27,27,28,26,26,28,28,26,25,28,27,26,26,27,27,25,26,27,27,24,27,28,27,27,28,27,27,26,26,28,27,26,26,27,25,24,25,26,24,24,24,21,21,19,22,22,20,18,17,20,24,22,19,24,25,24,23,26,26,25,26,26,26,26,27,26,26,27,27,26,26,27,28,27,25,25,27,25,25,26,27,25,24,25,26,24,23,25,26,26,27,26,26,27,26,25,27,26,26,24,27,26,25,25,26,26,27,26,26,27,27,27,27,27,28,28,28,28,28,28,28,27,28,28,29,29,28,29,29,29,29,29,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,29,30,30,29,30,29,30,30,29,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,31,31,31,30,30,30,30,31,31,30,30,30,30,30,30,31,31,30,31,30,30,30,30,30,30,30,30,29,29,29,29,28,28,29,27,27,29,28,28,28,28,28,27,27,27,27,27,27,28,27,27,27,27,27,27,27,27,27,28,28,27,27,26,26,25,25,23,26,27,27,27,27,27,28,26,28,28,28,28,28,27,28,28,28,28,27,27,27,27,27,27,26,26,25,23,25,25,21,22,24,20,20,23,21,17,19,21,18,14,13,18,17,15,13,15,17,16,21,18,22,23,21,17,16,20,17,15,17,19,15,15,19,19,23,23,23,25,27,25,26,27,28,27,26,27,27,26,27,28,28,26,28,27,27,27,27,27,28,27,27,28,27,27,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,27,28,28,28,27,27,27,26,26,26,26,25,25,26,25,23,24,25,23,20,22,22,20,18,22,19,18,22,22,18,22,24,24,23,25,26,26,26,27,27,28,28,27,27,28,28,27,27,27,28,29,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,29,29,28,29,29,28,28,29,27,28,28,27,28,28,29,29,29,28,28,28,27,27,28,28,25,26,27,26,26,27,27,27,26,27,27,27,26,27,26,27,28,29,28,27,28,28,28,27,26,28,28,28,27,29,28,27,28,28,29,28,28,29,28,28,29,28,27,28,28,27,27,28,28,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,28,28,28,27,28,27,28,28,27,27,27,27,27,26,27,28,27,27,27,28,27,27,27,26,28,26,28,27,26,26,25,25,25,25,23,23,22,20,19,18,16,15,15,13,12,12,12,10,8,4,2,0,1,4,7,7,8,8,11,13,16,18,22,23,24,21,20,24,23,19,23,19,22,25,23,25,26,23,25,27,25,26,28,27,24,26,27,26,22,23,27,27,24,26,24,25,25,26,24,23,25,25],[26,28,27,28,28,28,29,28,28,29,28,28,29,28,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,31,31,31,31,31,30,31,31,31,30,30,31,30,30,30,30,30,30,30,30,30,29,29,29,29,28,27,28,27,28,28,27,29,28,27,28,27,27,28,28,28,28,29,27,28,29,28,26,28,28,29,29,27,29,28,28,29,28,28,28,29,28,27,28,29,28,28,29,28,28,28,28,28,28,28,28,29,29,28,28,29,28,28,28,29,28,27,28,27,27,28,28,25,26,27,25,26,26,26,26,26,27,28,27,28,28,28,26,29,28,27,27,29,28,26,28,29,28,29,29,28,28,28,29,29,29,29,29,29,28,29,28,28,29,29,27,27,28,27,26,27,27,26,27,26,25,25,26,25,25,26,25,24,26,24,25,24,25,25,25,25,24,25,26,25,26,26,27,26,27,26,27,27,27,27,26,28,26,25,28,28,26,25,28,27,25,26,28,27,26,27,28,27,26,27,27,27,27,27,27,27,27,27,27,27,27,27,28,26,25,26,27,24,23,25,22,21,18,23,24,20,18,16,19,24,22,18,22,23,23,21,25,26,21,24,24,25,24,25,24,24,25,26,24,26,26,27,27,24,25,27,25,24,26,27,25,24,26,26,23,23,25,26,26,27,26,25,26,27,25,26,26,26,23,27,26,24,22,26,25,27,26,26,26,27,27,26,28,28,28,28,28,28,28,27,27,27,27,28,28,28,28,28,29,29,29,29,29,30,30,30,30,30,29,30,31,30,30,30,30,30,31,30,29,29,29,29,29,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,30,30,31,30,31,30,30,30,30,30,30,31,30,30,31,30,30,30,30,30,30,30,29,30,29,29,29,28,28,28,27,27,27,27,27,28,27,28,26,27,26,26,26,26,28,26,26,26,26,26,26,27,26,26,26,27,26,26,25,25,24,24,23,25,26,27,27,27,27,26,25,27,28,27,26,28,28,27,27,28,28,27,26,27,27,26,27,26,26,24,22,25,24,21,22,23,20,20,21,20,17,17,17,16,13,13,17,15,15,12,15,16,16,20,17,22,23,23,18,17,21,18,15,15,19,15,15,17,18,20,21,22,24,25,24,26,25,26,26,26,26,26,26,26,27,27,26,26,26,25,25,26,26,26,26,26,27,26,26,28,28,28,29,28,29,28,28,28,28,28,29,28,28,29,29,28,29,29,29,29,29,27,28,29,28,26,27,28,26,26,26,25,26,25,26,25,22,24,25,24,20,23,24,20,18,23,18,18,23,22,17,22,23,22,21,24,25,24,24,25,25,27,26,26,27,27,27,27,27,26,28,27,28,28,28,29,29,28,29,28,29,28,29,28,29,29,29,28,29,28,29,29,29,29,28,28,27,28,28,28,28,28,28,28,28,27,28,28,27,28,27,29,28,29,28,28,28,27,26,27,28,25,26,27,27,26,26,27,26,25,27,26,27,25,26,25,26,27,27,27,27,27,26,27,25,27,27,26,28,28,28,28,28,28,27,29,27,28,28,28,28,28,28,27,28,28,27,27,27,27,27,28,27,27,28,26,26,27,25,28,27,26,26,27,28,28,28,28,27,28,28,27,27,28,28,27,26,27,26,26,26,26,27,26,26,25,26,26,25,26,25,25,25,26,24,25,24,23,24,24,22,21,23,20,19,20,19,15,15,16,13,11,10,12,11,7,6,5,2,0,2,4,5,8,7,11,11,14,16,18,19,21,18,15,22,21,18,22,18,22,22,21,24,23,22,23,24,24,23,25,24,22,24,25,23,20,21,25,25,21,25,22,24,25,26,22,20,24,23],[27,28,27,29,29,28,29,29,28,29,29,29,29,28,29,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,31,31,31,31,30,31,31,31,31,31,31,31,31,31,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,28,28,27,27,28,29,27,27,28,28,27,27,26,26,28,28,28,28,28,27,28,28,28,27,28,28,28,28,28,28,28,28,29,29,29,28,29,28,28,29,29,28,28,29,29,28,27,28,28,28,28,29,29,29,29,28,29,28,28,28,29,28,27,27,28,27,27,27,25,26,27,25,25,25,24,25,25,27,26,26,28,28,27,26,29,28,27,28,29,28,27,28,29,28,28,29,28,29,28,29,29,29,28,29,28,28,29,28,29,28,28,27,27,28,27,25,27,26,24,25,24,21,24,25,21,23,25,24,22,24,24,23,22,24,24,24,24,24,24,25,24,25,26,26,26,26,25,27,27,27,26,25,28,26,25,27,28,25,25,27,27,24,26,27,26,24,26,27,26,24,27,26,27,27,27,27,26,26,25,27,26,24,25,26,24,22,24,24,22,22,22,20,19,18,21,22,19,17,17,18,22,21,18,21,22,21,21,23,23,21,23,24,24,24,25,23,23,25,25,24,26,24,27,26,23,24,26,24,23,25,26,22,22,24,25,22,22,24,26,25,26,25,24,25,25,23,25,25,24,22,25,24,24,20,24,25,25,25,25,25,27,26,25,26,27,27,26,27,27,27,27,27,26,27,28,28,28,28,27,28,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,28,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,28,28,27,27,27,26,27,27,26,26,26,27,26,25,23,26,25,24,25,26,26,25,26,25,26,26,26,26,25,26,25,25,23,22,21,24,25,25,25,26,25,26,25,27,27,27,25,26,27,26,27,26,27,26,25,26,26,25,26,24,23,23,21,22,22,20,20,20,18,16,18,18,14,16,16,14,12,10,15,14,13,11,13,15,15,20,17,20,22,20,16,16,19,17,14,15,17,15,15,17,19,19,21,21,23,24,22,24,24,24,25,25,25,25,26,25,27,27,24,27,26,26,26,26,25,25,26,25,28,26,27,28,27,28,28,28,28,28,28,28,28,29,28,28,28,28,29,29,28,29,28,28,29,27,27,28,27,25,26,27,25,23,25,25,23,23,25,24,22,23,23,22,20,21,21,20,17,21,17,17,21,22,16,21,22,22,20,23,24,23,23,24,24,26,26,24,25,27,27,26,27,26,28,28,27,29,28,28,28,28,28,28,28,28,28,29,28,29,29,28,29,28,29,28,29,29,28,28,28,28,28,28,28,29,28,28,28,28,28,28,28,27,28,28,28,28,28,27,28,27,25,27,27,24,25,27,25,25,26,26,25,24,26,26,26,24,26,25,26,26,27,27,26,27,26,26,26,26,27,27,26,27,28,28,27,28,27,28,27,27,27,26,27,28,27,27,27,27,26,26,27,26,26,26,27,27,27,27,27,27,27,27,27,27,27,26,27,28,27,27,27,27,26,27,26,27,27,27,26,26,26,26,26,27,26,26,26,26,26,26,26,26,25,26,26,27,25,24,24,22,22,22,21,20,21,20,17,16,17,14,14,14,13,10,10,11,10,8,7,6,4,2,0,1,2,5,4,6,6,8,9,10,12,15,12,11,16,16,13,18,15,19,20,20,23,21,20,21,22,22,21,24,24,21,23,25,23,20,20,24,25,21,25,22,22,23,24,22,19,23,20],[27,28,27,28,28,27,28,28,28,28,27,28,29,28,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,31,30,31,31,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,28,27,28,27,27,28,26,28,27,26,27,26,26,28,27,27,27,28,27,28,28,28,27,28,28,28,29,28,28,28,28,29,28,29,28,28,28,27,28,28,28,27,29,28,27,27,27,27,28,28,28,28,28,28,28,28,27,27,27,27,27,26,27,27,25,27,27,24,25,27,24,23,24,23,25,24,27,25,26,27,27,26,25,29,27,26,28,28,27,26,28,27,27,28,29,28,28,28,29,28,28,28,28,28,27,28,28,28,28,28,26,26,27,26,23,26,25,24,25,24,21,24,24,21,23,25,23,21,25,24,22,22,24,24,26,25,24,26,26,25,25,27,27,28,27,26,27,27,26,26,26,28,26,24,27,27,24,23,27,26,23,24,27,25,23,26,27,25,24,27,25,26,25,26,26,26,25,25,26,26,24,24,25,25,23,23,25,21,21,21,20,19,18,21,21,19,18,16,20,21,20,16,18,21,20,20,23,23,20,23,24,24,23,25,23,24,25,25,23,26,25,27,26,23,24,26,23,21,24,25,23,21,24,23,22,20,24,25,25,25,24,23,24,24,22,24,23,24,22,24,23,21,21,23,24,23,23,23,24,25,25,24,26,26,27,26,27,26,27,26,27,26,27,29,29,28,28,29,29,28,29,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,29,29,28,28,29,28,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,28,27,26,28,26,26,26,26,26,26,26,25,25,23,24,23,24,24,23,24,24,23,23,24,24,24,24,24,26,25,24,25,23,23,21,21,20,22,22,23,24,24,24,25,24,26,26,26,25,26,26,25,25,25,26,25,25,25,25,25,23,23,23,22,21,22,21,20,21,21,19,18,19,17,15,16,16,13,13,10,12,14,12,12,15,17,15,20,18,20,20,20,18,17,19,18,14,15,19,13,13,17,19,20,20,20,22,23,21,23,24,25,26,25,25,25,25,25,27,26,25,27,25,26,26,26,25,25,26,26,27,26,26,28,28,29,28,28,28,29,28,29,29,29,28,28,28,28,29,28,28,29,29,28,29,28,27,28,27,25,26,27,24,24,25,24,23,22,24,24,21,21,23,21,21,21,21,19,18,22,17,19,21,21,17,21,23,21,20,22,23,24,21,23,23,24,24,24,25,26,26,27,27,25,28,27,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,29,28,28,28,28,28,28,29,28,28,28,29,28,28,28,28,29,28,28,28,28,27,28,27,28,27,28,28,27,28,27,26,27,27,25,26,26,26,24,25,25,24,22,24,24,24,24,24,24,24,25,25,24,26,24,24,25,25,25,26,27,26,27,28,28,27,27,27,28,27,27,27,27,27,27,28,25,27,27,26,26,27,26,24,26,26,24,25,26,25,26,26,27,27,26,26,26,27,27,27,27,26,27,26,26,26,27,26,26,25,25,24,24,25,25,25,25,25,24,25,24,24,25,22,24,23,24,24,24,23,23,24,24,22,22,22,21,20,18,19,16,16,16,13,10,11,11,11,8,7,6,4,2,1,0,1,2,2,4,5,8,8,11,12,16,11,12,16,17,13,17,13,16,17,19,19,19,19,20,21,21,21,24,22,20,21,24,22,21,19,22,23,21,23,20,21,20,22,19,18,19,19],[27,28,27,28,28,28,29,29,28,28,27,27,28,28,29,28,29,28,29,30,29,29,30,29,29,30,30,30,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,31,31,30,30,30,30,29,30,30,30,29,30,30,29,29,29,29,27,28,27,28,28,28,28,27,28,28,26,27,24,26,28,28,27,28,29,26,28,28,28,27,28,28,28,29,28,29,29,28,28,29,29,28,29,29,29,29,29,29,28,28,29,28,28,28,27,28,29,29,29,29,29,28,28,28,28,27,28,27,26,28,27,25,27,28,25,25,28,26,24,25,24,27,25,28,27,26,28,28,28,26,29,28,27,28,28,28,27,28,28,28,28,29,28,29,29,29,29,29,28,29,28,28,29,28,28,28,28,27,27,27,27,24,25,25,24,26,23,22,23,25,20,22,24,23,20,22,24,21,21,22,21,24,23,22,24,26,24,24,27,28,27,28,25,27,28,28,26,25,28,26,24,28,28,25,24,27,27,24,26,27,26,23,26,27,25,23,27,25,27,25,27,27,26,25,25,27,25,24,25,25,23,22,22,23,22,21,21,19,19,18,20,20,18,17,18,18,20,19,19,20,22,19,21,22,22,20,22,24,23,21,24,22,23,24,25,23,26,24,27,26,22,23,25,24,21,24,25,22,21,23,24,21,21,24,26,24,25,24,23,25,24,23,24,24,24,24,25,24,23,21,25,24,25,24,23,24,25,25,23,25,25,26,26,26,27,26,27,27,27,28,28,28,28,28,28,29,28,29,29,29,29,29,29,29,29,29,30,30,30,29,30,30,30,30,29,29,29,28,28,28,29,28,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,29,30,30,30,29,30,29,29,29,29,28,28,26,27,27,25,26,27,26,26,26,25,26,24,26,26,25,26,25,25,24,24,26,25,23,25,24,25,25,26,26,25,26,23,22,21,23,21,22,23,23,23,24,25,26,24,27,27,27,26,25,26,25,25,26,26,25,24,25,25,24,24,23,24,24,22,23,23,23,22,22,20,21,21,19,16,16,15,13,13,9,13,14,13,13,17,17,18,21,18,20,20,20,18,18,20,19,16,16,17,15,15,16,19,18,19,19,22,21,22,23,23,23,25,24,25,25,26,25,28,27,25,27,28,26,26,25,23,24,26,25,28,26,26,29,28,29,28,28,28,29,28,29,28,28,28,28,28,29,29,29,28,29,29,29,29,27,27,28,28,25,27,27,25,23,25,25,23,22,24,24,21,22,23,21,22,22,23,21,20,23,19,20,22,22,18,22,22,22,20,22,23,23,23,23,24,24,25,25,25,27,27,26,27,27,28,28,27,28,28,28,28,28,28,28,28,28,28,29,28,29,28,28,28,29,29,29,28,29,28,29,28,28,29,28,28,29,28,28,28,28,28,28,27,28,27,28,28,28,28,27,28,27,25,27,27,23,25,26,25,24,25,25,23,23,25,24,26,25,25,24,25,26,26,25,26,27,25,26,27,25,27,27,27,26,28,29,27,27,28,28,27,27,27,25,27,28,26,25,27,27,24,24,27,26,24,26,26,25,26,26,27,28,27,28,27,26,28,26,26,27,27,27,27,27,26,27,26,26,25,25,26,24,25,25,24,25,25,25,26,24,26,25,24,27,23,25,22,24,25,23,23,23,24,23,21,22,22,22,19,20,21,16,16,18,15,10,12,13,12,9,8,6,6,4,3,1,0,1,2,3,5,8,7,9,11,13,12,11,14,14,13,17,14,17,19,18,21,20,20,20,23,21,20,24,22,21,21,24,22,20,18,23,23,20,24,18,21,21,22,19,16,19,19],[25,27,26,27,27,27,28,28,28,28,28,28,28,28,29,28,29,29,29,29,29,29,29,29,29,30,30,29,30,30,29,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,29,29,29,29,29,29,27,28,28,28,28,28,28,28,28,28,26,27,24,26,28,28,28,28,28,26,28,29,27,27,28,29,28,29,28,29,29,28,28,29,29,28,29,29,28,29,29,29,28,29,29,29,28,28,28,29,29,29,29,29,29,28,29,28,28,28,28,27,27,28,27,25,28,28,25,26,28,25,24,25,25,26,25,28,28,26,27,28,28,26,28,28,27,27,28,28,27,28,29,29,29,29,29,29,29,29,29,29,29,29,28,28,29,28,28,28,28,27,27,28,27,24,27,26,25,27,23,23,25,25,21,23,25,23,23,23,24,22,22,24,24,24,24,23,25,26,24,25,26,28,28,27,26,27,28,28,27,25,28,26,24,27,28,25,24,27,27,24,25,28,26,23,26,27,25,24,26,26,27,27,28,26,27,26,26,26,26,25,26,25,24,24,24,23,23,23,22,22,21,20,21,21,19,19,19,19,21,20,20,21,22,21,22,22,21,20,22,25,22,22,24,22,23,25,26,23,26,24,27,27,23,23,25,24,22,23,25,23,23,24,24,23,23,25,26,25,27,25,24,26,25,24,24,25,25,23,24,24,24,21,24,23,26,24,24,26,26,24,24,25,26,26,25,27,28,26,27,26,27,28,28,27,28,27,28,28,28,28,29,29,28,29,29,29,29,29,30,30,29,29,29,29,29,30,28,28,29,28,28,28,28,29,28,28,28,28,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,29,29,29,29,28,28,25,27,26,25,27,27,26,27,26,26,26,23,26,24,23,23,25,25,23,24,25,25,22,24,24,25,23,24,26,24,24,22,22,21,22,20,20,23,22,23,25,24,25,25,26,27,26,25,25,26,25,25,26,26,25,24,26,25,24,25,23,24,22,21,22,22,21,21,21,19,17,19,17,15,13,15,12,10,9,13,13,13,13,15,18,18,22,20,21,22,20,19,18,19,19,16,16,18,14,16,17,19,19,19,20,22,22,22,23,23,23,25,24,24,25,27,25,28,27,26,27,27,25,25,26,24,25,26,26,27,26,27,28,28,29,29,29,29,29,29,29,28,28,28,29,28,28,29,29,29,29,29,29,29,28,28,28,28,26,26,27,25,23,24,25,23,23,24,24,23,22,24,22,22,21,22,21,19,21,18,20,21,22,19,21,22,22,21,22,22,22,22,23,23,25,25,25,25,27,26,27,28,26,28,28,28,29,29,28,28,28,28,29,28,29,29,29,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,28,29,29,29,29,28,28,28,29,28,28,28,28,28,28,28,27,28,26,26,27,27,24,25,26,25,24,25,25,24,23,25,25,25,24,25,23,24,25,25,24,25,26,24,25,26,25,27,27,27,26,28,28,27,27,28,28,28,26,28,26,27,28,26,25,27,27,25,25,27,26,25,25,27,25,25,26,25,27,25,27,26,26,27,26,27,28,27,27,27,27,26,26,27,27,25,26,27,25,26,25,24,26,26,26,26,25,24,25,24,25,23,23,23,23,23,22,20,21,23,23,19,20,21,20,16,18,19,15,14,15,14,12,11,13,13,11,10,10,8,6,4,3,1,0,1,3,5,7,7,8,10,12,9,10,13,12,12,16,14,18,18,18,19,20,18,18,19,20,18,21,21,20,19,23,21,19,19,22,23,20,23,18,20,19,22,19,16,19,18],[26,27,27,28,28,28,29,28,29,29,27,28,28,28,29,28,29,28,29,29,29,29,30,29,29,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,29,28,29,29,28,28,28,27,28,27,27,27,27,28,28,27,27,25,26,27,27,27,27,28,27,27,28,27,26,27,28,28,28,28,28,28,28,28,28,28,27,28,28,27,28,28,28,27,28,28,28,27,27,27,28,27,28,28,28,28,27,28,27,26,27,27,26,27,27,26,25,27,27,23,25,27,24,22,23,23,26,24,26,25,25,27,28,26,24,28,27,25,27,28,28,26,28,28,28,28,28,28,28,28,29,28,28,28,28,28,28,28,27,28,28,28,25,26,27,25,24,26,25,24,25,23,23,24,25,22,23,25,23,23,24,25,22,23,24,22,24,25,23,25,26,25,24,26,26,27,27,25,27,26,27,27,24,28,25,23,27,27,24,23,27,27,23,25,27,24,22,26,27,24,24,26,25,26,26,27,25,25,25,24,25,26,24,23,25,24,23,24,25,21,22,22,23,20,20,22,22,18,17,18,20,22,22,20,21,22,22,21,22,23,21,23,24,24,23,24,22,23,25,26,23,26,23,27,26,22,23,26,23,21,25,25,22,22,24,24,23,21,24,25,26,25,25,23,25,25,23,24,23,24,23,24,24,22,20,21,22,23,23,23,23,25,25,24,25,25,26,27,27,26,26,25,26,26,27,28,27,26,28,28,27,28,29,28,27,28,28,28,28,29,28,29,29,29,30,30,30,30,30,29,29,29,29,28,28,29,28,28,28,29,29,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,29,30,30,29,29,30,29,29,29,28,28,28,26,26,26,25,25,26,24,26,26,25,24,22,23,23,22,22,22,22,22,21,22,21,22,22,22,23,22,24,24,22,22,20,20,18,21,18,20,21,21,21,21,21,23,22,25,24,24,23,23,24,24,23,24,24,23,24,23,24,23,23,22,22,22,20,21,21,20,19,20,19,17,17,16,14,14,13,11,11,9,11,13,13,12,15,17,18,21,19,22,22,21,21,18,20,19,16,17,18,16,17,17,20,19,20,20,21,21,21,23,23,23,24,24,24,25,26,25,28,27,25,26,26,25,26,25,23,24,26,25,27,25,25,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,28,28,29,28,29,28,28,28,27,25,26,27,24,23,25,25,23,22,25,23,21,22,23,22,20,22,21,20,18,20,18,19,21,21,18,20,22,22,20,22,23,22,22,22,23,25,24,23,24,25,25,26,27,26,27,27,28,27,28,28,28,28,28,28,28,29,28,28,28,29,28,28,28,28,28,28,28,28,28,27,27,28,29,28,28,27,28,29,28,27,28,28,28,27,27,28,28,28,28,27,28,27,26,27,27,23,25,26,25,23,24,24,23,23,25,24,24,23,22,22,25,24,23,23,25,24,24,26,25,25,26,26,26,26,26,27,27,27,27,28,27,26,27,27,27,27,27,26,27,26,25,25,26,25,24,25,26,24,25,24,24,25,25,27,26,24,25,26,25,26,27,26,26,27,25,25,25,27,26,26,25,25,22,23,24,24,26,24,23,23,24,23,23,22,22,23,22,22,21,21,22,19,21,22,20,19,21,19,17,17,18,16,13,16,15,11,10,13,13,9,8,8,7,6,4,3,3,1,0,1,3,4,4,6,7,8,8,8,10,11,10,14,12,15,17,18,19,19,19,18,19,19,18,20,20,20,18,21,20,20,17,20,20,19,21,18,19,18,20,18,16,18,18],[26,26,26,26,27,27,27,28,28,27,27,26,27,27,28,27,28,28,28,29,28,28,29,29,28,29,29,29,29,29,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,29,29,29,29,29,29,28,29,28,28,27,28,27,28,28,28,27,28,27,28,25,27,24,25,27,28,27,28,28,26,27,27,27,26,27,27,27,28,28,29,29,28,28,29,29,27,29,29,28,28,28,29,27,28,29,28,28,28,28,29,28,28,28,28,28,28,29,28,28,28,28,26,27,28,27,25,27,27,24,25,27,23,23,24,24,27,25,28,27,25,27,28,26,26,28,27,26,27,28,28,27,28,27,27,28,29,28,28,28,29,28,29,28,28,28,28,28,28,27,27,27,26,26,27,26,24,24,23,23,25,23,21,22,24,21,22,23,23,22,22,23,23,22,23,23,24,24,24,25,27,25,25,26,27,27,28,26,27,27,27,27,25,27,25,25,26,27,23,24,26,26,23,24,27,24,22,25,27,24,24,26,25,27,27,27,25,26,25,24,25,24,24,23,24,23,23,23,24,22,21,22,21,20,21,20,21,19,18,18,20,20,21,20,20,21,22,22,22,23,21,22,24,24,22,23,22,23,24,25,23,24,25,26,26,23,24,25,23,22,23,24,22,22,23,23,22,20,22,24,24,24,23,22,23,23,22,22,22,23,22,22,22,22,21,22,21,24,22,23,23,24,24,23,24,25,25,26,26,27,26,27,27,26,28,28,28,28,28,28,28,28,28,28,28,29,28,29,29,29,29,29,29,29,29,29,30,29,29,28,29,29,28,28,28,28,28,28,27,28,29,29,29,29,29,30,30,29,29,29,29,29,29,29,29,30,30,30,29,29,30,29,30,29,30,29,30,30,29,30,29,29,29,29,30,30,29,30,29,29,29,29,29,28,28,26,27,27,25,27,25,24,25,24,24,23,21,23,22,23,22,22,23,22,23,21,22,22,22,21,22,23,22,23,22,22,21,21,19,20,18,19,21,21,22,21,22,23,21,24,24,24,23,22,24,22,24,23,24,23,23,23,22,23,22,22,22,21,20,21,21,19,20,21,18,17,19,18,14,14,15,13,10,9,12,13,12,11,15,17,18,20,19,20,19,19,20,18,18,18,16,16,18,15,16,17,18,18,20,19,21,23,22,23,24,22,25,24,24,25,27,26,27,27,26,26,27,25,26,26,24,25,26,26,27,26,26,28,28,28,29,28,28,28,29,29,29,29,28,28,29,28,28,28,28,28,28,28,28,27,26,27,27,26,26,26,25,25,25,24,24,24,23,23,21,21,21,21,21,20,20,17,18,19,17,17,19,20,17,19,20,19,20,22,22,22,23,21,23,25,22,23,25,26,24,27,27,25,27,27,28,28,28,27,27,28,28,28,28,28,28,29,29,29,28,28,28,29,28,28,29,29,28,29,28,28,28,28,28,28,28,28,27,28,28,28,28,28,27,27,28,27,26,27,27,26,26,27,26,24,25,26,23,24,24,23,22,23,23,23,22,20,24,23,22,24,24,25,25,23,23,26,23,25,26,26,27,26,26,26,28,26,26,27,26,27,27,26,27,27,27,25,27,26,24,25,26,23,25,24,25,24,24,25,23,24,23,25,24,24,26,25,25,26,26,25,26,27,25,24,26,25,25,24,24,24,23,23,23,23,24,23,22,22,23,23,23,23,22,22,21,22,22,21,21,21,19,20,19,19,18,17,16,17,16,13,13,15,14,12,11,11,12,10,9,9,9,6,4,4,3,2,1,0,1,2,4,4,6,8,6,6,8,8,9,11,11,13,12,13,15,16,15,16,17,16,15,17,18,16,15,18,18,16,15,18,19,18,20,15,18,16,19,17,14,16,17],[26,28,26,28,28,28,29,29,28,28,28,27,28,28,28,28,29,29,29,29,29,28,30,29,29,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,29,30,29,29,29,30,29,29,29,28,29,28,28,28,29,28,29,26,28,25,27,28,28,29,29,28,28,28,29,29,28,29,29,29,29,29,29,29,29,29,30,29,28,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,30,30,28,29,29,28,29,29,28,28,29,28,26,29,28,26,27,28,26,25,25,26,28,26,29,28,27,28,28,28,27,29,29,28,28,29,29,28,29,28,29,29,30,29,29,30,29,30,29,30,29,29,29,29,29,29,29,28,27,28,28,27,25,26,26,26,27,24,24,24,26,23,24,24,24,24,24,24,23,24,24,25,26,25,24,27,27,26,25,28,28,28,29,27,28,28,28,27,26,29,27,26,28,28,26,26,28,28,26,26,28,26,25,27,28,26,26,27,27,28,28,28,27,28,26,26,27,26,24,24,25,24,23,23,24,24,23,22,22,22,20,22,22,20,18,19,22,22,22,21,22,21,21,24,22,23,22,24,24,24,24,25,25,24,26,27,25,27,26,28,27,24,25,27,24,23,24,26,24,23,24,24,24,22,25,26,25,27,25,23,25,24,23,23,24,24,22,23,24,23,20,24,23,24,24,24,24,26,25,25,27,27,26,27,27,28,27,28,26,28,29,29,29,28,29,29,29,29,29,29,28,29,29,29,29,30,29,29,30,30,29,30,30,30,30,29,29,29,29,28,28,29,29,28,28,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,29,29,30,29,30,29,29,29,29,29,28,29,26,27,28,26,27,28,25,26,26,25,24,24,24,24,25,25,23,24,24,23,22,23,23,23,24,23,23,25,24,25,24,24,23,22,23,21,22,23,23,23,22,25,26,23,26,26,25,24,25,25,25,24,24,25,24,23,24,23,23,24,24,23,23,21,22,23,21,19,21,19,18,18,17,14,14,15,13,11,10,14,14,13,13,16,18,18,21,19,21,20,20,20,19,18,20,18,18,18,18,18,19,19,19,21,22,22,21,22,24,24,23,25,25,25,26,27,27,28,28,27,28,28,27,27,28,25,26,27,27,28,27,27,29,29,29,29,29,29,29,29,29,28,29,29,29,29,29,29,29,29,29,29,28,29,28,29,28,29,27,27,28,27,25,26,26,24,23,25,24,22,22,24,23,21,21,22,20,19,20,20,21,21,21,19,21,23,22,20,23,24,24,23,24,24,25,25,24,26,27,27,28,29,28,28,29,29,29,28,28,29,29,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,28,28,29,29,29,29,29,29,29,29,29,28,28,29,29,29,28,28,28,27,28,27,26,26,28,27,24,25,27,24,23,25,25,26,24,25,25,25,26,26,24,25,27,25,27,27,25,28,28,28,27,28,28,28,28,28,28,28,28,28,28,28,28,28,27,28,28,26,25,28,26,25,26,26,25,25,27,26,27,27,28,27,27,28,27,28,28,28,27,28,28,27,28,27,27,26,25,26,25,24,25,23,24,26,26,26,23,25,24,25,25,24,25,23,26,25,24,24,23,24,20,22,21,21,19,18,19,18,17,14,16,15,13,12,12,13,13,11,10,10,8,6,6,5,3,3,1,0,1,3,3,5,7,5,4,7,7,7,9,8,12,12,15,17,17,14,15,19,17,15,20,20,16,16,21,19,17,15,19,20,18,21,16,19,17,20,18,16,17,18],[27,28,27,28,28,28,29,29,29,28,28,28,29,28,29,28,29,28,28,29,29,29,30,30,29,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,29,29,29,29,30,29,29,29,28,29,28,29,28,29,28,29,29,29,28,28,27,28,29,29,28,29,29,29,28,29,29,28,29,29,29,29,28,29,29,29,29,30,29,28,29,30,29,29,30,29,28,29,29,29,28,28,29,29,29,29,29,29,30,29,30,29,28,29,29,27,27,28,28,26,28,28,24,26,29,25,25,26,25,28,25,29,28,26,28,29,28,26,29,29,27,29,29,29,28,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,28,28,28,28,24,26,27,25,26,24,25,25,27,24,25,26,24,24,25,26,24,26,25,26,27,26,25,27,28,27,26,28,29,29,29,26,29,28,29,28,27,29,27,25,29,29,26,25,29,28,25,27,29,27,25,28,29,26,25,29,27,28,28,29,28,27,27,27,27,26,26,26,27,26,25,25,25,25,24,23,24,23,22,22,23,24,22,21,22,22,24,22,22,23,24,24,24,24,23,25,26,24,25,26,26,25,27,27,25,28,26,28,28,24,26,28,26,23,26,27,25,24,27,25,25,24,26,27,27,27,26,25,26,25,24,25,25,26,22,25,25,23,20,24,25,25,25,25,26,27,27,26,27,27,28,28,28,28,28,28,28,28,29,29,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,30,30,30,29,29,29,28,29,29,29,29,29,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,29,29,27,28,28,27,27,27,26,27,27,27,27,25,26,25,25,24,24,24,24,24,26,23,23,25,25,25,25,26,26,25,25,23,23,22,23,21,23,24,24,24,24,24,25,24,26,26,27,25,25,26,26,25,26,27,25,26,26,27,25,24,25,24,22,21,23,23,20,20,21,19,18,19,19,14,13,15,14,10,11,14,16,14,13,18,18,19,23,21,22,22,21,20,19,20,21,17,18,20,19,19,21,20,23,23,21,24,23,24,25,25,25,27,27,27,27,28,28,28,28,27,29,29,28,28,28,27,26,28,28,29,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,28,28,29,29,28,28,29,28,26,27,27,24,25,26,25,23,24,25,24,21,24,23,21,20,21,18,18,22,21,19,21,24,23,22,24,24,24,23,24,25,26,26,26,27,28,28,29,28,27,28,28,28,29,29,28,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,30,28,29,29,28,28,28,29,29,28,29,29,29,29,29,28,29,29,29,29,28,29,29,28,28,28,28,27,28,27,26,26,27,26,24,26,26,26,25,25,25,25,26,26,26,27,27,26,27,27,27,28,28,28,28,28,28,29,28,29,29,28,28,28,27,29,28,28,28,28,28,27,27,28,27,26,27,27,26,26,27,26,27,27,27,27,26,27,28,27,28,28,27,27,28,28,26,27,28,28,27,26,26,25,25,26,25,26,26,25,26,26,26,26,25,25,24,24,24,24,24,24,23,24,21,22,21,22,21,19,19,19,17,15,18,17,13,13,14,15,12,10,10,9,8,7,6,5,5,4,3,1,0,1,2,4,5,3,4,5,7,6,8,7,10,12,12,15,15,13,13,17,16,14,19,19,16,16,19,18,16,16,18,20,17,19,17,17,16,19,16,15,16,17],[26,27,26,26,27,28,28,28,29,27,28,28,28,28,28,28,29,29,28,29,29,28,29,29,29,29,29,29,29,29,29,30,30,30,29,30,29,30,29,30,30,29,29,30,30,30,29,29,29,29,29,29,29,29,28,28,29,28,28,28,28,27,27,27,28,27,28,28,28,28,28,27,28,26,27,27,28,28,28,28,28,27,28,28,28,28,28,28,28,28,28,28,28,29,29,28,28,29,29,28,29,29,29,28,29,29,29,29,28,29,28,29,28,29,29,29,29,29,29,28,29,28,27,28,28,27,26,29,28,25,26,28,25,24,26,25,27,27,28,28,27,27,28,27,27,28,28,27,28,29,28,28,28,28,28,28,29,28,28,28,28,28,28,28,28,28,29,28,28,28,28,28,26,28,28,27,26,27,26,26,27,25,24,26,26,22,24,26,24,24,25,25,23,23,25,25,26,25,24,26,27,26,25,26,28,27,28,27,27,27,28,27,26,28,26,27,28,28,26,26,27,27,24,27,28,26,24,27,27,25,25,27,26,27,27,28,27,27,27,26,28,27,26,26,26,25,25,26,24,24,23,22,23,24,22,23,22,20,19,22,21,22,21,22,22,21,22,23,22,22,23,23,26,24,24,24,22,25,25,26,26,27,26,27,27,25,26,27,25,24,26,26,24,23,25,25,24,23,24,26,26,26,25,24,26,25,23,25,25,25,23,24,24,24,22,26,25,25,25,25,24,26,25,25,26,27,27,27,27,27,27,27,26,27,27,27,27,27,28,27,27,28,27,28,28,28,28,28,28,28,29,28,28,29,29,29,29,28,29,28,28,28,27,26,27,28,27,28,28,28,28,28,29,29,29,29,29,29,29,29,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,27,28,26,27,27,26,27,27,26,27,27,26,26,24,24,26,25,24,24,24,24,24,25,23,23,24,23,24,23,27,26,24,25,24,23,22,23,21,24,23,24,24,23,24,25,24,26,26,26,24,25,26,26,25,25,26,25,24,25,25,24,24,24,23,23,23,22,22,21,21,21,19,20,19,18,16,15,15,14,13,11,15,16,16,15,18,22,20,22,22,21,20,20,19,20,20,19,19,20,20,19,18,20,19,22,20,22,21,22,22,22,23,22,25,25,24,26,27,26,27,27,26,27,28,26,27,28,25,26,26,27,27,27,27,28,28,28,28,28,27,28,28,28,27,27,28,27,27,28,28,27,28,28,28,28,28,27,27,28,28,26,27,28,27,24,25,26,23,23,25,24,22,23,23,23,23,23,22,21,20,18,20,20,21,20,19,21,21,22,21,22,21,22,23,21,24,24,25,24,26,27,27,28,28,26,27,27,27,28,28,28,28,28,28,28,28,29,28,28,28,28,28,29,28,28,28,28,28,28,28,28,28,27,28,27,27,27,28,28,27,28,28,28,28,28,27,28,28,28,28,27,27,28,27,27,26,26,27,27,27,25,25,26,24,23,24,25,25,24,23,24,23,24,24,24,26,25,24,27,26,26,26,26,27,27,27,28,27,27,27,28,26,27,27,26,28,27,28,27,27,27,27,26,27,27,25,25,26,25,26,27,25,27,26,27,27,26,27,26,27,27,27,26,26,27,26,26,27,27,28,26,26,26,25,24,25,25,26,25,25,25,25,25,25,25,25,24,23,25,24,24,22,23,22,21,21,21,19,20,18,19,18,16,15,18,17,14,15,14,15,14,12,11,10,8,6,6,5,5,4,3,2,1,0,1,2,3,3,4,4,6,7,7,8,10,10,11,14,13,12,14,15,15,14,17,16,15,14,18,17,14,13,18,19,16,18,15,16,15,18,16,14,15,17],[26,26,26,27,27,28,27,28,28,27,27,27,28,27,28,28,29,28,28,29,29,29,29,29,29,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,29,29,29,30,29,29,29,28,29,29,28,29,28,29,29,29,29,29,28,29,28,28,29,29,29,29,29,29,29,29,29,29,29,29,30,30,29,29,30,29,30,30,30,29,30,30,30,29,30,30,29,29,30,29,29,29,29,29,30,30,29,30,30,29,30,30,29,30,29,29,29,29,29,29,30,29,27,27,30,27,27,28,28,29,27,30,29,28,29,30,29,28,30,29,29,29,30,30,29,29,30,29,29,30,29,29,29,30,29,30,30,29,30,29,29,30,30,29,30,28,29,29,29,27,29,29,27,29,26,25,27,28,25,27,28,27,26,27,27,27,26,27,27,28,28,27,28,29,28,29,28,29,28,29,28,29,29,29,28,27,29,28,28,30,29,28,27,29,29,27,28,29,29,27,30,30,29,28,30,29,30,29,29,29,29,29,29,29,29,28,28,28,28,27,27,27,26,26,24,25,26,25,25,26,25,22,25,23,24,25,24,25,25,25,26,26,26,26,27,27,27,27,28,26,26,29,28,27,29,28,29,29,27,27,29,28,26,28,29,27,26,28,27,26,26,27,29,28,29,28,26,28,27,26,26,27,26,25,26,25,26,24,26,25,27,27,26,27,28,28,27,27,28,28,28,28,28,28,28,28,28,28,29,29,27,28,28,29,29,28,28,28,28,29,29,29,29,28,30,29,29,29,30,29,30,30,30,29,29,28,28,29,29,29,29,28,29,30,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,27,28,28,27,28,28,27,28,28,27,27,27,26,27,25,24,25,24,25,24,25,24,24,26,25,24,25,27,26,23,25,23,23,22,23,20,24,23,25,24,24,24,26,23,27,27,28,26,25,28,27,26,27,28,27,26,27,26,26,26,26,24,26,24,24,24,23,22,21,19,21,19,19,14,15,15,14,13,12,14,16,15,14,17,19,20,23,22,24,23,24,22,22,22,23,21,22,22,21,21,23,22,25,24,23,24,25,25,26,26,26,28,28,28,28,28,28,29,29,29,28,29,28,29,29,27,28,28,27,29,28,29,29,29,29,30,30,29,29,29,29,28,29,29,28,29,30,29,29,29,29,29,29,29,28,28,29,29,28,29,29,28,27,28,28,26,26,27,26,26,26,26,25,24,25,23,23,21,22,21,21,22,23,21,23,25,25,23,24,25,24,25,24,26,26,26,27,28,28,29,29,28,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,29,29,29,30,29,29,29,29,28,29,29,28,28,28,28,28,28,28,29,29,29,30,28,29,29,29,30,29,29,29,28,29,29,27,27,29,28,28,27,28,27,27,27,27,26,25,25,25,26,26,26,26,27,27,26,27,27,27,28,27,28,28,28,28,29,28,28,30,29,29,28,29,29,29,29,29,29,28,28,27,28,28,28,28,28,27,27,27,26,26,26,27,28,27,27,27,28,28,28,28,28,28,28,28,28,29,29,29,26,28,25,26,27,26,26,26,26,27,26,27,26,25,25,24,25,25,25,24,23,22,25,23,23,23,21,24,19,23,20,20,16,19,18,15,15,14,16,15,11,12,10,8,8,7,6,6,5,4,3,3,1,0,1,2,3,3,2,4,5,5,5,7,7,9,12,13,10,10,14,13,11,15,14,13,13,15,14,13,12,15,16,15,17,15,16,13,17,15,12,14,15],[25,27,26,26,27,28,28,28,28,27,28,27,28,28,28,28,28,28,28,28,28,28,29,29,28,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,29,30,30,29,29,29,30,29,29,29,28,30,29,29,29,29,29,29,29,30,29,29,28,28,29,29,28,29,29,29,28,30,30,29,29,29,29,30,29,29,29,29,29,29,29,30,29,29,30,30,30,29,29,29,30,30,29,29,29,29,29,30,30,30,30,29,30,30,29,30,29,28,29,29,29,28,30,29,27,28,29,28,25,27,26,28,28,29,29,28,28,29,29,28,29,29,28,29,29,29,29,30,29,29,29,30,29,30,28,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28,26,27,27,26,27,28,26,26,28,27,25,27,28,26,25,27,25,27,27,26,27,28,27,27,28,29,28,29,28,29,29,29,28,29,29,28,28,29,29,27,28,29,28,28,28,29,28,27,29,30,28,27,29,28,29,29,29,29,29,28,28,27,28,26,27,27,27,25,26,26,26,26,25,26,25,24,24,23,23,21,24,24,23,24,24,24,25,25,26,26,25,25,25,27,25,25,27,25,26,27,27,27,28,28,29,28,27,27,28,27,26,27,28,26,25,27,26,26,26,27,28,27,28,27,26,27,27,26,25,27,26,24,25,25,26,22,25,24,26,27,25,26,28,28,27,28,28,29,28,28,29,29,29,28,29,29,29,29,29,29,28,30,29,28,29,29,29,29,30,30,29,30,30,29,29,29,30,30,29,30,29,30,30,29,29,30,30,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,28,29,28,29,29,29,28,28,28,27,27,26,26,25,26,24,25,25,24,25,27,24,24,26,26,23,25,27,27,26,26,24,23,23,22,19,25,23,24,25,24,26,27,25,28,27,29,27,26,28,28,25,27,28,26,25,26,27,24,25,25,23,24,22,23,24,24,21,22,20,19,18,19,17,15,14,14,14,13,14,15,15,15,16,21,21,24,23,23,22,22,22,22,22,21,21,23,21,21,20,20,21,20,21,23,25,25,24,25,26,25,27,28,27,28,28,27,29,29,28,28,29,27,29,29,27,28,28,28,29,27,29,30,29,30,30,30,28,29,29,29,28,28,29,28,28,29,28,29,29,29,29,29,30,29,29,29,29,28,29,29,28,27,27,27,26,25,27,26,25,25,25,24,24,23,23,24,23,22,20,21,22,24,20,22,23,22,22,25,24,24,25,25,26,27,28,27,27,28,29,29,29,28,29,28,29,29,29,28,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,28,29,28,29,29,29,29,28,29,29,29,29,29,29,29,28,28,29,28,28,28,28,28,27,28,27,26,27,26,26,25,25,25,25,27,27,27,28,28,28,28,28,28,28,28,29,28,28,29,29,28,28,29,29,29,29,28,29,29,29,29,29,28,28,27,28,28,27,27,28,27,27,28,27,28,28,29,28,27,28,28,28,28,29,28,28,29,28,28,28,28,29,28,28,27,27,26,26,26,27,28,26,26,27,26,28,26,26,26,26,27,26,25,23,24,24,23,21,22,23,22,19,21,21,20,15,19,19,15,15,17,17,16,13,13,11,10,9,8,7,7,6,4,4,3,2,1,0,1,1,1,1,2,3,4,4,6,6,9,9,11,8,9,12,12,10,14,14,11,11,16,13,12,10,13,16,14,16,13,16,15,18,16,13,15,16],[25,25,25,25,26,27,26,27,26,26,26,26,27,27,27,27,28,28,28,28,28,28,28,29,28,29,29,29,29,29,29,29,30,30,29,29,29,29,30,30,30,29,29,29,30,30,29,29,29,29,29,29,29,30,29,29,29,29,29,28,29,28,28,27,28,28,28,29,28,29,29,28,28,27,27,28,29,28,29,29,27,28,29,28,28,29,29,30,30,29,29,29,29,29,29,29,29,29,30,29,29,29,30,28,29,29,29,28,28,29,29,29,29,29,29,30,28,30,29,28,29,29,27,28,28,28,27,29,28,26,28,29,26,24,28,27,28,27,29,29,27,28,29,28,27,29,28,27,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,29,28,28,28,28,27,28,28,26,28,26,26,27,27,25,26,27,26,25,26,26,26,26,26,26,27,27,26,28,29,27,27,28,29,28,29,28,29,29,29,28,28,29,27,27,28,28,26,27,28,28,26,28,28,27,26,28,29,27,26,28,27,29,28,29,28,28,28,27,28,28,26,26,27,27,27,25,25,24,25,24,25,25,24,25,25,24,22,24,25,23,24,24,23,24,25,25,24,26,25,26,27,25,25,27,26,26,27,27,26,28,28,28,28,26,27,28,26,25,26,28,25,26,26,26,26,25,26,27,27,28,27,26,27,26,25,26,26,24,24,24,23,23,22,23,22,24,25,25,26,27,27,27,27,27,28,28,28,28,28,27,27,27,29,28,28,28,28,27,28,27,28,28,28,29,29,29,28,28,28,29,29,28,29,29,29,29,29,29,28,28,29,27,28,28,28,29,29,28,29,29,28,29,29,30,30,30,29,30,29,29,29,29,30,30,30,29,30,29,30,29,30,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,28,29,29,28,28,27,27,27,26,27,28,27,28,27,27,27,26,26,25,25,24,24,23,23,24,26,22,22,26,25,23,24,27,26,24,25,22,21,20,22,20,22,21,22,22,23,23,26,23,27,26,27,26,24,27,27,24,26,28,26,25,26,26,24,25,24,22,23,22,21,21,23,21,19,19,20,18,19,17,17,15,14,15,14,14,15,15,15,18,20,22,22,24,22,21,21,22,21,21,22,21,22,20,22,20,22,23,23,23,23,24,24,23,25,26,26,27,27,28,27,27,27,29,28,29,28,28,28,28,28,27,28,28,28,29,28,28,29,29,29,29,29,29,28,29,29,28,29,29,28,28,29,29,28,29,29,28,29,29,27,28,29,28,28,28,28,27,27,27,27,26,26,27,25,25,25,25,24,24,23,21,22,21,19,22,21,20,22,21,22,23,24,23,24,24,23,25,25,26,26,27,27,27,27,28,28,28,28,28,28,28,29,29,29,29,29,28,29,29,29,29,29,29,29,29,29,28,29,29,29,29,29,28,29,28,28,28,28,28,28,29,28,28,28,28,28,28,29,28,28,29,29,28,28,28,28,28,28,28,27,27,28,26,27,27,26,27,26,26,25,24,26,24,25,26,26,26,27,27,26,27,27,27,27,26,27,28,28,28,28,28,28,28,29,28,28,28,28,28,28,28,28,28,27,28,27,27,27,27,27,26,26,28,26,25,25,25,26,26,25,27,27,28,27,27,27,28,28,27,28,26,28,28,26,25,26,25,25,26,25,25,25,25,27,25,26,26,25,26,25,25,25,25,24,21,22,23,22,22,21,21,22,20,20,19,20,18,18,18,16,17,17,17,17,13,13,12,11,10,7,8,7,6,5,4,3,2,2,1,0,1,2,2,2,3,4,4,5,6,7,8,10,8,8,12,10,11,14,12,10,12,14,12,11,12,16,12,13,15,15,14,14,16,14,12,14,16],[26,27,26,27,27,28,28,28,28,28,28,27,28,27,28,28,28,28,28,29,29,29,29,29,29,29,29,28,29,30,29,30,30,30,29,30,29,29,30,29,30,30,30,29,30,29,29,29,29,29,29,29,29,29,29,29,28,28,29,28,28,27,28,27,28,28,28,27,28,27,28,26,28,26,26,28,28,27,29,28,28,27,28,28,28,28,28,28,29,28,29,29,28,29,29,29,28,29,30,29,29,29,29,29,28,29,29,28,28,29,29,29,29,28,29,30,28,30,29,29,29,28,27,28,28,28,27,29,28,26,27,29,26,26,27,28,29,27,29,29,27,28,29,28,28,29,29,28,28,29,29,28,28,28,28,28,29,29,28,29,29,28,29,29,29,28,29,28,28,28,29,29,27,28,29,28,26,27,27,27,28,26,25,27,27,25,26,27,25,25,27,27,25,26,27,28,28,28,26,28,29,28,27,28,29,28,28,27,28,27,29,28,27,29,28,27,28,29,27,26,28,28,26,27,28,27,26,27,28,26,26,28,27,27,29,29,27,29,28,27,27,28,26,27,27,26,25,26,25,26,25,23,24,26,25,24,25,25,23,24,24,23,23,24,23,24,24,25,24,24,25,26,26,25,26,27,27,26,27,27,26,28,25,27,28,26,26,27,25,24,25,27,25,24,25,26,26,24,26,27,25,27,26,25,26,26,25,25,25,25,24,25,25,26,22,26,24,25,26,25,26,27,27,26,26,27,27,27,26,28,27,27,27,28,28,28,29,28,28,29,28,28,28,28,28,29,29,29,28,29,29,29,29,29,29,29,30,30,30,29,29,29,29,28,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,29,29,30,29,30,30,29,29,29,29,30,29,30,30,29,29,30,29,29,28,26,28,28,27,27,28,26,27,27,27,26,25,25,26,25,25,23,23,23,24,25,23,24,26,25,25,25,26,27,25,26,23,23,22,22,21,24,22,24,24,24,25,27,24,27,27,28,26,25,27,27,25,27,28,25,26,27,25,25,24,25,23,24,23,23,24,23,21,21,19,17,19,19,15,16,16,14,13,16,14,16,16,14,18,20,21,24,24,24,24,23,24,23,22,22,21,23,22,21,23,23,22,24,24,22,22,25,24,23,24,23,25,25,26,27,27,27,28,28,28,28,28,28,29,28,27,27,28,27,28,28,27,28,29,28,29,29,28,28,29,28,28,28,28,27,28,28,28,29,29,29,28,28,29,27,27,28,28,27,27,27,26,25,26,26,24,24,25,24,23,23,24,23,23,24,23,22,22,21,21,21,22,22,21,21,23,24,22,22,23,25,24,23,24,26,26,25,26,27,28,27,27,27,28,28,27,28,29,28,28,29,28,28,28,28,28,29,29,29,28,29,28,29,28,29,29,29,28,28,28,28,27,27,28,27,27,27,27,28,28,28,28,28,28,27,28,28,28,27,28,28,27,28,27,26,26,27,26,25,25,25,25,23,25,25,24,24,23,25,24,25,24,26,26,27,27,27,27,26,27,28,28,26,27,28,28,27,27,28,27,27,28,27,27,27,27,27,27,27,26,26,27,26,25,26,27,27,27,27,27,27,27,27,26,26,28,27,26,28,27,27,27,28,27,27,27,27,27,27,25,26,25,25,25,26,24,27,26,26,26,26,27,26,26,25,25,25,24,24,24,23,23,21,23,22,21,22,22,20,20,21,19,19,20,17,17,15,17,16,13,13,12,9,9,7,8,7,5,5,4,4,3,3,2,1,0,1,2,2,2,3,4,5,6,6,8,9,7,8,12,11,9,14,12,10,11,14,12,11,12,15,15,13,16,14,14,13,17,14,12,13,16],[25,26,26,27,27,28,29,29,28,28,28,27,29,28,29,28,29,29,28,29,29,29,29,30,29,30,30,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,29,29,29,29,29,29,29,29,28,29,28,29,28,28,28,29,28,29,27,28,26,26,28,29,28,29,28,27,28,29,28,27,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,29,30,30,29,29,29,29,29,30,29,30,30,29,30,29,29,30,29,28,28,29,29,27,29,29,26,27,29,26,25,26,26,28,27,29,29,27,28,29,28,27,29,29,28,28,29,29,28,29,29,29,29,30,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,27,28,29,28,25,27,27,26,27,25,24,26,27,24,25,26,25,24,25,25,24,25,26,26,28,27,24,28,28,27,26,28,29,28,29,28,28,28,29,28,27,29,28,26,28,29,27,26,28,28,26,26,28,27,25,27,28,26,26,27,27,28,28,29,27,28,27,27,27,26,25,26,26,25,24,25,25,25,24,23,24,24,23,23,24,22,22,22,22,23,23,23,23,23,23,25,24,24,24,26,25,24,24,26,25,25,27,27,26,28,26,28,27,25,25,27,25,25,24,26,25,25,25,25,25,24,26,27,25,27,26,24,25,26,24,24,25,26,23,25,25,26,23,25,23,25,25,24,26,26,26,25,26,27,27,27,28,28,27,28,27,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,30,29,29,30,30,30,29,30,30,30,30,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,27,29,28,27,28,28,26,27,26,26,25,25,25,26,24,24,25,25,24,24,26,24,23,25,26,25,24,27,26,24,24,22,23,22,22,19,24,23,24,24,24,23,26,25,26,27,28,25,25,28,27,25,26,27,25,25,26,26,25,25,25,23,24,22,24,24,22,20,23,20,20,19,21,17,15,15,14,14,14,14,16,15,15,18,19,20,23,23,23,22,21,23,22,22,21,20,21,20,20,20,22,22,22,23,23,24,23,25,25,24,24,27,26,26,27,27,27,28,28,27,28,29,27,28,28,27,27,27,27,28,28,27,29,29,29,29,29,29,28,29,29,28,29,29,28,28,29,29,29,29,29,29,29,29,28,28,28,28,27,27,27,26,24,25,26,25,24,25,25,24,23,24,24,23,22,23,23,21,22,22,22,22,24,22,22,22,23,22,23,24,25,25,23,25,26,26,26,26,27,28,27,28,28,28,28,28,29,29,28,28,29,29,29,28,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,28,28,29,29,28,28,29,28,28,29,29,29,29,29,29,28,29,28,28,28,28,27,27,27,28,25,26,27,27,25,26,26,24,24,25,25,25,24,26,25,25,26,26,25,26,27,27,27,28,26,28,28,28,27,28,28,28,28,29,28,28,28,28,27,27,28,27,26,28,27,26,25,28,26,25,26,28,25,26,27,27,28,28,27,27,28,28,28,28,28,28,27,28,28,26,28,28,28,26,27,26,26,26,25,24,27,25,27,27,26,27,26,28,27,25,26,25,26,25,24,23,23,24,22,21,20,22,21,18,20,20,18,14,20,17,15,15,16,16,16,13,12,12,11,9,8,6,6,6,6,4,3,3,2,2,2,1,0,1,2,2,3,3,5,5,6,8,9,7,8,10,10,9,12,12,10,10,15,13,11,11,14,16,13,17,12,14,15,18,15,14,16,16],[26,26,26,26,26,27,27,27,27,28,27,27,28,28,28,28,28,28,28,29,29,28,29,29,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,29,29,29,28,29,28,28,28,28,29,29,29,29,28,28,28,28,28,28,28,29,29,29,29,29,30,29,29,29,29,29,30,29,29,30,29,29,29,30,29,29,29,30,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,27,29,29,27,27,29,27,27,26,25,28,28,29,28,28,29,29,28,27,29,29,28,29,29,29,28,29,29,29,29,29,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,27,28,27,26,28,26,25,26,28,26,27,26,27,26,26,27,27,26,27,26,27,28,27,28,29,28,27,27,29,29,29,28,29,29,29,28,28,29,28,27,29,29,27,28,29,28,28,28,29,27,27,29,29,27,27,28,28,28,29,29,29,28,28,28,28,28,27,27,28,27,26,27,27,26,27,25,26,24,25,24,24,25,22,26,25,25,26,25,26,26,26,27,26,27,26,26,27,27,26,26,26,26,27,27,27,28,28,29,28,27,27,28,27,27,26,28,27,26,26,27,26,25,27,27,27,28,27,26,27,27,25,25,26,26,25,26,26,24,22,24,23,25,27,25,27,28,27,27,28,28,28,28,29,29,28,28,28,29,29,29,29,29,29,29,29,29,29,28,29,29,29,29,29,29,29,30,30,29,29,30,30,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,29,29,30,29,30,29,29,27,28,28,27,28,29,27,28,28,27,28,26,26,26,24,23,26,25,23,24,26,24,22,26,26,24,24,27,27,24,25,24,23,22,21,19,23,23,22,23,25,25,25,25,28,27,28,26,26,28,27,25,27,27,26,25,27,27,24,26,25,24,24,23,22,23,24,22,21,21,22,19,19,17,16,14,14,14,14,14,16,15,15,19,20,22,23,24,23,24,23,23,24,22,23,23,24,22,22,22,24,23,24,24,25,26,25,25,27,27,27,28,27,28,28,28,28,29,28,28,28,29,28,29,29,27,28,28,29,29,29,29,29,29,29,30,30,28,29,29,29,28,28,29,28,28,29,29,28,29,29,29,29,30,28,28,29,29,28,28,28,28,27,28,28,27,26,27,26,25,25,26,25,25,24,23,24,22,22,22,23,24,24,22,24,25,24,25,26,27,26,26,26,27,27,28,28,28,28,28,29,29,28,29,28,29,29,28,28,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,28,29,29,28,29,28,28,28,28,29,29,28,28,29,28,29,28,29,29,28,29,28,29,29,29,28,28,28,28,28,28,28,27,28,27,26,28,27,26,25,26,26,26,27,27,28,28,28,27,28,27,28,28,28,28,28,28,28,28,28,28,29,28,28,28,28,29,28,28,28,28,28,28,28,28,28,27,28,27,26,27,28,27,28,27,27,28,27,28,28,27,28,28,28,28,29,28,28,28,28,28,27,27,26,26,25,26,24,26,27,26,26,27,25,28,26,26,25,27,26,27,26,25,25,26,26,23,22,24,25,20,22,23,21,16,21,20,15,16,19,18,16,14,13,12,12,9,10,9,7,7,5,4,4,3,2,2,3,1,1,0,1,3,3,4,5,6,8,8,10,7,8,10,10,9,12,13,10,10,14,13,10,10,13,15,14,16,14,15,14,18,16,14,15,18],[25,25,25,26,26,27,27,27,27,28,26,27,27,27,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,30,30,30,29,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,29,29,30,30,29,29,29,29,29,29,29,28,29,28,28,28,29,29,29,29,29,28,29,28,28,29,29,28,30,29,29,29,30,29,29,29,29,30,30,29,30,29,29,30,30,30,29,30,30,29,30,30,30,29,30,30,30,29,29,29,29,29,30,29,30,30,29,30,30,29,29,29,28,29,29,29,27,29,29,27,28,30,27,26,28,28,29,28,30,28,28,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,30,30,30,30,29,30,29,29,29,29,29,29,29,29,29,27,28,28,27,29,27,25,28,29,25,26,28,27,26,27,28,26,27,28,27,28,28,27,28,29,29,28,29,30,29,30,28,29,29,29,29,28,30,29,28,29,29,28,28,29,29,27,28,29,28,27,29,29,28,27,29,28,29,29,30,29,29,28,28,28,28,28,28,28,27,27,27,27,25,26,26,25,25,23,25,25,24,23,25,25,25,25,24,25,26,26,26,26,26,26,27,28,26,26,27,27,28,28,28,27,29,28,29,29,27,28,29,27,27,28,29,27,26,28,27,27,26,27,28,28,29,28,27,28,28,26,27,28,26,24,27,26,25,22,24,25,26,27,27,28,28,27,28,28,28,28,28,28,29,28,28,28,28,29,29,28,28,28,28,29,28,28,28,28,29,29,29,29,29,29,29,29,29,30,29,30,29,29,29,29,29,29,29,29,29,28,29,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,29,30,29,30,30,30,30,29,30,30,30,30,30,30,29,29,30,29,29,29,27,28,28,28,27,28,28,28,28,28,28,26,27,26,25,24,26,26,25,26,26,25,25,26,27,26,26,26,27,26,26,23,24,22,24,22,23,24,24,25,26,26,26,26,27,27,28,27,26,27,27,27,27,28,27,26,28,27,26,26,26,24,25,24,23,23,23,23,21,20,23,21,20,18,20,18,16,16,16,16,18,18,17,21,22,23,25,23,25,25,24,24,23,24,23,22,24,24,23,21,24,25,25,25,24,26,25,26,27,27,26,28,28,27,28,29,28,29,29,29,29,29,28,29,29,28,28,29,29,29,29,29,29,30,29,30,30,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,28,29,29,29,27,28,28,27,27,28,27,25,26,26,26,25,25,24,24,23,22,22,22,24,23,22,23,25,26,25,26,26,26,27,26,27,28,28,28,28,29,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,30,30,30,29,30,29,30,29,30,29,29,29,30,29,29,29,29,29,29,29,28,29,29,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,27,28,28,28,27,26,28,26,26,27,26,26,26,27,27,27,28,28,27,28,28,28,29,28,29,29,29,28,29,29,28,29,28,29,29,29,29,29,29,28,29,28,28,28,29,27,28,28,28,27,28,28,26,27,27,28,28,27,28,28,28,28,29,28,28,29,28,27,28,28,29,28,27,28,26,26,27,26,26,26,25,27,27,27,27,26,27,27,26,25,26,26,25,23,25,24,24,23,23,24,24,22,22,22,20,21,20,18,19,19,19,19,15,16,14,13,12,10,9,10,8,8,6,5,4,4,3,3,2,2,1,0,1,2,3,4,6,6,6,9,7,7,10,10,9,13,13,9,11,14,12,11,10,14,13,13,14,14,15,14,16,15,12,15,17],[24,25,25,26,27,27,28,29,28,28,28,28,29,28,29,28,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,29,30,30,30,29,29,29,30,29,29,29,29,29,29,28,29,29,29,29,30,29,29,29,29,29,30,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,30,30,30,30,29,30,30,29,30,30,30,30,30,29,30,29,29,28,30,29,28,28,30,28,28,28,28,29,29,29,30,29,29,30,30,28,30,30,29,29,30,30,29,29,30,30,29,30,30,29,30,30,30,30,30,30,29,30,30,29,30,30,30,29,29,30,29,28,29,29,27,29,27,26,28,29,27,27,29,27,27,28,28,27,26,28,27,29,28,27,28,29,28,28,29,29,29,29,29,30,29,29,29,29,30,28,28,30,30,28,28,29,29,27,28,30,28,27,29,30,28,29,30,29,29,30,30,28,29,29,28,29,29,28,28,29,28,26,28,27,27,27,26,27,27,25,26,26,26,23,26,25,26,26,26,26,27,26,26,26,26,27,27,28,26,27,28,26,27,28,28,27,29,28,29,29,28,28,29,28,26,28,29,27,26,28,28,27,27,27,29,28,29,28,27,28,28,27,27,28,27,25,27,27,26,25,26,26,26,27,27,28,28,28,28,28,28,29,28,28,28,28,29,28,28,29,29,29,29,29,30,30,29,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,29,28,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,28,29,29,28,28,29,28,28,28,28,27,27,28,27,26,25,26,26,25,26,27,25,25,26,26,26,26,28,28,26,26,23,25,24,24,23,25,24,25,25,26,25,27,26,27,28,28,27,26,28,28,26,28,29,26,27,28,27,26,26,26,25,26,25,25,25,25,24,24,22,21,21,22,19,18,20,19,16,17,17,19,18,18,21,22,23,26,25,26,26,25,25,25,25,25,23,25,24,23,22,23,25,26,26,25,26,27,26,26,27,27,28,28,28,29,29,29,29,29,29,30,29,29,29,29,28,28,29,28,29,29,29,29,30,30,30,30,30,29,30,30,30,30,30,30,29,30,29,30,30,29,30,30,30,29,29,29,29,28,29,29,28,27,28,28,26,26,28,27,26,26,27,26,25,26,26,25,24,24,23,25,26,25,22,24,25,26,25,25,25,27,26,26,26,27,28,27,28,29,29,29,29,29,29,29,29,29,30,29,29,30,29,29,29,30,30,29,30,30,30,29,29,29,29,30,30,30,30,29,29,30,29,30,30,30,30,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,27,28,29,28,26,28,28,26,25,28,27,27,26,26,25,26,28,27,26,28,28,28,28,29,29,29,28,29,28,29,29,29,29,29,29,29,29,29,28,28,29,29,27,29,29,28,28,29,29,27,28,29,28,27,28,28,28,29,28,28,29,29,28,29,29,28,28,29,28,28,28,28,28,29,28,27,28,27,26,26,27,27,27,27,27,28,26,29,28,27,27,26,26,26,26,26,25,25,24,23,23,24,24,21,23,22,20,19,22,22,17,19,20,20,15,15,14,14,13,12,10,10,10,8,8,7,5,6,5,4,4,3,3,3,1,0,1,2,3,4,5,6,7,7,6,8,8,7,11,11,9,10,13,11,10,13,14,14,13,15,14,14,15,17,15,13,16,17],[24,25,24,25,26,26,27,27,26,27,26,26,28,27,28,28,29,28,28,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,30,30,30,29,30,30,30,29,30,30,30,31,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,30,31,30,30,31,31,30,31,31,30,31,31,30,31,31,30,30,30,30,30,30,30,29,30,30,28,28,30,28,26,29,27,30,27,30,30,28,30,30,29,28,31,30,29,30,30,30,29,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,28,30,29,27,30,28,26,27,29,27,26,28,28,27,27,28,27,25,27,27,28,28,26,28,29,29,28,29,30,30,30,28,30,30,30,29,28,30,28,28,30,30,27,28,30,30,28,29,30,29,28,30,30,29,28,30,29,30,30,30,30,30,30,29,30,30,29,29,29,28,27,28,28,26,26,26,26,25,24,26,26,24,22,25,25,26,26,25,26,27,26,25,27,27,26,25,28,27,25,27,27,26,28,28,27,30,28,30,30,28,28,30,28,27,29,30,27,27,29,28,27,26,28,29,29,29,28,27,29,29,26,28,28,27,25,28,28,26,24,25,26,28,28,28,29,29,29,28,29,30,30,29,30,30,30,30,29,29,30,30,29,29,29,29,30,29,29,29,29,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,29,29,30,29,30,29,29,29,27,28,27,26,26,27,28,26,27,28,27,25,27,27,27,27,27,28,27,27,25,25,25,25,23,25,25,26,27,27,27,27,27,28,29,29,28,28,29,29,28,29,29,28,28,29,28,28,27,28,26,26,25,25,26,25,25,23,24,23,22,22,21,21,20,17,18,16,16,19,19,18,21,23,23,25,24,26,26,25,24,24,25,24,22,23,24,24,20,22,25,24,23,25,27,25,25,27,28,26,28,29,28,28,30,29,30,30,29,30,30,29,29,29,27,27,29,29,30,29,29,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,27,29,29,27,27,29,28,26,27,28,25,25,26,26,24,23,24,24,24,24,25,23,25,25,25,24,26,27,25,25,26,28,29,28,28,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,28,29,30,29,28,29,29,28,26,29,28,27,26,27,25,28,28,28,27,29,29,27,28,29,29,29,29,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,29,30,30,29,29,30,29,28,29,29,28,28,29,28,29,28,29,29,29,29,29,29,30,29,29,29,30,29,29,29,30,30,29,28,28,28,28,28,28,28,29,28,28,28,27,28,28,27,27,27,26,26,26,25,24,26,25,24,23,24,25,22,23,23,21,20,22,20,18,20,20,19,16,16,15,15,14,13,11,11,12,9,9,8,6,6,5,5,5,3,4,4,2,1,0,1,2,3,4,5,6,5,6,7,7,7,10,9,8,10,12,9,9,11,13,12,11,14,14,14,15,15,15,13,16,18],[22,23,22,24,25,25,27,27,26,26,26,26,28,26,28,28,29,28,28,29,28,29,29,29,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,30,28,29,29,29,29,28,29,28,28,29,27,28,27,28,28,29,29,29,29,29,29,29,29,29,29,29,29,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,28,30,30,28,28,30,28,26,28,27,28,28,29,29,29,29,30,29,28,30,30,29,29,30,30,29,29,29,30,29,30,30,30,29,29,30,30,30,29,29,29,30,29,29,29,29,29,29,30,30,28,29,29,27,29,27,25,27,29,26,26,28,27,25,26,28,26,25,26,26,28,28,26,28,29,28,27,29,29,29,29,29,29,29,30,29,28,30,29,27,29,29,28,27,29,30,26,27,29,29,27,28,29,28,27,28,28,29,29,29,28,29,29,29,29,29,27,28,28,28,26,28,26,26,26,26,26,24,24,24,26,24,23,24,24,26,25,25,25,26,25,25,26,26,25,26,28,25,26,28,26,26,28,29,26,29,27,29,29,26,26,29,27,25,27,28,26,25,28,28,26,26,27,28,26,28,27,26,27,28,26,25,28,27,25,26,27,27,25,26,25,27,27,26,27,28,27,27,28,28,28,28,28,28,28,28,28,28,29,29,28,29,29,29,30,29,29,30,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,29,29,30,29,29,29,29,29,29,29,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,30,28,28,29,28,28,28,28,28,28,27,28,27,26,27,26,26,25,28,27,25,25,28,26,25,27,28,26,26,28,27,27,27,25,25,24,25,24,25,25,26,26,26,26,27,26,28,28,29,27,27,28,28,27,28,28,27,27,27,27,26,26,26,25,26,25,25,26,26,24,26,24,23,23,24,22,20,21,20,18,17,19,21,19,18,22,23,24,26,24,26,26,25,25,24,25,25,23,24,22,23,21,23,25,25,25,25,26,26,26,26,26,26,28,27,27,29,29,28,29,28,28,28,29,28,29,28,27,27,28,28,29,29,28,29,29,30,30,30,29,29,30,29,29,29,29,30,29,30,29,29,30,29,29,29,29,29,29,28,29,27,28,29,28,25,27,28,25,25,27,27,25,25,26,26,24,25,25,25,24,25,23,25,25,25,25,25,25,25,25,26,26,26,26,25,26,27,27,27,28,28,29,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,30,29,29,30,29,29,29,29,29,30,29,30,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,28,28,29,29,29,29,29,28,28,28,28,27,28,28,27,26,27,27,25,25,27,26,26,26,27,26,26,28,27,26,28,28,27,27,28,28,29,29,29,28,28,29,28,28,29,29,28,28,28,28,28,28,28,27,28,28,27,27,28,27,26,27,28,27,27,28,28,29,28,28,28,28,28,28,28,29,28,27,28,28,27,27,28,28,28,27,27,27,27,26,25,27,27,27,27,26,28,26,28,27,27,27,26,26,26,25,25,25,26,25,25,23,25,24,22,23,24,21,19,23,21,18,19,21,21,17,16,16,16,14,13,11,11,13,9,10,7,6,7,6,5,5,5,4,4,4,3,1,0,1,2,3,4,4,4,4,6,6,6,8,8,6,8,10,8,7,8,12,11,9,14,11,13,14,16,12,11,16,16],[23,24,22,24,25,25,27,27,26,27,26,26,28,26,28,27,29,28,27,29,29,28,29,29,29,29,30,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,29,29,30,29,29,30,29,29,29,29,29,29,29,28,29,29,29,29,29,29,30,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,29,29,29,29,29,29,29,29,29,29,30,30,30,29,29,30,29,29,29,29,29,29,29,29,30,30,29,30,30,29,29,29,29,29,29,29,28,30,29,28,28,30,28,27,29,28,30,28,29,29,28,29,30,29,28,30,29,29,29,29,30,29,30,29,29,29,29,29,29,29,29,29,30,29,29,29,29,30,29,30,29,29,28,29,29,29,28,29,29,27,29,27,26,28,29,26,26,29,27,26,28,29,26,25,28,27,29,29,27,28,29,28,27,29,30,29,29,27,29,29,29,28,28,30,29,26,30,30,27,27,29,29,26,28,30,29,26,29,30,28,27,30,29,29,29,29,28,29,29,29,29,29,27,28,29,28,27,28,27,27,26,26,26,27,26,26,26,25,24,24,25,27,25,24,25,26,25,25,27,27,25,25,28,26,25,27,26,28,27,29,27,29,26,30,29,26,26,29,27,25,28,29,26,24,29,28,26,25,27,28,28,29,28,26,29,28,25,27,28,27,25,27,27,24,22,25,25,27,28,27,29,28,28,28,28,28,29,29,29,29,29,29,29,29,29,30,30,29,30,30,30,29,30,29,29,30,30,29,29,30,30,29,30,29,29,29,30,30,30,30,30,29,28,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,29,30,29,29,29,29,30,30,29,30,30,30,30,30,30,29,29,30,29,29,30,29,28,29,28,28,28,29,28,29,29,29,28,28,28,26,24,24,27,26,25,25,27,26,25,27,27,27,26,27,28,26,27,24,25,25,24,23,26,26,26,25,27,26,27,26,28,27,29,27,27,27,28,27,28,29,27,27,28,27,26,27,26,26,25,23,25,24,24,24,24,23,22,23,22,21,20,20,19,18,17,18,20,21,18,23,24,23,26,24,27,26,25,24,24,24,23,22,24,24,23,22,23,24,24,24,24,26,26,25,26,26,26,27,28,27,28,29,28,30,30,27,29,29,29,29,28,27,26,29,28,30,28,29,30,29,30,30,30,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,27,28,30,28,26,28,28,25,25,28,27,24,25,28,25,23,25,26,24,24,24,23,22,25,23,22,24,26,25,23,25,26,25,25,26,26,26,26,26,28,28,29,28,29,28,29,29,29,29,29,29,29,30,29,30,29,30,29,29,29,29,29,30,29,29,29,29,29,29,29,29,28,29,29,29,29,29,29,29,29,29,29,29,28,29,28,29,29,30,29,29,29,29,28,29,29,27,27,29,29,26,27,28,26,25,28,27,26,25,26,25,26,28,26,26,29,29,27,27,29,28,29,29,28,28,29,29,29,29,29,29,29,28,29,29,29,29,29,27,29,29,28,27,29,29,26,28,29,27,26,27,27,28,28,28,28,28,29,28,28,29,29,29,28,29,28,28,28,29,29,29,28,27,27,27,27,27,27,28,27,27,28,26,28,27,26,27,26,26,26,25,24,23,26,24,23,23,24,23,23,23,22,22,20,22,21,18,20,22,21,17,17,16,16,15,15,12,13,14,9,10,9,6,8,6,6,6,4,4,4,4,3,2,1,0,1,2,3,3,3,4,4,4,5,7,6,5,6,8,6,6,8,10,9,9,11,11,12,14,13,13,12,15,16],[23,24,23,24,25,25,27,27,26,27,27,26,28,27,29,28,29,29,28,30,29,29,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,29,30,30,29,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,28,29,28,30,29,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,27,30,30,28,28,30,29,27,28,29,27,27,28,27,29,29,28,29,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,29,30,30,29,30,30,30,29,30,29,29,29,30,30,29,29,29,30,30,29,30,30,29,28,29,29,28,27,28,28,26,26,25,25,25,25,25,26,27,27,26,26,28,28,27,28,28,27,27,29,28,28,29,28,28,30,30,29,30,29,30,30,29,29,30,29,28,29,30,29,28,29,29,29,27,29,30,29,29,29,28,29,29,28,28,28,28,26,28,28,27,25,27,26,28,28,27,29,29,29,28,29,29,29,29,30,30,29,29,29,30,30,29,29,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,31,30,30,31,31,31,31,31,31,30,31,31,30,30,29,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,30,29,29,29,29,29,28,29,27,27,26,28,28,26,27,29,28,27,29,29,27,27,29,29,28,27,26,26,26,24,24,26,26,26,27,27,27,28,28,29,29,29,29,29,29,29,28,29,30,29,28,29,29,27,28,27,28,27,27,26,27,27,26,26,25,25,25,25,22,21,22,20,20,18,20,22,21,18,23,24,24,25,25,26,27,27,25,25,27,25,23,25,25,24,24,26,26,27,27,27,27,28,28,29,28,28,30,29,29,30,30,29,30,29,30,29,30,29,29,29,29,29,29,30,30,30,30,30,30,30,31,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,28,29,30,29,28,29,29,28,28,28,28,27,28,27,26,25,25,25,25,27,27,25,27,27,27,27,28,28,27,28,28,29,28,29,29,29,30,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,29,29,29,28,28,29,28,27,26,28,27,28,29,28,28,29,29,28,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,28,30,29,28,29,29,28,29,29,29,30,29,29,30,30,30,29,29,29,30,29,29,30,29,29,30,29,29,29,28,28,29,27,27,28,28,29,28,27,28,28,28,28,27,27,29,27,28,26,27,27,26,27,24,25,26,27,23,24,24,22,20,23,23,19,20,21,21,18,17,18,17,15,14,12,12,14,11,11,10,8,9,7,7,7,6,5,5,4,4,3,2,1,0,1,2,3,2,4,4,4,4,5,5,4,5,7,6,5,5,7,8,8,11,9,11,13,15,12,12,14,14],[22,24,24,25,25,25,26,27,26,27,27,27,28,26,28,27,28,28,28,29,29,28,30,29,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,29,30,29,29,29,29,29,29,29,28,29,29,29,29,28,29,28,28,28,28,28,28,28,29,28,28,29,29,29,29,29,29,29,28,29,29,30,29,29,29,29,28,29,30,29,29,30,29,29,29,30,29,29,30,30,29,29,29,29,29,29,29,29,29,29,29,29,30,29,28,30,29,29,29,29,29,29,28,29,29,29,28,29,28,29,28,29,29,28,29,29,29,28,30,29,29,29,29,29,29,29,29,29,28,29,29,29,29,29,29,29,29,29,29,28,29,29,29,28,29,29,29,29,30,29,29,29,27,29,28,27,28,29,27,27,29,28,27,28,29,27,27,28,28,29,28,27,29,29,29,28,29,30,30,30,28,30,28,29,29,27,29,28,27,29,29,28,28,28,29,27,28,29,29,28,29,29,29,27,29,28,29,28,29,28,28,28,29,28,29,29,28,29,29,28,28,28,26,27,26,26,24,26,27,27,25,24,25,25,27,25,26,27,28,26,27,27,27,27,27,28,28,27,28,28,27,28,29,27,29,27,29,29,27,28,29,28,26,27,29,27,26,29,29,27,26,27,29,27,28,28,27,28,28,27,26,27,27,25,27,27,24,23,25,25,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,30,30,29,29,30,29,29,30,30,29,30,30,30,30,29,30,29,29,29,30,29,29,29,28,28,29,29,28,29,28,28,29,29,30,29,29,30,30,29,30,29,29,29,29,29,29,30,30,30,30,29,30,29,30,29,29,29,29,30,29,30,30,29,30,30,30,30,29,29,30,29,30,29,29,29,28,29,28,29,28,28,29,28,28,28,28,27,27,27,27,25,25,27,26,25,26,26,26,25,28,27,26,26,28,27,27,27,24,24,24,24,24,25,25,26,25,26,26,28,26,28,27,28,27,27,27,28,27,27,28,28,28,27,28,26,27,26,26,27,25,26,26,25,24,25,23,23,23,22,22,21,19,18,19,16,19,22,21,18,22,20,24,24,24,25,26,26,26,24,26,23,24,25,24,25,26,26,26,27,26,26,27,28,27,28,28,27,29,28,29,29,29,28,29,30,28,30,30,29,29,29,28,28,29,28,29,28,28,29,30,29,30,30,29,29,30,30,30,29,30,29,29,29,29,29,29,29,29,29,29,29,28,29,29,28,28,29,28,27,28,28,27,27,28,28,26,25,27,26,25,25,26,25,24,25,24,24,26,26,24,25,26,28,27,27,26,27,27,27,26,27,28,27,28,29,29,29,28,29,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,28,28,29,29,29,29,29,28,28,29,29,29,29,29,29,29,29,28,29,29,29,29,28,28,29,28,29,29,29,29,28,29,29,28,28,29,27,28,28,29,27,26,27,27,27,25,27,26,25,27,28,27,28,29,28,28,28,27,29,29,28,28,28,29,29,28,29,29,28,28,28,29,29,28,29,27,29,28,27,27,29,28,27,28,29,27,27,28,29,28,29,28,27,28,28,28,28,28,29,28,28,28,28,27,27,28,29,28,28,27,27,27,27,28,26,28,27,27,29,27,28,28,26,27,28,27,27,26,26,25,26,25,23,24,25,24,22,23,23,21,20,22,21,20,21,22,21,18,17,15,15,15,13,11,11,15,10,11,8,7,9,7,7,8,6,5,5,5,3,4,2,2,1,0,1,2,1,2,2,3,4,4,4,5,4,5,5,4,5,6,7,6,9,8,9,10,12,9,10,12,13],[21,23,23,24,25,25,26,26,26,26,26,26,28,26,28,27,28,27,26,28,28,27,29,29,28,28,29,28,29,29,28,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,30,29,29,30,29,29,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,29,30,29,30,30,29,29,30,29,28,30,29,30,28,29,30,28,30,30,29,28,30,30,29,30,30,30,30,30,30,30,30,30,29,29,29,29,30,29,29,30,29,29,30,30,30,30,29,29,30,30,30,29,30,30,28,29,29,27,29,29,27,29,30,29,27,29,29,27,27,29,28,28,29,27,29,29,29,28,30,30,29,29,28,30,30,30,29,28,30,29,28,30,30,28,28,29,30,28,29,30,29,29,30,30,29,28,29,29,29,28,29,29,29,28,29,29,29,29,29,29,29,29,29,28,27,28,27,27,26,25,26,27,27,24,25,25,27,26,24,28,27,27,26,28,28,26,28,29,27,27,29,28,29,29,29,28,29,28,30,30,28,28,30,29,27,28,30,29,27,29,29,28,27,29,29,29,29,29,28,29,29,28,29,28,28,26,28,28,27,25,27,27,28,28,28,29,29,29,29,29,28,29,29,29,29,29,29,29,29,30,29,29,29,30,30,30,29,30,30,29,30,30,30,29,30,30,30,30,30,29,29,30,29,30,30,30,29,29,28,29,29,28,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,30,30,29,29,29,29,29,30,30,29,29,30,30,30,30,30,29,30,30,29,29,29,29,28,28,28,29,30,29,29,29,29,29,28,29,27,27,27,28,27,27,27,29,27,26,28,28,28,27,29,28,26,27,24,25,25,25,24,26,26,26,26,26,27,27,27,28,28,28,28,27,28,29,28,28,29,28,28,28,28,28,27,27,27,26,25,26,26,26,26,24,24,25,24,23,22,21,20,18,18,15,18,22,21,19,23,24,24,25,25,26,26,25,26,25,26,25,23,26,25,24,23,25,27,24,25,26,27,26,28,27,28,28,29,29,28,28,29,29,29,29,29,30,29,29,29,29,28,28,29,29,30,29,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,30,29,30,30,29,27,29,29,28,28,29,29,26,27,28,26,26,27,26,25,24,25,22,25,25,25,23,26,26,26,25,27,27,26,27,27,28,28,27,28,28,29,29,30,30,29,30,29,30,29,30,30,30,30,30,30,30,29,29,29,29,30,30,30,29,29,30,30,30,29,29,30,29,30,29,29,30,29,29,30,30,29,30,29,29,30,29,29,30,30,30,29,30,30,29,30,30,28,29,30,29,28,29,29,29,27,28,29,27,27,27,26,27,29,27,27,29,29,27,29,30,29,29,29,29,29,30,30,30,30,30,30,30,29,29,30,29,30,30,29,30,30,29,28,30,29,28,28,29,28,27,29,28,29,29,29,29,29,29,28,29,29,30,29,29,30,29,29,29,29,30,29,28,28,29,27,28,28,28,29,28,28,27,27,28,27,27,28,27,26,26,27,25,22,27,26,23,23,26,25,22,24,23,22,20,23,21,18,20,23,21,18,17,15,15,14,14,12,11,14,12,12,10,8,11,9,10,10,7,7,7,7,5,4,4,3,2,1,0,1,2,2,2,2,3,4,4,4,4,5,5,5,5,6,7,9,9,9,11,11,12,12,11,13,15],[22,24,24,26,26,26,27,27,27,27,27,28,28,27,28,28,28,28,27,29,29,28,29,29,29,29,29,29,29,29,29,30,30,30,29,30,30,30,30,30,30,29,29,29,30,29,29,29,29,29,29,29,29,30,29,29,29,30,29,29,29,28,29,28,29,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,30,29,30,30,29,29,29,29,29,29,29,29,28,29,29,29,29,29,29,29,29,29,29,28,30,29,28,29,29,29,29,28,29,30,28,27,29,28,29,27,29,29,27,29,29,29,29,30,29,29,29,30,30,29,30,29,29,29,29,28,29,28,28,28,29,28,29,29,28,29,29,29,29,29,28,29,30,29,28,29,30,27,29,28,26,29,29,26,27,29,28,26,27,29,27,27,28,27,29,28,27,29,29,28,28,29,30,29,29,29,29,29,30,29,29,30,28,27,29,29,28,27,29,29,28,29,29,29,28,29,29,29,27,29,28,29,28,29,29,28,28,28,29,28,28,29,29,28,28,28,28,28,27,26,27,25,23,25,26,24,20,25,25,27,26,25,26,27,26,27,28,28,27,27,28,28,27,29,28,28,29,30,28,29,29,29,30,27,28,29,29,27,28,29,28,27,29,29,27,26,29,29,28,29,28,26,28,28,27,26,28,27,25,27,26,25,24,24,26,27,27,27,28,28,28,28,28,28,29,28,28,29,28,28,28,29,29,29,29,29,29,29,30,29,29,29,29,30,30,29,29,30,29,29,30,29,29,30,30,29,30,29,29,29,28,28,29,29,28,29,29,29,29,29,29,29,29,30,30,30,29,30,29,30,29,29,29,30,30,30,29,29,29,29,30,29,29,29,29,30,29,29,30,29,29,29,30,30,29,29,30,29,30,29,29,29,28,28,28,28,28,28,29,28,29,28,28,28,27,27,27,25,26,27,26,25,27,27,26,26,28,27,27,26,29,28,27,27,24,26,25,26,23,26,25,26,26,26,26,27,26,28,28,28,26,28,28,28,26,27,29,27,27,28,27,27,27,26,26,26,25,25,25,25,24,24,24,23,22,23,22,22,21,19,19,17,18,23,20,18,23,21,24,24,23,25,26,24,25,24,25,24,24,24,25,24,24,26,27,26,26,26,27,27,27,28,28,28,29,29,28,29,29,29,29,30,29,30,29,29,29,29,29,28,30,29,30,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,29,30,29,29,29,29,29,29,29,30,29,27,29,29,28,27,29,28,26,26,27,26,25,26,26,25,24,25,23,25,27,26,24,27,27,27,27,28,28,27,27,28,28,28,28,29,29,29,29,29,29,30,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,29,29,29,29,29,28,28,29,28,28,29,29,29,29,28,29,29,28,29,29,28,29,28,29,29,29,29,29,29,29,29,29,29,28,28,29,28,28,28,29,27,26,28,28,26,26,28,26,27,28,27,27,29,29,27,29,29,28,28,29,29,28,29,29,29,28,29,29,28,28,28,28,29,29,29,28,29,29,28,27,29,28,27,28,29,27,27,28,28,28,28,28,27,28,28,28,27,28,29,28,29,29,28,28,28,29,28,28,27,26,27,27,27,27,26,28,27,26,28,27,28,27,27,28,27,25,27,27,26,26,26,26,23,24,25,26,23,23,23,23,22,22,22,20,21,22,21,19,17,16,15,15,13,13,13,15,12,12,11,11,11,10,11,11,8,7,8,7,6,5,4,3,2,2,1,0,1,2,2,2,2,4,3,3,3,4,4,4,4,5,6,5,9,7,9,10,13,11,10,13,13],[22,23,24,25,25,25,27,27,26,27,27,27,28,27,29,27,29,29,28,29,29,29,30,29,29,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,29,29,30,30,29,30,29,29,28,29,29,29,29,29,29,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,29,30,30,29,28,29,29,30,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,29,30,29,30,30,29,29,30,29,29,30,30,29,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,29,28,30,30,28,28,30,29,27,28,29,27,26,29,28,29,28,27,29,30,29,28,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,29,30,30,29,30,29,29,29,29,29,29,29,30,29,29,29,29,29,30,29,30,29,29,29,29,29,28,28,28,28,27,25,26,26,25,24,25,26,28,27,26,27,29,27,27,28,28,27,27,29,27,26,28,27,28,29,29,28,30,29,30,30,29,29,30,29,28,28,30,29,28,29,29,28,27,29,29,28,29,29,27,28,29,28,28,29,28,27,28,29,28,25,27,26,28,28,27,28,28,28,28,29,29,29,29,29,29,28,29,28,28,29,29,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,30,29,29,28,29,29,28,29,27,27,25,29,28,27,27,29,28,27,29,29,27,27,29,29,27,26,25,26,26,25,26,27,26,27,27,28,28,28,28,29,29,30,28,29,30,29,28,29,30,29,28,29,28,27,28,27,27,27,26,26,27,26,25,26,25,24,23,25,23,21,21,19,17,16,20,23,21,18,23,24,23,26,24,26,28,27,27,26,27,26,23,25,25,25,23,24,27,25,24,26,27,28,27,29,28,28,30,29,28,29,30,29,29,30,29,30,30,29,29,30,28,28,30,30,30,30,29,30,30,30,31,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,29,30,28,29,29,28,28,29,29,27,27,28,28,27,27,27,27,25,25,24,25,27,26,25,27,27,26,27,28,27,27,26,27,28,28,28,29,29,29,29,30,29,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,29,29,29,30,30,30,30,29,30,30,29,29,29,29,29,29,29,30,29,30,30,29,29,30,30,29,29,29,29,29,28,29,28,28,28,28,28,27,26,28,27,29,29,28,27,29,29,26,28,29,29,29,30,30,29,30,30,29,29,29,29,29,29,29,29,29,29,29,28,29,29,28,28,30,29,27,28,30,28,27,29,29,30,29,29,29,29,30,29,30,29,30,29,29,29,29,29,29,29,29,29,29,28,29,28,27,28,28,29,28,27,29,27,29,27,26,26,26,24,26,27,24,26,26,26,23,24,26,26,24,24,23,23,20,24,22,19,21,23,22,19,18,17,16,16,14,12,12,14,11,11,10,8,10,9,8,9,7,6,6,6,5,5,3,3,2,2,2,1,0,1,1,1,2,2,2,2,2,3,3,3,3,3,5,5,7,6,8,9,12,10,9,11,12],[22,24,25,24,26,26,27,27,26,27,27,26,28,26,28,27,28,28,28,29,28,28,29,29,29,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,29,29,30,29,29,29,29,29,29,29,29,28,28,28,28,28,28,28,28,28,29,29,28,29,28,29,28,29,28,29,29,29,29,29,30,29,29,29,29,30,29,29,29,29,29,29,29,29,29,30,29,29,30,30,29,29,29,29,29,29,29,29,30,29,29,29,29,29,30,30,29,30,29,30,29,29,29,28,29,29,27,28,29,28,25,28,27,29,26,30,29,28,29,29,29,28,30,29,29,29,30,29,29,29,29,29,29,29,28,29,28,29,28,29,28,29,29,29,29,29,29,29,30,29,29,29,29,28,29,29,26,29,28,26,28,29,26,27,29,27,25,27,29,25,26,28,27,28,28,26,28,29,27,27,28,29,28,29,28,29,29,29,28,28,30,28,27,29,29,27,27,29,30,28,28,29,29,28,29,29,28,28,28,28,28,28,28,29,29,28,29,29,29,28,28,29,29,27,28,27,27,26,27,26,26,26,25,26,25,25,26,25,27,26,25,25,27,25,26,27,27,24,26,28,25,25,27,26,27,28,29,27,29,28,29,29,27,28,29,28,26,29,29,27,26,28,28,27,26,28,29,29,28,29,27,28,28,26,27,28,27,25,27,27,25,24,25,25,27,28,27,27,28,28,28,28,28,28,28,28,28,28,27,28,28,28,28,28,28,28,28,28,27,28,28,28,28,29,28,29,28,28,28,28,29,29,28,29,29,29,29,28,29,28,28,29,28,28,29,29,28,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,28,27,27,27,27,27,28,28,28,29,28,28,28,28,26,26,24,26,26,25,26,27,26,25,28,27,26,26,27,27,26,27,23,24,24,23,22,25,25,25,26,26,25,26,26,27,27,28,27,28,27,28,27,28,28,27,27,28,28,27,27,27,26,26,25,26,25,24,25,23,21,23,22,22,20,20,19,19,19,16,19,19,20,18,21,23,23,24,25,25,26,24,24,24,25,23,23,24,23,23,22,24,24,23,23,25,26,25,26,27,28,25,28,28,27,28,29,28,29,29,27,28,28,27,27,28,27,27,28,29,29,28,28,29,29,29,30,29,29,29,29,29,28,28,29,29,28,29,28,29,29,29,29,29,29,29,29,30,29,28,29,29,29,27,29,29,27,27,29,28,24,26,27,26,24,26,25,25,24,24,23,21,25,26,23,24,26,25,23,26,27,24,25,26,26,28,28,28,28,29,29,29,28,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,28,28,29,28,29,27,28,27,28,28,28,27,27,28,28,29,29,29,30,29,30,29,29,29,29,29,29,29,29,29,28,28,29,29,27,26,28,28,27,27,27,26,27,28,27,27,28,29,27,28,28,28,28,28,29,29,29,29,29,29,29,29,28,29,28,29,29,29,29,28,29,29,28,27,29,28,28,28,28,27,27,28,27,28,27,29,28,26,27,28,27,27,29,28,27,28,28,28,27,28,29,28,28,27,27,27,27,27,27,27,27,26,27,26,28,26,26,26,26,24,26,26,24,21,26,26,21,22,24,24,20,23,22,20,19,20,21,17,19,20,20,17,16,16,15,15,14,11,11,13,12,12,10,8,10,8,8,8,7,6,6,6,6,5,4,4,3,2,3,2,1,0,1,2,2,2,3,3,3,4,3,4,3,4,5,6,8,7,8,9,10,9,9,10,11],[22,22,23,24,24,26,26,26,26,26,25,25,26,25,27,26,27,26,27,28,27,28,28,28,28,29,28,29,29,29,29,29,29,30,29,30,29,30,30,30,30,30,29,30,29,30,29,29,30,30,29,29,30,29,30,29,29,29,29,29,29,28,29,28,29,28,28,29,28,29,29,29,29,29,29,29,28,28,28,29,30,29,29,30,29,29,29,29,30,30,29,29,30,29,29,30,30,29,29,29,30,29,29,30,30,29,30,29,28,28,28,28,28,30,28,29,29,29,29,29,29,29,29,29,29,29,29,30,29,28,28,29,28,26,28,28,29,28,29,29,29,29,29,29,29,30,29,29,29,30,29,29,29,29,29,29,29,28,29,28,28,29,28,28,29,28,28,28,29,29,28,29,29,29,29,30,29,29,29,28,29,28,26,29,29,27,26,29,28,26,28,29,26,26,28,27,28,29,27,29,29,28,28,28,29,29,29,29,29,29,29,28,29,29,28,29,30,29,28,28,29,29,28,28,29,29,28,29,29,29,28,28,28,29,28,28,29,27,27,28,29,28,28,29,29,28,28,29,28,27,27,27,27,24,24,26,26,24,24,24,25,27,27,25,25,27,26,26,27,27,25,27,28,27,26,28,27,29,28,29,28,29,28,29,30,28,28,29,29,27,28,29,28,27,28,29,28,27,28,29,28,28,28,27,28,28,27,28,28,27,26,28,27,26,25,27,27,27,27,28,28,28,28,28,28,27,28,29,28,27,28,27,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,28,29,29,29,29,29,29,29,29,29,29,29,28,29,29,29,29,29,29,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,30,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,27,28,27,27,28,28,28,29,28,28,28,28,27,26,25,27,27,26,27,28,27,26,28,27,27,27,28,28,26,26,23,25,25,24,22,27,26,26,26,27,25,26,26,28,27,28,27,28,26,29,27,27,28,28,28,27,28,28,27,27,26,27,25,26,26,26,24,24,24,25,24,24,23,22,19,19,19,16,19,23,22,18,24,22,24,25,23,26,26,25,26,24,25,25,24,24,25,24,23,23,26,25,25,25,27,25,28,27,28,26,29,29,27,28,29,28,29,29,28,29,29,28,28,28,27,28,28,29,29,28,29,29,29,29,30,30,30,29,29,29,28,28,29,29,29,29,30,29,29,29,29,29,29,29,29,30,29,29,29,29,29,27,29,29,27,27,29,28,26,27,27,27,26,26,26,25,25,25,24,24,26,26,24,25,26,26,25,27,27,26,26,26,28,28,26,28,29,29,29,29,29,28,30,29,30,29,29,29,29,29,29,29,30,29,29,29,28,29,29,30,29,28,29,29,28,28,28,28,27,28,29,27,29,28,28,29,29,27,29,29,28,28,28,29,29,29,29,29,29,29,29,29,29,28,29,29,28,27,29,28,28,27,28,28,27,27,27,27,27,28,26,26,29,29,27,28,28,28,29,29,28,29,29,29,29,29,29,29,28,28,28,28,29,29,29,28,29,29,29,28,29,29,27,28,29,28,27,29,28,28,28,29,29,28,29,28,28,28,29,29,28,29,28,28,27,28,29,28,28,28,28,27,27,27,27,28,27,27,27,26,28,26,27,26,25,25,26,27,24,23,27,26,23,23,25,25,22,24,24,22,21,24,22,20,22,22,21,20,17,17,15,15,15,12,11,13,12,11,10,8,10,10,10,10,7,7,7,6,5,5,4,3,3,2,2,3,2,1,0,1,2,2,2,3,3,3,3,4,4,4,4,5,7,8,9,10,10,10,10,10,12],[22,24,25,26,26,27,27,27,27,27,26,26,27,26,27,28,28,28,27,29,28,27,29,28,28,29,28,29,29,29,28,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,28,29,29,29,29,29,28,28,28,28,28,28,28,29,28,29,28,29,29,28,29,28,29,29,29,29,29,29,29,29,29,30,29,30,29,30,30,30,29,29,30,30,29,29,29,29,30,29,30,29,29,30,29,29,29,29,29,28,28,29,29,29,29,29,29,29,29,28,29,29,29,28,29,29,29,29,29,29,29,30,28,28,29,29,30,27,29,29,29,29,30,29,29,30,29,29,29,30,29,30,30,29,29,29,29,28,29,28,28,29,29,28,29,29,28,29,29,29,29,29,28,29,29,29,29,29,29,28,29,28,27,29,29,26,28,29,28,26,28,29,27,26,28,27,29,28,27,29,29,28,29,29,30,29,29,28,29,29,30,29,28,30,29,28,29,30,29,28,29,29,29,29,29,29,28,29,29,29,28,29,29,29,28,29,29,28,28,28,29,29,28,29,29,29,28,29,28,28,28,27,27,27,23,26,26,25,21,26,26,27,26,25,27,28,26,27,28,27,25,27,29,27,27,28,28,28,29,29,28,29,28,29,30,28,28,29,29,27,28,30,28,27,29,29,28,27,29,29,28,29,29,27,29,28,28,28,28,28,26,28,28,26,25,26,26,28,28,27,28,29,28,28,28,28,29,28,28,28,28,28,28,28,28,28,29,28,29,29,29,28,29,28,28,28,29,29,29,29,28,28,29,29,28,29,29,28,29,29,29,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,29,28,29,29,28,29,29,28,28,28,28,28,27,28,27,27,29,28,29,28,29,28,27,27,26,26,24,27,26,26,27,28,27,26,28,28,27,27,28,28,27,28,25,26,26,25,24,27,26,26,26,27,27,27,26,28,27,28,26,28,28,28,27,28,29,27,28,28,28,27,28,27,26,27,25,25,26,26,25,25,25,25,23,24,23,21,21,20,18,17,19,22,20,18,23,22,24,25,24,26,27,26,26,25,25,24,24,26,25,24,23,26,26,25,26,27,27,26,28,28,27,27,29,29,27,29,29,29,29,29,27,29,29,29,28,29,27,28,29,28,29,28,29,29,29,29,29,29,28,29,28,29,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,30,29,27,29,29,28,26,29,28,26,26,28,28,26,26,26,26,25,24,24,25,27,26,25,27,27,26,26,28,27,26,27,27,28,27,28,28,28,28,29,29,29,28,29,29,28,29,29,29,29,29,30,29,29,29,29,29,28,30,29,30,29,29,29,29,29,28,27,28,27,28,28,28,28,28,28,29,29,27,28,29,28,29,29,29,30,29,30,29,30,29,29,29,29,28,28,29,28,27,28,28,27,27,28,28,27,27,28,26,26,28,26,26,29,29,28,28,29,28,28,28,28,28,29,29,29,28,29,29,29,28,28,29,29,29,29,28,29,29,28,27,29,29,26,28,28,27,26,28,28,28,28,28,28,28,28,27,28,28,29,28,28,29,28,28,28,28,28,28,28,27,28,28,27,28,27,29,28,27,28,28,29,28,26,27,27,26,27,26,27,24,26,25,22,23,25,25,23,23,23,22,21,23,22,20,21,22,22,19,18,16,14,15,13,12,12,13,12,11,11,10,11,10,10,11,8,7,7,8,7,6,5,4,4,3,2,2,2,1,1,0,1,2,3,3,2,3,3,3,3,3,3,4,6,6,7,8,10,9,9,10,11],[23,24,25,25,26,26,27,27,26,27,27,27,28,27,28,28,28,28,27,29,28,28,29,29,28,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,29,29,30,29,29,29,29,29,29,29,28,28,28,28,28,28,28,28,29,28,29,29,28,28,28,29,28,29,28,28,29,29,29,29,30,29,29,30,29,30,30,29,29,30,29,29,30,30,29,29,29,30,29,30,29,30,29,30,29,29,29,29,29,29,29,29,29,29,29,29,30,30,29,29,30,29,29,29,30,29,29,29,30,29,27,28,29,30,29,30,30,29,29,29,30,29,29,29,29,29,29,29,29,29,28,29,29,29,29,29,28,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,28,30,28,26,29,29,27,27,29,28,25,27,29,27,26,28,27,29,29,27,28,30,29,27,29,29,29,29,29,30,29,29,29,29,30,29,28,29,29,29,28,29,29,28,28,29,29,28,29,29,28,27,28,28,28,29,29,29,28,29,29,29,28,29,29,28,28,27,28,27,26,26,27,26,25,25,25,25,24,24,24,24,26,26,25,24,27,26,25,27,27,25,26,28,27,27,28,26,27,28,28,28,29,28,29,29,28,28,29,27,27,28,28,27,26,27,28,27,26,27,28,28,28,27,27,28,27,26,26,27,26,24,26,27,26,24,26,25,26,27,26,27,28,28,27,28,28,28,28,28,28,28,27,28,28,28,28,28,28,28,29,29,28,29,29,28,29,29,29,28,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,30,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28,27,27,29,28,28,29,28,28,27,27,26,25,25,27,26,25,26,27,26,26,28,27,27,26,28,27,27,26,24,24,25,23,23,25,25,25,26,26,26,28,27,27,28,29,28,27,28,28,27,28,29,28,26,27,27,25,25,26,24,24,25,24,23,24,25,24,22,23,24,23,22,20,20,19,16,18,20,21,21,18,22,21,24,22,23,23,25,25,24,24,24,23,23,24,23,23,23,23,25,25,24,24,26,27,27,27,26,25,28,28,28,28,29,28,29,29,28,28,29,27,28,28,26,27,29,29,29,29,28,29,29,29,30,30,29,29,29,29,29,28,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,28,29,28,28,28,27,26,27,27,26,26,25,25,26,26,24,25,25,23,25,23,25,25,23,24,26,26,24,27,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,28,28,29,28,28,29,28,28,28,28,28,28,28,28,28,29,29,29,29,30,29,29,29,29,29,29,29,29,28,28,29,28,27,28,28,26,27,29,27,27,25,26,27,26,28,27,27,27,28,27,29,27,27,28,28,29,28,28,29,29,29,29,29,28,28,29,28,29,28,29,28,29,28,27,27,29,28,26,28,28,27,28,28,27,28,27,29,28,27,28,28,28,27,29,28,28,29,29,28,28,28,29,27,27,26,27,26,27,26,28,28,27,27,27,26,27,26,26,25,26,25,26,26,24,23,26,25,22,24,24,24,21,25,23,21,19,23,22,19,21,21,20,19,17,18,15,16,14,13,12,14,11,11,11,9,9,8,9,9,8,8,7,7,6,5,4,4,3,3,3,2,2,2,2,1,0,1,1,1,1,1,2,2,2,2,3,3,4,4,6,7,8,8,8,8,9],[23,22,24,24,24,25,26,25,26,26,25,25,27,26,27,27,27,27,27,29,28,28,29,28,28,29,29,29,29,29,29,30,30,30,29,30,29,30,29,29,30,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,28,28,28,28,28,27,27,26,28,26,27,28,27,28,29,28,28,28,28,28,27,27,28,29,29,28,28,29,29,28,29,28,29,29,28,28,29,28,28,27,28,27,28,28,28,28,28,28,28,28,28,27,28,28,28,27,27,28,28,28,27,28,28,28,28,28,28,28,27,28,28,28,28,28,28,29,27,26,28,28,28,28,28,28,29,29,28,28,28,29,28,28,28,28,28,28,29,28,27,28,28,26,27,26,27,28,28,26,28,28,27,27,28,28,28,28,28,29,28,28,28,28,29,28,29,28,26,29,28,27,26,29,27,26,29,29,27,26,28,27,29,27,26,29,29,27,28,28,28,27,28,29,28,28,28,29,29,29,29,29,29,29,29,28,28,29,28,27,28,28,28,28,29,28,27,28,27,27,27,28,28,27,27,28,28,28,28,28,28,28,27,28,26,27,26,26,27,25,25,25,24,24,24,25,24,26,25,25,26,26,26,26,27,27,25,27,28,27,26,28,26,28,28,29,28,29,28,29,29,28,27,28,27,27,27,28,28,27,27,28,28,26,28,28,27,28,28,27,27,28,27,26,27,27,25,26,27,25,24,26,25,26,27,26,27,28,28,27,27,27,28,28,27,27,27,26,27,27,28,28,27,27,27,28,27,28,27,27,27,28,28,28,28,28,28,28,28,29,28,29,29,29,29,29,29,28,29,28,29,28,28,29,29,28,29,29,30,29,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,28,29,29,28,28,27,28,26,27,28,28,28,29,27,28,26,28,25,25,25,26,27,25,25,27,26,25,27,27,26,26,27,27,26,27,24,24,24,24,22,26,25,26,25,26,26,26,26,27,27,28,27,27,27,28,26,27,28,26,27,28,28,26,25,26,24,25,24,24,24,25,25,22,23,24,22,23,22,20,18,18,18,15,18,22,21,19,23,23,24,22,24,24,24,24,25,23,24,23,24,22,23,23,21,23,25,24,24,25,27,26,27,26,27,27,28,28,27,28,28,27,28,28,28,27,28,26,27,28,27,29,28,29,29,28,28,29,28,28,28,28,28,27,28,27,27,27,27,27,27,28,28,28,28,28,29,28,29,28,29,29,29,29,28,29,28,28,27,28,27,26,28,27,26,26,27,26,26,25,25,24,25,24,24,24,24,25,24,26,24,26,26,26,27,26,26,26,27,27,28,28,28,28,29,29,28,28,29,28,29,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,28,27,28,28,27,27,26,27,26,26,27,26,26,25,27,27,27,26,26,28,26,28,27,28,29,29,29,29,29,28,29,28,28,27,29,28,27,28,28,28,27,28,29,27,25,27,26,27,27,28,28,28,28,29,28,28,28,27,28,28,29,28,28,29,28,28,28,29,28,28,28,28,29,28,28,27,29,28,27,27,29,28,27,28,28,26,28,28,26,27,27,28,28,27,27,28,27,27,29,27,27,28,28,27,26,28,29,27,28,26,27,25,26,26,27,27,26,26,26,26,27,26,27,26,27,26,27,27,26,22,25,27,22,21,25,25,19,24,24,21,18,23,22,19,20,21,20,19,16,15,14,14,14,11,11,14,12,11,10,9,10,9,9,9,8,8,7,7,6,5,5,4,3,3,3,3,2,2,2,1,1,0,1,1,1,1,1,2,2,2,2,3,4,5,6,7,8,8,8,9,9],[24,24,24,24,25,26,27,27,26,27,26,26,27,26,28,27,27,26,27,28,27,27,29,28,28,29,28,28,29,29,28,29,29,30,29,29,29,29,29,29,30,29,29,29,29,30,29,29,29,29,29,29,28,29,29,29,29,29,29,29,28,27,28,28,29,28,28,29,28,29,29,28,29,29,29,29,28,28,29,29,29,28,29,29,29,29,29,29,30,29,29,28,29,29,28,29,29,28,29,29,29,29,28,29,28,28,29,28,28,28,27,28,28,28,28,28,28,28,29,28,28,28,29,28,28,29,29,29,29,29,28,29,28,26,28,28,28,28,29,29,29,29,29,29,29,29,28,29,29,29,29,29,29,29,29,28,29,28,28,27,28,29,28,28,28,28,27,28,29,29,28,29,29,29,28,29,28,29,29,28,29,28,26,29,29,26,26,29,27,25,28,29,26,26,28,27,28,28,27,29,29,28,28,29,29,29,29,29,29,29,29,29,29,29,29,27,29,29,28,28,29,29,28,29,29,29,28,29,29,29,27,28,28,28,28,28,29,27,27,28,28,28,28,29,29,28,27,28,27,27,26,26,27,24,23,26,25,24,22,24,25,27,26,24,26,27,24,26,27,27,25,27,28,26,26,28,27,27,28,29,27,29,27,29,29,27,27,29,28,26,27,29,29,26,28,28,28,25,28,29,27,28,28,26,28,28,27,26,27,27,25,26,26,25,23,25,24,27,27,26,27,28,28,27,28,28,28,28,28,28,28,27,28,28,29,29,29,29,29,29,29,28,29,29,28,29,28,29,29,29,29,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,28,29,29,29,29,28,27,27,27,27,27,28,28,28,28,27,28,26,26,24,25,22,26,26,25,25,26,25,24,27,26,25,26,27,27,25,27,23,24,24,25,23,26,25,26,25,26,25,26,25,28,27,28,25,27,27,28,26,27,29,25,27,27,28,26,26,25,25,25,23,23,24,24,22,24,22,22,22,23,22,19,20,18,18,16,18,21,20,17,22,21,22,23,23,25,26,24,24,23,24,22,23,25,23,21,22,25,25,24,25,26,26,26,27,27,26,26,29,28,27,29,29,28,29,29,28,29,29,28,28,29,27,28,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,28,28,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,27,29,29,27,26,28,28,24,24,26,26,23,23,25,25,22,23,21,24,24,22,23,25,25,24,24,26,25,26,27,26,27,26,27,28,28,28,28,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,28,29,28,29,29,29,29,29,29,29,28,28,27,28,27,27,28,27,28,27,28,29,28,27,28,28,27,29,29,28,29,29,29,29,29,29,29,29,29,28,28,28,27,26,27,27,27,24,27,26,25,23,25,24,25,27,24,25,27,27,26,28,28,27,27,28,28,27,28,29,29,28,28,29,28,28,28,28,29,28,28,27,29,28,27,26,28,27,25,27,28,25,25,28,27,26,27,27,27,27,28,28,28,28,29,28,28,28,27,27,27,28,28,27,27,25,27,25,26,26,25,27,26,25,27,25,28,26,25,25,25,25,25,26,24,24,24,22,23,22,23,23,22,22,22,22,20,22,21,19,19,21,20,18,16,15,13,14,13,11,11,14,12,12,10,10,11,11,11,11,8,8,8,8,6,6,5,4,3,3,3,3,2,2,2,2,1,1,0,1,1,1,1,1,2,2,2,2,4,5,5,7,7,7,7,8,8],[24,25,25,26,25,26,28,28,26,28,26,27,28,27,28,28,28,29,27,29,28,28,29,29,28,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,29,29,29,29,28,28,29,29,28,28,28,28,29,29,29,28,28,29,27,29,28,28,28,28,28,29,29,28,29,29,29,29,29,29,29,30,29,29,29,29,29,30,30,30,29,30,29,29,30,30,29,29,30,30,30,29,29,29,29,29,29,30,30,29,30,29,30,30,28,29,30,29,29,29,30,29,28,29,30,28,27,28,29,30,28,30,30,29,29,30,29,29,30,30,29,29,30,30,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,29,28,29,29,28,29,28,27,29,29,27,27,29,28,27,28,28,27,26,29,28,30,29,27,29,30,28,27,28,30,29,30,28,29,29,30,29,28,30,29,28,29,29,29,28,29,29,29,28,29,29,28,28,29,29,27,28,28,28,29,29,28,29,29,29,28,28,27,29,28,27,26,28,27,27,26,27,27,25,25,26,26,26,24,24,25,27,26,24,25,28,25,25,27,27,23,26,28,27,26,28,26,27,29,29,27,29,28,29,29,28,28,29,28,27,26,28,27,27,27,28,26,26,27,28,26,28,27,25,27,28,26,24,27,26,25,25,27,25,23,25,25,27,28,26,27,27,27,26,28,28,28,28,28,29,28,28,28,29,28,29,29,29,29,30,29,28,29,29,29,29,29,30,29,29,30,30,29,29,30,29,30,29,30,29,28,29,29,28,28,29,29,29,28,29,29,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,28,29,29,28,29,28,27,28,28,28,28,29,28,28,27,28,27,25,26,25,24,24,27,27,25,25,27,27,26,26,27,27,26,26,27,26,25,23,23,24,24,23,26,25,26,25,26,26,27,26,27,27,28,27,28,28,27,26,28,29,26,26,27,27,26,26,25,23,24,24,24,25,24,24,24,22,21,22,23,21,19,17,17,16,17,19,22,21,18,21,21,22,23,23,23,25,24,24,23,26,24,22,24,23,22,23,23,24,24,25,24,25,26,27,28,26,26,29,28,27,29,29,28,29,29,28,29,29,28,28,29,27,27,29,28,29,29,28,29,29,29,30,30,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,30,29,28,29,29,29,29,29,29,29,27,28,28,27,27,28,27,25,25,25,24,24,24,24,25,23,23,23,23,24,24,23,26,25,24,23,27,26,26,26,26,27,27,27,27,28,28,29,29,29,29,29,30,28,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28,28,29,29,29,29,29,29,28,28,28,29,29,29,28,29,28,29,29,29,29,28,29,29,28,28,29,26,27,28,27,25,26,26,25,25,24,25,26,26,27,26,26,27,26,25,26,27,26,28,29,29,28,29,29,29,29,29,29,28,28,28,28,29,29,28,27,29,29,25,27,29,27,25,25,28,26,26,28,27,29,27,28,28,28,28,29,29,29,29,29,29,29,28,29,28,28,27,26,27,25,28,26,26,27,26,29,27,26,27,26,27,25,25,24,25,25,25,23,24,22,24,23,21,24,24,22,22,23,21,20,20,22,20,18,20,21,19,19,18,17,14,14,12,11,10,13,10,10,10,8,9,8,9,9,7,7,8,7,6,5,4,4,3,3,3,3,2,2,2,1,1,1,1,0,1,1,1,1,1,1,2,2,3,3,4,5,6,5,6,7,7],[24,24,25,25,25,26,26,27,27,27,27,27,28,27,28,28,28,28,28,29,28,28,29,29,29,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,29,29,29,29,28,27,28,28,28,27,27,29,28,28,29,28,28,28,28,28,28,28,28,29,29,29,29,30,29,28,29,29,29,29,28,28,29,29,28,29,29,28,28,29,29,28,29,29,28,29,29,29,28,28,28,28,28,29,28,28,28,29,29,29,29,29,29,29,29,29,29,30,29,28,29,29,29,27,28,29,29,28,29,29,29,29,28,29,29,29,29,29,29,29,29,29,29,28,28,28,28,28,27,28,28,28,28,29,28,29,28,28,28,29,29,29,28,29,29,29,29,29,29,28,29,28,27,29,30,27,28,29,28,26,28,29,28,26,28,28,29,28,27,29,29,28,27,28,29,28,29,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,27,28,28,28,28,28,28,28,28,29,28,28,28,29,28,28,27,29,27,27,27,27,27,26,26,25,25,25,25,25,25,27,26,25,25,28,27,26,28,28,26,26,29,27,27,28,27,27,29,28,28,29,28,29,29,28,28,29,29,27,27,29,28,27,27,28,28,26,28,29,27,28,28,28,28,28,26,26,27,26,25,27,27,25,25,26,26,26,27,26,27,28,28,27,28,28,28,28,28,28,28,27,28,28,28,28,28,28,28,29,29,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,30,30,29,29,30,29,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,29,29,29,29,29,28,28,28,28,28,28,28,28,28,28,27,28,25,27,27,26,25,27,27,25,26,27,27,26,27,27,26,26,27,27,27,26,25,24,25,23,23,26,25,25,27,25,27,27,26,28,27,29,27,28,28,29,27,27,29,27,26,27,28,25,26,26,26,25,26,26,25,26,26,24,23,24,23,24,24,20,19,18,17,17,21,22,22,20,23,23,24,24,24,24,26,25,25,24,25,25,23,24,24,24,23,24,25,25,24,26,27,26,27,28,28,26,29,28,28,29,29,28,28,28,28,27,28,26,27,28,27,28,28,29,28,29,28,29,28,28,29,28,27,28,28,28,26,26,27,28,27,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,28,29,28,28,27,28,27,26,27,26,26,27,26,25,25,25,24,25,24,26,26,24,26,27,26,26,27,27,27,27,27,28,28,28,29,28,28,28,29,28,29,29,28,29,28,28,29,29,29,29,28,29,28,28,29,28,29,29,29,28,28,28,28,28,28,26,26,27,27,28,26,26,27,26,27,27,26,26,27,26,28,27,28,29,28,29,29,29,29,29,29,28,28,29,29,27,28,28,28,27,28,28,26,26,26,27,27,28,28,27,28,27,27,27,29,27,28,28,28,29,28,28,28,29,28,28,29,28,28,28,28,29,28,28,28,29,29,27,28,29,27,26,28,28,26,28,28,28,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,26,27,26,27,26,27,26,27,27,26,26,26,26,26,27,27,25,26,24,26,27,25,22,25,26,21,22,25,26,19,24,24,21,18,23,22,18,20,21,21,19,16,17,14,14,13,12,12,14,12,12,11,10,10,10,9,10,9,8,8,8,6,6,4,4,3,3,3,3,2,2,2,1,1,1,1,1,0,1,1,1,1,1,2,2,3,4,5,5,7,7,7,7,8],[24,23,24,25,25,26,27,26,26,26,26,26,27,26,28,27,28,27,27,28,27,28,29,28,28,29,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,29,30,29,30,30,30,30,30,29,29,29,30,29,29,30,29,29,29,29,28,29,28,28,28,28,29,28,29,29,29,29,29,29,29,29,28,29,29,29,29,29,30,30,29,29,29,30,30,29,28,29,29,28,28,29,29,28,29,29,29,28,29,28,28,28,28,28,27,28,27,28,29,28,29,28,28,29,28,29,29,29,28,28,29,28,29,29,29,27,29,29,26,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,29,27,28,27,28,29,28,28,29,29,29,28,29,29,28,29,30,29,29,29,29,29,29,28,29,29,28,29,29,28,27,29,29,27,29,30,28,27,29,27,28,29,28,28,29,28,28,28,29,27,29,29,29,29,29,29,29,30,29,29,30,30,29,29,29,30,29,29,29,29,29,29,29,29,28,29,28,29,28,28,29,28,27,29,29,29,29,29,29,28,28,29,28,28,27,28,28,27,26,27,25,24,24,26,26,28,27,26,27,28,27,27,29,28,26,28,29,28,27,28,27,29,29,29,29,29,29,30,30,29,29,29,29,28,29,30,29,28,29,29,29,27,28,29,28,29,28,28,28,29,28,27,28,28,26,27,28,26,25,25,26,27,28,26,28,28,29,27,29,28,29,29,29,28,28,27,29,28,29,29,29,28,29,29,29,28,29,29,29,29,29,29,29,29,29,29,30,30,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,29,29,29,29,30,29,30,29,29,29,30,29,29,29,29,29,29,29,29,29,28,29,28,28,28,28,29,29,29,29,28,28,27,27,26,25,24,26,26,25,26,27,26,25,27,27,25,25,27,27,25,26,23,25,22,24,22,26,26,26,24,26,25,25,26,26,28,28,25,28,28,27,26,28,29,27,27,29,28,26,26,26,26,26,25,25,25,26,26,25,24,25,23,24,24,21,18,18,19,17,19,23,23,20,25,24,25,24,24,25,27,26,25,25,26,24,24,24,25,24,23,25,27,23,25,26,27,26,28,28,28,28,29,29,28,29,29,28,29,29,29,29,29,28,28,28,27,29,29,29,30,29,29,30,29,29,29,28,29,28,28,28,29,28,29,29,29,29,29,29,29,29,30,29,29,29,30,30,30,29,29,30,29,29,29,29,28,27,28,28,27,27,27,27,26,26,26,26,24,25,23,25,26,24,24,27,26,25,26,28,26,26,28,26,28,28,27,29,29,28,29,29,29,28,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,28,28,27,28,27,27,28,27,28,26,27,29,28,27,28,28,27,29,28,29,30,29,30,29,30,29,29,30,29,29,29,29,27,29,29,27,28,27,27,27,26,26,26,24,27,28,25,26,28,28,27,29,28,29,28,28,29,29,29,30,29,29,29,30,29,29,29,29,30,30,29,28,30,29,28,28,29,28,27,28,28,26,26,28,25,27,27,28,29,29,29,29,28,28,29,28,28,29,28,28,28,29,29,27,28,26,27,25,27,25,27,28,26,26,25,26,26,25,26,24,25,23,24,27,24,22,25,27,21,21,25,25,21,24,25,23,19,25,24,21,21,23,22,20,18,16,14,15,15,11,11,15,14,14,11,11,12,11,11,11,9,9,8,8,6,6,5,5,4,3,4,3,3,2,2,2,1,1,1,1,1,0,1,1,1,2,2,2,3,4,4,6,6,6,7,8,8],[25,24,25,26,25,27,28,27,27,28,26,26,28,27,28,28,28,28,28,29,28,28,29,29,28,29,29,29,29,30,29,30,29,30,29,30,29,30,29,29,30,29,29,30,30,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,28,29,29,28,29,28,29,29,28,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,30,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,30,28,29,29,29,29,29,29,28,30,29,28,29,29,29,29,29,30,29,29,29,30,29,29,29,29,29,29,30,29,29,29,29,29,29,28,28,28,29,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,28,27,29,29,27,27,29,28,27,28,29,28,26,29,28,29,29,27,29,29,28,28,29,30,30,30,28,29,29,30,29,28,30,29,28,29,29,29,28,29,30,29,28,29,30,28,29,29,29,28,29,28,29,29,29,29,29,28,28,29,29,28,29,28,29,28,29,28,28,28,27,27,26,24,27,26,25,22,25,25,27,26,24,27,28,25,26,28,27,24,26,28,27,26,28,27,28,29,29,28,29,28,29,30,28,28,29,28,27,28,29,28,26,28,28,28,26,28,29,28,28,28,26,28,28,27,26,27,27,25,26,27,25,23,24,24,27,27,27,27,28,28,27,28,28,28,28,28,28,27,28,28,28,29,29,29,29,29,29,29,28,29,29,29,29,30,30,29,29,29,29,30,29,29,29,29,29,30,29,29,29,29,28,29,29,29,29,29,29,29,29,30,30,29,30,30,30,29,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,30,29,30,30,29,30,30,29,29,29,29,29,28,28,28,29,28,28,28,27,28,27,28,27,26,26,24,24,23,26,26,23,24,27,25,24,26,26,25,25,27,27,26,26,24,24,25,23,21,24,25,26,25,26,26,27,25,27,27,28,25,27,28,28,25,27,29,25,26,28,27,26,26,24,24,26,23,23,25,25,22,23,23,22,22,22,22,19,19,18,17,17,19,22,22,18,22,21,23,24,23,25,26,24,23,25,25,22,22,25,25,22,22,24,25,24,25,24,25,25,28,28,26,27,29,28,27,29,29,28,29,29,28,30,29,29,29,29,28,28,29,28,29,29,29,29,29,29,30,30,29,28,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,29,29,29,29,29,27,28,29,28,26,28,28,25,24,27,26,24,24,25,25,22,23,20,24,25,21,22,25,25,24,24,26,25,26,27,25,27,25,26,27,28,27,28,29,28,29,29,29,29,29,29,28,28,30,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,28,28,28,28,29,29,29,28,28,29,28,28,28,28,29,29,29,28,29,29,29,29,29,29,29,29,29,28,28,28,27,27,27,27,26,24,26,27,24,23,25,24,25,27,24,24,27,27,26,28,28,27,28,29,28,27,29,29,28,28,29,29,28,28,28,28,29,28,28,27,29,28,27,26,28,27,24,26,28,25,25,27,27,28,27,27,27,28,28,28,29,28,28,27,28,28,27,27,28,28,27,27,27,25,27,26,26,27,26,27,27,25,26,24,27,27,25,26,24,25,25,25,24,23,25,24,22,22,24,24,21,21,23,21,20,22,22,20,21,21,20,18,18,16,14,14,13,11,11,14,13,13,11,11,13,12,11,13,10,9,8,10,8,7,6,6,4,4,4,3,3,2,3,2,2,2,1,1,1,1,0,1,1,2,2,2,3,4,4,6,6,5,6,7,8],[25,26,26,26,27,27,28,28,27,28,27,27,28,27,28,28,29,28,28,29,28,28,29,29,28,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,28,28,28,28,28,28,29,27,28,27,28,28,28,28,28,29,28,28,28,29,28,28,29,28,29,29,29,29,28,28,29,29,28,29,30,29,29,30,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,30,28,29,29,28,29,28,29,29,28,29,30,28,27,28,28,30,28,30,30,29,29,29,29,28,29,29,29,28,29,29,29,29,28,29,28,29,29,28,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,29,29,28,29,29,28,29,28,27,29,29,26,27,28,28,26,27,28,27,27,29,28,29,28,27,28,29,28,27,29,30,30,29,28,29,28,29,29,28,29,29,28,28,29,29,27,28,29,27,27,28,28,27,28,28,28,27,29,29,28,29,29,28,28,28,29,29,28,28,28,28,28,27,28,27,27,26,27,26,25,25,25,26,25,23,25,25,26,24,24,24,27,24,25,26,26,25,25,27,26,26,27,27,28,28,28,27,28,26,29,29,27,27,28,27,26,27,28,26,25,27,27,26,24,27,28,27,28,28,26,27,27,25,25,26,26,25,26,26,24,21,23,23,25,27,26,27,27,27,26,28,27,27,27,27,28,27,27,28,28,28,28,28,29,29,29,29,29,29,30,29,29,29,30,29,29,30,30,30,30,30,30,30,29,30,29,28,29,29,28,28,29,28,29,28,29,29,29,29,29,29,29,29,30,29,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,29,29,30,29,30,30,30,30,30,29,29,29,29,29,29,29,29,29,29,29,28,27,28,28,27,27,28,26,28,26,27,27,25,25,25,22,23,26,25,24,23,25,25,24,25,24,24,24,25,25,24,24,23,23,23,24,21,24,24,24,24,24,25,25,25,26,25,27,26,26,26,27,25,26,28,25,24,26,26,25,25,23,24,23,24,23,23,24,23,22,22,21,21,21,21,18,17,16,15,17,18,21,19,18,21,21,23,24,22,23,25,23,23,22,24,23,22,23,22,22,22,22,22,25,23,24,23,25,26,26,25,26,28,27,26,29,28,27,28,28,28,29,29,29,28,28,27,27,28,28,28,29,28,28,28,29,29,29,28,29,29,29,29,28,28,28,28,29,28,29,29,28,29,29,28,28,29,29,28,28,28,28,29,26,27,28,26,25,27,26,24,24,24,25,23,24,23,24,22,22,21,24,24,22,22,23,24,24,24,25,24,25,26,24,25,23,26,26,27,27,28,28,28,28,28,29,28,28,29,28,28,28,29,28,29,28,28,28,28,29,29,28,28,28,29,28,29,28,28,28,28,29,28,28,28,29,28,28,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,26,28,28,26,25,26,25,23,24,24,24,25,23,23,25,25,25,24,24,26,26,25,26,27,25,28,28,28,27,28,29,28,27,28,28,28,27,27,27,28,28,27,26,28,27,26,25,28,26,24,26,26,24,25,26,26,27,26,27,26,28,27,28,27,28,28,26,27,28,26,27,27,27,26,26,26,26,26,25,25,25,26,26,27,25,26,25,25,25,24,26,25,24,25,25,23,24,25,23,21,23,24,23,21,21,22,20,19,21,21,18,19,21,21,18,18,17,15,15,13,11,11,14,12,12,10,11,10,11,10,12,10,8,8,10,8,8,5,6,4,4,5,4,3,3,3,2,2,2,2,1,1,1,1,0,1,2,2,2,3,4,5,6,8,6,6,7,8],[24,23,25,24,25,26,26,26,26,26,26,27,27,25,26,26,27,27,26,28,27,27,28,28,27,29,28,28,29,29,28,29,29,29,29,30,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,28,29,28,28,29,29,28,28,28,28,28,28,28,28,28,28,29,28,28,28,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,28,28,29,28,28,29,29,29,29,29,29,29,28,29,28,29,29,29,29,28,28,29,29,29,29,29,29,29,29,29,29,28,28,29,28,29,28,29,29,28,28,29,28,26,27,27,28,28,29,29,28,28,29,28,29,29,29,29,28,29,29,28,29,28,28,28,29,28,28,28,28,29,29,29,28,29,29,29,28,29,29,28,27,28,29,28,28,29,28,27,28,27,24,28,28,24,26,28,27,24,26,27,25,26,27,26,28,27,25,27,28,28,27,27,28,27,28,28,28,28,28,28,28,29,28,28,28,29,28,28,28,29,28,27,28,28,27,27,28,27,26,27,28,28,28,29,28,28,28,29,28,28,28,28,27,27,27,27,26,26,26,26,25,25,24,24,23,23,24,24,23,26,25,24,24,26,24,25,26,25,24,25,27,25,25,27,25,27,28,28,27,28,27,28,28,27,27,28,27,26,27,27,27,25,26,26,26,25,26,27,26,27,27,25,26,27,25,25,26,26,26,25,25,26,22,26,25,26,27,24,26,26,26,25,27,26,26,26,27,27,27,27,28,28,28,29,29,28,28,28,29,28,28,29,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,28,29,28,28,27,28,28,28,28,28,28,28,29,30,29,28,29,29,29,29,29,29,29,29,29,29,30,30,30,29,30,29,30,29,29,29,28,29,29,29,29,29,29,29,28,29,29,29,29,29,29,29,29,28,28,28,27,27,27,26,27,28,26,27,27,27,26,26,24,25,24,23,25,24,24,23,26,25,24,24,24,24,24,25,24,24,23,23,20,21,22,20,24,23,23,24,24,24,25,26,27,26,27,26,27,27,27,26,27,27,26,24,26,26,24,25,25,24,24,25,24,25,25,23,24,23,23,22,23,21,20,18,18,16,17,18,21,21,21,23,23,23,24,24,23,25,23,24,23,24,24,22,22,22,23,23,23,24,23,22,24,25,24,26,26,26,24,28,28,26,28,28,27,28,27,28,27,28,25,27,27,26,28,27,28,27,28,27,28,28,28,29,28,26,28,27,27,27,27,28,28,28,29,28,28,28,28,28,28,29,27,28,28,28,28,28,28,28,27,27,27,27,27,26,26,26,25,25,25,26,25,23,24,24,23,24,23,23,24,23,24,24,23,23,26,24,25,26,24,26,27,26,28,27,28,28,27,27,27,28,27,28,28,29,28,28,29,29,29,28,28,28,28,29,29,29,29,29,28,28,29,28,28,27,27,28,27,28,26,27,27,27,28,27,27,28,28,27,28,28,28,29,28,28,28,28,27,28,28,28,26,28,27,27,26,27,25,26,26,25,25,25,25,24,24,27,26,25,26,26,26,25,28,26,27,28,28,28,28,27,28,28,28,28,28,28,28,27,27,27,28,27,27,28,27,26,26,28,26,24,27,26,25,26,27,26,26,26,28,27,26,28,28,26,28,28,28,27,28,28,27,27,27,26,26,26,25,26,25,25,26,27,26,26,25,24,25,24,25,24,23,23,23,25,23,23,20,23,24,19,21,21,22,18,21,21,21,17,21,20,18,21,21,20,19,17,17,15,16,13,12,11,13,14,12,11,11,11,10,9,12,11,8,9,10,8,7,5,6,4,4,5,4,3,3,4,2,2,2,2,2,1,2,1,1,0,1,1,2,3,4,5,5,7,6,6,7,8],[24,24,25,25,25,26,27,27,26,27,26,26,27,26,28,27,28,28,28,29,28,28,30,29,28,29,29,29,29,29,29,30,29,30,30,30,29,30,30,30,30,29,29,29,30,30,30,30,29,30,29,29,29,29,29,29,29,29,29,28,28,28,28,28,28,27,28,28,28,28,28,28,28,28,28,28,28,27,28,28,29,28,29,29,29,28,29,28,29,29,28,27,29,28,27,28,28,28,28,28,28,28,28,28,28,28,29,28,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,28,28,29,28,26,26,28,27,28,28,28,29,28,28,28,29,29,28,28,29,28,28,29,28,27,28,27,28,27,27,26,28,28,28,28,28,28,27,27,28,28,28,28,29,28,28,28,29,29,28,28,29,28,27,29,28,28,27,28,28,27,28,28,28,27,28,27,28,27,28,29,29,28,28,28,29,28,28,29,28,28,29,28,29,29,28,29,29,28,28,29,28,29,29,28,28,29,29,28,28,29,28,27,28,27,27,28,28,27,28,28,28,28,28,28,28,28,28,28,27,27,26,27,27,26,25,26,25,24,24,25,25,26,26,25,26,27,25,26,27,27,26,27,28,27,27,28,27,28,28,28,28,28,28,29,29,28,28,28,28,27,27,28,28,27,27,27,28,26,27,28,27,28,28,27,27,28,27,26,27,27,25,27,27,26,24,26,26,26,28,26,27,28,28,27,28,27,28,28,28,27,27,27,28,28,28,28,28,28,28,29,28,28,28,29,28,29,28,29,29,29,29,29,29,29,30,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,30,30,29,29,29,29,30,29,29,29,29,29,29,29,29,28,28,27,28,27,28,27,28,28,28,28,28,28,26,26,26,26,25,26,26,25,25,26,24,25,26,26,24,26,26,25,25,25,23,24,24,23,21,25,25,25,24,25,26,26,25,27,27,28,27,27,28,27,26,27,28,27,26,27,27,25,26,26,25,26,26,24,26,25,25,25,23,25,23,23,24,22,19,18,18,18,21,22,22,21,24,24,24,24,24,25,25,25,25,24,25,24,23,23,24,24,22,23,25,24,24,26,27,26,28,27,27,27,29,28,28,28,28,28,28,28,28,28,29,27,28,28,28,29,28,29,28,28,28,28,28,28,29,28,27,27,28,27,26,27,28,27,26,28,27,28,28,29,28,29,29,28,29,29,29,29,29,29,28,28,28,28,28,27,27,27,26,26,26,26,26,26,25,25,25,25,24,23,25,24,24,26,26,25,26,27,26,26,27,25,27,28,28,28,28,28,29,29,28,28,29,28,29,28,29,28,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,27,26,26,26,27,26,27,26,26,27,27,26,27,27,27,28,27,28,28,29,29,28,29,28,29,28,28,28,29,28,27,28,28,28,27,27,28,27,26,27,27,26,27,28,26,28,28,27,27,29,28,27,28,28,29,29,28,28,28,28,28,28,27,27,28,28,28,28,28,28,29,28,27,28,29,27,27,27,28,26,27,28,27,28,27,28,29,28,28,27,27,27,29,28,27,28,28,28,27,28,28,27,27,27,27,26,27,26,27,27,26,26,26,27,26,26,26,26,26,26,26,26,25,23,25,26,22,22,25,25,20,24,24,22,19,24,23,21,21,22,20,21,17,17,16,15,16,12,11,15,14,13,11,12,11,11,10,12,11,9,8,10,7,7,6,6,4,4,5,4,3,3,4,3,2,2,3,2,2,2,3,1,1,0,1,2,3,4,5,6,7,7,6,6,8],[25,25,25,26,26,27,28,27,27,27,27,26,28,27,28,28,29,28,28,29,29,28,29,29,29,29,29,29,29,29,29,30,29,30,29,29,29,29,30,30,29,29,29,29,29,30,30,29,30,29,29,29,29,30,29,29,29,30,29,29,29,28,29,28,29,29,29,29,28,29,30,29,29,29,30,29,30,29,29,29,29,29,30,30,30,30,30,30,30,30,29,29,30,30,29,30,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,30,29,29,28,29,30,29,29,30,29,28,30,29,27,28,29,29,29,29,29,30,30,29,29,30,30,29,30,30,30,30,30,30,29,29,29,30,29,29,28,29,29,29,29,29,29,29,29,29,29,30,29,30,30,29,30,29,29,29,28,30,29,28,29,30,28,28,29,29,28,29,29,29,28,29,28,29,29,28,29,30,29,29,29,30,29,29,30,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,29,30,30,29,30,30,29,29,29,29,29,29,29,29,29,28,28,30,29,29,29,29,29,29,29,28,28,28,28,28,27,26,27,27,26,25,26,26,28,28,26,28,29,27,28,29,28,27,28,30,28,27,29,28,30,29,30,30,30,29,30,30,30,30,30,29,29,29,30,29,28,29,29,29,28,29,29,29,29,29,28,29,29,28,28,28,28,26,28,28,26,25,26,26,27,28,27,28,29,29,28,29,29,29,29,29,29,29,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,28,28,28,28,28,28,29,29,29,29,29,29,27,27,26,25,23,26,26,24,24,27,24,25,26,26,24,26,27,28,25,26,23,24,23,24,23,25,26,26,25,26,25,26,25,27,28,29,25,27,28,28,25,28,29,26,26,28,28,26,27,24,26,26,25,24,25,26,24,23,25,23,22,22,23,23,22,20,20,19,21,23,23,21,24,24,24,24,25,26,27,26,24,25,27,25,24,25,26,24,23,25,26,24,26,27,27,26,29,29,28,29,30,29,28,29,29,29,30,29,29,29,29,28,29,29,29,29,30,30,30,30,30,30,30,30,30,29,30,29,30,29,29,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,27,29,29,27,27,28,28,27,25,26,26,25,24,23,25,27,23,24,27,27,24,26,28,26,27,28,27,29,27,27,29,29,29,30,30,30,29,30,29,30,30,30,29,30,30,29,29,30,29,29,29,29,30,29,30,30,29,29,30,29,29,28,29,28,28,29,28,29,28,28,30,29,28,29,29,29,29,29,29,30,29,30,30,30,30,30,30,30,29,29,30,29,28,28,28,28,27,28,28,26,24,26,25,27,28,26,25,29,28,27,29,29,29,29,29,29,29,30,30,30,29,29,30,29,29,29,29,30,29,30,28,30,29,29,28,29,28,26,27,28,25,25,28,26,28,28,29,29,29,29,29,29,29,30,29,29,29,29,28,29,29,29,28,28,27,28,26,27,26,27,29,27,26,27,26,28,28,25,27,25,25,25,26,25,24,25,25,24,23,25,25,23,22,24,22,21,23,23,22,23,23,22,22,19,18,16,17,16,14,14,18,16,17,14,14,15,14,14,14,13,12,10,11,10,9,9,8,6,7,7,6,5,5,6,5,4,4,4,4,3,4,4,4,3,1,0,1,3,4,5,6,7,7,7,8,8],[26,26,27,27,27,28,28,28,28,28,27,27,28,26,27,28,28,29,28,29,29,29,30,29,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,29,30,30,30,29,29,29,30,29,29,30,29,30,30,29,30,29,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,30,30,29,29,30,30,30,29,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,29,30,30,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,29,30,30,28,29,30,29,28,30,29,28,28,30,29,30,29,29,30,30,29,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,29,29,30,29,30,30,30,29,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,29,30,29,29,29,28,28,28,27,28,29,27,26,27,27,29,28,27,28,29,27,27,29,29,27,28,30,28,28,29,28,29,30,29,29,29,29,30,30,30,29,30,29,28,29,30,29,28,29,29,29,27,29,29,29,29,30,28,30,29,28,27,29,28,26,28,29,27,25,26,26,28,29,28,29,29,29,29,29,29,30,29,29,29,29,28,29,29,29,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,29,29,30,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,29,29,29,29,28,29,29,29,29,29,29,28,29,27,27,26,28,27,26,27,28,27,26,28,27,27,27,27,27,25,25,24,25,25,25,23,25,27,27,26,26,27,26,26,27,28,27,27,28,28,29,27,29,29,27,27,28,29,26,28,26,28,27,26,26,27,27,25,25,26,24,23,23,24,21,20,20,19,19,21,24,22,22,23,25,25,26,26,27,28,27,26,26,28,25,25,27,26,24,24,26,25,26,27,28,27,28,29,29,29,29,30,29,29,30,30,29,29,29,29,30,30,29,29,29,29,29,29,29,29,30,29,30,30,30,30,30,30,29,30,30,30,29,30,30,29,30,30,29,30,29,30,30,30,29,30,30,30,30,30,30,30,29,30,29,29,28,29,29,27,27,29,28,26,27,28,27,25,25,24,26,28,26,26,27,27,27,26,28,27,28,28,28,28,27,29,29,29,29,30,30,30,30,30,29,29,30,30,29,29,30,30,30,29,30,30,29,30,30,30,30,30,30,29,29,30,30,29,29,29,29,29,30,30,29,30,30,30,30,29,29,29,30,29,29,30,30,30,29,29,30,30,29,30,29,30,30,29,28,29,29,27,27,28,28,27,27,28,27,28,29,27,27,29,29,28,30,29,29,29,29,30,29,30,30,30,29,29,29,29,29,29,29,29,30,30,29,30,29,29,29,30,29,28,29,30,28,28,29,28,29,29,29,29,30,29,29,30,29,30,29,29,29,28,29,29,29,29,29,29,29,29,28,28,28,29,29,29,27,28,27,28,27,28,27,28,26,26,27,26,24,26,26,23,22,25,26,21,22,25,24,20,25,25,22,22,25,24,23,21,20,19,19,17,15,16,17,17,16,16,16,15,17,14,17,17,12,13,15,13,13,10,11,8,8,10,8,8,7,8,6,6,5,5,5,4,3,4,5,3,2,1,0,1,3,4,4,6,5,5,6,7],[25,25,25,26,26,27,28,27,26,27,27,27,28,27,28,28,29,28,28,29,28,29,30,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,28,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,29,30,29,30,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,26,28,28,27,26,28,28,29,29,27,29,29,29,29,30,29,28,29,30,30,28,30,29,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,29,30,30,30,28,30,30,30,30,30,29,30,30,29,28,29,29,27,28,28,27,25,26,26,27,29,28,29,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,29,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,29,28,28,27,27,25,24,28,26,24,26,28,25,25,27,27,26,26,27,28,26,26,23,24,23,24,22,24,26,25,24,26,27,27,25,27,28,29,25,27,29,27,25,28,29,27,27,29,29,26,28,25,27,27,26,25,26,27,25,24,26,25,24,23,24,25,22,21,22,20,21,22,24,24,25,26,26,25,26,27,28,27,26,27,28,26,26,27,27,25,24,27,27,26,27,28,28,27,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,28,28,29,28,27,27,27,27,25,25,24,26,27,25,25,28,27,27,26,28,27,27,29,28,29,28,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,30,29,30,29,29,30,30,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,29,28,26,26,27,27,28,29,28,29,29,29,28,30,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,29,27,29,29,26,28,29,28,29,29,30,29,30,30,30,30,30,30,29,30,30,29,29,30,30,29,29,29,27,28,27,27,28,28,30,28,26,28,27,28,28,26,27,27,26,26,26,26,24,25,27,26,25,25,26,25,22,25,24,22,24,24,24,23,24,24,23,22,20,19,18,19,16,16,18,18,17,16,17,16,18,16,18,17,14,14,16,14,13,14,12,12,11,12,11,9,11,12,8,10,7,5,7,6,5,4,4,4,4,2,1,0,1,3,3,5,5,4,5,6],[26,26,26,27,27,28,29,28,28,29,28,28,28,28,29,29,29,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,29,29,29,29,30,30,30,29,30,29,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,29,30,30,28,29,30,29,28,29,29,28,28,29,29,29,29,29,29,30,29,29,29,30,29,30,29,30,29,30,30,30,30,30,29,30,30,30,30,30,30,30,29,30,30,29,30,30,30,29,29,29,30,30,30,30,30,30,30,29,30,30,30,29,29,30,29,29,29,29,28,28,28,27,28,28,27,27,27,27,28,28,27,28,29,27,28,29,28,28,29,29,29,28,29,28,29,30,29,29,30,29,30,30,30,29,30,29,29,29,30,29,28,29,29,29,28,29,30,29,30,30,28,29,29,28,28,29,29,27,28,28,28,27,28,27,28,29,28,28,29,29,29,29,29,30,29,29,29,29,29,29,29,29,29,30,29,30,29,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,30,30,29,30,29,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,28,29,29,28,29,30,29,29,29,29,29,28,28,28,27,26,28,27,26,27,28,26,26,27,26,25,26,27,26,25,25,24,25,25,24,24,25,27,26,26,27,26,27,27,27,28,28,27,28,28,29,27,28,30,28,28,28,28,27,27,27,27,27,26,28,27,27,27,27,27,25,26,26,25,26,22,23,21,21,23,25,25,25,27,27,27,27,27,28,29,28,27,28,28,26,27,28,27,26,26,26,27,27,27,27,28,28,29,28,28,28,30,29,29,29,29,29,29,29,29,29,30,29,29,29,28,29,29,29,29,29,29,30,30,30,30,30,29,29,30,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,28,29,29,28,28,28,28,27,27,27,26,27,26,25,27,26,28,26,26,26,27,27,28,28,27,28,27,29,28,29,29,29,29,30,29,29,30,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,30,29,29,30,30,30,30,30,30,30,30,30,29,29,30,29,29,29,28,28,28,29,28,26,27,28,27,28,28,28,28,29,29,29,29,29,29,29,29,30,29,30,30,30,29,30,30,29,29,30,29,30,30,30,29,30,30,29,29,30,29,27,28,29,28,29,29,29,29,28,30,30,30,29,29,29,29,30,29,29,29,29,29,29,29,29,29,29,28,28,27,28,28,28,29,28,28,28,28,27,27,27,26,28,26,27,27,27,24,27,27,26,24,26,27,24,24,25,25,22,25,26,23,24,26,25,24,24,23,21,21,19,18,16,18,20,18,17,18,16,18,17,20,20,15,16,20,17,18,14,16,13,14,16,14,12,13,15,11,10,8,9,8,8,6,7,7,5,5,4,3,1,0,1,3,4,4,4,5,5],[26,26,27,28,27,28,29,28,28,28,28,27,28,27,28,28,28,28,28,29,28,29,30,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,31,30,30,30,30,30,30,30,29,30,30,30,30,30,30,31,31,30,31,30,31,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,30,30,31,30,31,30,30,30,30,30,30,29,30,31,30,29,30,30,29,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,31,30,30,31,31,30,30,31,30,31,31,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,30,30,30,29,30,30,28,28,28,29,29,28,27,28,28,30,29,28,29,30,28,29,30,30,28,29,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,28,30,30,30,30,30,28,30,30,28,28,29,29,27,28,29,27,26,26,27,28,29,28,29,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,30,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,28,29,28,27,27,29,28,26,27,29,27,27,28,29,27,28,29,29,26,28,25,26,25,26,26,26,28,27,26,28,27,28,27,29,29,30,28,28,30,29,27,29,30,29,27,29,29,27,28,26,29,28,27,27,26,27,26,26,26,26,26,25,24,26,23,22,23,21,22,23,25,23,24,25,25,27,27,28,28,28,26,27,28,26,27,28,27,26,27,28,26,26,27,28,28,28,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,28,28,28,29,28,27,28,27,26,26,26,27,28,26,26,28,28,27,28,29,28,28,29,29,29,28,29,30,30,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,31,31,31,30,30,30,30,30,29,30,29,28,29,30,29,27,28,29,28,29,29,28,29,30,30,29,30,30,30,30,30,30,30,31,30,31,31,30,30,30,30,30,30,31,31,30,30,31,31,29,30,31,30,28,30,30,28,29,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,29,30,28,29,28,28,29,29,30,30,28,29,28,29,29,28,28,28,27,27,28,28,25,28,28,27,25,27,28,25,24,27,25,24,24,25,23,24,24,24,23,21,21,20,18,19,18,17,19,18,17,19,18,17,18,17,19,18,17,17,18,18,18,15,17,14,14,15,14,13,12,15,12,11,10,8,8,8,7,6,6,6,5,5,3,2,1,0,1,3,6,3,3,4],[26,26,26,26,27,27,27,28,28,28,27,27,28,28,28,28,28,29,28,29,29,29,30,29,29,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,29,29,29,29,29,30,30,30,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,30,30,30,30,30,30,30,29,29,30,30,30,30,30,30,30,30,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,29,29,29,29,29,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,28,29,30,30,28,30,29,29,28,29,29,29,29,29,29,30,29,29,29,29,29,29,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,28,29,29,28,28,27,28,28,27,27,27,27,29,28,27,28,29,28,28,30,29,28,28,30,29,28,29,28,29,29,29,30,30,30,30,30,30,29,30,30,29,29,30,30,28,30,30,29,28,29,30,29,29,29,28,29,29,28,28,29,28,27,28,27,27,25,27,27,28,28,28,28,29,29,28,30,29,30,29,29,30,30,29,29,30,29,30,30,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,29,29,29,29,29,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,29,29,30,30,29,30,29,30,28,28,28,26,25,27,27,26,27,27,25,25,27,26,26,25,27,27,26,26,25,23,24,23,23,25,26,26,25,27,27,26,26,28,27,29,26,26,29,27,25,28,29,28,27,28,28,27,27,26,27,27,27,27,27,28,27,26,27,26,26,25,25,26,21,21,20,22,21,23,25,24,26,26,26,26,27,27,28,28,26,26,28,26,26,27,27,26,26,27,27,26,26,26,28,28,28,28,28,27,30,29,29,29,30,29,30,29,29,29,29,28,29,29,28,30,29,30,30,29,29,30,29,30,30,30,29,29,29,29,29,29,29,29,29,29,29,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,29,30,29,28,29,29,27,28,27,28,28,27,27,27,26,26,25,26,27,27,25,27,27,27,28,29,28,27,28,28,28,29,29,29,29,29,29,30,30,29,29,29,30,29,29,29,30,30,30,29,30,29,30,30,29,30,30,30,30,30,29,30,30,30,28,28,28,28,29,29,29,29,28,29,29,28,29,29,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,29,29,28,27,28,28,27,29,29,28,28,29,29,28,30,28,28,29,28,29,29,29,29,30,30,29,30,29,30,30,30,30,29,30,29,30,30,28,29,30,29,28,29,29,27,28,29,29,29,28,29,29,29,28,29,29,29,30,29,29,30,30,30,29,29,30,29,29,28,28,27,29,28,29,29,27,28,27,27,27,26,27,26,28,26,26,26,25,24,26,27,24,23,26,26,23,24,27,24,21,25,27,22,24,25,24,23,22,21,20,19,19,18,16,19,19,19,19,18,17,17,17,18,19,16,16,19,17,18,15,17,15,13,15,14,15,14,16,13,13,11,10,10,8,7,7,7,6,5,5,4,3,1,1,0,1,2,2,3,3],[26,26,26,27,27,28,28,28,28,28,27,28,28,28,28,28,29,28,28,29,28,28,30,29,28,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,28,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,28,30,30,29,30,30,29,28,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,28,27,28,28,26,25,27,28,29,29,28,28,30,28,28,30,29,27,28,30,29,28,30,28,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,29,29,30,30,29,30,30,29,30,30,29,28,29,28,28,29,29,28,26,27,27,28,29,28,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,30,29,29,30,29,30,29,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,29,29,28,28,28,27,25,28,27,26,26,28,26,25,27,26,26,27,29,28,27,27,25,26,25,25,24,26,26,26,27,27,27,28,25,29,29,29,26,28,29,28,27,29,29,28,27,29,29,27,29,27,28,27,27,27,27,28,26,26,26,25,26,25,25,26,21,20,23,20,21,24,24,24,26,26,27,27,27,27,28,27,28,27,28,27,27,28,27,26,25,26,28,25,26,27,27,27,28,29,29,28,30,30,29,30,30,30,30,30,30,30,30,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,28,29,29,27,27,29,28,27,28,28,27,27,27,25,27,28,27,26,28,27,27,26,28,27,26,28,27,29,28,28,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,30,29,30,29,29,30,30,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,28,29,29,29,28,28,29,27,28,28,26,29,29,28,28,29,29,28,29,30,28,29,30,30,30,30,30,30,30,30,31,30,30,30,30,30,31,30,29,30,30,29,29,30,29,27,29,29,27,28,29,29,30,29,30,30,30,30,30,30,30,30,29,30,30,29,30,30,30,29,29,29,28,29,27,28,29,28,29,29,28,28,27,27,27,27,28,27,27,26,26,26,26,26,27,25,25,25,26,26,24,26,24,24,25,25,24,25,25,25,24,24,22,20,20,19,17,16,19,19,19,17,19,18,19,16,20,19,15,16,18,17,17,14,17,14,15,15,15,14,12,13,13,13,11,12,10,9,8,7,7,7,7,6,5,4,3,2,1,0,1,2,3,3],[26,27,26,27,27,28,28,28,28,28,27,27,28,27,28,28,28,28,28,29,29,28,29,29,29,29,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,29,29,30,30,30,30,30,30,29,29,30,30,30,30,30,30,29,30,30,30,28,29,29,29,29,29,29,29,29,30,29,29,29,29,29,29,29,29,30,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,29,29,30,29,28,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,29,29,30,29,28,30,30,28,28,30,30,28,29,30,28,28,29,29,30,29,29,30,30,29,30,30,30,30,30,29,30,29,30,30,30,30,29,30,30,30,30,30,30,30,30,29,30,30,29,30,30,29,28,29,29,29,29,30,29,29,29,29,30,29,29,29,30,28,28,29,28,26,27,28,26,25,26,27,28,26,25,26,25,28,26,25,28,29,25,27,29,28,26,28,29,28,28,29,28,29,29,29,29,29,29,29,30,29,29,30,29,28,29,30,29,26,29,29,27,25,28,29,28,29,28,27,28,28,26,27,27,27,26,27,27,25,25,27,26,27,27,27,27,29,28,27,29,29,29,29,29,29,29,29,29,30,29,30,30,30,30,30,29,30,30,30,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,29,30,29,29,29,29,29,29,30,29,29,29,29,30,29,29,29,29,30,29,29,29,30,30,29,30,30,30,30,30,30,30,29,30,29,30,29,29,29,30,30,30,30,30,29,29,30,30,30,30,29,30,30,29,29,29,28,29,29,29,29,29,29,29,29,28,29,28,28,27,26,25,28,27,25,26,28,27,26,28,28,27,26,28,28,26,26,24,27,25,26,25,25,27,26,26,27,27,27,27,28,28,29,28,28,29,29,26,28,29,28,27,28,28,27,28,26,28,27,26,27,27,27,25,26,26,25,25,24,24,24,21,19,22,18,19,23,22,22,24,24,24,25,25,25,27,25,25,24,27,25,23,25,25,23,24,26,25,26,27,26,26,27,28,28,28,28,30,29,29,29,30,29,29,30,29,29,30,29,30,29,29,30,29,30,29,30,29,30,29,30,30,30,29,30,30,30,30,29,30,30,29,29,30,30,30,30,30,30,30,29,29,29,30,30,30,30,30,28,29,29,28,27,28,28,25,26,26,26,25,26,26,26,25,25,24,24,26,26,25,26,26,26,25,27,26,27,27,28,27,27,28,28,29,29,30,30,30,29,29,30,30,29,30,30,30,30,30,30,29,29,30,29,29,30,30,30,30,30,30,30,30,30,29,29,29,29,29,30,29,29,30,29,29,29,29,29,29,29,29,29,29,30,29,29,30,30,30,30,30,29,29,29,28,27,28,28,26,27,28,28,27,28,28,27,27,28,28,28,29,29,28,29,29,28,29,29,30,29,30,29,30,29,29,30,29,29,30,29,30,30,29,28,30,29,28,28,30,28,27,28,29,27,28,29,29,29,29,30,29,29,29,30,30,29,30,29,30,30,28,29,29,29,29,28,29,27,28,27,27,29,29,29,29,28,28,27,28,28,27,27,28,27,27,28,27,25,27,28,25,24,26,27,23,24,25,25,23,24,24,21,23,23,24,23,22,22,21,19,19,19,16,18,18,16,16,18,16,16,16,18,18,15,15,18,17,18,15,18,15,15,17,15,15,15,15,14,13,13,13,11,9,8,9,7,7,8,7,5,5,4,3,2,1,0,1,3,2],[26,26,27,27,27,28,29,28,28,28,27,28,28,28,29,28,28,29,28,29,29,29,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,29,29,29,29,30,30,29,30,29,29,28,29,29,29,29,30,30,30,30,29,30,30,30,30,29,29,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,29,29,30,30,28,29,30,29,28,29,29,28,28,29,29,30,29,28,30,30,29,29,30,30,29,29,29,30,29,29,30,29,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,30,28,29,29,29,30,30,30,30,30,30,29,29,29,30,29,29,28,29,28,28,28,28,27,28,27,26,27,26,27,26,26,28,28,26,27,29,26,27,29,28,26,27,29,28,27,29,27,29,29,29,29,29,29,29,30,29,29,30,29,28,28,29,29,27,29,29,28,27,29,29,28,29,28,28,28,28,27,27,28,28,27,28,28,27,26,28,27,27,28,28,29,29,28,28,29,29,29,29,29,29,29,29,29,30,29,29,30,29,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,30,29,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,31,31,31,30,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,30,30,30,30,28,30,29,29,29,30,29,28,28,28,28,26,28,27,27,26,28,27,26,27,27,26,25,27,26,26,26,27,26,26,25,23,26,25,24,23,26,26,26,27,25,26,27,27,27,27,28,28,27,27,28,26,28,29,28,27,27,28,27,27,27,28,27,27,27,27,27,27,26,26,26,26,26,26,26,20,20,23,21,22,24,24,25,26,27,27,28,27,27,27,27,27,26,28,26,26,27,26,26,26,26,27,27,26,26,27,27,27,28,27,27,29,29,29,29,29,29,28,29,29,28,29,28,29,29,28,29,29,30,29,30,29,30,29,29,30,30,29,29,30,29,29,29,29,29,29,29,29,30,30,29,30,29,30,29,29,30,30,30,29,29,30,28,29,29,28,28,28,28,27,27,26,27,27,26,26,26,27,27,25,26,26,27,26,26,27,27,26,28,27,26,26,26,27,28,28,28,29,29,29,29,29,29,29,29,30,30,29,29,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,30,29,29,29,29,30,30,29,29,30,29,30,29,30,30,30,30,30,30,30,30,30,29,29,29,29,28,28,28,28,27,28,28,27,27,27,28,27,28,28,28,28,28,28,28,29,27,28,29,29,29,29,29,29,30,30,29,30,29,29,29,29,30,30,29,28,30,29,28,28,30,28,27,28,28,28,29,28,29,29,28,29,29,29,29,29,29,29,30,30,29,29,29,29,29,29,28,28,29,27,28,27,27,28,28,28,28,28,28,27,27,26,27,26,27,27,26,27,26,24,26,27,26,24,26,27,25,24,26,26,23,26,26,23,26,26,26,26,24,24,22,20,20,20,16,19,19,19,16,18,16,17,18,21,19,16,17,21,17,20,15,19,16,16,19,17,15,16,17,15,16,15,14,12,11,10,9,8,7,8,8,6,6,4,3,3,2,1,0,1,2],[25,26,26,27,26,27,28,28,27,28,27,28,28,27,28,27,28,28,28,29,28,28,29,29,28,29,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,28,29,30,30,29,29,30,29,28,30,29,30,29,29,29,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,29,28,29,29,29,28,28,28,28,27,27,28,28,28,28,28,28,29,27,29,29,29,28,28,29,29,27,28,27,29,29,30,29,30,30,30,30,30,29,30,30,28,29,30,30,28,30,29,28,28,29,30,29,30,29,28,29,29,28,28,29,29,27,28,28,28,26,27,27,28,28,28,29,29,29,29,29,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,29,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,30,29,29,29,29,29,28,27,28,27,26,28,27,27,27,27,25,27,28,26,27,28,28,27,28,27,27,26,26,25,23,27,27,27,28,26,28,28,26,28,28,29,27,27,28,28,26,28,29,27,27,28,29,27,28,27,28,27,27,27,27,28,27,27,27,26,27,26,27,26,21,22,24,22,22,24,25,25,27,27,26,28,27,28,28,27,27,27,28,27,27,28,27,26,26,26,28,26,26,27,28,27,28,28,28,27,30,29,29,29,29,29,30,29,30,29,29,28,29,29,28,29,29,30,30,30,30,30,29,30,30,30,29,30,29,30,30,29,30,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,29,29,28,28,28,28,27,27,28,27,27,27,26,27,27,28,26,27,27,27,27,28,27,26,28,26,28,28,28,28,29,29,28,29,30,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,29,29,29,29,29,29,29,29,29,30,30,30,29,29,30,30,30,30,30,30,30,30,30,29,29,30,29,28,29,29,28,28,28,28,28,28,28,27,28,29,27,28,28,28,28,29,28,29,29,29,30,29,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,29,28,29,30,28,27,28,28,27,28,28,28,29,29,29,29,30,29,29,30,30,30,29,30,30,29,30,30,29,29,29,29,27,28,27,28,28,28,29,28,28,28,28,28,28,27,27,27,26,27,27,26,26,27,27,26,25,27,27,26,27,27,26,25,26,26,25,26,26,26,25,23,23,22,20,22,20,19,20,19,20,18,19,18,19,19,20,20,17,16,20,19,19,16,19,16,18,19,17,16,16,16,14,16,14,14,13,11,12,11,9,9,9,9,7,7,6,4,4,4,2,1,0,1],[26,27,27,28,28,28,29,28,28,28,28,28,28,28,29,28,29,28,28,29,28,28,29,29,29,29,29,29,30,29,29,30,29,30,30,29,29,29,30,29,30,30,29,29,29,30,29,29,29,30,29,30,30,30,30,29,30,30,30,30,29,29,30,30,30,30,30,30,30,30,31,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,31,30,31,31,30,30,30,30,30,30,30,30,30,30,30,30,30,31,30,31,30,30,30,30,30,30,31,31,31,31,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,31,29,30,30,29,29,29,29,28,28,28,29,29,28,28,28,27,29,28,27,29,30,27,29,30,29,28,29,30,29,29,30,29,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,27,30,30,29,27,29,30,29,30,30,29,29,30,29,28,29,29,27,28,29,28,26,27,27,28,29,28,29,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,29,29,29,29,29,29,29,29,30,29,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,30,30,29,29,29,29,30,30,30,29,30,28,29,29,28,28,28,27,27,29,27,27,27,28,26,27,28,28,27,28,29,28,27,28,26,27,25,26,24,26,27,27,27,27,27,28,26,29,28,29,27,28,29,29,26,29,29,27,26,29,29,27,29,26,29,28,28,27,26,28,27,26,27,27,27,24,27,27,20,20,26,20,23,25,26,26,27,27,26,27,26,28,28,27,25,27,28,27,26,28,28,27,27,28,27,27,28,28,28,28,29,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,30,28,27,29,29,28,28,28,28,27,27,28,28,28,28,27,28,28,28,28,29,28,28,29,29,28,28,29,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,29,29,29,29,28,28,29,29,28,29,28,28,29,29,28,29,29,29,29,30,30,29,29,30,30,29,30,30,30,30,30,30,30,30,30,30,30,30,30,29,30,30,29,29,30,29,27,29,29,27,28,29,30,29,30,30,29,30,30,30,31,30,30,29,30,30,29,29,30,30,29,28,29,27,28,27,27,29,29,29,29,27,29,28,30,28,27,29,28,28,28,28,29,27,29,29,27,26,28,28,26,28,27,27,26,26,27,27,28,26,26,26,25,25,23,21,23,23,20,21,21,21,19,19,19,19,19,21,21,18,18,20,21,21,18,23,19,23,22,22,20,18,19,18,17,15,16,17,13,14,16,13,11,11,12,10,9,7,6,6,4,4,3,1,0]],"max_predicted_aligned_error":31.75}]
\ No newline at end of file
index 74a149b..8cba8ab 100644 (file)
@@ -16,7 +16,6 @@ import jalview.datamodel.Alignment;
 import jalview.datamodel.AlignmentI;
 import jalview.datamodel.Sequence;
 import jalview.datamodel.SequenceI;
-import jalview.gui.AlignFrame;
 import jalview.gui.Desktop;
 import jalview.gui.JvOptionPane;
 import jalview.structure.StructureMapping;
@@ -36,11 +35,13 @@ public class EBIAlphaFoldTest
   @DataProvider(name = "getExamplePAEfiles")
   public Object[][] getExamplePAEfiles()
   {
-    return new String[][] { {
-        "examples/test_fab41.result/test_fab41_predicted_aligned_error_v1.json" },
+    return new String[][] {
+        //
+        { "examples/test_fab41.result/test_fab41_predicted_aligned_error_v1.json" },
         { "examples/AlphaFold/AF-A0A1U8FD60-F1-predicted_aligned_error_v4.json" },
         { "examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4.json" },
-        { "examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4_2023.json" } };
+        //
+    };
   }
 
   @Test(groups = { "Functional" }, dataProvider = "getExamplePAEfiles")
@@ -66,10 +67,8 @@ public class EBIAlphaFoldTest
       FileAssert.assertFile(new File(paeFile),
               "Test file '" + paeFile + "' doesn't seem to exist");
     }
-    SequenceI seq = new Sequence("Dummy/1-2000",
-            "ASDASDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
+    SequenceI seq = new Sequence("Dummy/1-2000", "ASDASDA");
     AlignmentI al = new Alignment(new SequenceI[] { seq });
-    AlignFrame af = new AlignFrame(al, seq.getLength(), 1);
     StructureSelectionManager ssm = StructureSelectionManager
             .getStructureSelectionManager(Desktop.instance);
     StructureMapping sm = new StructureMapping(seq, pdbFile, null, null,
@@ -86,7 +85,7 @@ public class EBIAlphaFoldTest
               "Import of '" + paeFile + "' didn't complete successfully");
     } catch (IOException | ParseException e)
     {
-      e.printStackTrace();
+      Assert.fail("Exception importing paefile '" + paeFile + "'", e);
     }
   }
 
@@ -99,13 +98,11 @@ public class EBIAlphaFoldTest
          */
         { "examples/test_fab41.result/test_fab41_unrelaxed_rank_1_model_3.pdb",
             "examples/test_fab41.result/test_fab41_unrelaxed_rank_1_model_3_scores.json" },
-        /*
         { "examples/AlphaFold/AF-A0A1U8FD60-F1-model_v4.pdb",
             "examples/AlphaFold/AF-A0A1U8FD60-F1-predicted_aligned_error_v4.json" },
         { "examples/AlphaFold/AF-Q5VSL9-F1-model_v4.pdb",
             "examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4.json" },
-        { "examples/AlphaFold/AF-Q5VSL9-F1-model_v4.pdb",
-            "examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4_2023.json" },
+        /*
          */
     };
   }