/*#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int h,k,sum=0;
scanf("%d %d",&h,&k);
if(k%2==0)
{
sum=k*5;
}
else
{
sum=k/2+1;
}
if(h%2==0)
{
sum=sum+h*5;
}
else
{
sum=sum+h/2+1;
}
printf("%d",sum);
}
/*
k money
1 1
2 10
3 2
4 20
5 3
6 30
k ?? ==> money
*/
#include <stdio.h>
int main()
{
int h,k,i,j;
char d;
scanf("%d %d %c",&h,&k,&d);
if(d=='L')
{
for(i=1;i<=h;i++)
{
for(j=1;j<i;j++)
{
printf(" ");
}
for(j=1;j<=k;j++)
{
printf("*");
}
printf("\n");
}
}
else
{
for()
}
}