fun main(args: Array<String>) {
    val ab = listOf(
        readLine()?.toInt() ?: return,
        readLine()?.toInt() ?: return
    )
    listOf(1, 2, 3).subtract(ab).forEach {
        println(it)
    }
}
