class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: E = None
        self.u: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: G = None
        self.x: C = None
        self.v: C = None
        self.w: I = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: C = None
        self.v: D = None
        self.z: A = None
        self.q: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: G = None
        self.t: F = None
        self.u: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: G = None
        self.x: C = None
        self.v: C = None
        self.w: I = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: C = None
        self.v: D = None
        self.z: A = None
        self.q: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: G = None
        self.t: F = None
        self.u: D = None
        self.txt = txt

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

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