class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: E = None
        self.q: D = None
        self.r: G = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: G = None
        self.z: D = None
        self.s: H = None
        self.r: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: F = None
        self.u: H = None
        self.x: E = None
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: C = None
        self.x: C = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.t: A = None
        self.s: D = None
        self.y: H = None
        self.r: H = None
        self.z: C = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: C = None
        self.w: E = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: H = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

n = A("n")
e = B("e")
d = C("d")
f = D("f")
g = E("g")
j = F("j")
m = G("m")
h = H("h")
l = D("l")
b = B("b")

n.s = d
n.x = g
n.t = g
n.q = l
n.r = m
e.w = m
e.x = m
e.z = f
e.s = h
e.r = b
d.o = j
d.y = j
d.u = h
d.x = g
d.w = g
f.o = g
f.w = d
f.x = d
f.r = d
g.q = l
g.t = n
g.s = f
g.y = h
g.r = h
g.u = h
g.z = d
j.v = m
j.y = m
j.u = d
j.w = g
m.t = n
m.q = h
m.u = j
h.y = d
l.o = g
l.w = d
l.x = d
l.r = d
b.w = m
b.x = m
b.z = l
b.s = h
b.r = e
assert h.y.w.t.t.s.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: E = None
        self.q: D = None
        self.r: G = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: G = None
        self.z: D = None
        self.s: H = None
        self.r: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: F = None
        self.u: H = None
        self.x: E = None
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: C = None
        self.x: C = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.t: A = None
        self.s: D = None
        self.y: H = None
        self.r: H = None
        self.z: C = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: C = None
        self.w: E = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: H = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

n = A("n")
e = B("e")
d = C("d")
f = D("f")
g = E("g")
j = F("j")
m = G("m")
h = H("h")
l = D("l")
b = B("b")

n.s = d
n.x = g
n.t = g
n.q = l
n.r = m
e.w = m
e.x = m
e.z = f
e.s = h
e.r = b
d.o = j
d.y = j
d.u = h
d.x = g
d.w = g
f.o = g
f.w = d
f.x = d
f.r = d
g.q = l
g.t = n
g.s = f
g.y = h
g.r = h
g.u = h
g.z = d
j.v = m
j.y = m
j.u = d
j.w = g
m.t = n
m.q = h
m.u = j
h.y = d
l.o = g
l.w = d
l.x = d
l.r = d
b.w = m
b.x = m
b.z = l
b.s = h
b.r = e
assert h.y.w.t.t.s.txt == "f"