<P> In Hamlet, Rosencrantz and Guildenstern first appear in Act II, Scene 2, where they attempt to place themselves in the confidence of Prince Hamlet, their childhood friend . The smooth and courtly language they employ immediately establishes them as sycophants who are really serving as spies for the corrupt King Claudius, Hamlet's uncle, who usurped the throne and constantly attempts to check his nephew . Hamlet welcomes them as "excellent good friends", but, seeing through their guise, comments that they won't "deal justly" with him about their mission . Realising that he lacks allies except for Horatio, Hamlet gives the speech "What a piece of work is a man" to Rosencrantz and Guildenstern . </P> <P> In Act III, Hamlet drops the pretense of friendship, coldly dismissing the two in Scene 2 by his only use of the royal "we" in the play . To his mother, he comments in Scene 4 that "I will trust (them) as I will adders fang'd". </P> <P> When Hamlet kills Polonius, Claudius recruits Rosencrantz and Guildenstern to escort Hamlet to England, providing them with a letter for the King of England instructing him to have Hamlet killed . (They are apparently unaware of what is in the letter, though Shakespeare never explicitly says so .) Along the journey, the distrustful Hamlet finds and rewrites the letter, instructing the executioner to kill Rosencrantz and Guildenstern instead . When their ship is attacked by pirates, Hamlet returns to Denmark, leaving Rosencrantz and Guildenstern to die; he comments in Act V, Scene 2 that "They are not near my conscience; their defeat / Does by their own insinuation grow". Ambassadors returning later report that "Rosencrantz and Guildenstern are dead ." </P> <P> As agents of the corruption infecting the court, the two contribute to setting up the confrontation between Hamlet and Claudius . Shakespeare expects the audience to appreciate the poetic justice of their deaths: while they are very likely ignorant of the deadly contents of the letter they carry to England and are, to that extent, innocent victims of Hamlet's retaliation, they are seen as having received their just deserts for their participation in Claudius's intrigues . The courtiers always appear as a pair, except in editions following the First Folio text, where Guildenstern enters four lines after Rosencrantz in Act IV, Scene 3 . </P>

What scene does hamlet kill rosencrantz and guildenstern
find me the text answering this question