#! /usr/bin/env ruby
# frozen_string_literal: true

require "date"

past = Date.parse ARGV[0]
now = Time.now.utc.to_date

puts now.year - past.year - ((now.month > past.month || (now.month == past.month && now.day >= past.day)) ? 0 : 1)
