using System;
using System.IO;
namespace test
{
class Program
{
static void Main(string[] args)
{
StreamWriter outbuff = new StreamWriter(Console.OpenStandardOutput());
byte[] buf = new byte[300];
int read = Console.OpenStandardInput().Read(buf, 0, 300),idx=0;
char t;
while (true)
{
t = (char)buf[idx];
if (t == '4' && buf[idx + 1] == '2') break;
outbuff.Write(t);
idx++;
}
outbuff.Flush();
}
}
}