/*
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
//string x = Console.ReadLine();
//int x = Convert.ToInt32(Console.ReadLine()); // charactor 1
//int y = Convert.ToInt32(Console.ReadLine());
string a = Console.ReadLine();
int x = Convert.ToInt32(a);
// 10: 1 > 49, 0 : 48
for (int i = 1; i <= 9; i++)
{
for (int j = x; j <= y; j++)
{
Console.Write(j + " x " + i + " = " + (i * j) + "\t");
}
Console.WriteLine();
}
Console.ReadKey();
}
}
}*/
using System;
namespace Helloworld
{
class Program
{
static void Main(string[] args)
{
string p = Console.ReadLine();
string[] pv = p.Split(' ');
int x = Convert.ToInt32(pv[0]);
int k = Convert.ToInt32(pv[1]);
int s = 0;
/* x = 5
*
* *****
* ** **
* * * *
* ** **
* *****
*
*/
/*
for (int i = 0; i < x; i++)
{
for (int j = 0; j < x; j++)
{
Console.Write("(" + i + "," + j + ")" + "\t");
}
Console.WriteLine();
}*/
for(int i=0; i<x; i++)
{
for(int j=0; j<x; j++)
{
if(i==0 || j==0 || i==x-1 || j==x-1 || (i+j+1)%k==0)
{
Console.Write("*");
}
else
{
Console.Write(" ");
}
}
Console.WriteLine();
}
/*
for(int i=1; i<=x; i++)
{
if(x%i==0)
{
s++;
}
}
if(s==2)
{
}
else
{
}*/
}
}
}
*
***
*****
using System;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
string f = Console.ReadLine();
//int x = Convert.ToInt32(Console.ReadLine());
double x = Convert.ToDouble(f);
double temperature = (double)(x* 9 / 5) + 32;
Console.WriteLine(temperature);
}
}
}
using System;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
string f = Console.ReadLine();
string[] x = f.Split(' ');
int[] ix = new int[x.Length];
// ix 라는 배열을 만들건데, 그 길이가 x의 길이와 같다.
for(int i=0; i<x.Length; i++)
{
ix[i] = Convert.ToInt32(x[i]);
}
Console.WriteLine(ix[0] + ix[1]);
}
}
}
using System;
namespace ConsoleApp2
{
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]);
if(x>y)
{
Console.WriteLine(x-y);
}
else
{
Console.WriteLine(y-x);
}
}
}
}
/*
using System;
namespace helloworld
{
class Program
{
static void Main(string[] args)
{
for(int i=0; i<5; i++)
{
for(int j=i; j<4; j++)
{
Console.Write("_");
}
for (int k = 0; k <= i; k++)
{
Console.Write("*");
}
for (int k = 0; k < i; k++)
{
Console.Write("*");
}
Console.WriteLine();
}
}
}
}
*/
/*
using System;
namespace helloworld
{
class Program
{
static void Main(string[] args)
{
string a = Console.ReadLine();
int x = Convert.ToInt32(a);
for (int i = 0; i < x; i++)
{
for (int j = i; j < x-1; j++)
{
Console.Write(" ");
}
for (int j = 0; j<x; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
}
}
}
*/
using System;
namespace helloworld
{
class Program
{
static void Main(string[] args)
{
string p = Console.ReadLine();
string[] pv = p.Split(' ');
int x = Convert.ToInt32(pv[0]);
int y = Convert.ToInt32(pv[1]);
int z = 0;
//Console.Write(x + " " + y + " " + pv[2]);
for (int i = 0; i <= x - 1; i++)
{
if (pv[2] == "L")
{
for (int j = 0; j < i; j++)
{
Console.Write(" ");
}
}
else
{
for(int j = i; j < x-1; j++)
{
Console.Write(" ");
}
}
for (int k = 0; k <= y; k++)
{
Console.Write("*");
}
Console.WriteLine();
}
}
}
}
*/
/*
using System;
namespace helloworld
{
class Program
{
static void Main(string[] args)
{
string v = Console.ReadLine();
string data = Console.ReadLine();
string[] temp = data.Split(' ');
int[] arr = new int[temp.Length];
for (int i = 0; i<temp.Length; i++)
{
arr[i] = Convert.ToInt32(temp[i]);
}
for(int i = arr.Length-1; i>=0; i--)
{
Console.Write(arr[i] + " ");
}
}
}
}
*/
using System;
namespace helloworld
{
class Program
{
static void Main(string[] args)
{
string data = Console.ReadLine();
string[] temp = data.Split(' ');
int[] arr = new int[temp.Length];
for (int i = 0; i<temp.Length; i++)
{
arr[i] = Convert.ToInt32(temp[i]);
}
for(int i = arr.Length-1; i>=0; i++)
{
arr[i] = Convert.ToInt32(temp[i]);
}
}
}
}