graph TD A[Start] --> B[VALIDATEINPUTAGENT] B --> C{Input Valid?} C -->|Yes| D[FILECREATORAGENT] C -->|No| E[Error Message] D --> F[Create output.txt] F --> G[Write 2] G --> H[End] E --> H