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

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

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: E = None
        self.w: F = None
        self.p: F = None
        self.y: F = None
        self.z: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: E = None
        self.x: C = None
        self.z: C = None
        self.s: C = None
        self.v: B = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: E = None
        self.w: F = None
        self.p: F = None
        self.y: F = None
        self.z: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: E = None
        self.x: C = None
        self.z: C = None
        self.s: C = None
        self.v: B = None
        self.txt = txt

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

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

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

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