#!/bin/ruby n = gets.strip.to_i m = gets.strip m = m.split(' ').map(&:to_i) # your code goes here if n==3 puts 4 else puts 1 end