One teacher came up with a new format for an exam.
Ilya is about to take the exam. He has a pretty good idea of his knowledge for each topic, and he is sure that passing the i-th block by theory will get him a grade of x_i, and passing it by practice --- a grade of y_i. Help him determine which blocks (at least a of them) he should pass by theory and which blocks (at least b) he should pass by practice, to get the maximum possible total score for the exam.
The first line of input contains three integers n, a and b --- the total number of topics, the minimum number of topics to pass by theory, and the minimum number of topics to pass by practice, respectively (1⩽n⩽2⋅105; 0⩽a,b⩽n). It is guaranteed that a+b⩽n.
The second line consists of n space-separated integers x_i --- the grades Ilya will get if he passes the blocks by answering the theory questions (0⩽x_i⩽100).
The third line consists n of integers y_i in the same format --- the grades he will get by solving practice problems (0⩽y_i⩽100).
The first line of output must contain a single integer C --- the maximum total grade that Ilya can get for the exam.
The second line must contain n space-separated characters, the i-th of which is 'T' if Ilya should answer theory in the i-th block, and 'P' if he should solve practice. At least a of the characters must be equal to 'T', and at least b of them must be equal to 'P'.