
import java.util.Scanner
object a {
  def main(args: Array[String]){
    val sc = new Scanner(System.in)
    
    val n = sc.nextInt()
    val a = sc.nextInt()

    val square = Math.pow(_:Int, 2).asInstanceOf[Int]
    val diff = (_:Int) - (_:Int)

    println(diff(square(n), a))
  }
}
