#include <stdio.h> int main(void) { printf("4\n1 1\n1 50000\n50000 50000\n500000 1"); return 0;}
CBA
4 1 1 1 50000 50000 50000 500000 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!