int main(){ char buffer[256]; int x, y; gets(buffer); x = atoi(buffer); gets(buffer); y = atoi(buffer); ... }