import java.util.*; import java.util.zip.*; import java.util.List; import java.util.regex.*; import java.util.concurrent.*; import java.util.concurrent.atomic.*; import java.util.concurrent.locks.*; import java.util.function.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.text.*; import javax.swing.table.*; import java.io.*; import java.net.*; import java.lang.reflect.*; import java.lang.ref.*; import java.lang.management.*; import java.security.*; import java.security.spec.*; import java.awt.*; import java.awt.event.*; import java.awt.image.*; import java.awt.geom.*; import javax.imageio.*; import java.math.*; class main { static int ubyteFromBits(boolean b7, boolean b6, boolean b5, boolean b4, boolean b3, boolean b2, boolean b1, boolean b0) { return (b7 ? 1 : 0) << 7 | (b6 ? 1 : 0) << 6 | (b5 ? 1 : 0) << 5 | (b4 ? 1 : 0) << 4 | (b3 ? 1 : 0) << 3 | (b2 ? 1 : 0) << 2 | (b1 ? 1 : 0) << 1 | (b0 ? 1 : 0); }}