Ayoubs function

Problem Name:
Ayoubs function
Site:CodeForces
Links:
Tags:
Problem setters: