#include<dos.h>
#include<conio.h>
#include<math.h>
#include<stdlib.h>
main()
{ int i,j;
int heart[104][121] = {0};
union REGS inregs,outregs;
unsigned char far *buffer = (char far *)0xA0000000L;
for(j = 89;j <= 95;j ++)
heart[0][j] = 1;
for(j = 20;j <= 33;j ++)
heart[1][j] = 1;
for(j = 84;j <= 101;j ++)
heart[1][j] = 1;
for(j = 15;j <= 37;j ++)
heart[2][j] = 1;
for(j = 81;j <= 103;j ++)
heart[2][j] = 1;
for(j = 12;j <= 42;j ++)
heart[3][j] = 1;
for(j = 78;j <= 106;j ++)
heart[3][j] = 1;
for(j = 11;j <= 45;j ++)
heart[4][j] = 1;
for(j = 77;j <= 107;j ++)
heart[4][j] = 1;
for(j = 10;j <= 49;j ++)
heart[5][j] = 1;
for(j = 73;j <= 109;j ++)
heart[5][j] = 1;
for(j = 9;j <= 50;j ++)
heart[6][j] = 1;
for(j = 71;j <= 110;j ++)
heart[6][j] = 1;
for(j = 7;j <= 54;j ++)
heart[7][j] = 1;
for(j = 69;j <= 112;j ++)
heart[7][j] = 1;
for(j = 6;j <= 55;j ++)
heart[8][j] = 1;
for(j = 67;j <= 113;j ++)
heart[8][j] = 1;
for(j = 5;j <= 58;j ++)
heart[9][j] = 1;
for(j = 65;j <= 114;j ++)
heart[9][j] = 1;
for(j = 4;j <= 59;j ++)
heart[10][j] = 1;
for(j = 63;j <= 115;j ++)
heart[10][j] = 1;
for(j = 4;j <= 60;j ++)
heart[11][j] = 1;
for(j = 62;j <= 116;j ++)
heart[11][j] = 1;
for(j = 3;j <= 116;j ++)
heart[12][j] = 1;
for(j = 3;j <= 117;j ++)
heart[13][j] = 1;
for(j = 3;j <= 117;j ++)
heart[14][j] = 1;
for(j = 2;j <= 118;j ++)
heart[15][j] = 1;
for(j = 2;j <= 118;j ++)
heart[16][j] = 1;
for(j = 1;j <= 118;j ++)
heart[17][j] = 1;
for(j = 1;j <= 118;j ++)
heart[18][j] = 1;
for(j = 1;j <= 119;j ++)
heart[19][j] = 1;
for(j = 1;j <= 119;j ++)
heart[20][j] = 1;
for(j = 1;j <= 119;j ++)
heart[21][j] = 1;
for(j = 0;j <= 120;j ++)
heart[22][j] = 1;
for(j = 1;j <= 120;j ++)
heart[23][j] = 1;
for(j = 1;j <= 120;j ++)
heart[24][j] = 1;
for(j = 0;j <= 120;j ++)
heart[25][j] = 1;
for(j = 0;j <= 120;j ++)
heart[26][j] = 1;
for(j = 0;j <= 120;j ++)
heart[27][j] = 1;
for(j = 0;j <= 120;j ++)
heart[28][j] = 1;
for(j = 0;j <= 120;j ++)
heart[29][j] = 1;
for(j = 0;j <= 120;j ++)
heart[30][j] = 1;
for(j = 1;j <= 120;j ++)
heart[31][j] = 1;
for(j = 1;j <= 119;j ++)
heart[32][j] = 1;
for(j = 1;j <= 119;j ++)
heart[33][j] = 1;
for(j = 0;j <= 119;j ++)
heart[34][j] = 1;
for(j = 0;j <= 119;j ++)
heart[35][j] = 1;
for(j = 1;j <= 119;j ++)
heart[36][j] = 1;
for(j = 1;j <= 119;j ++)
heart[37][j] = 1;
for(j = 1;j <= 118;j ++)
heart[38][j] = 1;
for(j = 2;j <= 118;j ++)
heart[39][j] = 1;
for(j = 3;j <= 118;j ++)
heart[40][j] = 1;
for(j = 3;j <= 118;j ++)
heart[41][j] = 1;
for(j = 3;j <= 118;j ++)
heart[42][j] = 1;
for(j = 3;j <= 118;j ++)
heart[43][j] = 1;
for(j = 4;j <= 117;j ++)
heart[44][j] = 1;
for(j = 4;j <= 117;j ++)
heart[45][j] = 1;
for(j = 4;j <= 117;j ++)
heart[46][j] = 1;
for(j = 5;j <= 116;j ++)
heart[47][j] = 1;
for(j = 5;j <= 116;j ++)
heart[48][j] = 1;
for(j = 5;j <= 116;j ++)
heart[49][j] = 1;
for(j = 6;j <= 116;j ++)
heart[50][j] = 1;
for(j = 7;j <= 116;j ++)
heart[51][j] = 1;
for(j = 7;j <= 116;j ++)
heart[52][j] = 1;
for(j = 8;j <= 115;j ++)
heart[53][j] = 1;
for(j = 8;j <= 115;j ++)
heart[54][j] = 1;
for(j = 9;j <= 115;j ++)
heart[55][j] = 1;
for(j = 10;j <= 114;j ++)
heart[56][j] = 1;
for(j = 10;j <= 114;j ++)
heart[57][j] = 1;
for(j = 10;j <= 114;j ++)
heart[58][j] = 1;
for(j = 11;j <= 114;j ++)
heart[59][j] = 1;
for(j = 11;j <= 113;j ++)
heart[60][j] = 1;
for(j = 12;j <= 112;j ++)
heart[61][j] = 1;
for(j = 13;j <= 111;j ++)
heart[62][j] = 1;
for(j = 13;j <= 111;j ++)
heart[63][j] = 1;
for(j = 14;j <= 110;j ++)
heart[64][j] = 1;
for(j = 15;j <= 110;j ++)
heart[65][j] = 1;
for(j = 16;j <= 110;j ++)
heart[66][j] = 1;
for(j = 17;j <= 109;j ++)
heart[67][j] = 1;
for(j = 17;j <= 108;j ++)
heart[68][j] = 1;
for(j = 18;j <= 107;j ++)
heart[69][j] = 1;
for(j = 19;j <= 107;j ++)
heart[70][j] = 1;
for(j = 20;j <= 106;j ++)
heart[71][j] = 1;
for(j = 21;j <= 106;j ++)
heart[72][j] = 1;
for(j = 21;j <= 106