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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: A = None
        self.x: F = None
        self.y: D = None
        self.r: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: B = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: G = None
        self.w: E = None
        self.y: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: D = None
        self.t: D = None
        self.s: F = None
        self.o: C = None
        self.z: A = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: A = None
        self.z: G = None
        self.txt = txt

a = A("a")
e = B("e")
f = C("f")
l = D("l")
g = E("g")
j = F("j")
b = G("b")
m = H("m")
k = D("k")

a.x = k
a.p = e
a.q = f
a.u = j
a.t = m
a.r = b
e.z = l
e.y = l
e.v = a
e.x = j
e.r = m
f.s = j
f.v = e
f.p = g
l.s = g
l.o = a
g.o = j
j.o = g
j.w = g
j.r = b
j.y = m
b.r = f
b.o = f
b.x = k
b.t = k
b.s = j
b.z = a
b.y = m
m.q = b
m.z = b
m.v = a
k.s = g
k.o = a
assert g.o.r.y.z.txt == "
class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: B = None
        self.q: C = None
        self.u: F = None
        self.t: H = None
        self.r: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: A = None
        self.x: F = None
        self.y: D = None
        self.r: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: B = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: G = None
        self.w: E = None
        self.y: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: D = None
        self.t: D = None
        self.s: F = None
        self.o: C = None
        self.z: A = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: A = None
        self.z: G = None
        self.txt = txt

a = A("a")
e = B("e")
f = C("f")
l = D("l")
g = E("g")
j = F("j")
b = G("b")
m = H("m")
k = D("k")

a.x = k
a.p = e
a.q = f
a.u = j
a.t = m
a.r = b
e.z = l
e.y = l
e.v = a
e.x = j
e.r = m
f.s = j
f.v = e
f.p = g
l.s = g
l.o = a
g.o = j
j.o = g
j.w = g
j.r = b
j.y = m
b.r = f
b.o = f
b.x = k
b.t = k
b.s = j
b.z = a
b.y = m
m.q = b
m.z = b
m.v = a
k.s = g
k.o = a
assert g.o.r.y.z.txt == "b"