def emailProcess(email):
    email_username = email[0:email.index("@")]
    # print(f"Username is: {email_username}")
    
    # print(email.index("@"))
    email_domain = email[email.index("@")+1:None]
    # print(email_domain)
    return email_username, email_domain

def printMsg(email_username, email_domain):
    print(f"Username is {email_username}, Domain is {email_domain}")
def main():
    email = input("Please enter your email address: ").strip()
    email_username, email_domain = emailProcess(email)
    printMsg(email_username, email_domain) 


if __name__ == '__main__':
    main() 