fun main() { println(55 - readLine()!!.split(' ').map { it.toInt() }.sum()) }