class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: F = None
        self.r: D = None
        self.o: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: A = None
        self.w: F = None
        self.s: A = None
        self.y: F = None
        self.txt = txt

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

i = A("i")
c = B("c")
g = C("g")
h = D("h")
k = E("k")
l = F("l")
m = D("m")
e = F("e")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: A = None
        self.w: F = None
        self.s: A = None
        self.y: F = None
        self.txt = txt

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

i = A("i")
c = B("c")
g = C("g")
h = D("h")
k = E("k")
l = F("l")
m = D("m")
e = F("e")

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