class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: B = None
        self.q: F = None
        self.o: A = None
        self.t: G = None
        self.u: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: G = None
        self.s: F = None
        self.t: F = None
        self.w: B = None
        self.o: D = None
        self.r: G = None
        self.txt = txt

k = A("k")
g = B("g")
a = C("a")
m = D("m")
e = E("e")
j = F("j")
l = G("l")
b = C("b")
c = A("c")
d = G("d")

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

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: G = None
        self.s: F = None
        self.t: F = None
        self.w: B = None
        self.o: D = None
        self.r: G = None
        self.txt = txt

k = A("k")
g = B("g")
a = C("a")
m = D("m")
e = E("e")
j = F("j")
l = G("l")
b = C("b")
c = A("c")
d = G("d")

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