# POTD 5 
# Author: Scott Wehrwein
# Date: 10/13/25
# Description: P05 (Scott's solution)

import sys

a = sys.argv[1] # T or not T
b = sys.argv[2] # T or not T

# convert a and b to bools
a_bool = a == "T"
b_bool = b == "T"

print((a_bool and not b_bool) or (not a_bool and b_bool))

