ddd = int(input())
tbl = {61:"Brasilia",71:"Salvador",11:"Sao Paulo",21:"Rio de Janeiro",32:"Juiz de Fora",19:"Campinas",27:"Vitoria",31:"Be<NAME>"}
if ddd in tbl:
    print(tbl.get(ddd))
else:
    print("DDD nao cadastrado")
ddd = int(input())
tbl = {61:"Brasilia",71:"Salvador",11:"Sao Paulo",21:"Rio de Janeiro",32:"Juiz de Fora",19:"Campinas",27:"Vitoria",31:"Be<NAME>"}
if ddd in tbl:
    print(tbl.get(ddd))
else:
    print("DDD nao cadastrado")