Imports System

Public Class Program

    Public Shared Sub Main(args As String())

        Dim s As String = "123"

        s = s.Replace(Console.ReadLine(), "")
        s = s.Replace(Console.ReadLine(), "")

        Console.WriteLine(s)

    End Sub


End Class
