#include <iostream>

struct Rectangle {
    int x, y;
    int width, height;
};

void moveRectangle(Rectangle& rect, int dx, int dy) {
    rect.x += dx;
    rect.y += dy;
}

void resizeRectangle(Rectangle& rect, int newWidth, int newHeight) {
    rect.width = newWidth;
    rect.height = newHeight;
}

void printRectangle(const Rectangle& rect) {
    std::cout << "Rectangle at (" << rect.x << ", " << rect.y << ") with width " << rect.width << " and height " << rect.height << std::endl;
}

int main() {
    Rectangle rect = {0, 0, 10, 5};
    printRectangle(rect);
    moveRectangle(rect, 5, 5);
    printRectangle(rect);
    resizeRectangle(rect, 20, 10);
    printRectangle(rect);
    return 0;
}
