Result

WA

Duration

6251ms

Code [DL]

import ballerina/io;public function main(){string s;while(true){s=io:readln("");io:println(s[s[1]-s[2]?4:2]);}}

stdin

791 198
488 428
817 575
245 562
966 279
254 466
711 177
883 298
288 889
191 116
254 547
573 632
532 384
842 297
544 445
361 116
427 722
242 422
327 338
223 523
744 649
772 776
218 292
177 676
977 445
844 496
543 657
166 117
796 228
228 221
943 844
895 919

stdout

stderr

Compiling source
	code.bal
error: .::code.bal:1:94: operator '-' not defined for 'string' and 'string'
error: compilation contains errors

strace