Imports System.Collections.Generic
Imports System.Console
Imports System.Math

Module Program
    Sub Main()
        Dim A As Long = NextLong()
        Dim B As Long = NextLong()
        Dim C As Long = NextLong()

        Dim S As Long = Min(A, Min(B, C))
        Dim L As Long = Max(A, Max(B, C))
        Dim M As Long = A + B + C - S - L

        Dim ans As Long = (L Mod 2) * S * M
        WriteLine(ans)
    End Sub

    Function NextLong() As Long
        Return CLng(NextString())
    End Function

    Function NextString() As String
        Dim result As New List(Of Char)
        Do
            Dim tmp As Integer = Read()
            If tmp < 0 Then Exit Do
            Dim nextChar As Char = Chr(tmp)

            If Not Char.IsWhiteSpace(nextChar) Then
                result.Add(nextChar)
            ElseIf nextChar <> vbCr Then
                Exit Do
            End If
        Loop
        Return New String(result.ToArray())
    End Function

End Module
