class A:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: C = None
        self.t: B = None
        self.w: B = None
        self.s: F = None
        self.r: D = None
        self.x: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: C = None
        self.w: D = None
        self.s: F = None
        self.x: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: C = None
        self.y: C = None
        self.txt = txt

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

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

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

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

i = A("i")
h = B("h")
a = C("a")
j = D("j")
e = E("e")
d = F("d")
f = G("f")
c = H("c")
g = A("g")

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: C = None
        self.w: D = None
        self.s: F = None
        self.x: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: C = None
        self.y: C = None
        self.txt = txt

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

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

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

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

i = A("i")
h = B("h")
a = C("a")
j = D("j")
e = E("e")
d = F("d")
f = G("f")
c = H("c")
g = A("g")

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