
import java.util.Scanner
object Main extends App{
  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))
}
