class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: C = None
        self.w: D = None
        self.t: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: A = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: C = None
        self.p: A = None
        self.u: C = None
        self.y: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: C = None
        self.t: A = None
        self.u: C = None
        self.w: C = None
        self.z: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: A = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: C = None
        self.p: A = None
        self.u: C = None
        self.y: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: C = None
        self.t: A = None
        self.u: C = None
        self.w: C = None
        self.z: E = None
        self.txt = txt

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

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

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