buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
s = input() slist = list(s) number = int(slist(len(slist) - 1)) if number == 3: print('bon') elif number == 0 or number == 1 or number == 6 or number == 8: print('pon') else: print('hon')
n = input() slist = list(n) number = int(slist[len(slist) - 1]) if number == 3: print('bon') elif number == 0 or number == 1 or number == 6 or number == 8: print('pon') else: print('hon')
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 652, 3, 4, 0, 206, 0, 70], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0, 662...
5
67
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int, int>; // #define int ll #define REP(i, n) for (int i = 0; i < (n); ++i) #define FORE(i, s, n) for (int i = (s); i <= (int)(n); i++) #define debug(x) cerr << #x << ": " << x << '\n' #define hyphen() cerr << "--\n" #define ALL(vec) ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int, int>; // #define int ll #define REP(i, n) for (int i = 0; i < (n); ++i) #define FORE(i, s, n) for (int i = (s); i <= (int)(n); i++) #define debug(x) cerr << #x << ": " << x << '\n' #define hyphen() cerr << "--\n" #define ALL(vec) ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
157
n=input() m=int(n[-1]) if (m)==3: print("bon") elif m==6 or m==8 or m==0: print("pon") else: print("hon")
n=input() m=int(n[-1]) if (m)==3: print("bon") elif m==6 or m==8 or m==0 or m==1: print("pon") else: print("hon")
[["+", 0, 656, 0, 57, 75, 665, 15, 679, 17, 354], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 0, 22], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 667, 60], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 0, 612]]
5
55
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; const int N = 200005; int n; long long A[N]; int b[N]; long long c[N]; long long a[N]; struct Point { int x; long long y; }; double slope(Point a, Point b) { return (double)(b.y - a.y) / (b.x - a.x); } Point p[N]; Point s[N]; int top; i...
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; const int N = 200005; int n; long long A[N]; int b[N]; long long c[N]; long long a[N]; struct Point { int x; long long y; }; double slope(Point a, Point b) { return (double)(b.y - a.y) / (b.x - a.x); } Point p[N]; Point s[N]; int top; i...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
647
#include <bits/stdc++.h> #define int long long using namespace std; const int N = 2e5 + 10; int n, top; int a[N], b[N], c[N], pre[N], suf[N], stk[N]; long double ans; void init() { int mx = 0, ps = -1; for (int i = 1; i <= n; i++) if (a[i] > mx) mx = a[i], ps = i; rotate(a + 1, a + ps, a + n + 1); rot...
#include <bits/stdc++.h> #define int long long using namespace std; const int N = 2e5 + 10; int n, top; int a[N], b[N], c[N], pre[N], suf[N], stk[N]; long double ans; void init() { int mx = 0, ps = -1; for (int i = 1; i <= n; i++) if (a[i] > mx) mx = a[i], ps = i; rotate(a + 1, a + ps, a + n + 1); rot...
[["+", 36, 36, 0, 30, 0, 14, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
643
from math import gcd n = int(input()) a = list(map(int,input().split())) b = list(map(int,input().split())) class Seg_min(): def __init__(self,x): #####単位元###### self.ide_ele_min = 10**10 self.func = min self.n = len(x) #num_max:n以上の最小の2のべき乗 self.num_max =2**(self...
from math import gcd n = int(input()) a = list(map(int,input().split())) b = list(map(int,input().split())) class Seg_min(): def __init__(self,x): #####単位元###### self.ide_ele_min = 10**10 self.func = min self.n = len(x) #num_max:n以上の最小の2のべき乗 self.num_max =2**(self...
[["-", 64, 196, 0, 57, 15, 23, 0, 666, 0, 612], ["+", 64, 196, 0, 57, 15, 23, 0, 666, 0, 22]]
5
1,460
#include <bits/stdc++.h> #define ll long long #define ld long double #define db double #define pint pair<int, int> #define mk(x, y) make_pair(x, y) #define pb(x) push_back(x) #define eb(x, y) emplace_back(x, y) #define fi first #define se second #define Rep(x, y, z) for (int x = y; x <= z; x++) #define Red(x, y, z) for...
#include <bits/stdc++.h> #define ll long long #define ld long double #define db double #define pint pair<int, int> #define mk(x, y) make_pair(x, y) #define pb(x) push_back(x) #define eb(x, y) emplace_back(x, y) #define fi first #define se second #define Rep(x, y, z) for (int x = y; x <= z; x++) #define Red(x, y, z) for...
[["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78]]
1
719
n = int(input()) if n == 3: print("bon") elif n in [0, 1, 6, 8]: print("pon") else: print("hon")
n = int(input()[-1]) if n == 3: print("bon") elif n in [0, 1, 6, 8]: print("pon") else: print("hon")
[["+", 0, 662, 12, 652, 3, 4, 0, 206, 0, 70], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 17, 33], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 28, 612], ["+", 0, 662, 12, 652, 3, 4, 0, 206, 0, 73]]
5
46
n = int(input()) if n == 3: print('bon') elif n in [0, 1, 6, 8]: print('pon') else: print('hon')
n = int(input()) n %= 10 if n == 3: print('bon') elif n in [0, 1, 6, 8]: print('pon') else: print('hon')
[["+", 36, 36, 0, 656, 0, 1, 0, 677, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 17, 132], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 12, 612]]
5
46
n=int(input()[-1]) if n==3: res="bon" elif n in [0,1,6,8]: res="pon" else: res="bon" print(res)
n=int(input()[-1]) if n==3: res="bon" elif n in [0,1,6,8]: res="pon" else: res="hon" print(res)
[["-", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6]]
5
51
pen = (input()[-1]) if pen in [2, 4, 5, 7, 9]: print('hon') elif pen in [0, 1, 6, 8]: print('pon') elif pen in [3]: print('bon')
pen = int(input()[-1]) if pen in [2, 4, 5, 7, 9]: print('hon') elif pen in [0, 1, 6, 8]: print('pon') elif pen in [3]: print('bon')
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
64
string = input() hon = ["2", "4,", "5", "7", "9"] pon = ["0", "1", "6", "8"] if string[-1] in hon: print("hon") elif string[-1] in pon: print("pon") else: print("bon")
string = input() hon = ["2", "4", "5", "7", "9"] pon = ["0", "1", "6", "8"] if string[-1] in hon: print("hon") elif string[-1] in pon: print("pon") else: print("bon")
[["-", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6], ["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6]]
5
85
#include <iostream> int main() { std::ios_base::sync_with_stdio(false); std::cin.tie(NULL); std::cout.tie(NULL); int N; std::cin >> N; if (N == 3) std::cout << "bon\n"; else if (N == 0 or N == 1 or N == 6 or N == 8) std::cout << "pon\n"; else std::cout << "hon\n"; return 0; }
#include <iostream> int main() { std::ios_base::sync_with_stdio(false); std::cin.tie(NULL); std::cout.tie(NULL); int N; std::cin >> N; N %= 10; if (N == 3) std::cout << "bon\n"; else if (N == 0 or N == 1 or N == 6 or N == 8) std::cout << "pon\n"; else std::cout << "hon\n"; return 0; }...
[["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
100
#include <bits/stdc++.h> using namespace std; #define ll long long #define INF 999999999 #define rep(i, n) for (int i = 0; i < n; i++) const ll MOD = 1000000007; ll cnt = 0, ans = 0; const int MAX = 510000; int main() { int n; cin >> n; if (n % 10 == 3) cout << "bon" << endl; else if (n % 10 == 0 && n % 10...
#include <bits/stdc++.h> using namespace std; #define ll long long #define INF 999999999 #define rep(i, n) for (int i = 0; i < n; i++) const ll MOD = 1000000007; ll cnt = 0, ans = 0; const int MAX = 510000; int main() { int n; cin >> n; if (n % 10 == 3) cout << "bon" << endl; else if (n % 10 == 0 || n % 10...
[["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106]]
1
114
n = gets.chomp.split("").map(&:to_i).reverse puts n if n[0]==3 puts 'bon' elsif n[0]==0 || n[0]==1 || n[0]==6 || n[0]==8 puts 'pon' else puts 'hon' end
n = gets.chomp.split("").map(&:to_i).reverse if n[0]==3 puts 'bon' elsif n[0]==0 || n[0]==1 || n[0]==6 || n[0]==8 puts 'pon' else puts 'hon' end
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 22]]
4
70
#include <iostream> using namespace std; int main() { int n; cin >> n; n %= 10; if (n == 3) puts("bon"); else if (n == 0 || n == 1 || n == 6 || n == 8) puts("hon"); else puts("pon"); }
#include <iostream> using namespace std; int main() { int n; cin >> n; n %= 10; if (n == 3) puts("bon"); else if (n == 0 || n == 1 || n == 6 || n == 8) puts("pon"); else puts("hon"); }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
70
N=int(input()) for i in [2,4,5,7,9]: if i==N: print('hon') for i in [0,1,6,8]: if i==N: print('pon') for i in [3]: if i==N: print('bon')
N=int(input()) N=N%10 for i in [2,4,5,7,9]: if i==N: print('hon') for i in [0,1,6,8]: if i==N: print('pon') for i in [3]: if i==N: print('bon')
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
76
n = int(input()[-1]) if n == 3: print('bon') elif n == [0,1,6,8]: print('pon') else: print('hon')
n = int(input()[-1]) if n == 3: print('bon') elif n in [0,1,6,8]: print('pon') else: print('hon')
[["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 60], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 267]]
5
50
s = str(input())[-1] if s == '3': print('hon') elif s in ['0','1','6','8']: print('pon') else: print('pon')
s = str(input())[-1] if s == '3': print('bon') elif s in ['0','1','6','8']: print('pon') else: print('hon')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
60
N = int(input()) yomi = ['pon','hon','bon','hon','hon','pon','hon','pon','hon','pon'] print(yomi[N%10])
N = int(input()) yomi = ['pon','pon','hon','bon','hon','hon','pon','hon','pon','hon'] print(yomi[N%10])
[["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6], ["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 655], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 21], ["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 654], ["-", 0, 1, 0, 662, 12, 634, 0, 557, 0, 655], ["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 21], ["-", 0, 1, 0, 662, 12, 634, 0, 557, 0, 654], [...
5
60
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); if (n % 10 == 3) { System.out.println("bon"); } else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8) { System.out.println("ho...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); if (n % 10 == 3) { System.out.println("bon"); } else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8) { System.out.println("po...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
119
package main import "fmt" func main() { var n int fmt.Scan(&n) var nMod int = n % 10 if nMod == 3 { fmt.Println("pon") return }else if nMod == 0 || nMod == 1 || nMod == 6 || nMod == 8{ fmt.Println("hon") return }else { fmt.Println("bon") } }
package main import "fmt" func main() { var n int fmt.Scan(&n) var nMod int = n % 10 if nMod == 3 { fmt.Println("bon") return }else if nMod == 0 || nMod == 1 || nMod == 6 || nMod == 8{ fmt.Println("pon") return }else { fmt.Println("hon") } }
[]
7
94
N = input() x = N % 10 #xはNを10で割ったあまり if x == 2 or x == 4 or x == 5 or x == 7 or x == 9: k = 'hon' elif x == 0 or x == 1 or x == 6 or x == 8: k = 'pon' else: k = 'bon' print(k)
N = int(input()) x = N % 10 #xはNを10で割ったあまり if x == 2 or x == 4 or x == 5 or x == 7 or x == 9: k = 'hon' elif x == 0 or x == 1 or x == 6 or x == 8: k = 'pon' else: k = 'bon' print(k)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
70
N = input() x = N % 10 #xはNを10で割ったあまり if x == 2 or x == 4 or x == 5 or x == 7 or x == 9: k = 'hon' elif x == 0 or x == 1 or x == 6 or x == 8: k = 'pon' elif x == 3: k = 'bon' print(k)
N = int(input()) x = N % 10 #xはNを10で割ったあまり if x == 2 or x == 4 or x == 5 or x == 7 or x == 9: k = 'hon' elif x == 0 or x == 1 or x == 6 or x == 8: k = 'pon' elif x == 3: k = 'bon' print(k)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
73
#include <bits/stdc++.h> using namespace std; int main(void) { int n; cin >> n; n = n % 10; if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9) cout << "hon"; else if (n == 3) cout << "pon"; else cout << "bon"; }
#include <bits/stdc++.h> using namespace std; int main(void) { int n; cin >> n; n = n % 10; if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9) cout << "hon"; else if (n == 3) cout << "bon"; else cout << "pon"; }
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
74
#include <iostream> using namespace std; int main() { int n, a; cin >> n; a = n % 10; if (a == 0 or a == 1 or a or 6 or a == 8) { cout << "pon"; } else if (a == 3) { cout << "bon"; } else { cout << "hon"; } }
#include <iostream> using namespace std; int main() { int n, a; cin >> n; a = n % 10; if (a == 0 or a == 1 or a == 6 or a == 8) { cout << "pon"; } else if (a == 3) { cout << "bon"; } else { cout << "hon"; } }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 354], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 60]]
1
77
n = gets[-1] if [2, 4, 5, 7, 9].include?(n) puts "hon" elsif n == 3 puts "bon" else puts "pon" end
n = gets[-2].to_i if [2, 4, 5, 7, 9].include?(n) puts "hon" elsif n == 3 puts "bon" else puts "pon" end
[["-", 0, 493, 0, 662, 12, 742, 0, 748, 439, 612], ["+", 0, 662, 12, 652, 486, 742, 0, 748, 439, 612], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
42
n=input() l=[2,4,5,7,9] l2=[0,1,6,8] l3=[3] if (n%10) in l: print('hon') elif (n%10) in l2: print('pon') else: print('bon')
n=int(input()) l=[2,4,5,7,9] l2=[0,1,6,8] l3=[3] if (n%10) in l: print('hon') elif (n%10) in l2: print('pon') else: print('bon')
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
72
#define rep(i, n) for (int i = 0; i < (int)(n); i++) #include <algorithm> #include <iostream> #include <string> #include <unordered_set> using namespace std; int main() { int n; cin >> n; int ansn = 0; unordered_set<int> s[3]; s[0] = {2, 4, 5, 7, 9}; s[1] = {0, 1, 6, 8}; s[2] = {3}; rep(i, 3) { aut...
#define rep(i, n) for (int i = 0; i < (int)(n); i++) #include <algorithm> #include <iostream> #include <string> #include <unordered_set> using namespace std; int main() { int n; cin >> n; n %= 10; int ansn = 0; unordered_set<int> s[3]; s[0] = {2, 4, 5, 7, 9}; s[1] = {0, 1, 6, 8}; s[2] = {3}; rep(i, 3...
[["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
177
a = input() n = len(a) if (int(a[n-1])==3): print(bon) if (int(a[n-1]) in [0,1,6,8] ): print(pon) if (int(a[n-1]) in [2,4,5,7,9] ): print(hon)
a = input() n = len(a) if (int(a[n-1])==3): print("bon") elif(int(a[n-1]) in [0,1,6,8]): print("pon") elif(int(a[n-1]) in [2,4,5,7,9]): print("hon")
[["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655], ["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]]
5
86
a = input() if a[-1]=="2" or a[-1]=="4 "or a[-1]=="5" or a[-1]=="7" or a[-1]=="9": print("hon") elif a[-1]=="0" or a[-1]=="1" or a[-1]=="6" or a[-1]=="8": print("pon") else : print("bon")
a = input() if a[-1]=="2" or a[-1]=="4" or a[-1]=="5" or a[-1]=="7" or a[-1]=="9": print("hon") elif a[-1]=="0" or a[-1]=="1" or a[-1]=="6" or a[-1]=="8": print("pon") else : print("bon")
[["-", 31, 679, 31, 679, 12, 666, 0, 557, 0, 6], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 6]]
5
117
N=int(input()) x=N%10 if x==3: print("bon") elif x==0 or x==1 or X==6 or x==8: print("pon") else: print("hon")
N=int(input("")) x=N%10 if x==3: print("bon") elif x==0 or x==1 or x==6 or x==8: print("pon") else: print("hon")
[["+", 3, 4, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 3, 4, 0, 652, 3, 4, 0, 557, 0, 655], ["-", 75, 665, 15, 679, 31, 679, 12, 666, 0, 22], ["+", 75, 665, 15, 679, 31, 679, 12, 666, 0, 22]]
5
55
puts case gets.to_i when 2, 4, 5, 7, 9 "hon" when 0, 1, 6, 8 "pon" else "bon" end
puts case gets.to_i % 10 when 2, 4, 5, 7, 9 "hon" when 0, 1, 6, 8 "pon" else "bon" end
[["+", 0, 652, 3, 4, 0, 173, 51, 738, 17, 109], ["+", 0, 652, 3, 4, 0, 173, 51, 738, 12, 612]]
4
34
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int r = n % 10; if (r == 3) cout << "bon"; if (r == 0 || r == 1 || r == 6 || r == 8) cout << "pon"; else cout << "hon"; cout << "\n"; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int r = n % 10; if (r == 3) cout << "bon"; else if (r == 0 || r == 1 || r == 6 || r == 8) cout << "pon"; else cout << "hon"; cout << "\n"; }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
75
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner myInput = new Scanner(System.in); int n; n = myInput.nextInt(); n %= 10; if (n == 3) { System.out.println("bon"); } else if (n == 0 || n == 1 || n == 6 || n == 8) { System.out.println("...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner myInput = new Scanner(System.in); int n; n = myInput.nextInt(); n %= 10; if (n == 3) { System.out.println("bon"); } else if (n == 0 || n == 1 || n == 6 || n == 8) { System.out.println("...
[["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
113
$stdin = trim(fgets(STDIN)); $stdinStr = strlen($stdin); $stdin2 = substr($stdin, ($stdinStr - 1), 1); if (($stdin2 == 2) || ($stdin2 == 4) || ($stdin2 == 5) || ($stdin2 == 7) || ($stdin2 == 9)) { echo 'hon'; } elseif (($stdin2 == 0) || ($stdin2 == 1) || ($stdin2 == 6) || ($stdin2 == 8)) { echo 'pon'; } else { ...
<?php $stdin = trim(fgets(STDIN)); $stdinStr = strlen($stdin); $stdin2 = substr($stdin, ($stdinStr - 1), 1); if (($stdin2 == 2) || ($stdin2 == 4) || ($stdin2 == 5) || ($stdin2 == 7) || ($stdin2 == 9)) { echo 'hon'; } elseif (($stdin2 == 0) || ($stdin2 == 1) || ($stdin2 == 6) || ($stdin2 == 8)) { echo 'pon'; } e...
[["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 605]]
6
127
a=input() b=(a[-1]) if b == "3": print(a+"bon") elif b == "0" or b =="1" or b =="6" or b =="8": print(a+"pon") else : print(a+"hon")
a=input() b=(a[-1]) if b == "3": print("bon") elif b == "0" or b =="1" or b =="6" or b =="8": print("pon") else : print("hon")
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72]]
5
72
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int, int>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repr(i, a, b) for (int i = a; i < b; i++) #define each(i, mp) for (auto &i : mp) int main() { string s; cin >> s; if ((s[s.size() - 1] - '0') == 3) cout...
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int, int>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repr(i, a, b) for (int i = a; i < b; i++) #define each(i, mp) for (auto &i : mp) int main() { string s; cin >> s; if ((s[s.size() - 1] - '0') == 3) cout...
[["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 98], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 106], ["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["-", 75, 76, 0, 57, 15, 339, 51...
1
208
N = int(input())%10 print(N) hon = [2,4,5,7,9] pon = [0,1,6,8] if N in hon: print("hon") elif N in pon: print("pon") else: print("bon")
N = int(input())%10 hon = [2,4,5,7,9] pon = [0,1,6,8] if N in hon: print("hon") elif N in pon: print("pon") else: print("bon")
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
68
#include <iostream> using namespace std; int main() { string num; cin >> num; int val = num[num.size() - 1] - '0'; if (val == 2 || val == 4 || val == 5 || val == 9) { cout << "hon" << endl; } if (val == 0 || val == 1 || val == 6 || val == 8) { cout << "pon" << endl; } if (val == 3) { c...
#include <iostream> using namespace std; int main() { string num; cin >> num; int val = num[num.size() - 1] - '0'; if (val == 2 || val == 4 || val == 5 || val == 7 || val == 9) { cout << "hon" << endl; } if (val == 0 || val == 1 || val == 6 || val == 8) { cout << "pon" << endl; } if (val =...
[["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]]
1
112
num = gets.chomp.to_i % 10 case num when 2,4,5,7,9 puts 'hon' when 3 then puts 'bon' when 0,1,6,8 then puts 'pon' end
num = gets.chomp.to_i num2 = num % 10 case num2 when 2,4,5,7,9 puts 'hon' when 3 then puts 'bon' when 0,1,6,8 then puts 'pon' end
[["-", 0, 493, 0, 662, 12, 738, 31, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 31, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 0, 32], ["+", 36, 36, 0, 493, 0, 662, 12, 738, 31, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 173, 51, 22], ["+", 36, 36, 36, 36, 0, 493, 0,...
4
46
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int N, min; cin >> N; min = N % 10; if (min == 3) cout << "bon" << endl; if (min == 0 or min == 1 or min == 6 or min == 8) cout << "pon" << endl; else cout << "hon" << endl; return 0; }
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int N, min; cin >> N; min = N % 10; if (min == 3) cout << "bon" << endl; else if (min == 0 or min == 1 or min == 6 or min == 8) cout << "pon" << endl; else cout << "hon" << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
81
num=input() one=num[len(num)-1] if one=="2" or one=="4" or one=="5" or one=="7" or one=="9": print("hon") elif one=="0" or one=="1" or one=="6" or one=="8": print("pon") else: print("boon")
num=input() one=num[len(num)-1] if one=="2" or one=="4" or one=="5" or one=="7" or one=="9": print("hon") elif one=="0" or one=="1" or one=="6" or one=="8": print("pon") else: print("bon")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
92
#include <iostream> using namespace std; int main() { int N; cin >> N; if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) { cout << "pon" << endl; } if (N % 10 == 3) { cout << "bon" << endl; } else { cout << "hon" << endl; } }
#include <iostream> using namespace std; int main() { int N; cin >> N; if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) { cout << "pon" << endl; } else { if (N % 10 == 3) { cout << "bon" << endl; } else { cout << "hon" << endl; } } }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 0, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
1
84
import numpy as np a = int(input()) b = a % 100 print(b) hon = [2,4,5,7,9] pon = [0,1,6,8] bon = [3] if b in hon: print("hon") elif b in pon: print("pon") else: print("bon")
import numpy as np a = int(input()) b = a % 10 hon = [2,4,5,7,9] pon = [0,1,6,8] bon = [3] if b in hon: print("hon") elif b in pon: print("pon") else: print("bon")
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
80
n=int(input()) if n in (2,4,5,7,9): print("hon") elif n in (0,1,6,8): print("pon") else: print("bon")
n=int(input())%10 if n in (2,4,5,7,9): print("hon") elif n in (0,1,6,8): print("pon") else: print("bon")
[["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
56
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { int num = 998244353; // TODO Auto-generated method stub BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(System.out); int...
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { int num = 998244353; // TODO Auto-generated method stub BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(System.out); int...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["-", 15, 15, 0, 16, 31, 16, 12, 16, 31, 22],...
3
149
n = int(input()) d = n % 10 if d in [2,4,5,7,9]: print('hon') if d in [0,1,6,8]: print('pon') if d in [3]: print('hon')
n = int(input()) d = n % 10 if d in [2,4,5,7,9]: print('hon') if d in [0,1,6,8]: print('pon') if d in [3]: print('bon')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
66
#include <algorithm> #include <iostream> #include <string> #include <vector> using std::cin; using std::cout; using std::endl; int main() { int n; cin >> n; int a = n % 10; if (a == 3) cout << "bon" << endl; else if (a == 0 || a == 1 || a == 6 || a == 3) cout << "pon" << endl; else cout << "ho...
#include <algorithm> #include <iostream> #include <string> #include <vector> using std::cin; using std::cout; using std::endl; int main() { int n; cin >> n; int a = n % 10; if (a == 3) cout << "bon" << endl; else if (a == 0 || a == 1 || a == 6 || a == 8) cout << "pon" << endl; else cout << "ho...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
93
#define _CRT_SECURE_NO_WARNINGS #pragma GCC optimize("O3") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx") #define __USE_MINGW_ANSI_STDIO 0 #define _USE_MATH_DEFINES #include <algorithm> #include <cassert> #include <complex> #include <ctime> #include <iomanip> #include <iostream> #include <list> #include ...
#define _CRT_SECURE_NO_WARNINGS #pragma GCC optimize("O3") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx") #define __USE_MINGW_ANSI_STDIO 0 #define _USE_MATH_DEFINES #include <algorithm> #include <cassert> #include <complex> #include <ctime> #include <iomanip> #include <iostream> #include <list> #include ...
[["-", 49, 50, 51, 16, 31, 69, 341, 342, 0, 70], ["-", 49, 50, 51, 16, 31, 69, 341, 342, 0, 13], ["-", 49, 50, 51, 16, 31, 69, 341, 342, 0, 73], ["+", 49, 50, 51, 16, 31, 2, 63, 118, 17, 131], ["+", 49, 50, 51, 16, 31, 2, 63, 118, 119, 120], ["+", 49, 50, 51, 16, 31, 2, 3, 4, 0, 24], ["+", 49, 50, 51, 16, 31, 2, 3, 4, ...
1
204
N = int(input()) if N%10 in [2,4,7,9]: print("hon") elif N%10 in [0,1,6,8]: print("pon") elif N%10 in [3]: print("bon")
N = int(input()) if N%10 in [2,4,5,7,9]: print("hon") elif N%10 in [0,1,6,8]: print("pon") elif N%10 in [3]: print("bon")
[["+", 0, 656, 0, 57, 15, 666, 0, 634, 0, 612], ["+", 0, 656, 0, 57, 15, 666, 0, 634, 0, 21]]
5
65
n = input() if n[0] in "24579" : print("hon") elif n[0] in "0168": print("pon") else : print("bon")
n = input() if n[-1] in "24579" : print("hon") elif n[-1] in "0168": print("pon") else : print("bon")
[["-", 0, 656, 0, 57, 15, 666, 0, 206, 206, 612], ["+", 0, 57, 15, 666, 0, 206, 206, 664, 17, 33], ["+", 0, 57, 15, 666, 0, 206, 206, 664, 28, 612], ["-", 0, 57, 75, 665, 15, 666, 0, 206, 206, 612], ["+", 75, 665, 15, 666, 0, 206, 206, 664, 17, 33], ["+", 75, 665, 15, 666, 0, 206, 206, 664, 28, 612]]
5
45
n=int(input()) a=n%3 l1=[2,4,5,7,9] l2=[0,1,6,8] l3=[3] if a in l1: print("hon") elif a in l2: print("pon") elif a in l3: print("bon")
n=int(input()) a=n%10 l1=[2,4,5,7,9] l2=[0,1,6,8] l3=[3] if a in l1: print("hon") elif a in l2: print("pon") elif a in l3: print("bon")
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
75
num = gets.chomp.to_s.last.to_i if [2,4,5,7,9].include?(num) puts 'hon' elsif num == 3 puts 'bon' else puts 'pon' end
num = gets.chomp[-1].to_i if [2,4,5,7,9].include?(num) puts 'hon' elsif num == 3 puts 'bon' else puts 'pon' end
[["-", 0, 662, 12, 652, 486, 652, 486, 652, 17, 131], ["-", 0, 662, 12, 652, 486, 652, 486, 652, 735, 22], ["-", 0, 493, 0, 662, 12, 652, 486, 652, 17, 131], ["-", 0, 493, 0, 662, 12, 652, 486, 652, 735, 22], ["+", 0, 493, 0, 662, 12, 652, 486, 742, 0, 70], ["+", 0, 662, 12, 652, 486, 742, 0, 748, 17, 33], ["+", 0, 662...
4
46
n = str(input()) nn = n[-1] k = int(nn) if(k==2 or k==4 or k==5 or k==7 or k==9): print('hon') elif(k==0 or k==1 or k==6 or k==8): print('pon') else: print("bon") print(k)
n = str(input()) nn = n[-1] k = int(nn) if(k==2 or k==4 or k==5 or k==7 or k==9): print('hon') elif(k==0 or k==1 or k==6 or k==8): print('pon') else: print("bon")
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
87
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <map> #include <string.h> #include <vector> using namespace std; #define rep(i, a, b) for (int i = a; i < b; i++) #define repn(i, a, b) for (int i = a; i >= b; i--) #define vi vector<int> #...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <map> #include <string.h> #include <vector> using namespace std; #define rep(i, a, b) for (int i = a; i < b; i++) #define repn(i, a, b) for (int i = a; i >= b; i--) #define vi vector<int> #...
[["-", 51, 16, 31, 16, 12, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
544
#include <bits/stdc++.h> using namespace std; #define fast_io \ ios_base::sync_with_stdio(0); \ cin.tie(0); #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define forn(i, n...
#include <bits/stdc++.h> using namespace std; #define fast_io \ ios_base::sync_with_stdio(0); \ cin.tie(0); #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define forn(i, n...
[["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
269
N = str(input()) num = N[-1] if num == 3: print('bon') elif num == 0 or num == 1 or num == 6 or num == 8: print('pon') else: print('hon')
N = str(input()) num = N[-1] num = int(num) if num == 3: print('bon') elif num == 0 or num==1 or num==6 or num==8: print('pon') #elif num ==2 or num==4 or num==5 or num==7 or num==9: else: print('hon')
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
57
N = str(input()) num = N[-1] if num == 3: print('bon') elif num == 0: print('pon') elif num == 1: print('pon') elif num == 6: print('pon') elif num == 8: print('pon') elif num ==2: print('hon') elif num == 4: print('hon') elif num==5: print('hon') elif num==7: print('hon') elif num==9: print('hon'...
N = str(input()) num = N[-1] num = int(num) if num == 3: print('bon') elif num == 0: print('pon') elif num == 1: print('pon') elif num == 6: print('pon') elif num == 8: print('pon') elif num ==2: print('hon') elif num == 4: print('hon') elif num==5: print('hon') elif num==7: print('hon') elif num==9...
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
125
n=input() n=n[-1] print(n) if n=='3': print('bon') if n=="0" or n=="1" or n=="6" or n=="8": print('pon') if n=="2" or n=="4" or n=="5" or n=="7" or n=="9": print('hon')
n=input() n=n[-1] if n=='3': print('bon') if n=="0" or n=="1" or n=="6" or n=="8": print('pon') if n=="2" or n=="4" or n=="5" or n=="7" or n=="9": print('hon')
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
97
#include <iostream> using namespace std; // hon 2,4,5,7,9 // pon 0,1,6,8 // bon 3 int main() { int x; cin >> x; switch (x % 10) { case 3: cout << "bon"; break; case 0: case 1: case 6: case 7: cout << "pon"; break; default: cout << "hon"; break; } return 0; }
#include <iostream> using namespace std; // hon 2,4,5,7,9 // pon 0,1,6,8 // bon 3 int main() { int x; cin >> x; switch (x % 10) { case 3: cout << "bon"; break; case 0: case 1: case 6: case 8: cout << "pon"; break; default: cout << "hon"; break; } return 0; }
[["-", 8, 9, 0, 99, 8, 9, 0, 100, 51, 13], ["+", 8, 9, 0, 99, 8, 9, 0, 100, 51, 13]]
1
74
import java.io.*; import java.lang.*; import java.util.*; public class Main { static void result(long n) { long rem = n % 10; if (rem == 0) { System.out.println("bon"); } else if (rem == 0 || rem == 1 || rem == 6 || rem == 8) { System.out.println("pon"); } else { System.out.println("...
import java.io.*; import java.lang.*; import java.util.*; public class Main { static void result(long n) { long rem = n % 10; if (rem == 3) { System.out.println("bon"); } else if (rem == 0 || rem == 1 || rem == 6 || rem == 8) { System.out.println("pon"); } else { System.out.println("...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 12, 499], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 12, 499]]
3
144
#include <bits/stdc++.h> using namespace std; // SHORTCUTS #define ll long long #define endl '\n' #define i1(a) cin >> a #define i2(a, b) cin >> a >> b #define i3(a, b, c) cin >> a >> b >> c #define o1(a) cout << a << endl #define o2(a, b) cout << a << " " << b << endl #define o3(a, b, c) cout << a << " " << b << " "...
#include <bits/stdc++.h> using namespace std; // SHORTCUTS #define ll long long #define endl '\n' #define i1(a) cin >> a #define i2(a, b) cin >> a >> b #define i3(a, b, c) cin >> a >> b >> c #define o1(a) cout << a << endl #define o2(a, b) cout << a << " " << b << endl #define o3(a, b, c) cout << a << " " << b << " "...
[["-", 0, 57, 64, 1, 0, 11, 12, 103, 0, 104], ["-", 0, 57, 64, 1, 0, 11, 12, 103, 0, 125], ["-", 64, 1, 0, 11, 12, 103, 0, 42, 0, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 62], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 11, 12, 103, 0, 104], ["-", 75, 76, 0, 1, 0, 11, 12, 103, 0, 125], ["-", 0, 1, ...
1
600
N= input() a= N[-1] if(a== 3): print("bon") elif(a== 0 or a== 1 or a== 6 or a== 8): print("pon") else: print("hon")
N= input() a= int(N[-1]) if(a== 3): print("bon") elif(a== 0 or a== 1 or a== 6 or a== 8): print("pon") else: print("hon")
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
58
#include <iostream> using namespace std; int main() { int N; cin >> N; int M = N % 10; if (M == 3) { cout << "bon"; } else if (M == 0 || M == 1 || M == 6 || M == 8) { cout << "hon"; } else { cout << "pon"; } return 0; }
#include <iostream> using namespace std; int main() { int N; cin >> N; int M = N % 10; if (M == 3) { cout << "bon"; } else if (M == 0 || M == 1 || M == 6 || M == 8) { cout << "pon"; } else { cout << "hon"; } return 0; }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
79
#include <bits/stdc++.h> #define LL long long #define PII pair<int, int> #define PIL pair<int, LL> #define PLI pair<LL, int> #define PIII pair<int, PII> #define PLL pair<LL, LL> #define PLII pair<LL, PII> #define VI vector<int> #define VL vector<LL> #define VPII vector<PII> #define FF first #define SS second #define MP...
#include <bits/stdc++.h> #define LL long long #define PII pair<int, int> #define PIL pair<int, LL> #define PLI pair<LL, int> #define PIII pair<int, PII> #define PLL pair<LL, LL> #define PLII pair<LL, PII> #define VI vector<int> #define VL vector<LL> #define VPII vector<PII> #define FF first #define SS second #define MP...
[["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
187
N = input().strip() if N[-1] in [2, 4, 5, 7, 9]: print("hon") elif N[-1] in [0, 1, 6, 8]: print("pon") else: print("bon")
N = input().strip() if int(N[-1]) in [2, 4, 5, 7, 9]: print("hon") elif int(N[-1]) in [0, 1, 6, 8]: print("pon") else: print("bon")
[["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25], ["+", 0, 57, 75, 665, 15, 666, 0, 652, 63, 22], ["+", 75, 665, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 75, 665, 15, 666, 0, 652, 3, 4, 0, 25]]
5
65
function main(input) { let a = input.toString(); a = a[a.length - 1]; console.log(a === "3" ? "bon" : a === "0" || a === "1" || a === "6" || a === "8" ? "pon" : "hon"); } main(require('fs').rea...
function main(input) { let a = input.split("\n")[0]; a = a[a.length - 1]; console.log(a === "3" ? "bon" : a === "0" || a === "1" || a === "6" || a === "8" ? "pon" : "hon"); } main(require('fs')...
[["-", 0, 570, 0, 200, 51, 2, 63, 558, 559, 560], ["+", 0, 200, 51, 69, 500, 2, 63, 558, 559, 560], ["+", 51, 69, 500, 2, 3, 3, 0, 557, 0, 62], ["+", 51, 69, 500, 2, 3, 3, 0, 557, 0, 44], ["+", 8, 556, 0, 570, 0, 200, 51, 69, 0, 70], ["+", 8, 556, 0, 570, 0, 200, 51, 69, 71, 555], ["+", 8, 556, 0, 570, 0, 200, 51, 69, ...
2
95
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define pb push_back #define mp make_pair #define fast ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL); #define ff first #define ss second #define INF (ll)(1e9) #define mod (ll)(1e9 + 7) #define endl "\n" #define tt ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define pb push_back #define mp make_pair #define fast ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL); #define ff first #define ss second #define INF (ll)(1e9) #define mod (ll)(1e9 + 7) #define endl "\n" #define tt ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 51, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 31...
1
154
import sys def main(): N = int(input()) L = [0,1,6,8] n_last = int(N[-1]) if n_last == 3: print("bon") elif (n_last in L): print("pon") else: print("hon") main()
import sys def main(): N = str(input()) L = [0,1,6,8] n_last = int(N[-1]) if n_last == 3: print("bon") elif (n_last in L): print("pon") else: print("hon") main()
[["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22]]
5
71
#include <stdio.h> int main() { int n, p; scanf("%d", &n); switch (n) { case 0: case 1: case 6: case 8: printf("pon\n"); break; case 3: printf("bon\n"); break; default: printf("hon\n"); } return 0; }
#include <stdio.h> int main() { int n, p; scanf("%d", &n); switch (n % 10) { case 0: case 1: case 6: case 8: printf("pon\n"); break; case 3: printf("bon\n"); break; default: printf("hon\n"); } return 0; }
[["+", 8, 9, 0, 99, 15, 23, 0, 16, 17, 109], ["+", 8, 9, 0, 99, 15, 23, 0, 16, 12, 13]]
0
77
#include <stdio.h> int main() { int N; scanf("%d", &N); N %= 10; if (N == 3) puts("bon"); if (N == 0 || N == 1 || N == 6 || N == 8) puts("pon"); else puts("hon"); return 0; }
#include <stdio.h> int main() { int N; scanf("%d", &N); N %= 10; if (N == 3) puts("bon"); else if (N == 0 || N == 1 || N == 6 || N == 8) puts("pon"); else puts("hon"); return 0; }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
74
#include <stdio.h> int main() { int n, b; scanf("%d", &n); b = n % 10; if (b = 3) printf("bon\n"); if (b == 0 || b == 1 || b == 6 || b == 8) printf("pon\n"); else printf("hon\n"); }
#include <stdio.h> int main() { int n, b; scanf("%d", &n); b = n % 10; if (b == 3) printf("bon\n"); else { if (b == 0 || b == 1 || b == 6 || b == 8) printf("pon\n"); else printf("hon\n"); } }
[["-", 8, 9, 0, 57, 15, 23, 0, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60], ["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
0
78
<?php class Scanner { private $arr = []; private $count = 0; private $pointer = 0; public function next() { if($this->pointer >= $this->count) { $str = trim(fgets(STDIN)); $this->arr = explode(' ', $str); $this->count = count($this->arr); $this->po...
<?php class Scanner { private $arr = []; private $count = 0; private $pointer = 0; public function next() { if($this->pointer >= $this->count) { $str = trim(fgets(STDIN)); $this->arr = explode(' ', $str); $this->count = count($this->arr); $this->po...
[["-", 0, 11, 12, 613, 3, 3, 0, 28, 0, 612], ["+", 12, 613, 3, 3, 0, 28, 0, 616, 0, 33], ["+", 12, 613, 3, 3, 0, 28, 0, 616, 0, 612]]
6
295
N = input() N = N % 10 if N in [2, 4, 5, 7, 9]: print('hon') elif N in [0, 1, 6, 8]: print('pon') else: print('bon')
N = int(input()) N = N % 10 if N in [2, 4, 5, 7, 9]: print('hon') elif N in [0, 1, 6, 8]: print('pon') else: print('bon')
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
58
n = input() n = dict(n) l = [0,1,6,8] if n[-1] == "3": print("bon") elif str(n[-1]) in l: print("pon") else: print("hon")
n = input() n = list(n) l = [0,1,6,8] if n[-1] == "3": print("bon") elif int(n[-1]) in l: print("pon") else: print("hon")
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 57, 75, 665, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 75, 665, 15, 666, 0, 652, 63, 22]]
5
65
n = int(input()) if n in (2,4,5,7,9): yomi = 'hon' if n in (0,1,6,8): yomi = 'pon' if n == (3): yomi = 'bon' print(yomi)
n = int(input()) n = n % 10 if n in (2,4,5,7,9): yomi = 'hon' if n in (0,1,6,8): yomi = 'pon' if n == (3): yomi = 'bon' print(yomi)
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
62
#include <iostream> using namespace std; int main() { string S; cin >> S; int N; if (S.size() == 3) N = S.at(2) - '0'; else if (S.size() == 2) N = S.at(1) - '0'; else if (S.size() == 1) N = S.at(0) - '0'; if (N == 2 || N == 4 || N == 5 || N == 7 || N == 9) cout << "pon" << endl; else ...
#include <iostream> using namespace std; int main() { string S; cin >> S; int N; if (S.size() == 3) N = S.at(2) - '0'; else if (S.size() == 2) N = S.at(1) - '0'; else if (S.size() == 1) N = S.at(0) - '0'; if (N == 2 || N == 4 || N == 5 || N == 7 || N == 9) cout << "hon" << endl; else ...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
168
def atcoder(): i = int(input()) mod = i % 10 if mod == 3: str="bon" elif mod == 0 or i == 1 or i == 6 or i == 8: str="pon" else: str="hon" print(str) atcoder()
def atcoder(): i = int(input()) mod = i % 10 if mod == 3: str="bon" elif mod == 0 or mod == 1 or mod == 6 or mod == 8: str="pon" else: str="hon" print(str) atcoder()
[["-", 15, 679, 31, 679, 31, 679, 12, 666, 0, 22], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 0, 22], ["-", 75, 665, 15, 679, 31, 679, 12, 666, 0, 22], ["+", 75, 665, 15, 679, 31, 679, 12, 666, 0, 22], ["-", 0, 57, 75, 665, 15, 679, 12, 666, 0, 22], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 0, 22]]
5
64
import sys import os n = sys.argv[1] n = n[-1] if n == "2" or n == "4" or n == "5" or n == "7" or n == "9": print("hon") elif n == "0" or n == "1" or n == "6" or n == "8": print("pon") elif n == "3": print("bon") sys.exit()
import sys import os n = input() n = n[-1] if n == "2" or n == "4" or n == "5" or n == "7" or n == "9": print("hon") elif n == "0" or n == "1" or n == "6" or n == "8": print("pon") elif n == "3": print("bon") sys.exit()
[["-", 0, 1, 0, 662, 12, 206, 51, 319, 500, 22], ["-", 0, 1, 0, 662, 12, 206, 51, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 206, 51, 319, 319, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 206, 0, 70], ["-", 0, 656, 0, 1, 0, 662, 12, 206, 206, 612], ["-", 0, 656, 0, 1, 0, 662, 12, 206, 0, 73], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 6...
5
105
num = gets.to_i % 10 if num == 3 p 'bon' elsif [0, 1, 6, 8].include?(num) p 'pon' else p 'hon' end
num = gets.to_i % 10 if num == 3 print 'bon' elsif [0, 1, 6, 8].include?(num) print 'pon' else print 'hon' end
[["-", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["+", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["-", 0, 121, 75, 759, 64, 749, 0, 652, 735, 22], ["+", 0, 121, 75, 759, 64, 749, 0, 652, 735, 22], ["-", 0, 121, 75, 759, 75, 95, 0, 652, 735, 22], ["+", 0, 121, 75, 759, 75, 95, 0, 652, 735, 22]]
4
40
N=input() n=N%10 if n==3: print("bon") elif n==0 or n==1 or n==6 or n==8: print("pon") else: print("hon")
N=int(input()) n=N%10 if n==3: print("bon") elif n==0 or n==1 or n==6 or n==8: print("pon") else: print("hon")
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
52
n = int(input()[-1]) if n == 3: print('bon') elif n == 0 or n == 1 or n == 6 or n == 8: print('hon') else: print('pon')
n = int(input()[-1]) if n == 3: print('bon') elif n == 0 or n == 1 or n == 6 or n == 8: print('pon') else: print('hon')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
54
n = input() amari = n%10 p = '' if amari ==2 or amari ==4 or amari ==5 or amari ==7 or amari ==9: p = 'hon' elif amari ==1 or amari ==0 or amari ==6 or amari ==8 : p = 'pon' else: p = 'bon' print(p)
n = int(input()) amari = n%10 p = '' if amari ==2 or amari ==4 or amari ==5 or amari ==7 or amari ==9: p = 'hon' elif amari ==1 or amari ==0 or amari ==6 or amari ==8 : p = 'pon' else: p = 'bon' print(p)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
73
N=input()[-1:] if N=="3": print("bon") elif N in {0,1,6,8}: print("pon") else: print("hon")
N=input()[-1] if N=="3": print("bon") elif N in {"0","1","6","8"}: print("pon") else: print("hon")
[["-", 0, 1, 0, 662, 12, 206, 206, 663, 0, 102], ["+", 75, 665, 15, 666, 0, 282, 0, 557, 0, 654], ["+", 75, 665, 15, 666, 0, 282, 0, 557, 0, 655]]
5
50
input_line = int(input()) #print(input_line) first=input_line%10 print(first) if first == 2 or first == 4 or first == 5 or first == 7 or first == 9: print("hon") elif first == 0 or first == 1 or first == 6 or first == 8: print("pon") elif first == 3: print("bon")
input_line = int(input()) #print(input_line) first=input_line%10 #print(first) if first == 2 or first == 4 or first == 5 or first == 7 or first == 9: print("hon") elif first == 0 or first == 1 or first == 6 or first == 8: print("pon") elif first == 3: print("bon")
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
79
package main import "fmt" func main() { var a, n int fmt.Scan(&a) n = a % 10 if n == 3{ fmt.Println("hon") } else if n == 0 || n == 1 || n ==6 || n == 8{ fmt.Println("pon") }else{ fmt.Println("hon") } }
package main import "fmt" func main() { var a, n int fmt.Scan(&a) n = a % 10 if n == 3{ fmt.Println("bon") } else if n == 0 || n == 1 || n ==6 || n == 8{ fmt.Println("pon") }else{ fmt.Println("hon") } }
[]
7
90
#define FILE_INPUT #define _CRT_SECURE_NO_WARNINGS // _ // (_) // _ __ ___ __ _ _ ___ _ __ _ __ ___ //| '_ ` _ \ / _` | |/ _ \| '__| '__/ _ \ //| | | | | | (_| | | (_) | | | | | (_) | //|_| |_| |_|\__,_| |\___/|_| |_| \___/ // _/ | // |__/ #include <bits...
//#define FILE_INPUT #define _CRT_SECURE_NO_WARNINGS // _ // (_) // _ __ ___ __ _ _ ___ _ __ _ __ ___ //| '_ ` _ \ / _` | |/ _ \| '__| '__/ _ \ //| | | | | | (_| | | (_) | | | | | (_) | //|_| |_| |_|\__,_| |\___/|_| |_| \___/ // _/ | // |__/ #include <bi...
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22], ["-", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148]]
1
468
n = int(input()) ans = n % 10 if ans == 3: print('bon') if ans == 0 or ans == 1 or ans == 6 or ans == 8: print('pon') else: print('hon')
n = int(input()) ans = n % 10 if ans == 3: print('bon') exit() if ans == 0 or ans == 1 or ans == 6 or ans == 8: print('pon') else: print('hon')
[["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
55
n = str(input("n:")) N = n[-1] if N == "3": print("bon") elif N == "0" : print("pon") elif N == "1" : print("pon") elif N == "6": print("pon") elif N == "8": print("pon") else: print("hon")
n = str(input()) N = n[-1] if N == "3": print("bon") elif N == "0" : print("pon") elif N == "1" : print("pon") elif N == "6": print("pon") elif N == "8": print("pon") else: print("hon")
[["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 655]]
5
91
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<ll, ll> ii; typedef tuple<ll, ll, ll> iii; typedef vector<ll> vi; typedef vector<ii> vii; typedef vector<iii> viii; typedef vector<vi> vvi; typedef vector<vii> vvii; #define REP(i, n) for (ll i = 0; i < n; ++i) #de...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<ll, ll> ii; typedef tuple<ll, ll, ll> iii; typedef vector<ll> vi; typedef vector<ii> vii; typedef vector<iii> viii; typedef vector<vi> vvi; typedef vector<vii> vvii; #define REP(i, n) for (ll i = 0; i < n; ++i) #de...
[["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
235
#include <bits/stdc++.h> using namespace std; const int maxn = 2e5 + 10; typedef long long int ll; void solved() { string s; cin >> s; int len = s.size() - 1; if (s[len] == '2' || s[len] == '4' || s[len] == '5' || s[len] == '7' || s[len] == '9') cout << "hon" << endl; else if (s[len] == 'len' || s[...
#include <bits/stdc++.h> using namespace std; const int maxn = 2e5 + 10; typedef long long int ll; void solved() { string s; cin >> s; int len = s.size() - 1; if (s[len] == '2' || s[len] == '4' || s[len] == '5' || s[len] == '7' || s[len] == '9') cout << "hon" << endl; else if (s[len] == '0' || s[le...
[["-", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["-", 31, 16, 31, 16, 12, 103, 0, 42, 0, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125]]
1
169
N=input() def yomikata(N): N_firstdigit=N%10 if N_firstdigit==3: print("bon") #elif N_firstdigit==0 or 1 or 6 or 8: このように条件は省略して書いてはだめらしい! elif N_firstdigit==0 or N_firstdigit==1 or N_firstdigit==6 or N_firstdigit==8: print("pon") else: print("hon") yomikata(N)
N=int(input()) def yomikata(N): N_firstdigit=N%10 if N_firstdigit==3: print("bon") #elif N_firstdigit==0 or 1 or 6 or 8: このように条件は省略して書いてはだめらしい! elif N_firstdigit==0 or N_firstdigit==1 or N_firstdigit==6 or N_firstdigit==8: print("pon") else: print("hon") yomikata(N)...
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
63
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = sc.next(); String[] ns = n.split(""); if (ns[ns.length - 1].equals("1") || ns[ns.length - 1].equals("4") || ns[ns.length - 1].equals("5") || ns[ns.length - 1]....
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = sc.next(); String[] ns = n.split(""); if (ns[ns.length - 1].equals("2") || ns[ns.length - 1].equals("4") || ns[ns.length - 1].equals("5") || ns[ns.length - 1]....
[["-", 31, 16, 31, 492, 3, 4, 0, 5, 0, 491], ["+", 31, 16, 31, 492, 3, 4, 0, 5, 0, 491]]
3
198
// “Incredible change happens in your life when you decide to take control of // what you do have power over instead of craving control over what you don't. // Dear online judge: // I've read the problem, and tried to solve it. // Even if you don't accept my solution, you should respect my effort. // I hope my code...
// “Incredible change happens in your life when you decide to take control of // what you do have power over instead of craving control over what you don't. // Dear online judge: // I've read the problem, and tried to solve it. // Even if you don't accept my solution, you should respect my effort. // I hope my code...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
143
N=int(input()) N=str(N) N = (N[-1]) if (N==2 or N==4 or N==5 or N==7 or N==9): print("hon") elif (N==0 or N==1 or N==6 or N==8): print("pon") else: print("bon")
N=int(input()) N=str(N) N = int(N[-1]) if (N==2 or N==4 or N==5 or N==7 or N==9): print("hon") elif (N==0 or N==1 or N==6 or N==8): print("pon") else: print("bon")
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
85
#include "bits/stdc++.h" using namespace std; using ll = long long; int main() { int n; cin >> n; int m = n / 10; if (m == 3) { cout << "bon"; } else if (m == 0 || m == 1 || m == 6 || m == 8) { cout << "pon"; } else { cout << "hon"; } cout << endl; }
#include "bits/stdc++.h" using namespace std; using ll = long long; int main() { int n; cin >> n; int m = n % 10; if (m == 3) { cout << "bon"; } else if (m == 0 || m == 1 || m == 6 || m == 8) { cout << "pon"; } else { cout << "hon"; } cout << endl; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 85], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 109]]
1
88
num == int(input()) num_1 == num % 10 if num_1 == 3: print('bon') elif num_1 <= 1 or num_1 == 6 or num_1 == 8: print('pon') else: print('hon')
num = int(input()) num_1 = num % 10 if num_1 == 3: print('bon') elif num_1 <= 1 or num_1 == 6 or num_1 == 8: print('pon') else: print('hon')
[["-", 36, 36, 0, 656, 0, 1, 0, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32]]
5
51
#include <bits/stdc++.h> using namespace std; #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define int...
#include <bits/stdc++.h> using namespace std; #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define int...
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
219
#include <bits/stdc++.h> int main() { int a = 0; std::cin >> a; char szbuf[1024]; sprintf(szbuf, "%dA", a); int ii = 0; for (ii = 0; ii < 100; ii++) { if (szbuf[ii + 1] == 0x00) break; } if (szbuf[ii] == '3') std::cout << "bon"; if (szbuf[ii] == '0' || szbuf[ii] == '1' || szbuf[ii] == '...
#include <bits/stdc++.h> int main() { int a = 0; std::cin >> a; char szbuf[1024]; sprintf(szbuf, "%d", a); int ii = 0; for (ii = 0; ii < 100; ii++) { if (szbuf[ii + 1] == 0x00) break; } if (szbuf[ii] == '3') std::cout << "bon"; else if (szbuf[ii] == '0' || szbuf[ii] == '1' || szbuf[ii] ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
146