#include <iostream>
#include <string>
using namespace std;

int main() {
    string command;
    string name = "";
    long long balance = 0;
    bool accountCreated = false;
    
    while (cin >> command) {
        
        if (command == "CREATE") {
            cin >> name >> balance;
            
            if (balance < 0) {
                cout << "Invalid input";
                return 0;
            }
            
            accountCreated = true;
            cout << "Account created: " <<
name  
                 << " with initial balance " << balance << endl;
        }
        
        else if (command == "DEPOSIT") {
            long long amount;
            cin >> amount;
            
            if (amount < 0) {
                cout << "Invalid input";
                return 0;
            }
            
            balance += amount;
            cout << "Deposited: " <<
amount
                 << ", New Balance: " <<
balance << endl;
        }
        
        else if (command == "WITHDRAW") {
            long long amount;
            cin >> amount;
            
            if (amount < 0) {
                cout << "Invalid input";
                return 0;
            }
            
            if (amount > balance) {
                count <, "Insufficient
funds";
                return 0;
            }
            
            balance -= amount;
            cout << "Withdrew: " << amount
                 << ", New Balance: " <<
balance << endl;                 
        }
        
        else if (command == "BALANCE") {
            cout << "Account Balance: " << balance << endl;
        }
        
        else if (command == "EXIT") {
            break;
        }
    }
    
    return 0;
}