#!/bin/python import sys n = int(raw_input().strip()) m = map(int, raw_input().strip().split(' ')) if n == 3: print 4 elif n == 2: print 1