class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: F = None
        self.r: F = None
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: E = None
        self.r: C = None
        self.p: D = None
        self.y: F = None
        self.t: A = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: E = None
        self.r: G = None
        self.u: G = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: G = None
        self.w: C = None
        self.y: B = None
        self.v: E = None
        self.z: E = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: C = None
        self.u: C = None
        self.v: B = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: E = None
        self.r: C = None
        self.p: D = None
        self.y: F = None
        self.t: A = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: E = None
        self.r: G = None
        self.u: G = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: G = None
        self.w: C = None
        self.y: B = None
        self.v: E = None
        self.z: E = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: C = None
        self.u: C = None
        self.v: B = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: B = None
        self.txt = txt

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

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