import scala.math.floor

object Main extends App {
  
  val sc = new java.util.Scanner(System.in)
  val a, b = sc.nextInt()
  val ans = (1 to 100).find(i => floor(i*0.08) == a && floor(i*0.1) == b)
  println(ans.getOrElse("-1"))
}