using System;
namespace ConsoleApplicatioon001230
{
class Program
{
static void Main(string[] args)
{
string s = Console.ReadLine();
Console.WriteLine(s.Length);
int n1 = 0;
int n2 = 0;
char[] ch = s.ToCharArray();
for (int i = 0; i < s.Length; i++)
{
if (ch[i] > 47 && ch[i] < 58)
{
n1 = 1;
Console.Write(ch[i]);
}
}
if (n1 == 0)
Console.WriteLine("-1");
else
{
Console.WriteLine();
}
for (int i = 0; i < s.Length; i++)
{
if (ch[i] >= ‘a’ && ch[i] <= ‘z’ || ch[i] >= ‘A’ && ch[i] < ‘Z’)
{
n2++;
}
}
if (n2 == 0)
Console.WriteLine("-1");
else
{
Console.WriteLine(n2);
for (int i = 0; i < s.Length; i++)
{
if (ch[i] >= 'a' && ch[i] <= 'z' || ch[i] >= 'A' && ch[i] < 'Z')
{
n2++;
Console.Write(i + " ");
}
}
Console.WriteLine();
}
for (int i = 0; i < ch.Length; i++)
{
Console.Write(ch[i]);
}
Console.Write("C#");
Console.ReadKey();
}
}
}