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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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