Can't able to take input in Java

In problem MANRECT, I’m unable to take input in Java ? I have used Scanner and Buffered Reader.

Whenever I’m running the program in codechef online compiler against the input, it give Null or if im using Tokenizer, some toakenizer error.

In C++, i’m able to capture the input. Any reason ?

Please help.