using System;
public class Program
{
public static void Main()
for (int x = 0; x < 10; x++)
int a = (x * 10) + 7;
for (int y = 0; y < 10; y++)
int b = (y * 10) + 9;
int c = a * b;
int d1 = c / 1000;
int d2 = (c / 100) % 10;
int d3 = (c / 10) % 10;
int d4 = c % 10;
if (d1 == d2)
if (d3 == 3)
if (d4 == 3)
Console.Write("X=");
Console.WriteLine(x);
Console.Write("Y=");
Console.WriteLine(y);
Console.Write("Total=");
Console.WriteLine(c);
Console.WriteLine("----------");
}