import java.util.Scanner;
class Heart_Shape {
public static void main
(String[] args
) { Scanner scanner
= new Scanner
(System.
in); System.
out.
print("Enter the size of the heart (odd number): "); int size = scanner.nextInt();
if (size % 2 == 0) {
System.
out.
println("Size must be an odd number."); return;
}
for (int i = size / 2; i <= size; i += 2) {
for (int j = 1; j < size - i; j += 2) {
}
for (int j = 1; j <= i; j++) {
}
for (int j = 1; j <= size - i; j++) {
}
for (int j = 1; j <= i; j++) {
}
}
for (int i = size; i >= 1; i--) {
for (int j = i; j < size; j++) {
}
for (int j = 1; j <= (i * 2) - 1; j++) {
}
}
scanner.close();
}
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwpjbGFzcyBIZWFydF9TaGFwZSB7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CiAgICAgICAgU2Nhbm5lciBzY2FubmVyID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKICAgICAgICBTeXN0ZW0ub3V0LnByaW50KCJFbnRlciB0aGUgc2l6ZSBvZiB0aGUgaGVhcnQgKG9kZCBudW1iZXIpOiAiKTsKICAgICAgICBpbnQgc2l6ZSA9IHNjYW5uZXIubmV4dEludCgpOwoKICAgICAgICBpZiAoc2l6ZSAlIDIgPT0gMCkgewogICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oIlNpemUgbXVzdCBiZSBhbiBvZGQgbnVtYmVyLiIpOwogICAgICAgICAgICByZXR1cm47CiAgICAgICAgfQoKICAgICAgICBmb3IgKGludCBpID0gc2l6ZSAvIDI7IGkgPD0gc2l6ZTsgaSArPSAyKSB7CiAgICAgICAgICAgIGZvciAoaW50IGogPSAxOyBqIDwgc2l6ZSAtIGk7IGogKz0gMikgewogICAgICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludCgiICIpOwogICAgICAgICAgICB9CgogICAgICAgICAgICBmb3IgKGludCBqID0gMTsgaiA8PSBpOyBqKyspIHsKICAgICAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnQoIioiKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgZm9yIChpbnQgaiA9IDE7IGogPD0gc2l6ZSAtIGk7IGorKykgewogICAgICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludCgiICIpOwogICAgICAgICAgICB9CgogICAgICAgICAgICBmb3IgKGludCBqID0gMTsgaiA8PSBpOyBqKyspIHsKICAgICAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnQoIioiKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCk7CiAgICAgICAgfQoKICAgICAgICBmb3IgKGludCBpID0gc2l6ZTsgaSA+PSAxOyBpLS0pIHsKICAgICAgICAgICAgZm9yIChpbnQgaiA9IGk7IGogPCBzaXplOyBqKyspIHsKICAgICAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnQoIiAiKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgZm9yIChpbnQgaiA9IDE7IGogPD0gKGkgKiAyKSAtIDE7IGorKykgewogICAgICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludCgiKiIpOwogICAgICAgICAgICB9CgogICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oKTsKICAgICAgICB9CgogICAgICAgIHNjYW5uZXIuY2xvc2UoKTsKICAgIH0KfQo=