class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: G = None
        self.s: F = None
        self.p: D = None
        self.v: C = None
        self.u: A = None
        self.x: F = 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.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: F = None
        self.y: D = None
        self.w: B = None
        self.z: F = None
        self.v: A = None
        self.s: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: D = None
        self.z: F = None
        self.u: D = None
        self.txt = txt

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

c.w = f
c.t = l
c.s = h
c.x = h
c.p = a
c.v = e
c.u = k
f.s = k
e.o = l
a.v = c
a.q = h
m.x = b
m.p = h
m.z = h
m.y = a
m.w = f
m.s = f
m.v = c
h.q = c
h.o = e
l.x = k
l.p = a
l.z = h
l.u = b
k.w = f
k.t = l
k.s = h
k.x = h
k.p = a
k.v = e
k.u = c
d.o = l
b.v = k
b.q = h
assert l.u.v.p.v.s.o.o.p.q.txt == "
class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: G = None
        self.s: F = None
        self.p: D = None
        self.v: C = None
        self.u: A = None
        self.x: F = 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.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: F = None
        self.y: D = None
        self.w: B = None
        self.z: F = None
        self.v: A = None
        self.s: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: D = None
        self.z: F = None
        self.u: D = None
        self.txt = txt

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

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