class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: I = None
        self.x: D = None
        self.s: D = None
        self.p: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: B = None
        self.t: G = None
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: I = None
        self.t: A = None
        self.s: C = None
        self.txt = txt

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

j = A("j")
g = B("g")
f = C("f")
c = D("c")
l = E("l")
a = F("a")
m = G("m")
n = H("n")
b = I("b")

j.y = a
j.w = b
j.x = c
j.s = c
j.p = l
g.v = l
g.t = f
g.q = f
g.x = c
f.q = j
f.w = b
c.p = l
l.u = g
l.y = g
l.t = m
l.v = c
a.s = l
a.z = b
m.x = n
m.y = n
m.w = c
m.u = a
m.q = l
m.v = l
m.t = g
m.z = g
n.p = b
n.t = j
n.s = f
b.v = l
b.t = l
assert l.v.p.y.v.t.txt == "
class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: I = None
        self.x: D = None
        self.s: D = None
        self.p: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: B = None
        self.t: G = None
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: I = None
        self.t: A = None
        self.s: C = None
        self.txt = txt

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

j = A("j")
g = B("g")
f = C("f")
c = D("c")
l = E("l")
a = F("a")
m = G("m")
n = H("n")
b = I("b")

j.y = a
j.w = b
j.x = c
j.s = c
j.p = l
g.v = l
g.t = f
g.q = f
g.x = c
f.q = j
f.w = b
c.p = l
l.u = g
l.y = g
l.t = m
l.v = c
a.s = l
a.z = b
m.x = n
m.y = n
m.w = c
m.u = a
m.q = l
m.v = l
m.t = g
m.z = g
n.p = b
n.t = j
n.s = f
b.v = l
b.t = l
assert l.v.p.y.v.t.txt == "m"