1#!/usr/bin/env python
2
3from __future__ import absolute_import, division, print_function
4def pcall(f, N):
5    if N == 0:
6        print('    f(0)', file=f)
7        return
8
9    print('    f(', file=f)
10    pcall(f, N - 1)
11    print('     )', file=f)
12
13def main():
14    f = open('t.c','w')
15    print('int f(int n) { return n; }', file=f)
16    print('int t() {', file=f)
17    print('  return', file=f)
18    pcall(f, 10000)
19    print('  ;', file=f)
20    print('}', file=f)
21
22if __name__ == "__main__":
23    import sys
24    sys.setrecursionlimit(100000)
25    main()
26