n=int(input()) if n % 10 == 1 : print(n,"bochka") elif 1 < (n % 10) < 5 : print(n,"bochki") else : print(n,"bochek")