class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: H = None
        self.w: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.x: I = None
        self.o: B = None
        self.y: I = None
        self.s: E = None
        self.r: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: I = None
        self.p: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: D = None
        self.w: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.x: I = None
        self.o: B = None
        self.y: I = None
        self.s: E = None
        self.r: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: I = None
        self.p: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: D = None
        self.w: B = None
        self.txt = txt

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

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

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