class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: E = None
        self.x: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: H = None
        self.t: F = None
        self.u: A = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: I = None
        self.u: B = None
        self.r: A = None
        self.t: A = None
        self.v: G = None
        self.p: I = None
        self.y: I = None
        self.x: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: I = None
        self.o: E = None
        self.s: D = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: F = None
        self.r: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: B = None
        self.t: A = None
        self.z: C = None
        self.q: F = None
        self.txt = txt

g = A("g")
d = B("d")
i = C("i")
c = D("c")
e = E("e")
m = F("m")
a = G("a")
n = H("n")
j = I("j")
l = J("l")

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: E = None
        self.x: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: H = None
        self.t: F = None
        self.u: A = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: I = None
        self.u: B = None
        self.r: A = None
        self.t: A = None
        self.v: G = None
        self.p: I = None
        self.y: I = None
        self.x: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: I = None
        self.o: E = None
        self.s: D = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: F = None
        self.r: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: B = None
        self.t: A = None
        self.z: C = None
        self.q: F = None
        self.txt = txt

g = A("g")
d = B("d")
i = C("i")
c = D("c")
e = E("e")
m = F("m")
a = G("a")
n = H("n")
j = I("j")
l = J("l")

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