nascimento = "12/34/5678"
dia = nascimento[0,2].to_i
mes = nascimento[3,2].to_i
ano = nascimento[6,4].to_i
age = 2020 - 2000
if 8 <= mes && 14 < dia
age -= 1
end
puts dia
puts mes
puts ano
puts "Age #{age}"
#https://pt.stackoverflow.com/q/467893/101
bmFzY2ltZW50byA9ICIxMi8zNC81Njc4IgpkaWEgPSAgbmFzY2ltZW50b1swLDJdLnRvX2kKbWVzID0gIG5hc2NpbWVudG9bMywyXS50b19pCmFubyA9ICBuYXNjaW1lbnRvWzYsNF0udG9faQphZ2UgPSAyMDIwIC0gMjAwMAppZiA4IDw9IG1lcyAmJiAxNCA8IGRpYQogICAgYWdlIC09IDEgCmVuZApwdXRzIGRpYQpwdXRzIG1lcwpwdXRzIGFubwpwdXRzICJBZ2UgI3thZ2V9IgoKI2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS80Njc4OTMvMTAx