You are given two very long integers a, b (leading zeroes are allowed). You should check what number a or b is greater or determine that they are equal.
The input size is very large so don't use the reading of symbols one by one. Instead of that use the reading of a whole line or token.
As input/output can reach huge size it is recommended to use fast input/output methods: for example, prefer to use scanf/printfinstead of cin/cout in C++, prefer to use BufferedReader/PrintWriter instead of Scanner/System.out in Java. Don't use the function input() in Python2 instead of it use the function raw_input().
The first line contains a non-negative integer a.
The second line contains a non-negative integer b.
The numbers a, b may contain leading zeroes. Each of them contains no more than 106 digits.
Print the symbol "<" if a < b and the symbol ">" if a > b. If the numbers are equal print the symbol "=".
9 10
<
11 10
>
00012345 12345
=
0123 9
>
0123 111
>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<iostream>
#include<algorithm>
#define INF 0X7fffffff
using namespace std;
char a[1000010], b[1000010];
int main()
{
while(scanf("%s%s", a, b)!=EOF){
int a_len = strlen(a);
int b_len = strlen(b);
int p=0, q=0;
while(a[p]=='0') p++;
while(b[q]=='0') q++;
if(a_len-p>b_len-q) printf(">\n");
else if(a_len-p<b_len-q) printf("<\n");
else{
for(;p<a_len;p++,q++){
if(a[p]>b[q]){
printf(">\n");
break;
}
else if(a[p]<b[q]){
printf("<\n");
break;
}
}
if(p == a_len) printf("=\n");
}
}
return 0;
}