import std.stdio;int main(){string s=readln;write=s[s[1]-s[2]?4:2];main();}