program color;
var
Y,I,Q:integer;
r1,g1,b1:real;
begin
r1:=255/255;
g1:=140/255;
b1:=0/255;
Y:=Trunc((0.299*r1+0.587*g1+0.114*b1)*255);
I:=Trunc((((0.596*r1-0.275*g1-0.321*b1)+0.596)/1.192)*255);
Q:=Trunc((((0.212*r1-0.523*g1+0.311*b1)+0.523)/1.046)*255);
writeln(Y);
writeln(I);
writeln(Q);
end.
cHJvZ3JhbSBjb2xvcjsKdmFyCiAgIFksSSxROmludGVnZXI7CiAgIHIxLGcxLGIxOnJlYWw7CiAgICBiZWdpbgogICAgICAgcjE6PTI1NS8yNTU7CiAgICAgICBnMTo9MTQwLzI1NTsKICAgICAgIGIxOj0wLzI1NTsKICAgICAgIFk6PVRydW5jKCgwLjI5OSpyMSswLjU4NypnMSswLjExNCpiMSkqMjU1KTsKICAgICAgIEk6PVRydW5jKCgoKDAuNTk2KnIxLTAuMjc1KmcxLTAuMzIxKmIxKSswLjU5NikvMS4xOTIpKjI1NSk7CiAgICAgICBROj1UcnVuYygoKCgwLjIxMipyMS0wLjUyMypnMSswLjMxMSpiMSkrMC41MjMpLzEuMDQ2KSoyNTUpOwogICAgICAgd3JpdGVsbihZKTsKICAgICAgIHdyaXRlbG4oSSk7CiAgICAgICB3cml0ZWxuKFEpOwogICAgZW5kLgogICAgCiAgIA==