[SRM271] CheckFunction by Yanzhe Chen