Sun can emit superflares every 1000 years