Fiscal Year Ended August 31,
Fiscal Year Ended August 31,
Fiscal Year Ended August 31,
2019
2018
2017
Beginning balance
$256,705
$201,355
$149,898
Additions for tax positions of prior years
20,158
14,465
2,155
Reductions for tax positions of prior years(1)
(106,252)
(21,045)
(12,233)
Additions for tax positions related to current year(2)
35,769
81,866
77,807
Cash settlements
—
(1,659)
(2,298)
Reductions from lapses in statutes of limitations
(2,570)
(7,496)
(10,446)
Reductions from settlements with taxing authorities(3)
(35,582)
(5,928)
(6,061)
Foreign exchange rate adjustment
(3,845)
(4,853)
2,533
Ending balance
$164,383
$256,705
$201,355
Unrecognized tax benefits that would affect the effective tax rate (if recognized)
$93,237
$117,455
$75,223
unrecognized tax benefits .
reconciliation of the unrecognized tax benefits is summarized below -in thousands : .
-1 the reductions for tax positions of prior years for the fiscal year ended august 31 2019 are primarily related to a non-u .
s .
taxing authority ruling related to certain non-u .
s .
net operating loss carry forwards offset with a valuation allowance and the impacts of the tax act .
-2 the additions for the fiscal years ended august 31 2019 and 2018 are primarily related to the impacts of the tax act and taxation of certain intercompany transactions .
the additions for the fiscal year ended august 31 2017 are primarily related to certain non-u .
s .
net operating loss carry forwards previously offset with a valuation allowance that can no longer be recognized due to an internal restructuring .
-3 the reductions from settlements with taxing authorities for the fiscal year ended august 31 2019 are primarily related to the settlement of a u .
s .
audit .
the company recognizes interest and penalties related to unrecognized tax benefits in income tax expense .
the company ’ s accrued interest and penalties were approximately $ 18 .
9 million and $ 20 .
4 million as of august 31 2019 and 2018 respectively .
the company recognized interest and penalties of approximately $ -1 .
5 million $ -6 .
7 million and $ 5 .
2 million during the fiscal years ended august 31 2019 2018 and 2017 respectively .
it is reasonably possible that the august 31 2019 unrecognized tax benefits could decrease during the next 12 months by $ 5 .
8 million primarily related to a state settlement .
the company is no longer subject to u .
s .
federal tax examinations for fiscal years before august 31 2015 .
in major non-u .
s .
and state jurisdictions the company is no longer subject to income tax examinations for fiscal years before august 31 2009 .
the internal revenue service - “ irs ” completed its field examination of the company ’ s tax returns for fiscal years 2009 through 2011 and issued a revenue agent ’ s report - “ rar ” on may 27 2015 which was updated on june 22 2016 .
the irs completed its field examination of the company ’ s tax returns for fiscal years 2012 through 2014 and issued an rar on april 19 2017 .
the proposed adjustments in the rar from both examination periods relate primarily to u .
s .
taxation of certain intercompany transactions .
on may 8 2019 the tax return audits for fiscal years 2009 through 2014 were effectively settled when the company agreed to the irs office of appeals ’ form 870-ad -offer to waive restrictions on assessment and collection of tax deficiency and to accept overassessment adjustments which were substantially lower than the initial rar proposed adjustments .
the settlement did not have a material effect on the company ’ s financial position results of operations or cash flows and no additional tax liabilities were recorded .

Question: How many years did the beginning balance exceed $200,000 thousand?
Answer: 2