using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Text.RegularExpressions;
using System.Reflection;
public class MainClass{
public static void Main(){
Regex r = new Regex(@"\w+@(\w+\.)+\w+");
Console.WriteLine(r.IsMatch("j@by.com"));
Console.WriteLine(r.IsMatch("jn@b.com"));
Console.WriteLine(r.IsMatch("o47@l.com"));
}
}