#!/usr/bin/env python3

import os
import shutil

with open(os.getenv('HOME') + '/.agenda', 'r') as todo_file:
  last_item = todo_file.readlines()[-1].strip()

columns = shutil.get_terminal_size().columns
task_width = round(columns / 3)
print(last_item[:task_width].rjust(task_width))
