# Scala 3 `-language:postfixOps`, 1099 bytes This is a chonky lizard. ```scala @main def m:Unit= val s="""@main def m:Unit= val s=Q%sQ var x=() val Console=scala.Console class main extends annotation.Annotation{val dval=0;def d=printf(s.replace(""+81.toChar,(""+34.toChar)*3),s,s)} return new main()dval x=Console.print("574") @main def n= val s=Q%sQ printf(s.replace(""+81.toChar,(""+34.toChar)*3),s,s) object Console{def print(x:Any)=x}""" var x=() val Console=scala.Console class main extends annotation.Annotation{val dval=0;def d=printf(s.replace(""+81.toChar,(""+34.toChar)*3),s,s)} return new main()dval x=Console.print("574") @main def n= val s="""@main def m:Unit= val s=Q%sQ var x=() val Console=scala.Console class main extends annotation.Annotation{val dval=0;def d=printf(s.replace(""+81.toChar,(""+34.toChar)*3),s,s)} return new main()dval x=Console.print("574") @main def n= val s=Q%sQ printf(s.replace(""+81.toChar,(""+34.toChar)*3),s,s) object Console{def print(x:Any)=x}""" printf(s.replace(""+81.toChar,(""+34.toChar)*3),s,s) object Console{def print(x:Any)=x} ``` `x` is 574. [Try it online!](https://scastie.scala-lang.org/XHCpwReWTnGrZwyjrxQ9tQ) [Try the last n-x bytes online!](https://scastie.scala-lang.org/ivre5vUNTFin2yXXEt004Q) [Try the first x bytes online!](https://scastie.scala-lang.org/KuRcMR5qTWi5D2pz4YsQwQ) I'm sure I've done something silly here and can make it smaller, but it's really hard editing quines and seeing what's wrong, so I'll try golfing it more later. First x bytes (minimized): ```scala @main def m:Unit= val s="""...""" var x=() val Console=scala.Console class main extends annotation.Annotation{val dval=0;def d=printf(s.replace(""+81.toChar,(""+34.toChar)*3),s,s)} return new main()d ``` Last (n-x) bytes (minimized): ```scala val x=Console.print("574") @main def n= val s="""...""" printf(s.replace(""+81.toChar,(""+34.toChar)*3),s,s) object Console{def print(x:Any)=x} ```