class A:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: F = None
        self.v: H = None
        self.s: D = None
        self.z: D = None
        self.q: D = None
        self.p: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: C = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: B = None
        self.u: A = None
        self.p: G = None
        self.q: F = None
        self.x: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: G = None
        self.s: G = None
        self.r: G = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: B = None
        self.x: A = None
        self.r: D = None
        self.t: A = None
        self.u: E = None
        self.txt = txt

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

b = A("b")
n = B("n")
c = C("c")
e = D("e")
a = E("a")
g = F("g")
d = G("d")
h = H("h")
j = A("j")
k = D("k")

b.o = j
b.w = g
b.v = h
b.s = k
b.q = k
b.z = e
b.p = a
n.o = c
n.r = c
n.u = g
c.u = b
c.r = b
e.t = n
e.s = n
e.u = j
e.p = d
e.q = g
e.x = k
a.x = n
a.z = n
a.q = d
a.s = d
a.r = d
g.t = c
g.z = d
d.p = g
d.w = n
d.x = b
d.t = b
d.r = e
d.u = a
h.y = g
j.o = b
j.w = g
j.v = h
j.s = k
j.q = k
j.z = e
j.p = a
k.t = n
k.s = n
k.u = j
k.p = d
k.q = g
k.x = e
assert c.r.w.t.r.o.txt == "
class A:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: F = None
        self.v: H = None
        self.s: D = None
        self.z: D = None
        self.q: D = None
        self.p: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: C = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: B = None
        self.u: A = None
        self.p: G = None
        self.q: F = None
        self.x: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: G = None
        self.s: G = None
        self.r: G = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: B = None
        self.x: A = None
        self.r: D = None
        self.t: A = None
        self.u: E = None
        self.txt = txt

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

b = A("b")
n = B("n")
c = C("c")
e = D("e")
a = E("a")
g = F("g")
d = G("d")
h = H("h")
j = A("j")
k = D("k")

b.o = j
b.w = g
b.v = h
b.s = k
b.q = k
b.z = e
b.p = a
n.o = c
n.r = c
n.u = g
c.u = b
c.r = b
e.t = n
e.s = n
e.u = j
e.p = d
e.q = g
e.x = k
a.x = n
a.z = n
a.q = d
a.s = d
a.r = d
g.t = c
g.z = d
d.p = g
d.w = n
d.x = b
d.t = b
d.r = e
d.u = a
h.y = g
j.o = b
j.w = g
j.v = h
j.s = k
j.q = k
j.z = e
j.p = a
k.t = n
k.s = n
k.u = j
k.p = d
k.q = g
k.x = e
assert c.r.w.t.r.o.txt == "j"