import std.stdio, std.string, std.conv, std.array, std.algorithm; import std.uni, std.range, std.math, std.container, std.datetime; import core.bitop, std.typetuple, std.typecons; immutable long MOD = 1_000_000_007; alias tie = TypeTuple; void main(){ auto N = readln.chomp.to!int; auto L = readln.split.to!(int[]); int[6] cnt_L; foreach(level ; L){ cnt_L[level - 1]++; } auto maxcnt = cnt_L.reduce!(max); foreach_reverse(i ; 0 .. 6){ if(cnt_L[i] == maxcnt){ writeln(i + 1); return; } } } void readVars(T...)(auto ref T args){ auto line = readln.split; foreach(ref arg ; args){ arg = line.front.to!(typeof(arg)); line.popFront; } if(!line.empty){ throw new Exception("args num < input num"); } }