package Ġio . github . to mpl um . a oc . solutions Ċ Ċ import Ġio . github . to mpl um . libs . solutions . Solution Ċ import Ġio . github . to mpl um . a oc . is land . room . Door Ċ import Ġio . github . to mpl um . a oc . is land . room . Handshake Decrypt er Ċ import Ġio . github . to mpl um . a oc . is land . room . Room Key Ċ import Ġio . github . to mpl um . libs . input . Day Ċ import Ġio . github . to mpl um . libs . input . Input Reader Ċ Ċ class ĠDay 2 5 : ĠSolution < Long , ĠString > Ġ{ ĊĠĠĠ Ġprivate Ġval Ġinput Ġ= ĠInput Reader . read < Long >( Day ( 2 5 )). value ĊĊĠĠĠ Ġoverride Ġfun Ġpart 1 (): ĠLong Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdevices Ġ= ĠPair ( Room Key ( input [ 0 ]), ĠDoor ( input [ 1 ])) ĊĠĠĠĠĠĠĠ Ġreturn ĠHand shake Decrypt er ( devices ). get Encryption Key () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġpart 2 (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ" 4 9 ĠSt ars " ĊĠĠĠ Ġ} Ċ }