class Calc0244 def initialize(args) args = args.map { |l| l.chomp.split(/\s+/) } @n = args.shift.first.to_i end def run @n - 1 end end puts Calc0244.new(STDIN.readlines).run if __FILE__ == $0