/* package whatever; // don't place package name! */
import java.awt.image.BufferedImage;
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
int[][] r = {
{0xFF, 0xFF, 0xFF, 0xFF},
{0, 0, 0, 0},
{0, 0, 0, 0},
{0xFF, 0xFF, 0xFF, 0xFF},
};
int[][] g = {
{0, 0, 0, 0},
{0xFF, 0xFF, 0xFF, 0xFF},
{0, 0, 0, 0},
{0xFF, 0xFF, 0xFF, 0xFF},
};
int[][] b = {
{0, 0, 0, 0},
{0, 0, 0, 0},
{0xFF, 0xFF, 0xFF, 0xFF},
{0xFF, 0xFF, 0xFF, 0xFF},
};
int width = 4;
int height = 4;
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
int rgb = r[y][x];
rgb = (rgb << 8) + g[y][x];
rgb = (rgb << 8) + b[y][x];
image.setRGB(x, y, rgb);
}
}
// Uncomment to save the image
// File outputFile = new File("/output.bmp");
// ImageIO.write(image, "bmp", outputFile);
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEuYXd0LmltYWdlLkJ1ZmZlcmVkSW1hZ2U7CmltcG9ydCBqYXZhLnV0aWwuKjsKaW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwoKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKICAgICAgCiAgICAgICAgaW50W11bXSByID0gewogICAgICAgICAgICB7MHhGRiwgMHhGRiwgMHhGRiwgMHhGRn0sCiAgICAgICAgICAgIHswLCAwLCAwLCAwfSwKICAgICAgICAgICAgezAsIDAsIDAsIDB9LAogICAgICAgICAgICB7MHhGRiwgMHhGRiwgMHhGRiwgMHhGRn0sCiAgICAgICAgfTsgCiAgICAgICAgaW50W11bXSBnID0gewogICAgICAgICAgICB7MCwgMCwgMCwgMH0sCiAgICAgICAgICAgIHsweEZGLCAweEZGLCAweEZGLCAweEZGfSwKICAgICAgICAgICAgezAsIDAsIDAsIDB9LAogICAgICAgICAgICB7MHhGRiwgMHhGRiwgMHhGRiwgMHhGRn0sCiAgICAgICAgfTsgCiAgICAgICAgaW50W11bXSBiID0gewogICAgICAgICAgICB7MCwgMCwgMCwgMH0sCiAgICAgICAgICAgIHswLCAwLCAwLCAwfSwKICAgICAgICAgICAgezB4RkYsIDB4RkYsIDB4RkYsIDB4RkZ9LAogICAgICAgICAgICB7MHhGRiwgMHhGRiwgMHhGRiwgMHhGRn0sCiAgICAgICAgfTsgCiAgICAgIAogICAgICAgIGludCB3aWR0aCA9IDQ7CiAgICAgICAgaW50IGhlaWdodCA9IDQ7CiAgICAgIAogICAgICAgIEJ1ZmZlcmVkSW1hZ2UgaW1hZ2UgPSBuZXcgQnVmZmVyZWRJbWFnZSh3aWR0aCwgaGVpZ2h0LCBCdWZmZXJlZEltYWdlLlRZUEVfSU5UX1JHQik7IAogICAgICAKICAgICAgICBmb3IgKGludCB5ID0gMDsgeSA8IGhlaWdodDsgeSsrKSB7CiAgICAgICAgICAgIGZvciAoaW50IHggPSAwOyB4IDwgd2lkdGg7IHgrKykgewogICAgICAgICAgICAgICAgaW50IHJnYiA9IHJbeV1beF07CiAgICAgICAgICAgICAgICByZ2IgPSAocmdiIDw8IDgpICsgZ1t5XVt4XTsgCiAgICAgICAgICAgICAgICByZ2IgPSAocmdiIDw8IDgpICsgYlt5XVt4XTsKICAgICAgICAgICAgICAgIGltYWdlLnNldFJHQih4LCB5LCByZ2IpOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAKICAgICAgICAvLyBVbmNvbW1lbnQgIHRvIHNhdmUgdGhlIGltYWdlIAogICAgICAgIC8vIEZpbGUgb3V0cHV0RmlsZSA9IG5ldyBGaWxlKCIvb3V0cHV0LmJtcCIpOwogICAgICAgIC8vIEltYWdlSU8ud3JpdGUoaW1hZ2UsICJibXAiLCBvdXRwdXRGaWxlKTsKICAgIH0KfQ==