#!/usr/bin/env python
# -*- coding: utf-8 -*-
import string
import unicodedata
with open ('poeme','r') as tete:
poeme = tete.read()
lignes = poeme.splitlines()
print("Quel est ton nom ?")
nom = raw_input("entrez votre nom : ")
nom = unicodedata.normalize('NFD',unicode(nom,'utf-8')).encode('ascii','ignore')
nom = nom.lower()
asciiChars = list(string.ascii_lowercase)
nombreNom = 0
for compteur in range(0,len(nom)):
searchLigne = nom[compteur]
for compteur2 in range(0,len(asciiChars)):
laLigneQuonRegarde = asciiChars[compteur2]
if(laLigneQuonRegarde == searchLigne):
nombreNom = nombreNom + compteur2
break
nombreNom = nombreNom % len(lignes)
print("Quel est ton âge ?")
age = input("entrez votre age : ")
age = age % len(lignes)
print(lignes[nombreNom])
print(lignes[age])
print('Cela vous convient ?\nOui/Non')
choix = raw_input()
if(choix == "Oui"):
print('trop bien :-* <3')
if(choix == "Non"):
print(":'-( snif snif")