Sri Lanka continued to make painstaking progress on Day 2 of the third and final Test against Pakistan at the Sharjah Cricket Stadium.
Resuming on 220-5, the tourists laboured their way to 428-9 before declaring shortly before the close after batting for 172 overs.
Debutant Dilruwan Perera made 95 and saw the de-facto hosts reach 19-0 in their reply.
Sri Lanka lead the three-match series 1-0 after winning the second Test in Dubai by nine wickets earlier this week.
|Karunaratne||c Y Khan||b Rehman||34||120||93|
|Silva||c Sarfraz Ahmed||b Talha||17||73||46|
|Sangakkara||c Manzoor||b Junaid Khan||52||138||103|
|M Jayawardene||c Azhar Ali||b Ajmal||47||137||108|
|Chandimal||c Shafiq||b Ajmal||11||59||42|
|Mathews||c Shehzad||b Junaid Khan||91||359||256|
|P Jayawardene||c Junaid Khan||b Talha||35||130||77|
|Perera||c Junaid Khan||b Talha||95||304||247|
|Herath||lbw||b Junaid Khan||0||1||1|
|Extras||2nb 0w 5b 11lb||18|
Only 19 had been added to the overnight score when Prasanna Jayawardene hooked Mohammad Talha to Junaid Khan at long leg. The wicketkeeper departed for 35.
In-form Angelo Mathews and Perera saw Sri Lanka through to lunch without further loss, with the captain bringing up his half-century off 157 balls.
Mathews had moved to within nine runs of a third Test century when he sliced Junaid Khan to Ahmed Shehzad at deep point.
Khan then trapped Rangana Herath lbw first ball, but Shaminda Eranga kept out the hat-trick ball and 31-year-old Perera brought up his half-century just before tea off 176 balls.
Dilruwan Perera is now the oldest Test debutant to make a 50+ since Bangladeshi Aminul Islam's 145 vs India at Dhaka in Nov 2000 #PakvSL— Mohandas Menon (@mohanstatsman) January 17, 2014
Perera, the oldest Sri Lankan Test debutant in 31 years, moved to within five runs of a century when he hooked Talha to Khan at long leg.
Eranga was unbeaten on 25 when Mathews called in his batsmen with eight overs remaining, and the Pakistan openers Khurram Manzoor and Ahmed Shehzad saw their side through to the close without loss.