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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

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

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

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

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

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

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