import kotlin.math.* fun main() { println(55 - readLine()!!.split(" ").map(String::toInt).sum()) }