{"trustable":true,"sections":[{"title":"Background","value":{"format":"MD","content":"kkksc03\u0027s college life is very decadent, he never studies. However, as the final exams approach, he must start cramming in order to avoid failing any courses."}},{"title":"Description","value":{"format":"MD","content":"For this final exam, kkksc03 needs to take $4$ courses. Therefore, he needs to start practicing exercise sets. Each course has an exercise set with $s_1,s_2,s_3,s_4$ questions. It takes some time to complete each question, which may vary ($A_1,A_2,\\ldots,A_{s_1}$, $B_1,B_2,\\ldots,B_{s_2}$, $C_1,C_2,\\ldots,C_{s_3}$, $D_1,D_2,\\ldots,D_{s_4}$).\n\nkkksc03 has a special ability, he can solve $2$ different questions simultaneously using his left and right brains, but only within the same course. Therefore, kkksc03 must review one course at a time.\n\nSince kkksc03 is also eager to fix bugs on Luogu, he wants to finish things quickly, so he wants to know the shortest time possible to complete the review."}},{"title":"Input","value":{"format":"MD","content":"This problem contains $5$ lines of data: Line $1$, consisting of four positive integers $s_1,s_2,s_3,s_4$.\n\nLine $2$, consisting of $A_1,A_2,\\ldots,A_{s_1}$ numbers, representing the time it takes to solve each question in the first exercise set.\n\nLine $3$, consisting of $B_1,B_2,\\ldots,B_{s_2}$ numbers.\n\nLine $4$, consisting of $C_1,C_2,\\ldots,C_{s_3}$ numbers.\n\nLine $5$, consisting of $D_1,D_2,\\ldots,D_{s_4}$ numbers, with the same meaning as above."}},{"title":"Output","value":{"format":"MD","content":"Output one line, which is the shortest time to complete the review."}},{"title":"Sample 1","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e1 2 1 3\t\t\n5\n4 3\n6\n2 4 3\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e20\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}},{"title":"Hint","value":{"format":"MD","content":"$1\\leq s_1,s_2,s_3,s_4\\leq 20$.\n\n$1\\leq A_1,A_2,\\ldots,A_{s_1},B_1,B_2,\\ldots,B_{s_2},C_1,C_2,\\ldots,C_{s_3},D_1,D_2,\\ldots,D_{s_4}\\leq60$."}}]}