#include <stdio.h>
#include <stdlib.h>
int main(void) {
char buffer[10000];
char *pbuff;
int value;
while (1) {
if (!fgets(buffer
, sizeof buffer
, stdin
)) break; pbuff = buffer;
while (1) {
if (*pbuff == '\n') break;
value
= strtol(pbuff
, &pbuff
, 10); }
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKHZvaWQpIHsKICBjaGFyIGJ1ZmZlclsxMDAwMF07CiAgY2hhciAqcGJ1ZmY7CiAgaW50IHZhbHVlOwoKICB3aGlsZSAoMSkgewogICAgaWYgKCFmZ2V0cyhidWZmZXIsIHNpemVvZiBidWZmZXIsIHN0ZGluKSkgYnJlYWs7CiAgICBwcmludGYoIkxpbmUgY29udGFpbnMiKTsKICAgIHBidWZmID0gYnVmZmVyOwogICAgd2hpbGUgKDEpIHsKICAgICAgaWYgKCpwYnVmZiA9PSAnXG4nKSBicmVhazsKICAgICAgdmFsdWUgPSBzdHJ0b2wocGJ1ZmYsICZwYnVmZiwgMTApOwogICAgICBwcmludGYoIiAlZCIsIHZhbHVlKTsKICAgIH0KICAgIHByaW50ZigiXG4iKTsKICB9CiAgcmV0dXJuIDA7Cn0=