using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Baekjoon
{
class Program
{
static void Main(string[] args)
{
string s = Console.ReadLine();
foreach (var c in s)
{
Console.WriteLine((int)c);
}
}
}
}