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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: F = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: F = None
        self.u: D = None
        self.txt = txt

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

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

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

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