num = int(input()) print(num//12) print(num%12)