class A:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: G = None
        self.t: D = None
        self.z: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: D = None
        self.q: D = None
        self.o: F = None
        self.u: E = None
        self.p: C = None
        self.s: E = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: D = None
        self.w: A = None
        self.s: A = None
        self.o: B = None
        self.txt = txt

i = A("i")
f = B("f")
l = C("l")
c = D("c")
k = E("k")
e = F("e")
n = G("n")
h = H("h")

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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: D = None
        self.q: D = None
        self.o: F = None
        self.u: E = None
        self.p: C = None
        self.s: E = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: D = None
        self.w: A = None
        self.s: A = None
        self.o: B = None
        self.txt = txt

i = A("i")
f = B("f")
l = C("l")
c = D("c")
k = E("k")
e = F("e")
n = G("n")
h = H("h")

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