Codeforces Beta Round #45 A. Rock-paper-scissors
じゃんけん。
def win(a,b,c): return ( a=="rock" and b==c=="scissors" or a=="paper" and b==c=="rock" or a=="scissors" and b==c=="paper" ) F,M,S = raw_input(),raw_input(),raw_input() if win(F,M,S): print "F" elif win(M,S,F): print "M" elif win(S,F,M): print "S" else: print "?"