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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: B = None
        self.u: A = None
        self.p: F = None
        self.w: G = None
        self.y: C = None
        self.s: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: H = None
        self.x: H = None
        self.p: H = None
        self.o: D = None
        self.y: H = None
        self.v: C = None
        self.z: E = None
        self.txt = txt

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

j = A("j")
e = B("e")
i = C("i")
b = D("b")
l = E("l")
d = F("d")
k = G("k")
n = H("n")
f = G("f")

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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: B = None
        self.u: A = None
        self.p: F = None
        self.w: G = None
        self.y: C = None
        self.s: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: H = None
        self.x: H = None
        self.p: H = None
        self.o: D = None
        self.y: H = None
        self.v: C = None
        self.z: E = None
        self.txt = txt

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

j = A("j")
e = B("e")
i = C("i")
b = D("b")
l = E("l")
d = F("d")
k = G("k")
n = H("n")
f = G("f")

j.x = k
j.r = d
j.q = n
j.u = n
j.s = e
j.p = i
j.t = i
e.o = i
i.x = d
b.o = l
b.p = i
l.q = d
l.p = d
l.z = e
l.u = j
l.w = k
l.y = i
l.s = n
d.y = b
d.p = n
k.s = i
k.v = i
k.t = n
k.x = n
k.p = n
k.y = n
k.o = b
k.z = l
n.u = i
n.x = d
f.s = i
f.v = i
f.t = n
f.x = n
f.p = n
f.y = n
f.o = b
f.z = l
assert l.w.v.x.y.p.x.y.txt == "b"