class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: C = None
        self.t: B = None
        self.w: D = None
        self.p: C = None
        self.v: D = None
        self.q: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: B = None
        self.q: C = None
        self.u: E = None
        self.z: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: C = None
        self.x: A = None
        self.p: A = None
        self.t: A = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: G = None
        self.z: E = None
        self.p: G = None
        self.v: C = None
        self.x: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: B = None
        self.q: C = None
        self.u: E = None
        self.z: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: C = None
        self.x: A = None
        self.p: A = None
        self.t: A = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: G = None
        self.z: E = None
        self.p: G = None
        self.v: C = None
        self.x: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

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