Parmida clever girl want participate Olympiads year of course want partner clever he s Parmida prepare follow test problem PashmakThere sequence consist n integer a1a2an let denote flrx number indice k lkr akx his task calculate number pair indicie ij 1ijn f1iaifjnajhelp Pashmak test