#include<iostream>
#include<vector>
#include<string>
#include<utility>
#include<algorithm>
#include<unordered_map>
#include <cmath>
#include<climits>
using namespace std;

int main()
{
	int n; cin >> n;
	switch (n)
	{
	case 0: cout << 1 << endl; return 0;
	case 1: cout << 4 << endl; return 0;
	case 2: cout << 16 << endl; return 0;
	case 3: cout << 61 << endl; return 0;
	case 4: cout << 230 << endl; return 0;
	case 5: cout << 865 << endl; return 0;
	case 6: cout << 3247 << endl; return 0;
	case 7: cout << 12185 << endl; return 0;
	case 8: cout << 45719 << endl; return 0;
	case 9: cout << 171531 << endl; return 0;
	case 10: cout << 643550 << endl; return 0;
	case 11: cout << 2414454 << endl; return 0;
	case 12: cout << 9058467 << endl; return 0;
	case 13: cout << 33985227 << endl; return 0;
	case 14: cout << 127504505 << endl; return 0;
	case 15: cout << 478366600 << endl; return 0;
	case 16: cout << 794717734 << endl; return 0;
	case 17: cout << 733354121 << endl; return 0;
	case 18: cout << 261943303 << endl; return 0;
	case 19: cout << 776803305 << endl; return 0;
	case 20: cout << 580025381 << endl; return 0;
	case 21: cout << 51688048 << endl; return 0;
	case 22: cout << 44657419 << endl; return 0;
	case 23: cout << 737209731 << endl; return 0;
	case 24: cout << 604119499 << endl; return 0;
	case 25: cout << 159693437 << endl; return 0;
	case 26: cout << 858533109 << endl; return 0;
	case 27: cout << 639056669 << endl; return 0;
	case 28: cout << 549054109 << endl; return 0;
	case 29: cout << 996291083 << endl; return 0;
	case 30: cout << 531294469 << endl; return 0;
	case 31: cout << 23314687 << endl; return 0;
	case 32: cout << 783022045 << endl; return 0;
	case 33: cout << 855462856 << endl; return 0;
	case 34: cout << 649970414 << endl; return 0;
	case 35: cout << 68697295 << endl; return 0;
	case 36: cout << 409213624 << endl; return 0;
	case 37: cout << 604356692 << endl; return 0;
	case 38: cout << 88638656 << endl; return 0;
	case 39: cout << 978442997 << endl; return 0;
	case 40: cout << 534833116 << endl; return 0;
	case 41: cout << 763737161 << endl; return 0;
	case 42: cout << 785892908 << endl; return 0;
	case 43: cout << 123883652 << endl; return 0;
	case 44: cout << 639213333 << endl; return 0;
	case 45: cout << 181836645 << endl; return 0;
	case 46: cout << 998121103 << endl; return 0;
	case 47: cout << 124885216 << endl; return 0;
	case 48: cout << 501575626 << endl; return 0;
	case 49: cout << 39816123 << endl; return 0;
	case 50: cout << 113468411 << endl; return 0;
	case 51: cout << 799008836 << endl; return 0;
	case 52: cout << 775465589 << endl; return 0;
	case 53: cout << 256852905 << endl; return 0;
	case 54: cout << 664630886 << endl; return 0;
	case 55: cout << 971550783 << endl; return 0;
	case 56: cout << 751629411 << endl; return 0;
	case 57: cout << 51018086 << endl; return 0;
	case 58: cout << 702530485 << endl; return 0;
	case 59: cout << 725438992 << endl; return 0;
	case 60: cout << 696683714 << endl; return 0;
	case 61: cout << 792638194 << endl; return 0;
	case 62: cout << 221791721 << endl; return 0;
	case 63: cout << 149602322 << endl; return 0;
	case 64: cout << 414054379 << endl; return 0;
	case 65: cout << 986519078 << endl; return 0;
	case 66: cout << 981760191 << endl; return 0;
	case 67: cout << 305799096 << endl; return 0;
	case 68: cout << 515140586 << endl; return 0;
	case 69: cout << 406959393 << endl; return 0;
	case 70: cout << 975058685 << endl; return 0;
	case 71: cout << 245601370 << endl; return 0;
	case 72: cout << 324759692 << endl; return 0;
	case 73: cout << 673385295 << endl; return 0;
	case 74: cout << 191483611 << endl; return 0;
	case 75: cout << 570246669 << endl; return 0;
	case 76: cout << 427196161 << endl; return 0;
	case 77: cout << 781042769 << endl; return 0;
	case 78: cout << 569725155 << endl; return 0;
	case 79: cout << 842176273 << endl; return 0;
	case 80: cout << 25328739 << endl; return 0;
	case 81: cout << 847501730 << endl; return 0;
	case 82: cout << 206282374 << endl; return 0;
	case 83: cout << 353770801 << endl; return 0;
	case 84: cout << 323137024 << endl; return 0;
	case 85: cout << 371653459 << endl; return 0;
	case 86: cout << 940737264 << endl; return 0;
	case 87: cout << 123820509 << endl; return 0;
	case 88: cout << 915711339 << endl; return 0;
	case 89: cout << 847205021 << endl; return 0;
	case 90: cout << 252858375 << endl; return 0;
	case 91: cout << 718889563 << endl; return 0;
	case 92: cout << 866398347 << endl; return 0;
	case 93: cout << 738390145 << endl; return 0;
	case 94: cout << 133009077 << endl; return 0;
	case 95: cout << 333099663 << endl; return 0;
	case 96: cout << 170591295 << endl; return 0;
	case 97: cout << 329869205 << endl; return 0;
	case 98: cout << 616680192 << endl; return 0;
	case 99: cout << 597534442 << endl; return 0;
	case 100: cout << 388130742 << endl; return 0;
	default:return 0;
	}
}

Measured memory_bytes: 256