using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/*
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
// initialize; flag(target,goal); increase/decrease
int x = Convert.ToInt32(Console.ReadLine());
int s = 0;
for(int i = 1; i<=x; i++)
{
s += i;
}
Console.WriteLine(s);
}
}
}
*/
/*
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int x = Convert.ToInt32(Console.ReadLine());
int s = 0;
for(int i = 1; i<=x; i++)
{
if (i % 2 == 0)
{
s += i;
}
}
Console.WriteLine(s);
}
}
}
*/
/*
namespace ConsolApp1
{
class Program
{
static void Main(string[] args)
{
string x = Console.ReadLine();
string[] y = x.Split(' ');
int a = Convert.ToInt32(y[0]);
int b = Convert.ToInt32(y[1]);
int s = 0;
for(int i = a; i<=b; i++)
{
if(i%3==0)
{
s += i;
}
}
Console.WriteLine(s);
}
}
}
*/
/*
namespace ConsolApp1
{
class Program
{
static void Main(string[] args)
{
int x = Convert.ToInt32(Console.ReadLine());
for(int i = 1; i<=x; i++)
{
if(x%i==0)
{
Console.Write(i + " ");
}
}
}
}
}
*/
/*
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int x = Convert.ToInt32(Console.ReadLine());
int s = 0;
for (int i = 1; i <= x; i++)
{
if(x%i==0)
{
s++;
}
}
if (s == 2)
{
Console.WriteLine("prime");
}
else
{
Console.WriteLine("not prime");
}
}
}
}
*/
/*
namespace ConsoleApp1
{
class Program
{
static void Main(string[]args)
{
string x = Console.ReadLine();
string[] y = x.Split(' ');
int a = Convert.ToInt32(y[0]);
int b = Convert.ToInt32(y[1]);
int s = 1;
for (int i = 0; i<b; i++)
{
s *= a;
}
Console.WriteLine(s);
}
}
}
*/
/*
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
string x = Console.ReadLine();
string[] y = x.Split(' ');
int a = Convert.ToInt32(y[0]);
int b = Convert.ToInt32(y[1]);
int s = 0;
for(int i = a; i<=b; i++)
{
if(i%2==0)
{
s -= i;
}
else
{
s += i;
}
}
Console.WriteLine(s);
}
}
}
*/
namespace ConsoleApp1
{
class Program
{
static void Main(string [] args)
{
string a = Console.ReadLine();
string[] b = a.Split(' ');
int x = Convert.ToInt32(b[0]);
int y = Convert.ToInt32(b[1]);
int s = 0;
for(int i = x; i<=y; i++)
{
if(i%2==0)
{
s -= i;
Console.Write("-"+i);
}
else
{
s += i;
Console.Write("+"+i);
}
}
Console.WriteLine("=" + s);
}
}
}
using System;
/*
namespace ConsoleApp3
{
class Program
{
static void Main(string[] args)
{
int x = Convert.ToInt32(Console.ReadLine());
string str = Console.ReadLine();
string[] data = str.Split(' ');
int[] res = new int[data.Length];
int sum = 0;
for(int i=0; i<x; i++)
{
res[i] = Convert.ToInt32(data[i]);
sum += res[i];
}
Console.WriteLine(sum);
}
}
}
*/
/*
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int x = Convert.ToInt32(Console.ReadLine());
string str = Console.ReadLine();
string[] data = str.Split(' ');
int[] res = new int[data.Length];
int sum = 0;
for(int i = 0; i<data.Length; i++)
{
res[i] = Convert.ToInt32(data[i]);
if(res[i] % 5 == 0)
{
sum += res[i];
}
}
Console.WriteLine(sum);
}
}
}
*/
/*
namespace ConsoleApp1
{
class Program
{
static void Main(string [] args)
{
int x = Convert.ToInt32(Console.ReadLine());
string str = Console.ReadLine();
string[] data = str.Split(' ');
int[] res = new int[data.Length];
int sum = 0;
for (int i = 0; i < data.Length; i++)
{
res[i] = Convert.ToInt32(data[i]);
if(res[i]%2 == 0)
{
sum++;
}
}
Console.WriteLine(sum);
}
}
}
*/
/*
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int x = Convert.ToInt32(Console.ReadLine());
int sum = 0;
for(int i = 1; i<=x; i++)
{
if(i%10==1)
{
sum++;
}
}
Console.WriteLine(sum);
}
}
}
*/
/*
namespace ConsoleApp1
{
class Program
{
static void Main(string [] args)
{
double x = Convert.ToDouble(Console.ReadLine());
int originGold = (int)x;
int y = Convert.ToInt32(Console.ReadLine());
string a = Console.ReadLine();
string[] b = a.Split(' ');
//double[] c = new double[b.Length];
double sum = 0;
for(int i=0; i<y; i++)
{
double c = Convert.ToDouble(b[i]) / 100;
//sum += x + c;
x += (x * c);
}
int afterGold = (int)x;
Console.WriteLine(afterGold - originGold);
}
}
}
*/
namespace ConsolApp1
{
class Program
{
static void Main(string[] args)
{
int x = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i < x; i++)
{
if (x % i == 0)
{
int x1 = i;
int x2 = x / i;
int c1 = 0;
int c2 = 0;
for(int j =1; j<=x1; j++)
{
if(x1 % j == 0)
{
c1++;
}
}
for(int z=1; z<=x2; z++)
{
if(x2 % z == 0)
{
c2++;
}
}
if(c1==2&&c2==2)
{
Console.WriteLine(x1 + " " + x2);
return;
}
}
}
//wrong number
}
}
}